windowmanager
Version:
A framework to manage multiple dockable, HTML windows
1 lines • 121 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("windowmanager",[],e):"object"==typeof exports?exports.windowmanager=e():t.windowmanager=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=91)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(42)("wks"),i=n(31),o=n(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){var r=n(3),i=n(0),o=n(16),a=n(7),u=function(t,e,n){var s,d,l,f=t&u.F,c=t&u.G,h=t&u.S,v=t&u.P,w=t&u.B,p=t&u.W,y=c?i:i[e]||(i[e]={}),_=y.prototype,g=c?r:h?r[e]:(r[e]||{}).prototype;c&&(n=e);for(s in n)(d=!f&&g&&void 0!==g[s])&&s in y||(l=d?g[s]:n[s],y[s]=c&&"function"!=typeof g[s]?n[s]:w&&d?o(l,r):p&&g[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((y.virtual||(y.virtual={}))[s]=l,t&u.R&&_&&!_[s]&&a(_,s,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(8),i=n(66),o=n(39),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports={default:n(93),__esModule:!0}},function(t,e,n){t.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),i=n(21);t.exports=n(6)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(14);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(51),o=r(i),a=n(52),u=r(a),s=n(53),d=r(s);e.default={BoundingBox:u.default,CollisionMesh:d.default,Position:o.default,Size:o.default,Vector:o.default},t.exports=e.default},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(118),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){return"window"+f()+(new Date).getTime()}Object.defineProperty(e,"__esModule",{value:!0});var o=n(92),a=r(o),u=n(104),s=r(u),d=n(105),l=r(d),f=function(){for(var t=[],e=0;e<256;e+=1)t[e]=(e<16?"0":"")+e.toString(16);return function(){var e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,r=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return t[255&e]+t[e>>8&255]+t[e>>16&255]+t[e>>24&255]+"-"+t[255&n]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[63&r|128]+t[r>>8&255]+"-"+t[r>>16&255]+t[r>>24&255]+t[255&i]+t[i>>8&255]+t[i>>16&255]+t[i>>24&255]}}();e.default={getUniqueWindowName:i,EventHandler:a.default,SyncCallback:s.default,load:l.default},t.exports=e.default},function(t,e,n){var r=n(65),i=n(28);t.exports=function(t){return r(i(t))}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(96);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(19),u=r(a),s=n(12),d=[],l=!1;u.default.onReady=function(t){if(!(t&&t.constructor&&t.call&&t.apply))throw new Error("onReady expects a function passed as the callback argument!");l&&t(),d.indexOf(t)>=0||d.push(t)},u.default.isReady=function(){return l},e.default=new s.SyncCallback(function(){l=!0;var t=!0,e=!1,n=void 0;try{for(var r,i=(0,o.default)(d);!(t=(r=i.next()).done);t=!0)(0,r.value)()}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}d=[]}),t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(9),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=["window-create","window-close"],u=new r.EventHandler(a);u.version="0.14.8",u.runtime={name:void 0,version:void 0,isBrowser:!1,isElectron:!1,isOpenFin:!1,isDesktop:!1,isMobile:!1,isMain:!1},"undefined"!=typeof navigator&&(u.runtime.isMobile=function(t){return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4))}(navigator.userAgent||navigator.vendor||window.opera),u.runtime.isDesktop=!u.isMobile),u.geometry=o.default,u.load=r.load,e.default=u,t.exports=e.default},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(69),i=n(43);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(28);t.exports=function(t){return Object(r(t))}},function(t,e,n){"use strict";var r=n(102)(!0);n(37)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(33),o=r(i),a=n(19),u=r(a),s=n(55),d=r(s);if(u.default._isNode=!1,u.default._isStartup=!1,u.default._isRenderer=!1,u.default.runtime.name="Electron",u.default.runtime.version=void 0,u.default.runtime.isElectron=!0,"undefined"!=typeof global&&global){var l=(0,d.default)("electron"),f=l.BrowserWindow;if(u.default._isNode=null!=f,u.default._isStartup=!u.default._isNode,u.default.runtime.version=global.process.versions.electron,u.default._isStartup){var c=(0,d.default)("electron"),h=c.remote;u.default.runtime.isMain=h.getCurrentWindow().id===h.BrowserWindow._getMainID(),d.default.runtime=u.default.runtime,d.default.workingDir=(0,d.default)("path").dirname(d.default.main.filename),d.default.windowmanagerPath=__filename,global.nodeRequire=d.default,process.once("loaded",function(){global.nodeRequire=d.default})}}else"undefined"!=typeof window&&window&&(u.default._isRenderer=!0,null!=window.nodeRequire&&(u.default.runtime=window.nodeRequire.runtime,u.default._windows=new o.default));e.default=u.default,t.exports=e.default},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){n(94);for(var r=n(3),i=n(7),o=n(20),a=n(1)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var d=u[s],l=r[d],f=l&&l.prototype;f&&!f[a]&&i(f,a,d),o[d]=o.Array}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(8),i=n(98),o=n(43),a=n(41)("IE_PROTO"),u=function(){},s=function(){var t,e=n(67)("iframe"),r=o.length;for(e.style.display="none",n(101).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[o[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=s(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(40),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(4).f,i=n(15),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){t.exports={default:n(123),__esModule:!0}},function(t,e,n){t.exports={default:n(138),__esModule:!0}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(38),i=n(2),o=n(68),a=n(7),u=n(15),s=n(20),d=n(97),l=n(32),f=n(70),c=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,w,p,y,_){d(n,e,w);var g,m,b,x=function(t){if(!h&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",S="values"==p,E=!1,M=t.prototype,z=M[c]||M["@@iterator"]||p&&M[p],B=z||x(p),P=p?S?x("entries"):B:void 0,O="Array"==e?M.entries||z:z;if(O&&(b=f(O.call(new t)))!==Object.prototype&&(l(b,k,!0),r||u(b,c)||a(b,c,v)),S&&z&&"values"!==z.name&&(E=!0,B=function(){return z.call(this)}),r&&!_||!h&&!E&&M[c]||a(M,c,B),s[e]=B,s[k]=v,p)if(g={values:S?B:x("values"),keys:y?B:x("keys"),entries:P},_)for(m in g)m in M||o(M,m,g[m]);else i(i.P+i.F*(h||E),e,g);return g}},function(t,e){t.exports=!0},function(t,e,n){var r=n(14);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(42)("keys"),i=n(31);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(3),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(71),i=n(1)("iterator"),o=n(20);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(106),o=r(i),a=n(108),u=r(a),s="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(o.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,n){e.f=n(1)},function(t,e,n){var r=n(31)("meta"),i=n(14),o=n(15),a=n(4).f,u=0,s=Object.isExtensible||function(){return!0},d=!n(17)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},c=function(t,e){if(!o(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return d&&v.NEED&&s(t)&&!o(t,r)&&l(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:c,onFreeze:h}},function(t,e,n){var r=n(3),i=n(0),o=n(38),a=n(46),u=n(4).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),o=r(i),a=n(11),u=r(a),s=n(52),d=r(s),l=n(53),f=r(l),c=function(){function t(e,n){(0,o.default)(this,t);var r=e;r&&r.constructor!==Number?(this.left=r.left,this.top=r.top):(this.left=e,this.top=n)}return(0,u.default)(t,[{key:"clone",value:function(){return new t(this)}},{key:"isNaN",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){return isNaN(this.left)||isNaN(this.top)})},{key:"getVector",value:function(){return this}},{key:"getBoundingBox",value:function(){return new d.default(this.left,this.top,this.left,this.top)}},{key:"getCollisionMesh",value:function(){return new f.default(this.getBoundingBox())}},{key:"distanceSquared",value:function(t){var e=t.subtract(this);return e.left*e.left+e.top*e.top}},{key:"distance",value:function(t){return Math.sqrt(this.distanceSquared(t))}},{key:"set",value:function(t){if(!t)throw new Error("set requires argument 'other'");return t=t.getVector(),this.left=t.left,this.top=t.top,this}},{key:"moveTo",value:function(t,e){return t&&t.constructor===Number&&(this.left=t),e&&e.constructor===Number&&(this.top=e),this}},{key:"moveBy",value:function(t,e){return t&&t.constructor===Number&&(this.left=t),e&&e.constructor===Number&&(this.top=e),this}},{key:"setMin",value:function(t){if(!t)throw new Error("setMin requires argument 'other'");t=t.getVector(),(Math.abs(t.left)<Math.abs(this.left)||isNaN(this.left))&&(this.left=t.left),(Math.abs(t.top)<Math.abs(this.top)||isNaN(this.top))&&(this.top=t.top)}},{key:"setMax",value:function(t){if(!t)throw new Error("setMax requires argument 'other'");t=t.getVector(),(Math.abs(t.left)>Math.abs(this.left)||isNaN(this.left))&&(this.left=t.left),(Math.abs(t.top)>Math.abs(this.top)||isNaN(this.top))&&(this.top=t.top)}},{key:"add",value:function(t){if(!t)throw new Error("add requires argument 'other'");return t=t.getVector(),this.left+=t.left,this.top+=t.top,this}},{key:"subtract",value:function(t){if(!t)throw new Error("subtract requires argument 'other'");return t=t.getVector(),this.left-=t.left,this.top-=t.top,this}}]),t}();e.default=c,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){for(var e=Math.abs(t),n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=!0,a=!1,u=void 0;try{for(var s,d=(0,l.default)(r);!(o=(s=d.next()).done);o=!0){var f=s.value,c=Math.abs(f);c<e&&(t=f,e=c)}}catch(t){a=!0,u=t}finally{try{!o&&d.return&&d.return()}finally{if(a)throw u}}return{min:t,abs:e}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),a=r(o),u=n(11),s=r(u),d=n(5),l=r(d),f=n(51),c=r(f),h=n(53),v=r(h),w=function(){function t(e,n,r,i){(0,a.default)(this,t);var o=e;o&&o.constructor!==Number?(o.getBoundingBox&&(o=o.getBoundingBox()),this.left=o.left,this.top=o.top,this.right=o.right,this.bottom=o.bottom):(this.left=e,this.top=n,this.right=r,this.bottom=i)}return(0,s.default)(t,[{key:"clone",value:function(){return new t(this)}},{key:"isNaN",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){return isNaN(this.left)||isNaN(this.top)||isNaN(this.right)||isNaN(this.bottom)})},{key:"getWidth",value:function(){return Math.abs(this.right-this.left)}},{key:"getHeight",value:function(){return Math.abs(this.bottom-this.top)}},{key:"getSize",value:function(){return new c.default(this.getWidth(),this.getHeight())}},{key:"getArea",value:function(){return this.getWidth()*this.getHeight()}},{key:"getPosition",value:function(){return new c.default(this.left,this.top)}},{key:"getBoundingBox",value:function(){return this}},{key:"getCollisionMesh",value:function(){return new v.default(this)}},{key:"getCenterPosition",value:function(){return new c.default(this.left+this.getWidth()/2,this.top+this.getHeight()/2)}},{key:"difference",value:function(e){if(!e)throw new Error("difference requires argument 'other'");return e=e.getBoundingBox(),new t(this.left-e.left,this.top-e.top,this.right-e.right,this.bottom-e.bottom)}},{key:"getCenteredOnPosition",value:function(t){if(!t)throw new Error("getCenteredOnPosition requires argument 'other'");return t=t.getBoundingBox(),t.getCenterPosition().subtract(this.getCenterPosition().subtract(this.getPosition()))}},{key:"getIntersection",value:function(e){if(!e)throw new Error("getIntersection requires argument 'other'");e=e.getBoundingBox();var n=Math.max(this.left,e.left),r=Math.max(this.top,e.top),i=Math.min(this.right,e.right),o=Math.min(this.bottom,e.bottom);return n===i&&r===o?new c.default(n,r):n<=i&&r<=o?new t(n,r,i,o):void 0}},{key:"getDistanceSquaredToPoint",value:function(t){t=t.getVector();var e=t.left<=this.left?this.left:t.left>=this.right?this.right:t.left,n=t.top<=this.top?this.top:t.top>=this.bottom?this.bottom:t.top;return new c.default(e,n).distanceSquared(t)}},{key:"getDistanceToPoint",value:function(t){return Math.sqrt(this.getDistanceSquaredToPoint(t))}},{key:"set",value:function(t){if(!t)throw new Error("set requires argument 'other'");return t=t.getBoundingBox(),this.left=t.left,this.top=t.top,this.right=t.right,this.bottom=t.bottom,this}},{key:"moveTo",value:function(t,e){return t&&t.constructor===Number&&(this.right=t+(this.right-this.left),this.left=t),e&&e.constructor===Number&&(this.bottom=e+(this.bottom-this.top),this.top=e),this}},{key:"moveBy",value:function(t,e){return t&&t.constructor===Number&&(this.left+=t,this.right+=t),e&&e.constructor===Number&&(this.top+=e,this.bottom+=e),this}},{key:"resizeTo",value:function(t,e,n){var r=this.getSize(),i=new c.default(t||r.left,e||r.top);if("string"==typeof(n=n||"top-left")||n instanceof String){var o=n;n=this.getPosition(),o.indexOf("right")>=0&&(n.left+=r.left),o.indexOf("bottom")>=0&&(n.top+=r.top)}return this.left+=(n.left-this.left)*(r.left-i.left)/r.left,this.right+=(n.left-this.right)*(r.left-i.left)/r.left,this.top+=(n.top-this.top)*(r.top-i.top)/r.top,this.bottom+=(n.top-this.bottom)*(r.top-i.top)/r.top,this}},{key:"isContains",value:function(t){if(!t)throw new Error("isContains requires argument 'other'");return t=t.getBoundingBox(),t.left>=this.left&&t.right<=this.right&&t.top>=this.top&&t.bottom<=this.bottom}},{key:"someContains",value:function(t){if(!t)throw new Error("someContains requires argument 'others'");if(t.constructor!==Array)throw new Error("someContains requires argument 'others' of type Array");for(var e=0;e<t.length;e+=1)if(this.isContains(t[e]))return!0;return!1}},{key:"isTouching",value:function(t){if(!t)throw new Error("isTouching requires argument 'other'");return t=t.getBoundingBox(),this.top<=t.bottom&&this.bottom>=t.top&&(this.left===t.right||this.right===t.left)||this.left<=t.right&&this.right>=t.left&&(this.top===t.bottom||this.bottom===t.top)}},{key:"getEdgeTouching",value:function(t){if(!t)throw new Error("getEdgeTouching requires argument 'others'");t.constructor!==Array&&(t=[t]);for(var e=0;e<t.length;e+=1){var n=t[e].getBoundingBox();if(this.top<=n.bottom&&this.bottom>=n.top){if(this.left===n.right)return"left";if(this.right===n.left)return"right"}if(this.left<=n.right&&this.right>=n.left){if(this.top===n.bottom)return"top";if(this.bottom===n.top)return"bottom"}}}},{key:"getOtherEdgeTouching",value:function(t){if(!t)throw new Error("getOtherEdgeTouching requires argument 'others'");t.constructor!==Array&&(t=[t]);for(var e=0;e<t.length;e+=1){var n=t[e].getBoundingBox();if(this.top<=n.bottom&&this.bottom>=n.top){if(this.left===n.right)return"right";if(this.right===n.left)return"left"}if(this.left<=n.right&&this.right>=n.left){if(this.top===n.bottom)return"bottom";if(this.bottom===n.top)return"top"}}}},{key:"getEdgeClosestOrder",value:function(t){if(!t)throw new Error("getEdgeClosest requires argument 'other'");t=t.getBoundingBox();var e=this.getCenterPosition(),n=[];return n.push({edge:"left",dis:t.getDistanceSquaredToPoint(this.left,e.top)}),n.push({edge:"top",dis:t.getDistanceSquaredToPoint(e.left,this.top)}),n.push({edge:"right",dis:t.getDistanceSquaredToPoint(this.right,e.top)}),n.push({edge:"bottom",dis:t.getDistanceSquaredToPoint(e.left,this.bottom)}),n.sort(function(t,e){return t.dis-e.dis}),n.map(function(t){return t.edge})}},{key:"getEdgeClosest",value:function(t){return this.getEdgeClosestOrder(t)[0]}},{key:"getSnapDelta",value:function(t,e){if(!t)throw new Error("getSnapDelta requires argument 'other'");t=t.getBoundingBox(),e=e||5;var n=new c.default(NaN,NaN);if(this.top<=t.bottom&&this.bottom>=t.top){var r=i(t.left-this.right,t.right-this.left);if(r.abs<=e){n.left=r.min;var o=i(t.top-this.top,t.bottom-this.bottom);o.abs<=e&&(n.top=o.min)}}else if(this.left<=t.right&&this.right>=t.left){var a=i(t.top-this.bottom,t.bottom-this.top);if(a.abs<=e){n.top=a.min;var u=i(t.left-this.left,t.right-this.right);u.abs<=e&&(n.left=u.min)}}return n}},{key:"someTouching",value:function(t){if(!t)throw new Error("someTouching requires argument 'others'");if(t.constructor!==Array)throw new Error("someTouching requires argument 'others' of type Array");for(var e=0;e<t.length;e+=1)if(this.isTouching(t[e]))return!0;return!1}},{key:"isColliding",value:function(t){if(!t)throw new Error("isColliding requires argument 'other'");return t=t.getBoundingBox(),this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top}},{key:"someColliding",value:function(t){if(!t)throw new Error("someColliding requires argument 'others'");if(t.constructor!==Array)throw new Error("someColliding requires argument 'others' of type Array");for(var e=0;e<t.length;e+=1)if(this.isColliding(t[e]))return!0;return!1}},{key:"getColliding",value:function(t){if(!t)throw new Error("getColliding requires argument 'others'");if(t.constructor!==Array)throw new Error("getColliding requires argument 'others' of type Array");for(var e=0;e<t.length;e+=1)if(this.isColliding(t[e]))return t[e]}}]),t}();e.default=w,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(10),u=r(a),s=n(11),d=r(s),l=n(51),f=r(l),c=n(52),h=r(c),v=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,u.default)(this,t),!e)throw new Error("CollisionMesh constructor requires argument 'boxes'");e.constructor!==Array&&(e=[e]),this.boxes=[];var r=!0,i=!1,a=void 0;try{for(var s,d=(0,o.default)(e);!(r=(s=d.next()).done);r=!0){var l=s.value;l.constructor===h.default?this.boxes.push(l):l.constructor===t?this.boxes=this.boxes.concat(l.boxes):this.boxes=this.boxes.concat(l.getCollisionMesh(n).boxes)}}catch(t){i=!0,a=t}finally{try{!r&&d.return&&d.return()}finally{if(i)throw a}}}return(0,d.default)(t,[{key:"clone",value:function(){for(var e=new Array(this.boxes.length),n=0;n<this.boxes.length;n+=1)e[n]=this.boxes[n].clone();return new t(e)}},{key:"getWidth",value:function(){if(0===this.boxes.length)return 0;for(var t=this.boxes[0].left,e=this.boxes[0].right,n=1;n<this.boxes.length;n+=1)t=Math.min(t,this.boxes[n].left),e=Math.max(e,this.boxes[n].right);return e-t}},{key:"getHeight",value:function(){if(0===this.boxes.length)return 0;for(var t=this.boxes[0].top,e=this.boxes[0].bottom,n=1;n<this.boxes.length;n+=1)t=Math.min(t,this.boxes[n].top),e=Math.max(e,this.boxes[n].bottom);return e-t}},{key:"getSize",value:function(){return this.getBoundingBox().getSize()}},{key:"getPosition",value:function(){return this.getBoundingBox().getPosition()}},{key:"getBoundingBox",value:function(){if(0===this.boxes.length)return new h.default(NaN,NaN,NaN,NaN);for(var t=this.boxes[0].clone(),e=1;e<this.boxes.length;e+=1)t.left=Math.min(t.left,this.boxes[e].left),t.top=Math.min(t.top,this.boxes[e].top),t.right=Math.max(t.right,this.boxes[e].right),t.bottom=Math.max(t.bottom,this.boxes[e].bottom);return t}},{key:"getCollisionMesh",value:function(){return this}},{key:"moveTo",value:function(t,e){var n=new f.default(t,e);return this.moveBy(n.subtract(this.getPosition())),this}},{key:"moveBy",value:function(t,e){var n=new f.default(t||0,e||0),r=!0,i=!1,a=void 0;try{for(var u,s=(0,o.default)(this.boxes);!(r=(u=s.next()).done);r=!0)u.value.moveBy(n)}catch(t){i=!0,a=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return this}},{key:"isContains",value:function(e){if(!e)throw new Error("isContains requires argument 'other'");e=e.constructor===Array?new t(e):e.getCollisionMesh();var n=!0,r=!1,i=void 0;try{for(var a,u=(0,o.default)(e.boxes);!(n=(a=u.next()).done);n=!0){var s=a.value,d=!1,l=!0,f=!1,c=void 0;try{for(var h,v=(0,o.default)(this.boxes);!(l=(h=v.next()).done);l=!0)d|=h.value.isContains(s)}catch(t){f=!0,c=t}finally{try{!l&&v.return&&v.return()}finally{if(f)throw c}}if(!d)return!1}}catch(t){r=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw i}}return!0}},{key:"someContains",value:function(e){if(!e)throw new Error("someContains requires argument 'other'");e=e.constructor===Array?new t(e):e.getCollisionMesh();var n=!0,r=!1,i=void 0;try{for(var a,u=(0,o.default)(this.boxes);!(n=(a=u.next()).done);n=!0)if(a.value.someContains(e.boxes))return!0}catch(t){r=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw i}}return!1}},{key:"isTouching",value:function(e){if(!e)throw new Error("isTouching requires argument 'other'");e=e.constructor===Array?new t(e):e.getCollisionMesh();var n=!0,r=!1,i=void 0;try{for(var a,u=(0,o.default)(this.boxes);!(n=(a=u.next()).done);n=!0)if(a.value.someTouching(e.boxes))return!0}catch(t){r=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw i}}return!1}},{key:"someTouching",value:function(t){if(!t)throw new Error("someTouching requires argument 'others'");if(t.constructor!==Array)throw new Error("someTouching requires argument 'others' to resolve to type Array");var e=!0,n=!1,r=void 0;try{for(var i,a=(0,o.default)(t);!(e=(i=a.next()).done);e=!0){var u=i.value;if(this.isTouching(u))return!0}}catch(t){n=!0,r=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw r}}return!1}},{key:"isColliding",value:function(e){if(!e)throw new Error("isColliding requires argument 'other'");e=e.constructor===Array?new t(e):e.getCollisionMesh();var n=!0,r=!1,i=void 0;try{for(var a,u=(0,o.default)(this.boxes);!(n=(a=u.next()).done);n=!0)if(a.value.someColliding(e.boxes))return!0}catch(t){r=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw i}}return!1}},{key:"someColliding",value:function(t){if(!t)throw new Error("someColliding requires argument 'others'");if(t.constructor!==Array)throw new Error("someColliding requires argument 'others' to resolve to type Array");var e=!0,n=!1,r=void 0;try{for(var i,a=(0,o.default)(t);!(e=(i=a.next()).done);e=!0){var u=i.value,s=!0,d=!1,l=void 0;try{for(var f,c=(0,o.default)(this.boxes);!(s=(f=c.next()).done);s=!0)if(f.value.isColliding(u))return!0}catch(t){d=!0,l=t}finally{try{!s&&c.return&&c.return()}finally{if(d)throw l}}}}catch(t){n=!0,r=t}finally{try{!e&&a.return&&a.return()}finally{if(n)throw r}}return!1}},{key:"getColliding",value:function(e){if(!e)throw new Error("getColliding requires argument 'other'");e=e.constructor===Array?new t(e):e.getCollisionMesh();var n=!0,r=!1,i=void 0;try{for(var a,u=(0,o.default)(this.boxes);!(n=(a=u.next()).done);n=!0){var s=a.value,d=s.getColliding(e.boxes);if(d)return d}}catch(t){r=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(r)throw i}}}}]),t}();e.default=v,t.exports=e.default},function(t,e,n){var r=n(16),i=n(79),o=n(80),a=n(8),u=n(30),s=n(44),d={},l={},e=t.exports=function(t,e,n,f,c){var h,v,w,p,y=c?function(){return t}:s(t),_=r(n,f,e?2:1),g=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(h=u(t.length);h>g;g++)if((p=e?_(a(v=t[g])[0],v[1]):_(t[g]))===d||p===l)return p}else for(w=y.call(t);!(v=w.next()).done;)if((p=i(w,_,v.value,e))===d||p===l)return p};e.BREAK=d,e.RETURN=l},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=eval("typeof require !== 'undefined' && require"),module.exports=exports.default},function(t,e,n){t.exports={default:n(134),__esModule:!0}},function(t,e,n){t.exports={default:n(142),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(45),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(144),o=r(i),a=n(60),u=r(a),s=n(45),d=r(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,d.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(148),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(85),o=r(i),a=n(60),u=r(a),s=n(10),d=r(s),l=n(11),f=r(l),c=n(19),h=r(c),v=n(12),w=n(9),p=function(){var t=navigator.userAgent,e=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],n=void 0;if(/trident/i.test(e[1]))return n=/\brv[ :]+(\d+)/g.exec(t)||[],{name:"IE",version:n[1]||""};if("Chrome"===e[1]){if(null!==(n=t.match(/\bOPR\/(\d+)/)))return{name:"Opera",version:n[1]};if(null!==(n=t.match(/\bedge\/(\d+)/i)))return{name:"Edge",version:n[1]}}return e=e[2]?[e[1],e[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(n=t.match(/version\/(\d+)/i))&&e.splice(1,1,n[1]),{name:e[0],version:e[1]}}();h.default.runtime.name=p.name,h.default.runtime.version=p.version,h.default.runtime.isBrowser=!0,h.default.runtime.isMain=window.parent===window;try{window.parent.document}catch(t){h.default.runtime.isMain=!0}if(h.default.runtime.isMain){var y=1e3,_=function(){function t(){(0,d.default)(this,t),this._map=(0,u.default)(null)}return(0,f.default)(t,[{key:"values",value:function(){for(var t=(0,o.default)(this._map),e=0;e<t.length;e+=1)t[e]=this._map[t[e]];return t}},{key:"set",value:function(t,e){this._map[t]=e}},{key:"get",value:function(t){return this._map[t]}},{key:"delete",value:function(t){delete this._map[t]}}]),t}();h.default._launcher=window,h.default._internalBus=new v.EventHandler((0,o.default)(h.default._eventListeners)),h.default._windows=new _,h.default._layouts=new _;var g=window.document.createElement("div");g.style.position="absolute",g.style.left="0",g.style.top="0",g.style.right="0",g.style.bottom="0",g.style["z-index"]="10000000",g.style.display="none",window.document.body.appendChild(g),h.default._overlay=g,h.default._getScale=function(){return screen.deviceXDPI?screen.deviceXDPI/screen.logicalXDPI:screen.width/g.clientWidth};var m=function(t){if(""!==h.default._drag.down){t.preventDefault();var e=h.default._getScale(),n=new w.Position(t.screenX,t.screenY).subtract(h.default._drag.mouseStart),r=h.default._drag.target;if(n.left/=e,n.top/=e,"m"===h.default._drag.down)"Firefox"!==h.default.runtime.name&&(r._window.contentWindow.getSelection().removeAllRanges(),window.getSelection().removeAllRanges(),r._dragBy(n.left,n.top));else{var i=h.default._drag.targetStartBounds.clone();h.default._drag.down.includes("w")?i.left=Math.min(i.left+n.left,i.right-r._minSize.left):h.default._drag.down.includes("e")&&(i.right=Math.max(i.right+n.left,i.left+r._minSize.left)),h.default._drag.down.includes("n")?i.top=Math.min(i.top+n.top,i.bottom-r._minSize.top):h.default._drag.down.includes("s")&&(i.bottom=Math.max(i.bottom+n.top,i.top+r._minSize.top)),r.setBounds(i)}}};g.addEventListener("mousemove",m,!0),g.addEventListener("touchmove",function(t){m({screenX:t.touches[0].screenX,screenY:t.touches[0].screenY,preventDefault:t.preventDefault})},!0);var b=function(t){"m"===h.default._drag.down&&(t.preventDefault(),h.default._drag.target._dragStop()),h.default._drag.down="",h.default._overlay.style.display="none"};h.default._overlay.addEventListener("mouseup",b,!0),h.default._overlay.addEventListener("touchend",b,!0),h.default._drag={down:"",mouseStart:new w.Position,target:null,targetStartBounds:new w.BoundingBox},h.default._getNextZIndex=function(){return y+=1}}else h.default._launcher=window.parent.windowmanager._launcher||window.parent,h.default._internalBus=window.parent.windowmanager._internalBus,h.default._windows=window.parent.windowmanager._windows,h.default._layouts=window.parent.windowmanager._layouts,h.default._getNextZIndex=window.parent.windowmanager._getNextZIndex,h.default._overlay=window.parent.windowmanager._overlay,h.default._drag=window.parent.windowmanager._drag,h.default._getScale=window.parent.windowmanager._getScale;h.default._internalBus.addPipe(h.default),e.default=h.default,t.exports=e.default},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){t.exports=!n(88)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(36);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){t.exports=!n(6)&&!n(17)(function(){return 7!=Object.defineProperty(n(67)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(14),i=n(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){t.exports=n(7)},function(t,e,n){var r=n(15),i=n(13),o=n(99)(!1),a=n(41)("IE_PROTO");t.exports=function(t,e){var n,u=i(t),s=0,d=[];for(n in u)n!=a&&r(u,n)&&d.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~o(d,n)||d.push(n));return d}},function(t,e,n){var r=n(15),i=n(23),o=n(41)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(36),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(69),i=n(43).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(49),i=n(21),o=n(13),a=n(39),u=n(15),s=n(66),d=Object.getOwnPropertyDescriptor;e.f=n(6)?d:function(t,e){if(t=o(t),e=a(e,!0),s)try{return d(t,e)}catch(t){}if(u(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r=n(4).f,i=n(29),o=n(77),a=n(16),u=n(78),s=n(28),d=n(54),l=n(37),f=n(64),c=n(125),h=n(6),v=n(47).fastKey,w=h?"_s":"size",p=function(t,e){var n,r=v(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var f=t(function(t,r){u(t,f,e,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[w]=0,void 0!=r&&d(r,n,t[l],t)});return o(f.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[w]=0},delete:function(t){var e=this,n=p(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[w]--}return!!n},forEach:function(t){u(this,f,"forEach");for(var e,n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!p(this,t)}}),h&&r(f.prototype,"size",{get:function(){return s(this[w])}}),f},def:function(t,e,n){var r,i,o=p(t,e);return o?o.v=n:(t._l=o={i:i=v(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[w]++,"F"!==i&&(t._i[i]=o)),t},getEntry:p,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),c(e)}}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(8);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(20),i=n(1)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(3),i=n(2),o=n(47),a=n(17),u=n(7),s=n(77),d=n(54),l=n(78),f=n(14),c=n(32),h=n(4).f,v=n(126)(0),w=n(6);t.exports=function(t,e,n,p,y,_){var g=r[t],m=g,b=y?"set":"add",x=m&&m.prototype,k={};return w&&"function"==typeof m&&(_||x.forEach&&!a(function(){(new m).entries().next()}))?(m=e(function(e,n){l(e,m,t,"_c"),e._c=new g,void 0!=n&&d(n,y,e[b],e)}),v("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!_||"clear"!=t)&&u(m.prototype,t,function(n,r){if(l(this,m,t),!e&&_&&!f(n))return"get"==t&&void 0;var i=this._c[t](0===n?0:n,r);return e?this:i})}),"size"in x&&h(m.prototype,"size",{get:function(){return this._c.size}})):(m=p.getConstructor(e,t,y,b),s(m.prototype,n),o.NEED=!0),c(m,t),k[t]=m,i(i.G+i.W+i.F,k),_||p.setStrong(m,t,y),m}},function(t,e,n){var r=n(71),i=n(130);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){var r=n(2),i=n(0),o=n(17);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(85),o=r(i),a=n(33),u=r(a),s=n(19),d=r(s),l=n(18),f=r(l),c=n(12);d.default.runtime.name="OpenFin",d.default.runtime.version=void 0,d.default.runtime.isOpenFin=!0;var h=f.default.ref(function(t){d.default.runtime.version=t});fin.desktop.main(f.default.ref(function(){fin.desktop.System.getVersion(h);var t=fin.desktop.Application.getCurrent(),e=t.getWindow().contentWindow;e===window&&(d.default.runtime.isMain=!0,d.default._launcher=e,d.default._windows=new u.default,d.default._internalBus=new c.EventHandler((0,o.default)(d.default._eventListeners))),d.default._internalBus.addPipe(d.default)})),e.default=d.default,t.exports=e.default},function(t,e,n){t.exports={default:n(151),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(34),o=r(i),a=n(5),u=r(a),s=n(60),d=r(s),l=n(155),f=r(l),c=n(57),h=r(c),v=n(10),w=r(v),p=n(11),y=r(p),_=n(58),g=r(_),m=n(59),b=r(m),x=n(61),k=r(x),S=n(12),E=n(9);n(158);var M={width:800,height:500,frame:!0,resizable:!0,show:!0,icon:location.href+"favicon.ico",url:".",minWidth:100,minHeight:100,maxWidth:1/0,maxHeight:1/0},z={},B=["ready","drag-start","drag-before","drag-stop","dock-before","move","move-before","resize-before","close","show","hide","restore","minimize","maximize","focus","blur"],P=["-ms-transform","-moz-transform","-o-transform","-webkit-transform","transform"],O=function(t){function e(t){(0,w.default)(this,e);var n=(0,g.default)(this,(e.__proto__||(0,h.default)(e)).call(this,B));t=t||{};var r=!(t instanceof window.Window);return n._ready=!1,n._isClosed=!1,n._isHidden=!1,n._isMinimized=!1,n._isMaximized=!1,n._isResizable=!1,n._dockedGroup=[n],n._children=[],n._parent=void 0,n._title=void 0,n._id=(0,S.getUniqueWindowName)(),r?function(){for(var e in t)t.hasOwnProperty(e)&&void 0!==z[e]&&(t[z[e]]=t[e],delete t[e]);for(var r in M)M.hasOwnProperty(r)&&(t[r]=null!=t[r]?t[r]:M[r]);n._title=null==t.title?n._id:t.title;var i=n;t.parent&&(t.parent._children.push(n),n._parent=t.parent,delete t.parent),n._minSize=new E.Size(t.minWidth,t.minHeight),n._maxSize=new E.Size(t.maxWidth,t.maxHeight),n._isResizable=t.resizable;var o=k.default._launcher.document.createElement("div"),a=k.default._launcher.document.createElement("iframe");if(t.container||(o.style.position="absolute"),a.style.margin=a.style.padding=a.style.border=0,o.style.resize="both",o.style.overflow="visible",(0,f.default)(t.left)||(t.left=(k.default._launcher.innerWidth-t.width)/2),o.style.left=t.left+"px",(0,f.default)(t.top)||(t.top=(k.default._launcher.innerHeight-t.height)/2),o.style.top=t.top+"px",o.style.width=t.width+"px",o.style.height=t.height+"px",o.style.minWidth=n._minSize.left+"px",o.style.minHeight=n._minSize.top+"px",o.style.maxWidth=n._maxSize.left+"px",o.style.maxHeight=n._maxSize.top+"px",o.addEventListener("focus",function(){i.emit("focus")}),o.addEventListener("blur",function(){i.emit("blur")}),t.container){var u=void 0;u="string"==typeof t.container?document.getElementById(t.container):t.container,u.appendChild(o)}else k.default._launcher.document.body.appendChild(o);if(t.show||(o.style.display="none"),a.src=t.url,a.style.margin=a.style.padding=a.style.border=0,a.style.width=a.style.height="100%",o.appendChild(a),n._resize=(0,d.default)(null),t.draggable)for(var s=["w","nw","n","ne","e","se","s","sw"],l=0;l<s.length;l++)!function(){var t=s[l],e=k.default._launcher.document.createElement("div");n._resize[t]=e,e.style.display=n._isResizable?"":"none",e.style.position="absolute",e.style["user-select"]="none",e.style.cursor=t+"-resize",e.style.width="n"===t||"s"===t?"calc(100% - 6px)":"6px",e.style.height="w"===t||"e"===t?"calc(100% - 6px)":"6px",e.style[t.includes("e")?"right":"left"]="n"===t||"s"===t?"3px":"-3px",e.style[t.includes("s")?"bottom":"top"]="w"===t||"e"===t?"3px":"-3px",e.addEventListener("mousedown",function(e){i._isResizable&&(k.default._overlay.style.display="",k.default._overlay.style.cursor=t+"-resize",k.default._drag.down=t,k.default._drag.mouseStart=new E.Position(e.screenX,e.screenY),k.default._drag.target=i,k.default._drag.targetStartBounds=i.getBounds())}),o.appendChild(e)}();n._window=a,n._wrapper=o,k.default._windows.set(n._id,n),n._ready=!0,n.emit("ready"),k.default._internalBus.emit("window-create",n),n.bringToFront(),n.focus()}():(n._minSize=new E.BoundingBox(M.minWidth,M.minHeight),n._maxSize=new E.BoundingBox(M.maxWidth,M.maxHeight),n._wrapper=n._window=t.document.body,k.default._windows.set(n._id,n),n._ready=!0),n}return(0,b.default)(e,t),(0,y.default)(e,[{key:"isReady",value:function(){return this._ready}},{key:"onReady",value:function(t){if(this.isClosed())throw new Error("onReady can't be called on a closed window");if(this.isReady())return t.call(this);this.once("ready",t)}},{key:"isClosed",value:function(){return this._isClosed}},{key:"getPosition",value:function(){return new E.Position(this._wrapper.getBoundingClientRect())}},{key:"getMinWidth",value:function(){return this._minSize.left}},{key:"getWidth",value:function(){return this._window.getBoundingClientRect().width}},{key:"getMaxWidth",value:function(){return this._maxSize.left}},{key:"getMinHeight",value:function(){return this._minSize.top}},{key:"getHeight",value:function(){return this._wrapper.getBoundingClientRect().height}},{key:"getMaxHeight",value:function(){return this._maxSize.top}},{key:"getMinSize",value:function(){return this._minSize.clone()}},{key:"getSize",value:function(){var t=this._wrapper.getBoundingClientRect();return new E.Size(t.width,t.height)}},{key:"getMaxSize",value:function(){return this._maxSize.clone()}},{key:"getBounds",value:function(){return new E.BoundingBox(this._window.getBoundingClientRect())}},{key:"getParent",value:function(){return this._parent}},{key:"setParent",value:function(t){if(t!==this._parent){if(this._parent){var e=this._parent._children.indexOf(this);e>=0&&this._parent._children.splice(e,1)}t&&(this._parent=t,this._parent._children.push(this))}}},{key:"getChildren",value:function(){return this._children.slice()}},{key:"addChild",value:function(t){t.setParent(this)}},{key:"getTitle",value:function(){return this._title}},{key:"setTitle",value:function(t){if(!t)throw new Error("setTitle requires one argument of type String");this._title=t}},{key:"isHidden",value:function(){return this._isHidden}},{key:"isShown",value:function(){return!this._isHidden}},{key:"isMinimized",value:function(){return this._isMinimized}},{key:"isMaximized",value:function(){return this._isMaximized}},{key:"isRestored",value:function(){return this.isShown()&&!this.isMinimized()&&!this.isMaximized()}},{key:"isResizable",value:function(){return this._isResizable}},{key:"close",value:function(t){if(this.isClosed())return t&&t();this._wrapper.parentElement.removeChild(this._wrapper),k.default._windows.delete(this._id),this.undock();var e=this.getParent(),n=!0,r=!1,i=void 0;try{for(var o,a=(0,u.default)(this.getChildren());!(n=(o=a.next()).done);n=!0)o.value.setParent(e)}catch(t){r=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}this.setParent(void 0),this._isClosed=!0,t&&t(),this.emit("close"),k.default._internalBus.emit("window-close",this)}},{key:"minimize",value:function(t){if(!this._ready)throw new Error("minimize can't be called on an unready window");var e=!0,n=!1,r=void 0;try{for(var i,o=(0,u.default)(this._dockedGroup);!(e=(i=o.next()).done);e=!0){var a=i.value;a._isMinimized=!0,a.emit("minimize")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"maximize",value:function(t){if(!this._ready)throw new Error("maximize can't be called on an unready window");this._restoreBounds=this.getBounds(),this._wrapper.style.left=0,this._wrapper.style.top=0,this._wrapper.style.width="100%",this._wrapper.style.height="100%",this._isMaximized=!0,window.emit("maximize"),t&&t()}},{key:"show",value:function(t){if(!this._ready)throw new Error("show can't be called on an unready window");var e=!0,n=!1,r=void 0;try{for(var i,o=(0,u.default)(this._dockedGroup);!(e=(i=o.next()).done);e=!0){var a=i.value;a._wrapper.style.display="",a._isHidden=!1,a.emit("show")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}t&&t()}},{key:"hide",value:function(t){if(!this._ready)throw new Error("hide can't be called on an unready window");var e=!0,n=!1,r=void 0;try{for(var i,o=(0,u.default)(this._dockedGroup);!(e=(i=o.next()).done);e=!0){var a=i.value;a._wrapper.style.display="none",a._isHidden=!0,a.emit("hide")}}catch(t){n=!0,r=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw r}}t&&t()}},{key:"restore",value:function(t){if(!this._ready)throw new Error("restore can't be called on an unready window");var e=!0,n=!1,r=void 0;try{for(var i,o=(0,u.default)(this._dockedGroup);!(e=(i=o.next()).done);e=!0){var a=i.value;a._isMaximized&&(a._wrapper.style.left=a._restoreBounds.left+"px",a._wrapper.style.top=a._restoreBounds.top+"px",a._wrapper.style.width=a._restoreBounds.getWidth()+"px",a._wrapper.style.height=a._restoreBounds.getHeight()+"px",a._isHidden=!1,a._i