"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
var _chunk3CNSKST2cjs = require('./chunk-3CNSKST2.cjs');var _chunk5NXYDZPPcjs = require('./chunk-5NXYDZPP.cjs');var _react = require('react');var n=(t,e)=>{let r={chart:{backgroundColor:t.palette.background[300],style:{fontFamily:t.typography.fontFamily}},colors:[t.palette.green[500],t.palette.red[500],t.palette.orange[500]],credits:{enabled:!1},legend:{itemHoverStyle:{color:t.palette.text.subText},itemStyle:{color:t.palette.text.secondary}},subtitle:{style:{color:t.palette.text.subText}},title:{style:{color:t.palette.text.primary}},tooltip:{style:{transitionDuration:"150ms",transitionTimingFunction:"ease"}},xAxis:{gridLineColor:t.palette.background[500],labels:{style:{color:t.palette.text.subText}}},yAxis:{gridLineColor:t.palette.background[500],labels:{style:{color:t.palette.text.subText}}}};_optionalChain([e, 'optionalAccess', _ => _.setOptions, 'call', _2 => _2(r)])};var c=_chunk3CNSKST2cjs.m.call(void 0, "div")(()=>_chunk5NXYDZPPcjs.p`
    display: block;
  `);var _jsxruntime = require('react/jsx-runtime');var f=_react.forwardRef.call(void 0, ({children:t,highcharts:e},r)=>{let a=_chunk3CNSKST2cjs.n.call(void 0, ),[o,l]=_react.useState.call(void 0, !1);return _react.useEffect.call(void 0, ()=>{o||(n(a,e),l(!0))},[a,e,o,l]),_jsxruntime.jsx.call(void 0, c,{ref:r,children:o?t:null})});f.displayName="Chart";var x=f;exports.a = x;
