jh-front-end-example-2/public/eim-0225/EIMMODEL.min.js

12 lines
4.0 MiB
JavaScript
Raw Normal View History

2022-01-10 21:25:36 +08:00
/*!!**
* EIMMODEL V1.0.0
* A WebGL-based 3D Viewer for threejs
* http://www.i3vsoft.com/
* Built on 2021-2-25 7:24:06 PM
* commitHash 2611d22d
* Copyright 2021, 广州君和信息技术有限公司
***/
!function(A,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((A=A||self).EIMMODEL={})}(this,(function(A){"use strict";console.log("EIMMODEL Version: 1.0.0");var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};!function(A,e){A(e={exports:{}},e.exports)}((function(A){!function(e,t){var i=function(){function A(A){return"[object Array]"===Object.prototype.toString.call(A)}function e(A,e){for(var t in e)e.hasOwnProperty(t)&&(A[t]=e[t])}function t(A){if(!(this instanceof t))throw new TypeError(this+"is not a promise");if("function"!=typeof A)throw new TypeError("Promise resolver "+A+" is not a function");var e=new i;this._resolver=e;try{A((function(A){e.resolve(A)}),(function(A){e.reject(A)}))}catch(A){e.reject(A)}}function i(){this._callbacks=[],this._errbacks=[],this._status="pending",this._result=null}return e(t.prototype,{then:function(A,e){var i,o,n=new this.constructor((function(A,e){i=A,o=e}));return this._resolver._addCallbacks("function"==typeof A?t._makeCallback(n,i,o,A):i,"function"==typeof e?t._makeCallback(n,i,o,e):o),n},catch:function(A){return this.then(void 0,A)}}),t._makeCallback=function(A,e,t,i){return function(o){var n;try{n=i(o)}catch(A){return void t(A)}n!==A?e(n):t(new TypeError("Cannot resolve a promise with itself"))}},t.resolve=function(A){return A&&A.constructor===this?A:new this((function(e){e(A)}))},t.reject=function(A){var e=new this((function(){}));return e._resolver._result=A,e._resolver._status="rejected",e},t.all=function(e){var t=this;return new t((function(i,o){if(A(e)){var n=e.length,r=0,a=e.length,s=[];if(1>a)return i(s);for(;a>r;r++)t.resolve(e[r]).then(l(r),o)}else o(new TypeError("Promise.all expects an array of values or promises"));function l(A){return function(e){s[A]=e,--n||i(s)}}}))},t.race=function(e){var t=this;return new t((function(i,o){if(A(e))for(var n=0,r=e.length;r>n;n++)t.resolve(e[n]).then(i,o);else o(new TypeError("Promise.race expects an array of values or promises"))}))},t.async="undefined"!=typeof setImmediate?function(A){setImmediate(A)}:"undefined"!=typeof process&&process.nextTick?process.nextTick:function(A){setTimeout(A,0)},e(i.prototype,{fulfill:function(A){var e=this._status;"pending"!==e&&"accepted"!==e||(this._result=A,this._status="fulfilled"),"fulfilled"===this._status&&(this._notify(this._callbacks,this._result),this._callbacks=[],this._errbacks=null)},reject:function(A){var e=this._status;"pending"!==e&&"accepted"!==e||(this._result=A,this._status="rejected"),"rejected"===this._status&&(this._notify(this._errbacks,this._result),this._callbacks=null,this._errbacks=[])},resolve:function(A){"pending"===this._status&&(this._status="accepted",this._value=A,(this._callbacks&&this._callbacks.length||this._errbacks&&this._errbacks.length)&&this._unwrap(this._value))},_unwrap:function(A){var e,t=this,i=!1;if(!A||"object"!=typeof A&&"function"!=typeof A)t.fulfill(A);else try{"function"==typeof(e=A.then)?e.call(A,(function(A){i||(i=!0,t._unwrap(A))}),(function(A){i||(i=!0,t.reject(A))})):t.fulfill(A)}catch(A){i||t.reject(A)}},_addCallbacks:function(A,e){var t=this._callbacks,i=this._errbacks;switch(t&&t.push(A),i&&i.push(e),this._status){case"accepted":this._unwrap(this._value);break;case"fulfilled":this.fulfill(this._result);break;case"rejected":this.reject(this._result)}},_notify:function(A,e){A.length&&t.async((function(){var t,i;for(t=0,i=A.length;i>t;++t)A[t](e)}))}}),t.Resolver=i,t}();A&&(A.exports=i),(e=e||self).PromisePolyfill=i,e.Promise||(e.Promise=i)}(e)}));void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(A){return"number"==typeof A&&isFinite(A)&&Math.floor(A)===A}),void 0===Math.sign&&(Math.sign=function(A){return 0>A?-1:A>0?1:+A}),"name"in Function.prototype==!1&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(A){if(null==A)throw ne
//# sourceMappingURL=EIMMODEL.min.js.map