/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/phaser-plugin-game-gui@0.1.14/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
(function(){"use strict";var e,t,o,n,r,i,a,s,u,l,d,c,p={}.hasOwnProperty;if(!(s=s||("undefined"!=typeof window&&null!==window?window.dat:void 0)||this.dat||("function"==typeof require?require("dat.gui"):void 0)))throw new Error("Can't find `dat`");if(!(o=o||("undefined"!=typeof window&&null!==window?window.Phaser:void 0)||this.Phaser||("function"==typeof require?require("phaser"):void 0)))throw new Error("Can't find `Phaser`");n=o.ScaleManager,e=o.Physics.Arcade,u=Array.isArray,a=["","when-not-mouse"],c=["","layout","visual"],n&&(d={"exact fit":n.EXACT_FIT,"no scale":n.NO_SCALE,resize:n.RESIZE,"show all":n.SHOW_ALL,"user scale":n.USER_SCALE}),r=function(t,o,n){var r;return(r=t.add(o,n,{"bottom top":e.BOTTOM_TOP,"left right":e.LEFT_RIGHT,"right left":e.RIGHT_LEFT,"top bottom":e.TOP_BOTTOM,"sort none":e.SORT_NONE})).onChange(l),r},i=function(e,t,o){var n;return(n=e.add(t,o,d)).onChange(l),n},l=function(e){this.object[this.property]=Number(e)},t=Object.freeze({game:{clearBeforeRender:!0,disableStep:!0,enableStep:!0,forceSingleUpdate:!0,lockRender:!0,paused:!0,step:!0,camera:{fade:!0,flash:!0,reset:!0,resetFX:!0,roundPx:!0,shake:!0,unfollow:!0,x:function(e,t){return[t.bounds.left,t.bounds.right-t.view.width,10]},y:function(e,t){return[t.bounds.top,t.bounds.bottom-t.view.height,10]},lerp:{x:[0,1,.05],y:[0,1,.05]}},debug:{font:!0,lineHeight:[10,50,2],renderShadow:!0,sprite:{visible:!0}},input:{enabled:!0,maxPointers:[-1,10,1],keyboard:{enabled:!0},mouse:{capture:!0,enabled:!0},mspointer:{capture:!0,enabled:!0},touch:{enabled:!0,preventDefault:!0}},physics:{arcade:{OVERLAP_BIAS:[-16,16,1],TILE_BIAS:[-16,16,1],checkCollision:{down:!0,left:!0,right:!0,up:!0},forceX:!0,gravity:{x:[-1e3,1e3,10],y:[-1e3,1e3,10]},isPaused:!0,skipQuadTree:!0,sortDirection:r}},scale:{compatibility:{canExpandParent:!0,clickTrampoline:[a],forceMinimumDocumentHeight:!0,noMargins:!0,orientationFallback:!0,supportsFullScreen:!0},fullScreenScaleMode:i,pageAlignHorizontally:!0,pageAlignVertically:!0,parentIsWindow:!0,refresh:!0,scaleMode:i,startFullScreen:!0,stopFullScreen:!0,windowConstraints:{bottom:[c],right:[c]}},sound:{mute:!0,volume:[0,1,.1]},stage:{backgroundColor:function(e,t,o){return e.addColor(t,o)},disableVisibilityChange:!0,smoothed:!0},state:{restart:!0},time:{desiredFps:[10,120,5],slowMotion:[.1,10,.1]},tweens:{frameBased:!0,pauseAll:!0,resumeAll:!0},world:{alpha:[0,1,.1],visible:!0}}}),o.Plugin.GameGui=function(e){function o(){return o.__super__.constructor.apply(this,arguments)}return function(e,t){for(var o in t)p.call(t,o)&&(e[o]=t[o]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(o,e),o.prototype.gui=null,o.prototype.init=function(e){this.createGui(e)},o.prototype.destroy=function(){this.gui.destroy()},o.prototype.add=function(e,t,o){var n,r;for(r in o)n=o[r],this.addProp(e,t,r,n);return e},o.prototype.addProp=function(e,t,o,n){var r,i,a,s;if(null!=(s=t[o])){switch("function"==typeof n&&(a=n.call(null,e,t,o),n=!!u(a)&&a),!1){case!1!==n:return;case!0!==n:i=e.add(t,o),"function"!=typeof s&&i.listen();break;case!u(n):r=[t,o].concat(n),e.add.apply(e,r).listen();break;case"object"!=typeof n:this.add(e.addFolder(o),t[o],n);break;default:console.warn("Nothing to do: "+n)}return e}console.warn("Skipped '"+o+"' ("+s+")")},o.prototype.createGui=function(e){return this.gui=new s.GUI(e),this.add(this.gui,this.game,t.game),this.gui},o}(o.Plugin)}).call(this);
//# sourceMappingURL=/sm/1af178c01816b6edc72f91be0bea6b84aebe83b328faeab40f11a63c5055e8db.map