"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@babel/runtime/helpers/defineProperty"));function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,l)}return r}function l(e){for(var l=1;l<arguments.length;l++){var o=null!=arguments[l]?arguments[l]:{};l%2?r(Object(o),!0).forEach((function(r){t.default(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}exports.updateAxisStyles=function(e){for(var t=e.chart,r=t.xAxis[0].userOptions.plotLines,o=t.userOptions.chart.inverted?"y":"x",i=[],n=t.axes[0].plotLinesAndBands,a=0;a<r.length;){for(var u,s,p,c=null===(u=n[a])||void 0===u||null===(s=u.label)||void 0===s||null===(p=s.alignAttr)||void 0===p?void 0:p[o],v=[],d=a,b=a+1;b<n.length;b+=1){var f,y,O,h=null===(f=n[b])||void 0===f||null===(y=f.label)||void 0===y||null===(O=y.alignAttr)||void 0===O?void 0:O[o];if(!(Math.abs(c-h)<12))break;v.push(b),d=b}if(v.length){i.push(r[a]);for(var g=0;g<v.length;g+=1){var j=v[g];if(0===g){var P,x,w,A=l(l({},r[j]),{},{color:"rgba(255, 255, 255, 0.3)",opacity:.3,label:l(l({},null===(P=r[j])||void 0===P?void 0:P.label),{},{style:l(l({},null===(x=r[j])||void 0===x||null===(w=x.label)||void 0===w?void 0:w.style),{},{opacity:.3})})});i.push(A)}if(g>=1){var m,D,L,S=l(l({},r[j]),{},{color:"rgba(255, 255, 255, 0.15)",opacity:.15,label:l(l({},null===(m=r[j])||void 0===m?void 0:m.label),{},{style:l(l({},null===(D=r[j])||void 0===D||null===(L=D.label)||void 0===L?void 0:L.style),{},{opacity:.15})})});i.push(S)}}a=d+1}else i.push(r[a]),a+=1}t.update({xAxis:{plotLines:i}})};
//# sourceMappingURL=formations.js.map
