!/**
 * Highstock JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/full-screen
 * @requires highcharts
 *
 * Advanced Highcharts Stock tools
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Honsi
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("highcharts"),require("highcharts").AST):"function"==typeof define&&define.amd?define("highcharts/modules/full-screen",[["highcharts/highcharts"],["highcharts/highcharts","AST"]],t):"object"==typeof exports?exports["highcharts/modules/full-screen"]=t(require("highcharts"),require("highcharts").AST):e.Highcharts=t(e.Highcharts,e.Highcharts.AST)}(this,function(e,t){return function(){"use strict";var n={660:function(e){e.exports=t},944:function(t){t.exports=e}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o={};i.d(o,{default:function(){return F}});var s=i(944),u=i.n(s),l=i(660),c=i.n(l),h=u().composed,a=u().addEvent,p=u().fireEvent,f=u().pushUnique;function d(){this.fullscreen=new g(this)}var g=function(){function e(e){this.chart=e,this.isOpen=!1;var t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}return e.compose=function(e){f(h,"Fullscreen")&&a(e,"beforeRender",d)},e.prototype.close=function(){var e=this,t=e.chart,n=t.options.chart;p(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,n.width=e.origWidthOption,n.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})},e.prototype.open=function(){var e=this,t=e.chart,n=t.options.chart;p(t,"fullscreenOpen",void 0,function(){if(n&&(e.origWidthOption=n.width,e.origHeightOption=n.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){var r=a(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),i=a(t,"destroy",r);e.unbindFullscreenEvent=function(){r(),i()};var o=t.renderTo[e.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})},e.prototype.setButtonText=function(){var e,t,n=this.chart,r=null==(e=n.exporting)?void 0:e.divElements,i=n.options.exporting,o=i&&i.buttons&&i.buttons.contextButton.menuItems,s=n.options.lang;if((null==i?void 0:i.menuItemDefinitions)&&(null==s?void 0:s.exitFullscreen)&&s.viewFullscreen&&o&&r){var u=r[o.indexOf("viewFullscreen")];u&&c().setElementHTML(u,this.isOpen?s.exitFullscreen:(null==(t=i.menuItemDefinitions.viewFullscreen)?void 0:t.textKey)||s.viewFullscreen)}},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e}(),v=u();v.Fullscreen=v.Fullscreen||g,v.Fullscreen.compose(v.Chart);var F=u();return o.default}()});