UNPKG

@nebula.js/sn-scatter-plot

Version:

A scatter plot.

7 lines (6 loc) 336 kB
/* * @nebula.js/sn-scatter-plot v3.58.2 * Copyright (c) 2025 QlikTech International AB * Released under the MIT license. */ System.register(["@nebula.js/stardust","qlik-chart-modules","picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules/react","react-dom","react","qlik-object-conversion"],(function(e){"use strict";var t,n,i,r,o,a,s,l,c,u,d,p,h,m,f,g,y,v,b,x,S,M,E,w,C,A,T,N,k,L,R,I,O,P,D,q,z,_,H,B,F,V,j,$,U,W,X,Y;return{setters:[function(e){t=e.useConstraints,n=e.useState,i=e.useLayout,r=e.useTranslator,o=e.useEffect,a=e.useAction,s=e.useElement,l=e.useOptions,c=e.useStaleLayout,u=e.useTheme,d=e.useModel,p=e.useRect,h=e.useSelections,m=e.useApp,f=e.useAppLayout,g=e.usePlugins,y=e.useEmbed,v=e.usePromise,b=e.onTakeSnapshot,x=e.useImperativeHandle},function(e){S=e.storage,M=e.cache,E=e.getValue,w=e.trendlinesService,C=e.setValue,A=e.selectionService,T=e.colorService,N=e.tooltipService,k=e.layoutService,L=e.alternativeService,R=e.dockService,I=e.themeService,O=e.pluginService,P=e.debouncer,D=e.fontResolver},function(e){q=e.default},function(e){z=e.default},function(e){_=e.default},function(e){H=e.reactRenderer,B=e.axisTitleComponent},function(e){F=e.default,V=e},function(e){j=e.default,$=e,U=e.Children,W=e.isValidElement,X=e.cloneElement},function(e){Y=e.default}],execute:function(){e("default",(function(e){const{flags:t}=e;return function(e){if(e&&e.get&&e.add){const t="properties.compression.providingOverviewOf";if(e.get(t)!==t)return;Object.keys(Bp).forEach((t=>{e.add(Bp[t])}))}}(e.translator),{qae:mp(e),ext:_p(e),component(){const e=Os(),n=Eu({core:e,flags:t}),i=cp({core:e,models:n,flags:t});up({settings:i,models:n}),Hp({core:e,models:n})}}}));const G={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};function K(){const[e]=n({}),s=t(),l=function(e){const i=t(),[r,a]=n(!1),[s,l]=n({});return o((()=>()=>{l({})}),[]),o((()=>{i&&a(!i.select&&!i.active)}),[i]),{enabled:()=>r&&!e.getProgressive(),emit:(e,...t)=>{var n;return null===(n=s[e])||void 0===n?void 0:n.forEach((e=>e(...t)))},removeListener:(e,t)=>{var n;const i=null===(n=s[e])||void 0===n?void 0:n.indexOf(t);i>-1&&s[e].splice(i,1)},removeAllListeners:e=>{s[e]=void 0},on:(e,t)=>{Array.isArray(s[e])?s[e].push(t):s[e]=[t]},getBrushOptions:e=>({orMode:"tap"===e})}}(e),c=function(){var e;const s=t(),[l,c]=n(!1),[u,d]=n(!1),p=i(),h=r(),m=!!p.qSelectionInfo.qInSelections,f=!(null===(e=p.qHyperCube)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e||null===(e=e[0])||void 0===e||!e.qIsOneAndOnlyOne);o((()=>{s&&c(!s.select&&!s.active)}),[s]);const g=e=>{d("boolean"==typeof e?e:!u)};return a((()=>({key:"lasso",label:h.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:G,hidden:!l||!m||f,active:u,action:g})),[m,f,u,l]),{action:g,enabled:()=>l,active:()=>u}}();return e.zoom={enabled:()=>s&&!s.active},e.scroll={enabled:()=>s&&!s.active},e.interact={enabled:()=>s&&!s.active},e.tooltip={enabled:()=>s&&!s.passive},e.getProgressive=()=>e.progressive,e.setProgressive=t=>{e.progressive=t},e.lasso=c,e.select=l,e}const Z={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function J(e){return Z[e]||e}function Q(e){return function(t,n,i){let r,o,a,s,l=[],c=!0;function u(){"function"==typeof r.enable&&(r.enable=r.enable.bind(o)()),r.enable&&(r.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(o));const n=J(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(i),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(o),a.on(e,t.events[e])})),l.push(t))})),r.gestures.forEach((t=>{const n=J(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,r=e,o={chart:t,mediator:n,settings:r},r.gestures=r.gestures||[],void 0===r.enable&&(r.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,r=null}}}}const ee={getGap(e,t){const n=e.position<t.position?e:t,i=e.position<t.position?t:e;return i.position-i.radius-(n.position+n.radius)},findSegmentPositionMeetMaxThenMin(e,t,n){const i=e.position+e.radius,r=e.position-Math.max(0,i-n),o=r-e.radius;return r+Math.max(0,t-o)},layoutPositionFromMin(e,t,n,i=0){const r=e.length-1;let o,a,s,l=t;for(let t=0;t<r;t++)o=e[t],a=e[t+1],s=(o.position+a.position)/2-i/2,o.position=ee.findSegmentPositionMeetMaxThenMin(o,l,s),l=o.position+o.radius+i;a.position=ee.findSegmentPositionMeetMaxThenMin(a,l,n)},adjustPositionFromMax(e,t,n,i=0){const r=e.length-1,o=Math.max(0,e[r].position+e[r].radius-n);if(0===o)return;let a,s,l,c,u=0;for(a=r;a>0&&(s=e[a],l=e[a-1],c=Math.max(0,ee.getGap(l,s)-i),c-=Math.max(0,u+c-o),u+=c,s.move=c,!(u>=o));a--);for(u<o&&(c=Math.max(0,l.position-l.radius-t),c-=Math.max(0,u+c-o),u+=c,l.move=c),u=0,a=0;a<=r;a++)s=e[a],u+=s.move||0,s.move=u,s.position-=u},createLayout(e,t,n,i=0){const r=e.map((e=>e.segment)),o=r.length-1;if(o<0)return[];if(0===o){const e=r[0];e.position=ee.findSegmentPositionMeetMaxThenMin(e,t,n)}else ee.layoutPositionFromMin(r,t,n,i),ee.adjustPositionFromMax(r,t,n,i);return e.filter((e=>{const i=Math.ceil(e.segment.position-e.segment.radius),r=e.segment.position+e.segment.radius;return i>=t&&r<=n}))}},te={getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelPositions(e,t,n){for(let i=0;i<e.length;i++){const r=e[i],{value:o}=r,a=t(o);r.center=a*n}e.sort(((e,t)=>e.center-t.center))},addLabelWidth(e,t){for(let n=0;n<e.length;n++){const i=e[n];i.totalWidth=t(i.title).width}},addLabelSizes(e,t,n,i){for(let r=0;r<e.length;r++){const o=e[r];o.width=Math.min(t,Math.max(...o.lines.map((e=>i(e).width)))),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const i=e[n],{center:r}=i,o=i[t]/2;i.segment={position:r,radius:o}}},addLabelTitles(e,t,n){let i;for(let r=0;r<e.length;r++){const o=e[r],{value:a,valueLabel:s}=o;i=te.hasEngineFormat(a,s,n)?s:t?t(a):a,o.valueString=`(${i})`,o.title=te.getTitle(o)}},hasEngineFormat(e,t,n){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const i=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return String(t).replace(new RegExp(`[0-9e${i}]`,"g"),"").length>0},reduceMaxNumLines({labels:e,min:t,max:n,gap:i,lineHeight:r,epsilon:o}){const a=e.length-1;if(a<0)return;let s,l;if([s]=e,s.cMin=t,0!==a){for(let t=0;t<a;t++)s=e[t],l=e[t+1],s.cMax=(s.center+l.center-i)/2,l.cMin=s.cMax+i;l.cMax=n;for(let t=0;t<e.length;t++){const n=e[t],i=Math.floor((Math.max(0,n.cMax-n.cMin)+o)/r),a=Math.min(i,n.maxNumLines);n.maxNumLines=Math.max(a,1)}}else s.cMax=n},resolveLabels:e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value})))};function ne(e){let t;if(void 0!==e&&e.data){const n=e.data()&&e.data().fields;t=n&&n[0]?n[0].formatter():null}return t}let ie;function re(){ie=ie||document.createElement("canvas").getContext("2d")}const oe={measureTextWidth(e){re();const{width:t}=ie.measureText(e);return t},lineWrap(e,t,n,i){let r,o;re();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,p=e?e.split(/\s+/):[],h=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof i&&a.length>=i)return a.slice(0,i);for(n&&(ie.font=n),o=0;o<a.length;o++){for(d=a[o],p=d.split(/\s+/),[h]=p,u="",r=1;r<p.length;r++)if(l=`${h} ${p[r]}`,c=oe.measureTextWidth(l),c>t&&("number"!=typeof i||i>s.length)?(s.push(h),h=p[r]):h=l,"number"==typeof i&&s.length>=i){u=p.slice(r+1).join(" ");break}"number"!=typeof i||s.length<i?s.push(h):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]} ${h} ${u}`}return s},wordWrap(e,t,n,i,r){if(re(),!e||!e.length)return[];n&&(ie.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c.length<=1||oe.measureTextWidth(c)<=t?o.push(c):(s=oe.splitWord(c,t,void 0,i-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?oe.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=i?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l)));return o.forEach(((e,t,n)=>{n[t]=e.trim()})),o.length>i?(o=o.splice(0,i),o[o.length-1]=oe.truncate(o[o.length-1],t,n,r).text):(c=o[o.length-1],c&&c.length>1&&oe.measureTextWidth(c)>t&&(o[o.length-1]=oe.truncate(c,t,n,r).text)),o},truncate(e,t,n,i="…"){re();let r,o,a,s,l=e;const c=oe.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(ie.font=n),e&&t){if(oe.measureTextWidth(l)>t){for(r=Math.min(u,l.length);r>0;r--)if(o=l.substring(0,r-1),a=o.trim()+i,oe.measureTextWidth(a)<=t){s=l.substring(r-1),l=a;break}r||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,i){let r;re();let o,a=e,s="",l=[];if(oe.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/i);for(r=Math.min(e.length,c);r>0&&(a=e.substring(0,r),o=e.substring(r-1,r)," "===o?a=e.substring(0,r-1):a+="-",s=e.substring(r),!(oe.measureTextWidth(a)<=t));r--);return(!r&&!a||oe.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(oe.measureTextWidth(s)>t?(s=oe.explodeWord(s,t,n-1,i),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,i)=>(re(),e&&t?(n&&(ie.font=n),oe.explodeWord(e,t,i,Math.max(1,oe.measureTextWidth("i")))):[]),wrapText(e,t,n,i,r){let o;return Number.isNaN(t)||!t?[e]:(o=i>1?oe.lineWrap(e,t,n,i):[e],o=oe.wordWrap(o,t,n,i,r),o)},getFontHeight:e=>(re(),e&&(ie.font=e),1.5*oe.measureTextWidth("m")),tokenize(e,t,n,i,r,o,a=1){re(),t&&(ie.font=t);const s=oe.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const p=o?Math.max(1,Math.floor(o/l)):i||1;return Array.isArray(i)?(i.forEach((e=>{u+=Number.isNaN(e)||e<=0||!e?0:e})),i.forEach((e=>{c.push(Number.isNaN(e)||e<=0||!e?p-u:e)}))):c=[Number.isNaN(i)||i<=0||!i?p:Math.min(p,i)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<p&&(d=d.concat(oe.wrapText(e,r,t,c[n])))})):d=oe.wrapText(e,r,t,c[0],n),d}};function ae(e){return e.showValue?`… ${e.valueString}`:"…"}function se(e,t,n,i){for(let r=0;r<e.length;r++){const o=e[r];o.lines=oe.tokenize(o.title,t,ae(o),i,n),o.maxNumLines=o.lines.length}}const le={getLabelTooltip({title:e,font:t,ellipsis:n,maxNumLines:i,maxWidth:r}){const o=oe.tokenize(e,t,n,i,r),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s},getOobsTooltip({oobs:e,font:t,ellipsis:n,maxNumLines:i,maxWidth:r}){const o=e.map((e=>le.getLabelTooltip({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:i,maxWidth:r}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}};function ce(e){const{fontFamily:t,fontSize:n,gap:i,maxWidth:r,maxNumLines:o,padding:a}=e,s=`normal ${n} ${t}`;return{fontFamily:t,fontSize:n,font:s,lineHeight:oe.getFontHeight(s),gap:i||12,maxLabelWidth:r||75,maxNumLines:o||1,padding:{top:a.top||0,bottom:a.bottom||0,left:a.left||0,right:a.right||0}}}function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var de=Object.prototype.hasOwnProperty,pe=Object.prototype.toString,he=Object.defineProperty,me=Object.getOwnPropertyDescriptor,fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===pe.call(e)},ge=function(e){if(!e||"[object Object]"!==pe.call(e))return!1;var t,n=de.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&de.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||de.call(e,t)},ye=function(e,t){he&&"__proto__"===t.name?he(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ve=function(e,t){if("__proto__"===t){if(!de.call(e,t))return;if(me)return me(e,t).value}return e[t]},be=function e(){var t,n,i,r,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)i=ve(s,n),s!==(r=ve(t,n))&&(u&&r&&(ge(r)||(o=fe(r)))?(o?(o=!1,a=i&&fe(i)?i:[]):a=i&&ge(i)?i:{},ye(s,{name:n,newValue:e(u,a,r)})):void 0!==r&&ye(s,{name:n,newValue:r}));return s},xe=ue(be);const Se={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,majorAxis:i,rendWidth:r,rendHeight:o,symbol:a}){let s,l,c;return"x"===i?(0===t?(s=e.size/2,c=180):(s=r-e.size/2,c=0),l=o*n):(0===t?(l=o-e.size/2,c=-90):(l=e.size/2,c=90),s=r*n),a(xe({},e,{x:s,y:l,startAngle:c}))}},Me={filterOobLabels({labels:e,minValue:t,maxValue:n,slopeEnabled:i}){let r=e.filter((e=>e.value>=t));if(r=r.filter((e=>e.value<=n)),!i){const i=e.filter((e=>e.value<t)),o=e.filter((e=>e.value>n));return{filteredLabels:r,lowerOobs:i,upperOobs:o,numLowerOobs:i.length,numUpperOobs:o.length}}return{filteredLabels:r}},getOobSizes(e){let t,n=0;for(let i=1;i<10;i++)t=e(i),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]},getCircleSize:(e,t)=>e>9?t[1]:t[0],createOobsInfo({labels:e,minValue:t,maxValue:n,orientation:i,style:r,padding:o,measureText:a}){const{lowerOobs:s,upperOobs:l,numLowerOobs:c,numUpperOobs:u,filteredLabels:d}=Me.filterOobLabels({labels:e,minValue:t,maxValue:n,slopeEnabled:!1}),p=Me.getOobSizes(a),h=Me.getCircleSize(c,p),m=Me.getCircleSize(u,p),[f,g]="vertical"===i?[o.top,o.bottom]:[o.left,o.right];return{filteredLabels:d,lowerOobs:s,upperOobs:l,lowerCircleSize:h,upperCircleSize:m,lowerOobSpace:c>0?f+r.oob.size+h:0,upperOobSpace:u>0?g+r.oob.size+m:0}},createOobs({alignment:e,dockValue:t,oobs:n,style:i,rect:r,symbol:o,position:a,area:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{majorAxis:d,minorAxis:p,minorDimension:h}=s,m=r[h];return[Se.createOob({oob:Se.getDefaultSettings({size:i.size,fill:i.fill,alignment:e}),dockValue:t,boxCenter:.5,majorAxis:d,rendWidth:r.width,rendHeight:r.height,symbol:o}),{type:"circle",r:l,stroke:"transparent",fill:i.text.background.fill,strokeWidth:0,[`c${p}`]:m/2,[`c${d}`]:a},{type:"text",text:u>9?"9+":u,title:le.getOobsTooltip({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:m,width:m,fontSize:i.text.fontSize,fontFamily:i.text.fontFamily,fill:i.text.fill,baseline:"central",anchor:"middle",[p]:m/2,[d]:a}]}};var Ee={require:["renderer","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},measureText(e){return this.renderer.measureText({text:e,fontSize:this.settings.style.label.fontSize,fontFamily:this.settings.style.label.fontFamily})},preferredSize(){const{scale:e}=this,{style:t,localeInfo:n}=this.settings,i=ne(e),r=te.resolveLabels(this.settings.labels);te.addLabelTitles(r,i,n);const o=ce(t.label),{dock:a}=this.settings.layout,{filteredLabels:s}=Me.filterOobLabels({labels:r,minValue:e.domain()[0],maxValue:e.domain()[1],slopeEnabled:!0});if(s){te.addLabelWidth(s,this.measureText);const e=function(e,t,n){if("left"===t||"right"===t){const{padding:t,maxLabelWidth:i}=n,r=Math.max(...e.map((e=>e.totalWidth)));return Math.min(i,r)+t.left+t.right}const{padding:i,maxLabelWidth:r,maxNumLines:o,font:a,lineHeight:s}=n;let l=1;return Math.max(...e.map((e=>e.totalWidth)))>r&&(se(e,a,r,o),l=Math.max(...e.map((e=>e.lines.length)))),l*s+i.top+i.bottom}(s,a,o);return e}return 0},render(){const{scale:e,rect:t}=this,n=te.resolveLabels(this.settings.labels);if(e.domain().length<=0||n.length<=0)return!1;const{dock:i}=this.settings.layout,{style:r,localeInfo:o}=this.settings,{fontSize:a,fontFamily:s,font:l,lineHeight:c,gap:u,maxLabelWidth:d,maxNumLines:p,padding:h}=ce(r.label),m=ne(e),{filteredLabels:f}=Me.filterOobLabels({labels:n,minValue:e.domain()[0],maxValue:e.domain()[1],slopeEnabled:!0});if(f.length>0){const n=function(e,t,n){return"left"===t||"right"===t?{orientation:"vertical",majorAxis:"y",majorDimension:"height",majorSize:e.height,minorAxis:"x",minorDimension:"width",minorCenter:(e.width-n.right-n.left)/2+n.left}:{orientation:"horizontal",majorAxis:"x",majorDimension:"width",majorSize:e.width,minorAxis:"y",minorDimension:"height",minorCenter:(e.height-n.top-n.bottom)/2+n.top}}(t,i,h),{orientation:r,majorAxis:g,majorDimension:y,majorSize:v,minorAxis:b,minorCenter:x}=n;te.addLabelTitles(f,m,o),te.addLabelPositions(f,e,v);const[S,M]=[0,v];se(f,l,d,p),"vertical"===r&&(te.reduceMaxNumLines({labels:f,min:S,max:M,gap:u,lineHeight:c,epsilon:.05*u}),function(e,t,n){for(let i=0;i<e.length;i++){const r=e[i];r.lines.length>r.maxNumLines&&(r.lines=oe.tokenize(r.title,t,ae(r),r.maxNumLines,n))}}(f,l,d)),te.addLabelSizes(f,d,c,this.measureText),te.addLabelSegments(f,y);const E=ee.createLayout(f,S,M,u);let w=[];return null==E||E.forEach(((e,t)=>{const{lines:n}=e,i=n.length,r=n.map(((n,r)=>{var o;const u={fontSize:a,fontFamily:s,type:"text",text:n,title:le.getLabelTooltip({title:e.title,font:l,ellipsis:ae(e),maxNumLines:p,maxWidth:d}),dx:0,dy:0,maxWidth:d,width:d,fill:null!==(o=e.labelStroke)&&void 0!==o?o:e.fill,baseline:"central",anchor:"middle",[b]:x,[g]:e.segment.position,labelID:`${g}-${t}`};return u.y+=(r-(i-1)/2)*c,u}));if(e.labelStroke){const t={type:"rect",[b]:x,[g]:e.segment.position,rx:3,ry:3,maxWidth:d,width:e.width+4,height:c*i+4,stroke:e.fill,fill:e.fill};t.x-=e.width/2+2,t.y-=i*c/2+2,w.push(t)}w=w.concat(r)})),w}return!1}};function we(e,t){return e.x1<=t.x2&&t.x1<=e.x2&&e.y1<=t.y2&&t.y1<=e.y2}function Ce(e,t){let{bounds:n}=t;const{x:i,y:r,r:o}=t,a=o*o;return n||(n={x1:i-o,x2:i+o,y1:r-o,y2:r+o},t.bounds=n),!!we(e,n)&&(!!function(e,t){const{x1:n,x2:i,y1:r,y2:o}=e,{x:a,y:s}=t;return n<=a&&i>=a&&r<=s&&o>=s}(e,t)||(function(e,t){const{x1:n,x2:i,y1:r,y2:o}=t,a=Math.abs(n-e.x)<Math.abs(i-e.x)?n:i;return function(e,t,n){const i=(e.x-t.x)**2;return n.y<e.y?(n.y-e.y)**2+i:t.y>e.y?(t.y-e.y)**2+i:i}(e,{x:a,y:r},{x:a,y:o})}(t,e)<a||function(e,t){const{x1:n,x2:i,y1:r,y2:o}=t,a=Math.abs(r-e.y)<Math.abs(o-e.y)?r:o;return function(e,t,n){const i=(e.y-t.y)**2;return n.x<e.x?(n.x-e.x)**2+i:t.x>e.x?(t.x-e.x)**2+i:i}(e,{x:n,y:a},{x:i,y:a})}(t,e)<a))}function Ae({text:e,textWidth:t,maxWidth:n,measureText:i}){if(e="string"==typeof e?e:`${e}`,void 0===n)return e;if(t<=n)return e;let r=0,o=e.length-1;for(;r<=o;){const t=Math.floor((r+o)/2);i(e.substr(0,t)+"…").width<=n?r=t+1:o=t-1}return e.substr(0,o)+"…"}function Te({measureText:e,nodes:t,label:n,component:i}){const{width:r}=i.rect;return t.map((t=>{const i=n(t),o=e(i).width,{localBounds:a}=t,{x:s,y:l,width:c}=a,u=s+c/2,d=l-6;return{ellipsed:Ae({text:i,textWidth:o,maxWidth:2*Math.min(u,r-u),measureText:e}),cx:u,topRect:{y2:d},pointValue:t.data.value}}))}function Ne({measureText:e,mode:t,nodes:n,label:i,labelHeight:r,component:o}){if(2===t)return{topLabels:Te({measureText:e,nodes:n,label:i,component:o}),bottomLabels:[]};const a=[],s=[],l=[],{width:c,height:u}=o.rect,d=n.map((t=>{const n=i(t),o=e(n).width,{localBounds:a}=t,{x:s,y:l,width:u,height:d}=a,p=s+u/2,h=2*Math.min(p,c-p),m=Math.min(o,h),f=p-m/2,g=p+m/2,y=l-r-6,v=l-6,b=Ae({text:n,textWidth:o,maxWidth:h,measureText:e});return{text:n,cx:p,topRect:{x1:f,y1:y,x2:g,y2:v},textWidth:o,maxWidth:h,ellipsed:b,isEllipsisChar:"…"===b,circle:{x:p,y:l+d/2,r:d/2,height:d},pointValue:t.data.value}}));return d.forEach((e=>{e.isEllipsisChar||((e=>{const{topRect:t}=e;return t.y1<0||a.some((e=>we(t,e.topRect)))||d.some((e=>Ce(t,e.circle)))})(e)?l.push(e):a.push(e))})),l.forEach((e=>{const{x1:t,x2:n,y1:i,y2:o}=e.topRect,l=e.circle.height+12+r;e.bottomRect={x1:t,x2:n,y1:i+l,y2:o+l};const c=(e=>{const{bottomRect:t}=e;return t.y2>u||a.some((e=>we(t,e.topRect)))||s.some((e=>we(t,e.bottomRect)))||d.some((e=>Ce(t,e.circle)))})(e);c||s.push(e)})),{topLabels:a,bottomLabels:s}}var ke,Le={require:["chart","renderer"],defaultSettings:{settings:{rtl:!1,label:()=>{},showLabel:()=>!0,target:{point:"point-component"},mode:1},style:{fontFamily:"QlikView Sans, sans-serif",fontSize:"12px",fill:"#333",backgroundColor:"yellow"}},preferredSize:()=>({edgeBleed:{top:0,bottom:0,right:0,left:0}}),render(){const{settings:e}=this.settings,{target:t,label:n,showLabel:i,mode:r,debugMode:o,maxVisibleBubblesForLabeling:a}=e,s=t.point,l=this.chart.component(s);if(!l||0===r)return[];const{rendererSettings:c={}}=l.settings,u="function"==typeof c.progressive&&c.progressive();if(u&&!u.isLast)return[];const d=(e=>[...e.findShapes("circle"),...e.findShapes("path")])(this.chart).filter((e=>e.key===s&&i(e))).reverse();if(!d.length||d.length>a)return[];const{fontSize:p,fontFamily:h,fill:m,backgroundColor:f}=this.style,g=e=>this.renderer.measureText({text:e,fontSize:p,fontFamily:h}),y=g("M").height-2,{topLabels:v,bottomLabels:b}=Ne({measureText:g,mode:r,nodes:d,label:n,labelHeight:y,component:l}),x=v.map((e=>({type:"text",text:e.ellipsed,x:e.cx,y:e.topRect.y2,fontSize:p,fontFamily:h,fill:m,baseline:"text-after-edge",anchor:"middle",pointValue:e.pointValue}))),S=2!==r&&o?v.map((e=>({type:"rect",x:e.topRect.x1,y:e.topRect.y1,width:e.textWidth,height:y,fill:f,pointValue:e.pointValue}))):[],M=v.map((e=>({type:"line",x1:e.cx,x2:e.cx,y1:e.topRect.y2,y2:e.topRect.y2+5,stroke:m,strokeWidth:1,pointValue:e.pointValue}))),E=b.map((e=>({type:"text",text:e.ellipsed,x:e.cx,y:e.bottomRect.y1,fontSize:p,fontFamily:h,fill:m,baseline:"text-before-edge",anchor:"middle",pointValue:e.pointValue})));return[...S,...2!==r&&o?b.map((e=>({type:"rect",x:e.bottomRect.x1,y:e.bottomRect.y1,width:e.textWidth,height:y,fill:f,pointValue:e.pointValue}))):[],...x,...E,...M,...b.map((e=>({type:"line",x1:e.cx,x2:e.cx,y1:e.bottomRect.y1-5,y2:e.bottomRect.y1,stroke:m,strokeWidth:1,pointValue:e.pointValue})))]}},Re=F;function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ie.apply(null,arguments)}function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function Pe(e){return e&&"object"===Oe(e)&&e.constructor===Object}function De(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Ie({},e):e;return Pe(e)&&Pe(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(Pe(t[r])&&r in e?i[r]=De(e[r],t[r],n):i[r]=t[r])})),i}ke=Re.createRoot,Re.hydrateRoot;var qe={exports:{}};function ze(){}function _e(){}_e.resetWarningCache=ze;qe.exports=function(){function e(e,t,n,i,r,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_e,resetWarningCache:ze};return n.PropTypes=n,n}();var He=ue(qe.exports);function Be(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Oe(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}function Fe(e,t,n){return(t=Be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function $e(e){if(e.type)return e;if("#"===e.charAt(0))return $e(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Ve(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function Ue(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function We(e){var t="hsl"===(e=$e(e)).type?$e(function(e){var t=(e=$e(e)).values,n=t[0],i=t[1]/100,r=t[2]/100,o=i*Math.min(r,1-r),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return r-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ue({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Xe(e,t){return e=$e(e),t=je(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ue(e)}function Ye(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}function Ge(e,t){if(null==e)return{};var n,i,r=Ye(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Ke=["xs","sm","md","lg","xl"];function Ze(e,t,n){var i;return Ie({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Ie({paddingLeft:t(2),paddingRight:t(2)},n,Fe({},e.up("sm"),Ie({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Fe(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Fe(i,e.up("sm"),{minHeight:64}),i)},n)}var Je={black:"#000",white:"#fff"},Qe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},et={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},tt={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},nt={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"},it={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"},rt={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"},ot={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"},at={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Je.white,default:Qe[50]},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}},st={text:{primary:Je.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Qe[800],default:"#303030"},action:{active:Je.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 lt(e,t,n,i){var r=i.light||i,o=i.dark||1.5*i;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=$e(e),t=je(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Ue(e)}(e.main,r):"dark"===t&&(e.dark=function(e,t){if(e=$e(e),t=je(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Ue(e)}(e.main,o)))}function ct(e){var t=e.primary,n=void 0===t?{light:et[300],main:et[500],dark:et[700]}:t,i=e.secondary,r=void 0===i?{light:tt.A200,main:tt.A400,dark:tt.A700}:i,o=e.error,a=void 0===o?{light:nt[300],main:nt[500],dark:nt[700]}:o,s=e.warning,l=void 0===s?{light:it[300],main:it[500],dark:it[700]}:s,c=e.info,u=void 0===c?{light:rt[300],main:rt[500],dark:rt[700]}:c,d=e.success,p=void 0===d?{light:ot[300],main:ot[500],dark:ot[700]}:d,h=e.type,m=void 0===h?"light":h,f=e.contrastThreshold,g=void 0===f?3:f,y=e.tonalOffset,v=void 0===y?.2:y,b=Ge(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=We(e),i=We(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}(e,st.text.primary)>=g?st.text.primary:at.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Ie({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Ve(4,t));if("string"!=typeof e.main)throw new Error(Ve(5,JSON.stringify(e.main)));return lt(e,"light",n,v),lt(e,"dark",i,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:st,light:at};return De(Ie({common:Je,type:m,primary:S(n),secondary:S(r,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:Qe,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function ut(e){return Math.round(1e5*e)/1e5}function dt(e){return ut(e)}var pt={textTransform:"uppercase"},ht='"Roboto", "Helvetica", "Arial", sans-serif';function mt(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,r=void 0===i?ht:i,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,h=n.fontWeightBold,m=void 0===h?700:h,f=n.htmlFontSize,g=void 0===f?16:f,y=n.allVariants,v=n.pxToRem,b=Ge(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},M=function(e,t,n,i,o){return Ie({fontFamily:r,fontWeight:e,fontSize:S(t),lineHeight:n},r===ht?{letterSpacing:"".concat(ut(i/t),"em")}:{},o,y)},E={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(u,48,1.167,0),h4:M(u,34,1.235,.25),h5:M(u,24,1.334,0),h6:M(p,20,1.6,.15),subtitle1:M(u,16,1.75,.15),subtitle2:M(p,14,1.57,.1),body1:M(u,16,1.5,.15),body2:M(u,14,1.43,.15),button:M(p,14,1.75,.4,pt),caption:M(u,12,1.66,.4),overline:M(u,12,2.66,1,pt)};return De(Ie({htmlFontSize:g,pxToRem:S,round:dt,fontFamily:r,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:m},E),b,{clone:!1})}function ft(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var gt=["none",ft(0,2,1,-1,0,1,1,0,0,1,3,0),ft(0,3,1,-2,0,2,2,0,0,1,5,0),ft(0,3,3,-2,0,3,4,0,0,1,8,0),ft(0,2,4,-1,0,4,5,0,0,1,10,0),ft(0,3,5,-1,0,5,8,0,0,1,14,0),ft(0,3,5,-1,0,6,10,0,0,1,18,0),ft(0,4,5,-2,0,7,10,1,0,2,16,1),ft(0,5,5,-3,0,8,10,1,0,3,14,2),ft(0,5,6,-3,0,9,12,1,0,3,16,2),ft(0,6,6,-3,0,10,14,1,0,4,18,3),ft(0,6,7,-4,0,11,15,1,0,4,20,3),ft(0,7,8,-4,0,12,17,2,0,5,22,4),ft(0,7,8,-4,0,13,19,2,0,5,24,4),ft(0,7,9,-4,0,14,21,2,0,5,26,4),ft(0,8,9,-5,0,15,22,2,0,6,28,5),ft(0,8,10,-5,0,16,24,2,0,6,30,5),ft(0,8,11,-5,0,17,26,2,0,6,32,5),ft(0,9,11,-5,0,18,28,2,0,7,34,6),ft(0,9,12,-6,0,19,29,2,0,7,36,6),ft(0,10,13,-6,0,20,31,3,0,8,38,7),ft(0,10,13,-6,0,21,33,3,0,8,40,7),ft(0,10,14,-6,0,22,35,3,0,8,42,7),ft(0,11,14,-7,0,23,36,3,0,9,44,8),ft(0,11,15,-7,0,24,38,3,0,9,46,8)],yt={borderRadius:4};function vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function bt(e,t){if(e){if("string"==typeof e)return vt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vt(e,t):void 0}}function xt(e){return function(e){if(Array.isArray(e))return vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||bt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Et={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)"},wt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ct(e){return"".concat(Math.round(e),"ms")}var At={easing:Et,duration:wt,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,i=void 0===n?wt.standard:n,r=t.easing,o=void 0===r?Et.easeInOut:r,a=t.delay,s=void 0===a?0:a;return Ge(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof i?i:Ct(i)," ").concat(o," ").concat("string"==typeof s?s:Ct(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Tt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Nt(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.mixins,r=void 0===i?{}:i,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=Ge(e,["breakpoints","mixins","palette","spacing","typography"]),d=ct(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,r=void 0===i?"px":i,o=e.step,a=void 0===o?5:o,s=Ge(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(r,")")}function c(e,t){var i=Ke.indexOf(t);return i===Ke.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(r,") and ")+"(max-width:".concat((-1!==i&&"number"==typeof n[Ke[i+1]]?n[Ke[i+1]]:t)-a/100).concat(r,")")}return Ie({keys:Ke,values:n,up:l,down:function(e){var t=Ke.indexOf(e)+1,i=n[Ke[t]];return t===Ke.length?l("xs"):"@media (max-width:".concat(("number"==typeof i&&t>0?i:e)-a/100).concat(r,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=Mt(s),m=De({breakpoints:p,direction:"ltr",mixins:Ze(p,h,r),overrides:{},palette:d,props:{},shadows:gt,typography:mt(d,c),spacing:h,shape:yt,transitions:At,zIndex:Tt},u),f=arguments.length,g=new Array(f>1?f-1:0),y=1;y<f;y++)g[y-1]=arguments[y];return m=g.reduce((function(e,t){return De(e,t)}),m)}var kt="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Lt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,r=void 0===i?"jss":i,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Lt.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(i,"-").concat(e.key);return t.options.theme[kt]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(r).concat(c())}}function It(e){var t=e.theme,n=e.name,i=e.props;if(!t||!t.props||!t.props[n])return i;var r,o=t.props[n];for(r in o)void 0===i[r]&&(i[r]=o[r]);return i}var Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt="object"===("undefined"==typeof window?"undefined":Ot(window))&&"object"===("undefined"==typeof document?"undefined":Ot(document))&&9===document.nodeType;function Dt(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Be(i.key),i)}}function qt(e,t,n){return t&&Dt(e.prototype,t),n&&Dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zt(e,t){return zt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zt(e,t)}function _t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zt(e,t)}function Ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Bt={}.constructor;function Ft(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ft);if(e.constructor!==Bt)return e;var t={};for(var n in e)t[n]=Ft(e[n]);return t}function Vt(e,t,n){void 0===e&&(e="unnamed");var i=n.jss,r=Ft(t),o=i.plugins.onCreateRule(e,r,n);return o||(e[0],null)}var jt=function(e,t){for(var n="",i=0;i<e.length&&"!important"!==e[i];i++)n&&(n+=t),n+=e[i];return n},$t=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=jt(e[n]," ");else t=jt(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ut(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Wt(e,t){for(var n="",i=0;i<t;i++)n+=" ";return n+e}function Xt(e,t,n){void 0===n&&(n={});var i="";if(!t)return i;var r=n.indent,o=void 0===r?0:r,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Ut(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var h=d[p];null!=h&&(i&&(i+=l),i+=Wt(p+":"+c+$t(h)+";",o))}}else for(var m in a){var f=a[m];null!=f&&(i&&(i+=l),i+=Wt(m+":"+c+$t(f)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(i&&(i+=l),i+=Wt(g+":"+c+$t(y)+";",o))}return(i||n.allowEmpty)&&e?(i&&(i=""+l+i+l),Wt(""+e+c+"{"+i,--o)+Wt("}",o)):i}var Yt=/([[\].#*$><+~=|^:(),"'`\s])/g,Gt="undefined"!=typeof CSS&&CSS.escape,Kt=function(e){return Gt?Gt(e):e.replace(Yt,"\\$1")},Zt=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var i=n.sheet,r=n.Renderer;this.key=e,this.options=n,this.style=t,i?this.renderer=i.renderer:r&&(this.renderer=new r)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var i=!!n&&n.force;if(!i&&this.style[e]===t)return this;var r=t;n&&!1===n.process||(r=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==r||!1===r,a=e in this.style;if(o&&!a&&!i)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=r,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,r),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Jt=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var o=i.selector,a=i.scoped,s=i.sheet,l=i.generateId;return o?r.selectorText=o:!1!==a&&(r.id=l(Ht(Ht(r)),s),r.selectorText="."+Kt(r.id)),r}_t(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var i in n)t.setProperty(e,i,n[i])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=$t(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ie({},e,{allowEmpty:!0}):e;return Xt(this.selectorText,this.style,n)},qt(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Zt),Qt={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Jt(e,t,n)}},en={indent:1,children:!0},tn=/@([\w-]+)/,nn=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var i=e.match(tn);for(var r in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Tn(Ie({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),i):null},t.replaceRule=function(e,t,n){var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),i},t.toString=function(e){void 0===e&&(e=en);var t=Ut(e).linebreak;if(null==e.indent&&(e.indent=en.indent),null==e.children&&(e.children=en.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),rn=/@container|@media|@supports\s+/,on={onCreateRule:function(e,t,n){return rn.test(e)?new nn(e,t,n):null}},an={indent:1,children:!0},sn=/@keyframes\s+([\w-]+)/,ln=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=e.match(sn);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var r=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===r?this.name:Kt(a(this,o)),this.rules=new Tn(Ie({},n,{parent:this})),t)this.rules.add(s,t[s],Ie({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=an);var t=Ut(e).linebreak;if(null==e.indent&&(e.indent=an.indent),null==e.children&&(e.children=an.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),cn=/@keyframes\s+/,un=/\$([\w-]+)/g,dn=function(e,t){return"string"==typeof e?e.replace(un,(function(e,n){return n in t?t[n]:e})):e},pn=function(e,t,n){var i=e[t],r=dn(i,n);r!==i&&(e[t]=r)},hn={onCreateRule:function(e,t,n){return"string"==typeof e&&cn.test(e)?new ln(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&pn(e,"animation-name",n.keyframes),"animation"in e&&pn(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var i=n.options.sheet;if(!i)return e;switch(t){case"animation":case"animation-name":return dn(e,i.keyframes);default:return e}}},mn=function(e){function t(){return e.apply(this,arguments)||this}return _t(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ie({},e,{allowEmpty:!0}):e;return Xt(this.key,this.style,n)},t}(Zt),fn={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new mn(e,t,n):null}},gn=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Ut(e).linebreak;if(Array.isArray(this.style)){for(var n="",i=0;i<this.style.length;i++)n+=Xt(this.at,this.style[i]),this.style[i+1]&&(n+=t);return n}return Xt(this.at,this.style,e)},e}(),yn=/@font-face/,vn={onCreateRule:function(e,t,n){return yn.test(e)?new gn(e,t,n):null}},bn=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Xt(this.key,this.style,e)},e}(),xn={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new bn(e,t,n):null}},Sn=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Mn={"@charset":!0,"@import":!0,"@namespace":!0},En={onCreateRule:function(e,t,n){return e in Mn?new Sn(e,t,n):null}},wn=[Qt,on,hn,fn,vn,xn,En],Cn={pro