webmapgl.loadBundle("t6gqyyrt",["exports","./chunk-3944776d.js","./chunk-a1fb52f9.js"],function(e,n,r){var l=window.webmapgl.h,t=r.createCommonjsModule(function(e){var n,r,l,t,u,c;n="undefined"!=typeof window&&void 0!==window.document?window.document:{},r=e.exports,l="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,t=function(){for(var e,r=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,t=r.length,u={};l<t;l++)if((e=r[l])&&e[1]in n){for(l=0;l<e.length;l++)u[r[0][l]]=e[l];return u}return!1}(),u={change:t.fullscreenchange,error:t.fullscreenerror},c={request:function(e){return new Promise(function(r){var u=t.requestFullscreen,c=function(){this.off("change",c),r()}.bind(this);e=e||n.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?e[u]():e[u](l?Element.ALLOW_KEYBOARD_INPUT:{}),this.on("change",c)}.bind(this))},exit:function(){return new Promise(function(e){var r=function(){this.off("change",r),e()}.bind(this);n[t.exitFullscreen](),this.on("change",r)}.bind(this))},toggle:function(e){return this.isFullscreen?this.exit():this.request(e)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,r){var l=u[e];l&&n.addEventListener(l,r,!1)},off:function(e,r){var l=u[e];l&&n.removeEventListener(l,r,!1)},raw:t},t?(Object.defineProperties(c,{isFullscreen:{get:function(){return Boolean(n[t.fullscreenElement])}},element:{enumerable:!0,get:function(){return n[t.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(n[t.fullscreenEnabled])}}}),r?e.exports=c:window.screenfull=c):r?e.exports=!1:window.screenfull=!1}),u=function(){function e(){this.fullscreen=!1}return e.prototype.componentDidLoad=function(){var e=this;t.on("change",function(){return e.fullscreen=t.isFullscreen})},e.prototype.toggleFullscreen=function(){t.isFullscreen?t.exit():t.request()},e.prototype.render=function(){var e=n._t(this.fullscreen?"webmapgl.fullscreen.exit":"webmapgl.fullscreen.enter");if(t.enabled)return l("ion-button",{onClick:this.toggleFullscreen.bind(this),title:e},l("ion-icon",{slot:"icon-only",name:this.fullscreen?"contract":"expand"}))},Object.defineProperty(e,"is",{get:function(){return"gl-fullscreen"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{fullscreen:{state:!0}}},enumerable:!0,configurable:!0}),e}();e.GlFullscreen=u,Object.defineProperty(e,"__esModule",{value:!0})});