2d game with map data https://luna-development.net/2dgame/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
253 KiB

4 years ago
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.BoardgameIO=t(e.React)}(this,function(e){"use strict";function t(e,t){if("undefined"==typeof document)return t;e=e||"";var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");return r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),t}function n(e){return e&&e.__esModule?e.default:e}function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}function o(e){return function(){return e}}function a(e){var t=Me.call(e,De),n=e[De];try{e[De]=void 0;var r=!0}catch(e){}var o=Te.call(e);return r&&(t?e[De]=n:delete e[De]),o}function i(e){return Ie.call(e)}function s(e){return null==e?void 0===e?Be:Re:Ne&&Ne in Object(e)?a(e):i(e)}function c(e){return null!=e&&"object"==typeof e}function u(e){if(!c(e)||s(e)!=Le)return!1;var t=Fe(e);if(null===t)return!0;var n=He.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ue.call(n)==Ve}function l(e,t,n){function r(){d===p&&(d=p.slice())}function o(){return f}function a(e){if("function"!=typeof e)throw Error("Expected listener to be a function.");var t=!0;return r(),d.push(e),function(){if(t){t=!1,r();var n=d.indexOf(e);d.splice(n,1)}}}function i(e){if(!u(e))throw Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw Error("Reducers may not dispatch actions.");try{h=!0,f=c(f,e)}finally{h=!1}for(var t=p=d,n=0;t.length>n;n++)(0,t[n])();return e}var s;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw Error("Expected the enhancer to be a function.");return n(l)(e,t)}if("function"!=typeof e)throw Error("Expected the reducer to be a function.");var c=e,f=t,p=[],d=p,h=!1;return i({type:Je.INIT}),s={dispatch:i,subscribe:a,getState:o,replaceReducer:function(e){if("function"!=typeof e)throw Error("Expected the nextReducer to be a function.");c=e,i({type:Je.INIT})}},s[Ge]=function(){var e,t=a;return e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[Ge]=function(){return this},e},s}function f(e,t){return function(){return t(e.apply(void 0,arguments))}}function p(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;n.length>o;o++){var a=n[o],i=e[a];"function"==typeof i&&(r[a]=f(i,t))}return r}function d(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function h(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),i=a.dispatch,s=[],c={getState:a.getState,dispatch:function(e){return i(e)}};return s=t.map(function(e){return e(c)}),i=d.apply(void 0,s)(a.dispatch),Ye({},a,{dispatch:i})}}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot