3 lines
23 KiB
JavaScript
Raw Normal View History

2024-10-11 16:56:42 +08:00
var __renderjsModules={};
__renderjsModules["640b5ca4"]=(()=>{var T=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var et=Object.prototype.hasOwnProperty;var nt=(s,n)=>{for(var t in n)T(s,t,{get:n[t],enumerable:!0})},it=(s,n,t,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of Z(n))!et.call(s,i)&&i!==t&&T(s,i,{get:()=>n[i],enumerable:!(e=G(n,i))||e.enumerable});return s};var at=s=>it(T({},"__esModule",{value:!0}),s);var gt={};nt(gt,{default:()=>ft});function B(s,n){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(s);n&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),t.push.apply(t,e)}return t}function st(s){for(var n=1;arguments.length>n;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?B(Object(t),!0).forEach(function(e){ot(s,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(t,e))})}return s}function L(s){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},L(s)}function b(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function X(s,n){for(var t=0;n.length>t;t++){var e=n[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(s,e.key,e)}}function k(s,n,t){return n&&X(s.prototype,n),t&&X(s,t),Object.defineProperty(s,"prototype",{writable:!1}),s}function ot(s,n,t){return n in s?Object.defineProperty(s,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[n]=t,s}function $(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),n&&C(s,n)}function M(s){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},M(s)}function C(s,n){return C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},C(s,n)}function rt(s,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(s)}function q(s){var n=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=M(s);if(n){var i=M(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return rt(this,t)}}var U=function(s){var n=L(s);return s!==null&&n==="object"||n==="function"},ht={}.toString,I=function(s,n){return ht.call(s)==="[object "+n+"]"},V=function(s){return I(s,"String")},A=function(s){return I(s,"Number")},O=function(s){return I(s,"Function")},W=function(){function s(){b(this,s),this.__events=void 0,this.__events={}}return k(s,[{key:"on",value:function(n,t){if(n&&t){var e=this.__events[n]||[];e.push(t),this.__events[n]=e}}},{key:"emit",value:function(n,t){var e=this;if(U(n)&&(n=(t=n)&&t.type),n){var i=this.__events[n];i&&i.length&&i.forEach(function(a){a.call(e,t)})}}},{key:"off",value:function(n,t){var e=this.__events,i=e[n];if(i&&i.length)if(t)for(var a=0,o=i.length;o>a;a++)i[a]===t&&(i.splice(a,1),a--);else delete e[n]}},{key:"getEvents",value:function(){return this.__events}}]),s}(),ut=function(s){$(t,W);var n=q(t);function t(e,i){var a;return b(this,t),(a=n.call(this)).context=void 0,a.canvas=void 0,a.attrs=void 0,a.isCanvasElement=void 0,a.context=e,a.canvas=i.canvas||e.canvas||{width:i.width||0,height:i.height||0},a.attrs=i||{},a.isCanvasElement=!0,a}return k(t,[{key:"