t2-model-skinner/docs/_next/static/chunks/imageProcessing.worker-e73713bf981eb595.worker.js

16 lines
320 KiB
JavaScript
Raw Normal View History

2024-04-28 20:01:35 -07:00
!function(){var t={187:function(t){"use strict";var r,i="object"==typeof Reflect?Reflect:null,p=i&&"function"==typeof i.apply?i.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var y=Number.isNaN||function(t){return t!=t};function EventEmitter(){EventEmitter.init.call(this)}t.exports=EventEmitter,t.exports.once=function(t,r){return new Promise(function(i,p){function errorListener(i){t.removeListener(r,resolver),p(i)}function resolver(){"function"==typeof t.removeListener&&t.removeListener("error",errorListener),i([].slice.call(arguments))}eventTargetAgnosticAddListener(t,r,resolver,{once:!0}),"error"!==r&&"function"==typeof t.on&&eventTargetAgnosticAddListener(t,"error",errorListener,{once:!0})})},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var b=10;function checkListener(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _getMaxListeners(t){return void 0===t._maxListeners?EventEmitter.defaultMaxListeners:t._maxListeners}function _addListener(t,r,i,p){if(checkListener(i),void 0===(b=t._events)?(b=t._events=Object.create(null),t._eventsCount=0):(void 0!==b.newListener&&(t.emit("newListener",r,i.listener?i.listener:i),b=t._events),_=b[r]),void 0===_)_=b[r]=i,++t._eventsCount;else if("function"==typeof _?_=b[r]=p?[i,_]:[_,i]:p?_.unshift(i):_.push(i),(y=_getMaxListeners(t))>0&&_.length>y&&!_.warned){_.warned=!0;var y,b,_,m=Error("Possible EventEmitter memory leak detected. "+_.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=t,m.type=r,m.count=_.length,console&&console.warn&&console.warn(m)}return t}function onceWrapper(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(t,r,i){var p={fired:!1,wrapFn:void 0,target:t,type:r,listener:i},y=onceWrapper.bind(p);return y.listener=i,p.wrapFn=y,y}function _listeners(t,r,i){var p=t._events;if(void 0===p)return[];var y=p[r];return void 0===y?[]:"function"==typeof y?i?[y.listener||y]:[y]:i?function(t){for(var r=Array(t.length),i=0;i<r.length;++i)r[i]=t[i].listener||t[i];return r}(y):arrayClone(y,y.length)}function listenerCount(t){var r=this._events;if(void 0!==r){var i=r[t];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function arrayClone(t,r){for(var i=Array(r),p=0;p<r;++p)i[p]=t[p];return i}function eventTargetAgnosticAddListener(t,r,i,p){if("function"==typeof t.on)p.once?t.once(r,i):t.on(r,i);else if("function"==typeof t.addEventListener)t.addEventListener(r,function wrapListener(y){p.once&&t.removeEventListener(r,wrapListener),i(y)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(t){if("number"!=typeof t||t<0||y(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");b=t}}),EventEmitter.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||y(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);v
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var p=i(675),y=i(783),b="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,Buffer.prototype),r}function Buffer(t,r,i){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(t)}return from(t,r,i)}function from(t,r,i){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!Buffer.isEncoding(r))throw TypeError("Unknown encoding: "+r);var i=0|byteLength(t,r),p=createBuffer(i),y=p.write(t,r);return y!==i&&(p=p.slice(0,y)),p}(t,r);if(ArrayBuffer.isView(t))return fromArrayLike(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(isInstance(t,ArrayBuffer)||t&&isInstance(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(t,SharedArrayBuffer)||t&&isInstance(t.buffer,SharedArrayBuffer)))return function(t,r,i){var p;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(p=void 0===r&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,r):new Uint8Array(t,r,i),Buffer.prototype),p}(t,r,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var p=t.valueOf&&t.valueOf();if(null!=p&&p!==t)return Buffer.from(p,r,i);var y=function(t){if(Buffer.isBuffer(t)){var r,i=0|checked(t.length),p=createBuffer(i);return 0===p.length||t.copy(p,0,0,i),p}return void 0!==t.length?"number"!=typeof t.length||(r=t.length)!=r?createBuffer(0):fromArrayLike(t):"Buffer"===t.type&&Array.isArray(t.data)?fromArrayLike(t.data):void 0}(t);if(y)return y;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return Buffer.from(t[Symbol.toPrimitive]("string"),r,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function assertSize(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function allocUnsafe(t){return assertSize(t),createBuffer(t<0?0:0|checked(t))}function fromArrayLike(t){for(var r=t.length<0?0:0|checked(t.length),i=createBuffer(r),p=0;p<r;p+=1)i[p]=255&t[p];return i}function checked(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function byteLength(t,r){if(Buffer.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||isInstance(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,p=arguments.length>2&&!0===arguments[2];if(!p&&0===i)return 0;for(var y=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(t).length;default:if(y)return p?-1:utf8ToBytes(t).length;r=(""+r).toLowerCase(),y=!0}}function slowToString(t,r,i){var y,b,_=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,i){var p=t.length;(!r||r<0)&&(r=0),(!i||i<0||i>p)&&(i=p);for(var y="",b=r;b<i;++b)y+=m[t[b]];return y}(this,r,i);case"utf8":case"utf-8":return utf8Slice(this,r,i);case"ascii":return function(t,r,i){var p="";i=Math.min(t.length,i);for(var y=r;y<i;++y)p+=String.fromCharCode(127&t[y]);return p}(this,r,i);case"latin1":case"binary":return function(t,r,i){var p="";i=Math.min(t.leng
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function compare(t,r){if(t===r)return 0;for(var i=t.length,p=r.length,y=0,b=Math.min(i,p);y<b;++y)if(t[y]!==r[y]){i=t[y],p=r[y];break}return i<p?-1:p<i?1:0}function isBuffer(t){return i.Buffer&&"function"==typeof i.Buffer.isBuffer?i.Buffer.isBuffer(t):!!(null!=t&&t._isBuffer)}var p=t("util/"),y=Object.prototype.hasOwnProperty,b=Array.prototype.slice,_="foo"===(function(){}).name;function pToString(t){return Object.prototype.toString.call(t)}function isView(t){return!isBuffer(t)&&"function"==typeof i.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer))}var m=r.exports=ok,w=/\s*function\s+([^\(\s]*)\s*/;function getName(t){if(p.isFunction(t)){if(_)return t.name;var r=t.toString().match(w);return r&&r[1]}}function truncate(t,r){return"string"==typeof t?t.length<r?t:t.slice(0,r):t}function inspect(t){if(_||!p.isFunction(t))return p.inspect(t);var r=getName(t);return"[Function"+(r?": "+r:"")+"]"}function fail(t,r,i,p,y){throw new m.AssertionError({message:i,actual:t,expected:r,operator:p,stackStartFunction:y})}function ok(t,r){t||fail(t,!0,r,"==",m.ok)}function _deepEqual(t,r,i,y){if(t===r)return!0;if(isBuffer(t)&&isBuffer(r))return 0===compare(t,r);if(p.isDate(t)&&p.isDate(r))return t.getTime()===r.getTime();if(p.isRegExp(t)&&p.isRegExp(r))return t.source===r.source&&t.global===r.global&&t.multiline===r.multiline&&t.lastIndex===r.lastIndex&&t.ignoreCase===r.ignoreCase;if((null===t||"object"!=typeof t)&&(null===r||"object"!=typeof r))return i?t===r:t==r;if(isView(t)&&isView(r)&&pToString(t)===pToString(r)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===compare(new Uint8Array(t.buffer),new Uint8Array(r.buffer));if(isBuffer(t)!==isBuffer(r))return!1;var _=(y=y||{actual:[],expected:[]}).actual.indexOf(t);return -1!==_&&_===y.expected.indexOf(r)||(y.actual.push(t),y.expected.push(r),function(t,r,i,y){if(null==t||null==r)return!1;if(p.isPrimitive(t)||p.isPrimitive(r))return t===r;if(i&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(r))return!1;var _,m,w=isArguments(t),A=isArguments(r);if(w&&!A||!w&&A)return!1;if(w)return _deepEqual(t=b.call(t),r=b.call(r),i);var k=S(t),T=S(r);if(k.length!==T.length)return!1;for(k.sort(),T.sort(),m=k.length-1;m>=0;m--)if(k[m]!==T[m])return!1;for(m=k.length-1;m>=0;m--)if(!_deepEqual(t[_=k[m]],r[_],i,y))return!1;return!0}(t,r,i,y))}function isArguments(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function expectedException(t,r){if(!t||!r)return!1;if("[object RegExp]"==Object.prototype.toString.call(r))return r.test(t);try{if(t instanceof r)return!0}catch(t){}return!Error.isPrototypeOf(r)&&!0===r.call({},t)}function _throws(t,r,i,y){if("function"!=typeof r)throw TypeError('"block" argument must be a function');"string"==typeof i&&(y=i,i=null),b=function(t){var r;try{t()}catch(t){r=t}return r}(r),y=(i&&i.name?" ("+i.name+").":".")+(y?" "+y:"."),t&&!b&&fail(b,i,"Missing expected exception"+y);var b,_="string"==typeof y,m=!t&&p.isError(b),w=!t&&b&&!i;if((m&&_&&expectedException(b,i)||w)&&fail(b,i,"Got unwanted exception"+y),t&&b&&i&&!expectedException(b,i)||!t&&b)throw b}m.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=truncate(inspect(this.actual),128)+" "+this.operator+" "+truncate(inspect(this.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=Error();if(i.stack){var p=i.stack,y=getName(r),b=p.indexOf("\n"+y);if(b>=0){var _=p.indexOf("\n",b+1);p=p.substring(_+1)}this.stack=p}}},p.inherits(m.AssertionError,Error),m.fail=fail,m.ok=ok,m.equal=function(t,r,i){t!=r&&fail(t,r,i,"==",m.equal)},m.notEqual=function(t,r,i){t==r&&fail(t,r,i,"!=",m.notEqual)},m.deepEqual=function(t,r,i){_deepEqual(t,r,!1)||fail(t,r,i,"deepEqual",m.deepEqual)},m.deepStrictEqual=function(t,r,i){_deepEqual(t,r,!0)||fail(t,r,i,"deepStrictEqual",m.deepStr
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/"use strict";var r=t("base64-js"),p=t("ieee754");function createBuffer(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return r.__proto__=Buffer.prototype,r}function Buffer(t,r,i){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(t)}return from(t,r,i)}function from(t,r,i){if("string"==typeof t)return function(t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!Buffer.isEncoding(r))throw TypeError("Unknown encoding: "+r);var i=0|byteLength(t,r),p=createBuffer(i),y=p.write(t,r);return y!==i&&(p=p.slice(0,y)),p}(t,r);if(ArrayBuffer.isView(t))return fromArrayLike(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(isInstance(t,ArrayBuffer)||t&&isInstance(t.buffer,ArrayBuffer))return function(t,r,i){var p;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(i||0))throw RangeError('"length" is outside of buffer bounds');return(p=void 0===r&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,r):new Uint8Array(t,r,i)).__proto__=Buffer.prototype,p}(t,r,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var p=t.valueOf&&t.valueOf();if(null!=p&&p!==t)return Buffer.from(p,r,i);var y=function(t){if(Buffer.isBuffer(t)){var r,i=0|checked(t.length),p=createBuffer(i);return 0===p.length||t.copy(p,0,0,i),p}return void 0!==t.length?"number"!=typeof t.length||(r=t.length)!=r?createBuffer(0):fromArrayLike(t):"Buffer"===t.type&&Array.isArray(t.data)?fromArrayLike(t.data):void 0}(t);if(y)return y;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return Buffer.from(t[Symbol.toPrimitive]("string"),r,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function assertSize(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function allocUnsafe(t){return assertSize(t),createBuffer(t<0?0:0|checked(t))}function fromArrayLike(t){for(var r=t.length<0?0:0|checked(t.length),i=createBuffer(r),p=0;p<r;p+=1)i[p]=255&t[p];return i}function checked(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function byteLength(t,r){if(Buffer.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||isInstance(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,p=arguments.length>2&&!0===arguments[2];if(!p&&0===i)return 0;for(var y=!1;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(t).length;default:if(y)return p?-1:utf8ToBytes(t).length;r=(""+r).toLowerCase(),y=!0}}function slowToString(t,i,p){var y,b,_=!1;if((void 0===i||i<0)&&(i=0),i>this.length||((void 0===p||p>this.length)&&(p=this.length),p<=0||(p>>>=0)<=(i>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,i){var p,y=t.length;(!r||r<0)&&(r=0),(!i||i<0||i>y)&&(i=y);for(var b="",_=r;_<i;++_)b+=(p=t[_])<16?"0"+p.toString(16):p.toString(16);return b}(this,i,p);case"utf8":case"utf-8":return utf8Slice(this,i,p);case"ascii":return function(t,r,i){var p="";i=Math.min(t.length,i);for(var y=r;y<i;++y)p+=String.fromCharCode(127&t[y]);return p}(this,i,p);case"latin1":case"binary":return function(t,r,i){var p="";i=Math.min(t.length,i);for(var y=r;y<i;++y)p+=String.fromCharCode(t[y]);return p}(this,i,p);case"base64":return y=i,b=p,0===y&&b===this.length?r.fromByteArray(this):r.fromByteArray(this.slice(y,b))