Socket
Socket
Sign inDemoInstall

@pixi/utils

Package Overview
Dependencies
Maintainers
2
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/utils - npm Package Compare versions

Comparing version 6.1.0-rc.5 to 6.1.0-rc.6

6

dist/browser/utils.min.js
/*!
* @pixi/utils - v6.1.0-rc.5
* Compiled Mon, 19 Jul 2021 20:32:18 UTC
* @pixi/utils - v6.1.0-rc.6
* Compiled Fri, 23 Jul 2021 22:53:45 UTC
*

@@ -8,3 +8,3 @@ * @pixi/utils is licensed under the MIT License.

*/
this.PIXI=this.PIXI||{},this.PIXI.utils=this.PIXI.utils||{};var _pixi_utils=function(e,t,n){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var a=o(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],s]:e._events[f].push(s):(e._events[f]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=arguments,f=n?n+e:e;if(!this._events[f])return!1;var h,l,u=this._events[f],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,h=new Array(c-1);l<c;l++)h[l-1]=s[l];u.fn.apply(u.context,h)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),c){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!h)for(p=1,h=new Array(c-1);p<c;p++)h[p-1]=s[p];u[l].fn.apply(u[l].context,h)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var f=0,h=[],l=s.length;f<l;f++)(s[f].fn!==t||o&&!s[f].once||r&&s[f].context!==r)&&h.push(s[f]);h.length?this._events[a]=1===h.length?h[0]:h:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}),i=f,s=f;function f(e,t,n){n=n||2;var r,o,a,i,s,f,c,p=t&&t.length,d=p?t[0]*n:e.length,v=h(e,0,d,n,!0),g=[];if(!v||v.next===v.prev)return g;if(p&&(v=function(e,t,n,r){var o,a,i,s,f,u=[];for(o=0,a=t.length;o<a;o++)i=t[o]*r,s=o<a-1?t[o+1]*r:e.length,(f=h(e,i,s,r,!1))===f.next&&(f.steiner=!0),u.push(b(f));for(u.sort(x),o=0;o<u.length;o++)y(u[o],n),n=l(n,n.next);return n}(e,t,v,n)),e.length>80*n){r=a=e[0],o=i=e[1];for(var m=n;m<d;m+=n)(s=e[m])<r&&(r=s),(f=e[m+1])<o&&(o=f),s>a&&(a=s),f>i&&(i=f);c=0!==(c=Math.max(a-r,i-o))?1/c:0}return u(v,g,n,r,o,c),g}function h(e,t,n,r,o){var a,i;if(o===R(e,t,n,r)>0)for(a=t;a<n;a+=r)i=M(a,e[a],e[a+1],i);else for(a=n-r;a>=t;a-=r)i=M(a,e[a],e[a+1],i);return i&&O(i,i.next)&&(D(i),i=i.next),i}function l(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!O(r,r.next)&&0!==A(r.prev,r,r.next))r=r.next;else{if(D(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function u(e,t,n,r,o,a,i){if(e){!i&&a&&function(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,a,i,s,f,h=1;do{for(n=e,e=null,a=null,i=0;n;){for(i++,r=n,s=0,t=0;t<h&&(s++,r=r.nextZ);t++);for(f=h;s>0||f>0&&r;)0!==s&&(0===f||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,f--),a?a.nextZ=o:e=o,o.prevZ=a,a=o;n=r}a.nextZ=null,h*=2}while(i>1)}(o)}(e,r,o,a);for(var s,f,h=e;e.prev!==e.next;)if(s=e.prev,f=e.next,a?p(e,r,o,a):c(e))t.push(s.i/n),t.push(e.i/n),t.push(f.i/n),D(e),e=f.next,h=f.next;else if((e=f)===h){i?1===i?u(e=d(l(e),t,n),t,n,r,o,a,2):2===i&&v(e,t,n,r,o,a):u(l(e),t,n,r,o,a,1);break}}}function c(e){var t=e.prev,n=e,r=e.next;if(A(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(w(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&A(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function p(e,t,n,r){var o=e.prev,a=e,i=e.next;if(A(o,a,i)>=0)return!1;for(var s=o.x<a.x?o.x<i.x?o.x:i.x:a.x<i.x?a.x:i.x,f=o.y<a.y?o.y<i.y?o.y:i.y:a.y<i.y?a.y:i.y,h=o.x>a.x?o.x>i.x?o.x:i.x:a.x>i.x?a.x:i.x,l=o.y>a.y?o.y>i.y?o.y:i.y:a.y>i.y?a.y:i.y,u=m(s,f,t,n,r),c=m(h,l,t,n,r),p=e.prevZ,d=e.nextZ;p&&p.z>=u&&d&&d.z<=c;){if(p!==e.prev&&p!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,p.x,p.y)&&A(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==e.prev&&d!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,d.x,d.y)&&A(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=u;){if(p!==e.prev&&p!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,p.x,p.y)&&A(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=c;){if(d!==e.prev&&d!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,d.x,d.y)&&A(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function d(e,t,n){var r=e;do{var o=r.prev,a=r.next.next;!O(o,a)&&_(o,r,r.next,a)&&I(o,a)&&I(a,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(a.i/n),D(r),D(r.next),r=e=a),r=r.next}while(r!==e);return l(r)}function v(e,t,n,r,o,a){var i=e;do{for(var s=i.next.next;s!==i.prev;){if(i.i!==s.i&&E(i,s)){var f=j(i,s);return i=l(i,i.next),f=l(f,f.next),u(i,t,n,r,o,a),void u(f,t,n,r,o,a)}s=s.next}i=i.next}while(i!==e)}function x(e,t){return e.x-t.x}function y(e,t){if(t=function(e,t){var n,r=t,o=e.x,a=e.y,i=-1/0;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>i){if(i=s,s===o){if(a===r.y)return r;if(a===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===i)return n;var f,h=n,l=n.x,u=n.y,c=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&w(a<u?o:i,a,l,u,a<u?i:o,a,r.x,r.y)&&(f=Math.abs(a-r.y)/(o-r.x),I(r,e)&&(f<c||f===c&&(r.x>n.x||r.x===n.x&&g(n,r)))&&(n=r,c=f)),r=r.next}while(r!==h);return n}(e,t)){var n=j(t,e);l(t,t.next),l(n,n.next)}}function g(e,t){return A(e.prev,e,t.prev)<0&&A(t.next,e,e.next)<0}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function b(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function w(e,t,n,r,o,a,i,s){return(o-i)*(t-s)-(e-i)*(a-s)>=0&&(e-i)*(r-s)-(n-i)*(t-s)>=0&&(n-i)*(a-s)-(o-i)*(r-s)>=0}function E(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&_(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(I(e,t)&&I(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&o<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(A(e.prev,e,t.prev)||A(e,t.prev,t))||O(e,t)&&A(e.prev,e,e.next)>0&&A(t.prev,t,t.next)>0)}function A(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function _(e,t,n,r){var o=k(A(e,t,n)),a=k(A(e,t,r)),i=k(A(n,r,e)),s=k(A(n,r,t));return o!==a&&i!==s||(!(0!==o||!C(e,n,t))||(!(0!==a||!C(e,r,t))||(!(0!==i||!C(n,e,r))||!(0!==s||!C(n,t,r)))))}function C(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function k(e){return e>0?1:e<0?-1:0}function I(e,t){return A(e.prev,e,e.next)<0?A(e,t,e.next)>=0&&A(e,e.prev,t)>=0:A(e,t,e.prev)<0||A(e,e.next,t)<0}function j(e,t){var n=new N(e.i,e.x,e.y),r=new N(t.i,t.x,t.y),o=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function M(e,t,n,r){var o=new N(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function D(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function N(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function R(e,t,n,r){for(var o=0,a=t,i=n-r;a<n;a+=r)o+=(e[i]-e[a])*(e[a+1]+e[i+1]),i=a;return o}f.deviation=function(e,t,n,r){var o=t&&t.length,a=o?t[0]*n:e.length,i=Math.abs(R(e,0,a,n));if(o)for(var s=0,f=t.length;s<f;s++){var h=t[s]*n,l=s<f-1?t[s+1]*n:e.length;i-=Math.abs(R(e,h,l,n))}var u=0;for(s=0;s<r.length;s+=3){var c=r[s]*n,p=r[s+1]*n,d=r[s+2]*n;u+=Math.abs((e[c]-e[d])*(e[p+1]-e[c+1])-(e[c]-e[p])*(e[d+1]-e[c+1]))}return 0===i&&0===u?0:Math.abs((u-i)/i)},f.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var a=0;a<e[o].length;a++)for(var i=0;i<t;i++)n.vertices.push(e[o][a][i]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},i.default=s;var L=o(function(e,t){!function(n){var o=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self!==i||(n=i);var s,f,h=2147483647,l=36,u=1,c=26,p=38,d=700,v=72,x=128,y="-",g=/^xn--/,m=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=l-u,A=Math.floor,O=String.fromCharCode;function _(e){throw RangeError(w[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(b,".")).split("."),t).join(".")}function I(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function j(e){return C(e,function(e){var t="";return e>65535&&(t+=O((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=O(e)}).join("")}function M(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?A(e/d):e>>1,e+=A(e/t);e>E*c>>1;r+=l)e=A(e/E);return A(r+(E+1)*e/(e+p))}function N(e){var t,n,r,o,a,i,s,f,p,d,g,m=[],b=e.length,w=0,E=x,O=v;for((n=e.lastIndexOf(y))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&_("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<b;){for(a=w,i=1,s=l;o>=b&&_("invalid-input"),((f=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:l)>=l||f>A((h-w)/i))&&_("overflow"),w+=f*i,!(f<(p=s<=O?u:s>=O+c?c:s-O));s+=l)i>A(h/(d=l-p))&&_("overflow"),i*=d;O=D(w-a,t=m.length+1,0==a),A(w/t)>h-E&&_("overflow"),E+=A(w/t),w%=t,m.splice(w++,0,E)}return j(m)}function R(e){var t,n,r,o,a,i,s,f,p,d,g,m,b,w,E,C=[];for(m=(e=I(e)).length,t=x,n=0,a=v,i=0;i<m;++i)(g=e[i])<128&&C.push(O(g));for(r=o=C.length,o&&C.push(y);r<m;){for(s=h,i=0;i<m;++i)(g=e[i])>=t&&g<s&&(s=g);for(s-t>A((h-n)/(b=r+1))&&_("overflow"),n+=(s-t)*b,t=s,i=0;i<m;++i)if((g=e[i])<t&&++n>h&&_("overflow"),g==t){for(f=n,p=l;!(f<(d=p<=a?u:p>=a+c?c:p-a));p+=l)E=f-d,w=l-d,C.push(O(M(d+E%w,0))),f=A(E/w);C.push(O(M(f,0))),a=D(n,b,r==o),n=0,++r}++n,++t}return C.join("")}if(s={version:"1.3.2",ucs2:{decode:I,encode:j},decode:N,encode:R,toASCII:function(e){return k(e,function(e){return m.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return k(e,function(e){return g.test(e)?N(e.slice(4).toLowerCase()):e})}},o&&a)if(e.exports==o)a.exports=s;else for(f in s)s.hasOwnProperty(f)&&(o[f]=s[f]);else n.punycode=s}(r)}),P={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var i=1e3;r&&"number"==typeof r.maxKeys&&(i=r.maxKeys);var s=e.length;i>0&&s>i&&(s=i);for(var f=0;f<s;++f){var h,l,u,c,p=e[f].replace(a,"%20"),d=p.indexOf(n);d>=0?(h=p.substr(0,d),l=p.substr(d+1)):(h=p,l=""),u=decodeURIComponent(h),c=decodeURIComponent(l),S(o,u)?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}return o},q=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},U=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var o=encodeURIComponent(q(r))+n;return Array.isArray(e[r])?e[r].map(function(e){return o+encodeURIComponent(q(e))}).join(t):o+encodeURIComponent(q(e[r]))}).join(t):r?encodeURIComponent(q(r))+n+encodeURIComponent(q(e)):""},Z=o(function(e,t){t.decode=t.parse=T,t.encode=t.stringify=U}),F=re,B=function(e,t){return re(e,!1,!0).resolve(t)},z=function(e){P.isString(e)&&(e=re(e));if(!(e instanceof X))return X.prototype.format.call(e);return e.format()};function X(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var J=/^([a-z0-9.+-]+:)/i,W=/:[0-9]*$/,H=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),G=["'"].concat($),Y=["%","/","?",";","#"].concat(G),K=["/","?","#"],V=/^[+a-z0-9A-Z_-]{0,63}$/,Q=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ee={javascript:!0,"javascript:":!0},te={javascript:!0,"javascript:":!0},ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function re(e,t,n){if(e&&P.isObject(e)&&e instanceof X)return e;var r=new X;return r.parse(e,t,n),r}X.prototype.parse=function(e,t,n){if(!P.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!n&&1===e.split("#").length){var s=H.exec(i);if(s)return this.path=i,this.href=i,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Z.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var f=J.exec(i);if(f){var h=(f=f[0]).toLowerCase();this.protocol=h,i=i.substr(f.length)}if(n||f||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===i.substr(0,2);!l||f&&te[f]||(i=i.substr(2),this.slashes=!0)}if(!te[f]&&(l||f&&!ne[f])){for(var u,c,p=-1,d=0;d<K.length;d++){-1!==(v=i.indexOf(K[d]))&&(-1===p||v<p)&&(p=v)}-1!==(c=-1===p?i.lastIndexOf("@"):i.lastIndexOf("@",p))&&(u=i.slice(0,c),i=i.slice(c+1),this.auth=decodeURIComponent(u)),p=-1;for(d=0;d<Y.length;d++){var v;-1!==(v=i.indexOf(Y[d]))&&(-1===p||v<p)&&(p=v)}-1===p&&(p=i.length),this.host=i.slice(0,p),i=i.slice(p),this.parseHost(),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x)for(var y=this.hostname.split(/\./),g=(d=0,y.length);d<g;d++){var m=y[d];if(m&&!m.match(V)){for(var b="",w=0,E=m.length;w<E;w++)m.charCodeAt(w)>127?b+="x":b+=m[w];if(!b.match(V)){var A=y.slice(0,d),O=y.slice(d+1),_=m.match(Q);_&&(A.push(_[1]),O.unshift(_[2])),O.length&&(i="/"+O.join(".")+i),this.hostname=A.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=L.toASCII(this.hostname));var C=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+C,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!ee[h])for(d=0,g=G.length;d<g;d++){var I=G[d];if(-1!==i.indexOf(I)){var j=encodeURIComponent(I);j===I&&(j=escape(I)),i=i.split(I).join(j)}}var M=i.indexOf("#");-1!==M&&(this.hash=i.substr(M),i=i.slice(0,M));var D=i.indexOf("?");if(-1!==D?(this.search=i.substr(D),this.query=i.substr(D+1),t&&(this.query=Z.parse(this.query)),i=i.slice(0,D)):t&&(this.search="",this.query={}),i&&(this.pathname=i),ne[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){C=this.pathname||"";var N=this.search||"";this.path=C+N}return this.href=this.format(),this},X.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&P.isObject(this.query)&&Object.keys(this.query).length&&(a=Z.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||ne[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(i=i.replace("#","%23"))+r},X.prototype.resolve=function(e){return this.resolveObject(re(e,!1,!0)).format()},X.prototype.resolveObject=function(e){if(P.isString(e)){var t=new X;t.parse(e,!1,!0),e=t}for(var n=new X,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),s=0;s<i.length;s++){var f=i[s];"protocol"!==f&&(n[f]=e[f])}return ne[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!ne[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var u=h[l];n[u]=e[u]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||te[e.protocol])n.pathname=e.pathname;else{for(var c=(e.pathname||"").split("/");c.length&&!(e.host=c.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),n.pathname=c.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",d=n.search||"";n.path=p+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=x||v||n.host&&e.pathname,g=y,m=n.pathname&&n.pathname.split("/")||[],b=(c=e.pathname&&e.pathname.split("/")||[],n.protocol&&!ne[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===m[0]?m[0]=n.host:m.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===c[0]?c[0]=e.host:c.unshift(e.host)),e.host=null),y=y&&(""===c[0]||""===m[0])),x)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,m=c;else if(c.length)m||(m=[]),m.pop(),m=m.concat(c),n.search=e.search,n.query=e.query;else if(!P.isNullOrUndefined(e.search)){if(b)n.hostname=n.host=m.shift(),(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift());return n.search=e.search,n.query=e.query,P.isNull(n.pathname)&&P.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!m.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=m.slice(-1)[0],E=(n.host||e.host||m.length>1)&&("."===w||".."===w)||""===w,A=0,O=m.length;O>=0;O--)"."===(w=m[O])?m.splice(O,1):".."===w?(m.splice(O,1),A++):A&&(m.splice(O,1),A--);if(!y&&!g)for(;A--;A)m.unshift("..");!y||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),E&&"/"!==m.join("/").substr(-1)&&m.push("");var _,C=""===m[0]||m[0]&&"/"===m[0].charAt(0);b&&(n.hostname=n.host=C?"":m.length?m.shift():"",(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift()));return(y=y||n.host&&m.length)&&!C&&m.unshift(""),m.length?n.pathname=m.join("/"):(n.pathname=null,n.path=null),P.isNull(n.pathname)&&P.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},X.prototype.parseHost=function(){var e=this.host,t=W.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var oe={parse:F,format:z,resolve:B};t.settings.RETINA_PREFIX=/@([0-9\.]+)x/,t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var ae,ie=!1,se="6.1.0-rc.5";var fe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var he=function(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[n.BLEND_MODES.NORMAL_NPM]=n.BLEND_MODES.NORMAL,e[n.BLEND_MODES.ADD_NPM]=n.BLEND_MODES.ADD,e[n.BLEND_MODES.SCREEN_NPM]=n.BLEND_MODES.SCREEN,t[n.BLEND_MODES.NORMAL]=n.BLEND_MODES.NORMAL_NPM,t[n.BLEND_MODES.ADD]=n.BLEND_MODES.ADD_NPM,t[n.BLEND_MODES.SCREEN]=n.BLEND_MODES.SCREEN_NPM;var o=[];return o.push(t),o.push(e),o}();function le(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var ue={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var ce=0;var pe={};var de=Object.create(null),ve=Object.create(null);var xe=function(){function e(e,n,r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||t.settings.RESOLUTION,this.resize(e,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,t){this.canvas.width=e*this.resolution,this.canvas.height=t*this.resolution},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=e},enumerable:!1,configurable:!0}),e}();var ye,ge=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;return Object.defineProperty(e,"isMobile",{enumerable:!0,get:function(){return t.isMobile}}),e.BaseTextureCache=ve,e.CanvasRenderTarget=xe,e.DATA_URI=ge,e.EventEmitter=a,e.ProgramCache={},e.TextureCache=de,e.clearTextureCache=function(){var e;for(e in de)delete de[e];for(e in ve)delete ve[e]},e.correctBlendMode=function(e,t){return he[t?1:0][e]},e.createIndicesForQuads=function(e,t){void 0===t&&(t=null);var n=6*e;if((t=t||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+n);for(var r=0,o=0;r<n;r+=6,o+=4)t[r+0]=o+0,t[r+1]=o+1,t[r+2]=o+2,t[r+3]=o+0,t[r+4]=o+2,t[r+5]=o+3;return t},e.decomposeDataUri=function(e){var t=ge.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}},e.deprecation=function(e,t,n){if(void 0===n&&(n=3),!pe[t]){var r=(new Error).stack;void 0===r?console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e):(r=r.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+"\nDeprecated since v"+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e),console.warn(r))),pe[t]=!0}},e.destroyTextureCache=function(){var e;for(e in de)de[e].destroy();for(e in ve)ve[e].destroy()},e.determineCrossOrigin=function(e,t){if(void 0===t&&(t=self.location),0===e.indexOf("data:"))return"";t=t||self.location,ye||(ye=document.createElement("a")),ye.href=e;var n=oe.parse(ye.href),r=!n.port&&""===t.port||n.port===t.port;return n.hostname===t.hostname&&r&&n.protocol===t.protocol?"":"anonymous"},e.earcut=i,e.getBufferType=le,e.getResolutionOfUrl=function(e,n){var r=t.settings.RETINA_PREFIX.exec(e);return r?parseFloat(r[1]):void 0!==n?n:1},e.hex2rgb=function(e,t){return void 0===t&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},e.hex2string=function(e){var t=e.toString(16);return"#"+(t="000000".substr(0,6-t.length)+t)},e.interleaveTypedArrays=function(e,t){for(var n=0,r=0,o={},a=0;a<e.length;a++)r+=t[a],n+=e[a].length;var i=new ArrayBuffer(4*n),s=null,f=0;for(a=0;a<e.length;a++){var h=t[a],l=e[a],u=le(l);o[u]||(o[u]=new ue[u](i)),s=o[u];for(var c=0;c<l.length;c++)s[(c/h|0)*r+f+c%h]=l[c];f+=h}return new Float32Array(i)},e.isPow2=function(e){return!(e&e-1||!e)},e.isWebGLSupported=function(){return void 0===ae&&(ae=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var n=document.createElement("canvas"),r=n.getContext("webgl",e)||n.getContext("experimental-webgl",e),o=!(!r||!r.getContextAttributes().stencil);if(r){var a=r.getExtension("WEBGL_lose_context");a&&a.loseContext()}return r=null,o}catch(e){return!1}}()),ae},e.log2=function(e){var t=(e>65535?1:0)<<4,n=((e>>>=t)>255?1:0)<<3;return t|=n,t|=n=((e>>>=n)>15?1:0)<<2,(t|=n=((e>>>=n)>3?1:0)<<1)|(e>>>=n)>>1},e.nextPow2=function(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,1+(e|=e>>>16)},e.premultiplyBlendMode=he,e.premultiplyRgba=function(e,t,n,r){return n=n||new Float32Array(4),r||void 0===r?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=t,n},e.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var n=e>>16&255,r=e>>8&255,o=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(o=o*t+.5|0)},e.premultiplyTintToRgba=function(e,t,n,r){return(n=n||new Float32Array(4))[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(255&e)/255,(r||void 0===r)&&(n[0]*=t,n[1]*=t,n[2]*=t),n[3]=t,n},e.removeItems=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var a=o-(n=t+n>o?o-t:n);for(r=t;r<a;++r)e[r]=e[r+n];e.length=a}},e.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},e.sayHello=function(e){var t;if(!ie){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var n=["\n %c %c %c PixiJS "+se+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=self.console).log.apply(t,n)}else self.console&&self.console.log("PixiJS "+se+" - "+e+" - http://www.pixijs.com/");ie=!0}},e.sign=function(e){return 0===e?0:e<0?-1:1},e.skipHello=function(){ie=!0},e.string2hex=function(e){return"string"==typeof e&&"#"===(e=fe[e.toLowerCase()]||e)[0]&&(e=e.substr(1)),parseInt(e,16)},e.trimCanvas=function(e){var t,n,r,o=e.width,a=e.height,i=e.getContext("2d"),s=i.getImageData(0,0,o,a).data,f=s.length,h={top:null,left:null,right:null,bottom:null},l=null;for(t=0;t<f;t+=4)0!==s[t+3]&&(n=t/4%o,r=~~(t/4/o),null===h.top&&(h.top=r),null===h.left?h.left=n:n<h.left&&(h.left=n),null===h.right?h.right=n+1:h.right<n&&(h.right=n+1),null===h.bottom?h.bottom=r:h.bottom<r&&(h.bottom=r));return null!==h.top&&(o=h.right-h.left,a=h.bottom-h.top+1,l=i.getImageData(h.left,h.top,o,a)),{height:a,width:o,data:l}},e.uid=function(){return++ce},e.url=oe,e}({},PIXI,PIXI);Object.assign(this.PIXI.utils,_pixi_utils);
this.PIXI=this.PIXI||{},this.PIXI.utils=this.PIXI.utils||{};var _pixi_utils=function(e,t,n){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var a=o(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,a||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],s]:e._events[f].push(s):(e._events[f]=s,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,i=new Array(a);o<a;o++)i[o]=r[o].fn;return i},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,a,i){var s=arguments,f=n?n+e:e;if(!this._events[f])return!1;var h,l,u=this._events[f],c=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(l=1,h=new Array(c-1);l<c;l++)h[l-1]=s[l];u.fn.apply(u.context,h)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),c){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,o);break;default:if(!h)for(p=1,h=new Array(c-1);p<c;p++)h[p-1]=s[p];u[l].fn.apply(u[l].context,h)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return i(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||i(this,a);else{for(var f=0,h=[],l=s.length;f<l;f++)(s[f].fn!==t||o&&!s[f].once||r&&s[f].context!==r)&&h.push(s[f]);h.length?this._events[a]=1===h.length?h[0]:h:i(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}),i=f,s=f;function f(e,t,n){n=n||2;var r,o,a,i,s,f,c,p=t&&t.length,d=p?t[0]*n:e.length,v=h(e,0,d,n,!0),g=[];if(!v||v.next===v.prev)return g;if(p&&(v=function(e,t,n,r){var o,a,i,s,f,u=[];for(o=0,a=t.length;o<a;o++)i=t[o]*r,s=o<a-1?t[o+1]*r:e.length,(f=h(e,i,s,r,!1))===f.next&&(f.steiner=!0),u.push(b(f));for(u.sort(x),o=0;o<u.length;o++)y(u[o],n),n=l(n,n.next);return n}(e,t,v,n)),e.length>80*n){r=a=e[0],o=i=e[1];for(var m=n;m<d;m+=n)(s=e[m])<r&&(r=s),(f=e[m+1])<o&&(o=f),s>a&&(a=s),f>i&&(i=f);c=0!==(c=Math.max(a-r,i-o))?1/c:0}return u(v,g,n,r,o,c),g}function h(e,t,n,r,o){var a,i;if(o===R(e,t,n,r)>0)for(a=t;a<n;a+=r)i=j(a,e[a],e[a+1],i);else for(a=n-r;a>=t;a-=r)i=j(a,e[a],e[a+1],i);return i&&O(i,i.next)&&(D(i),i=i.next),i}function l(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!O(r,r.next)&&0!==A(r.prev,r,r.next))r=r.next;else{if(D(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function u(e,t,n,r,o,a,i){if(e){!i&&a&&function(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,a,i,s,f,h=1;do{for(n=e,e=null,a=null,i=0;n;){for(i++,r=n,s=0,t=0;t<h&&(s++,r=r.nextZ);t++);for(f=h;s>0||f>0&&r;)0!==s&&(0===f||!r||n.z<=r.z)?(o=n,n=n.nextZ,s--):(o=r,r=r.nextZ,f--),a?a.nextZ=o:e=o,o.prevZ=a,a=o;n=r}a.nextZ=null,h*=2}while(i>1)}(o)}(e,r,o,a);for(var s,f,h=e;e.prev!==e.next;)if(s=e.prev,f=e.next,a?p(e,r,o,a):c(e))t.push(s.i/n),t.push(e.i/n),t.push(f.i/n),D(e),e=f.next,h=f.next;else if((e=f)===h){i?1===i?u(e=d(l(e),t,n),t,n,r,o,a,2):2===i&&v(e,t,n,r,o,a):u(l(e),t,n,r,o,a,1);break}}}function c(e){var t=e.prev,n=e,r=e.next;if(A(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(w(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&A(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function p(e,t,n,r){var o=e.prev,a=e,i=e.next;if(A(o,a,i)>=0)return!1;for(var s=o.x<a.x?o.x<i.x?o.x:i.x:a.x<i.x?a.x:i.x,f=o.y<a.y?o.y<i.y?o.y:i.y:a.y<i.y?a.y:i.y,h=o.x>a.x?o.x>i.x?o.x:i.x:a.x>i.x?a.x:i.x,l=o.y>a.y?o.y>i.y?o.y:i.y:a.y>i.y?a.y:i.y,u=m(s,f,t,n,r),c=m(h,l,t,n,r),p=e.prevZ,d=e.nextZ;p&&p.z>=u&&d&&d.z<=c;){if(p!==e.prev&&p!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,p.x,p.y)&&A(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==e.prev&&d!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,d.x,d.y)&&A(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=u;){if(p!==e.prev&&p!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,p.x,p.y)&&A(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=c;){if(d!==e.prev&&d!==e.next&&w(o.x,o.y,a.x,a.y,i.x,i.y,d.x,d.y)&&A(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function d(e,t,n){var r=e;do{var o=r.prev,a=r.next.next;!O(o,a)&&_(o,r,r.next,a)&&I(o,a)&&I(a,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(a.i/n),D(r),D(r.next),r=e=a),r=r.next}while(r!==e);return l(r)}function v(e,t,n,r,o,a){var i=e;do{for(var s=i.next.next;s!==i.prev;){if(i.i!==s.i&&E(i,s)){var f=M(i,s);return i=l(i,i.next),f=l(f,f.next),u(i,t,n,r,o,a),void u(f,t,n,r,o,a)}s=s.next}i=i.next}while(i!==e)}function x(e,t){return e.x-t.x}function y(e,t){if(t=function(e,t){var n,r=t,o=e.x,a=e.y,i=-1/0;do{if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){var s=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=o&&s>i){if(i=s,s===o){if(a===r.y)return r;if(a===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===i)return n;var f,h=n,l=n.x,u=n.y,c=1/0;r=n;do{o>=r.x&&r.x>=l&&o!==r.x&&w(a<u?o:i,a,l,u,a<u?i:o,a,r.x,r.y)&&(f=Math.abs(a-r.y)/(o-r.x),I(r,e)&&(f<c||f===c&&(r.x>n.x||r.x===n.x&&g(n,r)))&&(n=r,c=f)),r=r.next}while(r!==h);return n}(e,t)){var n=M(t,e);l(t,t.next),l(n,n.next)}}function g(e,t){return A(e.prev,e,t.prev)<0&&A(t.next,e,e.next)<0}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function b(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function w(e,t,n,r,o,a,i,s){return(o-i)*(t-s)-(e-i)*(a-s)>=0&&(e-i)*(r-s)-(n-i)*(t-s)>=0&&(n-i)*(a-s)-(o-i)*(r-s)>=0}function E(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&_(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(I(e,t)&&I(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&o<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(A(e.prev,e,t.prev)||A(e,t.prev,t))||O(e,t)&&A(e.prev,e,e.next)>0&&A(t.prev,t,t.next)>0)}function A(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function O(e,t){return e.x===t.x&&e.y===t.y}function _(e,t,n,r){var o=k(A(e,t,n)),a=k(A(e,t,r)),i=k(A(n,r,e)),s=k(A(n,r,t));return o!==a&&i!==s||(!(0!==o||!C(e,n,t))||(!(0!==a||!C(e,r,t))||(!(0!==i||!C(n,e,r))||!(0!==s||!C(n,t,r)))))}function C(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function k(e){return e>0?1:e<0?-1:0}function I(e,t){return A(e.prev,e,e.next)<0?A(e,t,e.next)>=0&&A(e,e.prev,t)>=0:A(e,t,e.prev)<0||A(e,e.next,t)<0}function M(e,t){var n=new N(e.i,e.x,e.y),r=new N(t.i,t.x,t.y),o=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,a.next=r,r.prev=a,r}function j(e,t,n,r){var o=new N(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function D(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function N(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function R(e,t,n,r){for(var o=0,a=t,i=n-r;a<n;a+=r)o+=(e[i]-e[a])*(e[a+1]+e[i+1]),i=a;return o}f.deviation=function(e,t,n,r){var o=t&&t.length,a=o?t[0]*n:e.length,i=Math.abs(R(e,0,a,n));if(o)for(var s=0,f=t.length;s<f;s++){var h=t[s]*n,l=s<f-1?t[s+1]*n:e.length;i-=Math.abs(R(e,h,l,n))}var u=0;for(s=0;s<r.length;s+=3){var c=r[s]*n,p=r[s+1]*n,d=r[s+2]*n;u+=Math.abs((e[c]-e[d])*(e[p+1]-e[c+1])-(e[c]-e[p])*(e[d+1]-e[c+1]))}return 0===i&&0===u?0:Math.abs((u-i)/i)},f.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var a=0;a<e[o].length;a++)for(var i=0;i<t;i++)n.vertices.push(e[o][a][i]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n},i.default=s;var L=o(function(e,t){!function(n){var o=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,i="object"==typeof r&&r;i.global!==i&&i.window!==i&&i.self!==i||(n=i);var s,f,h=2147483647,l=36,u=1,c=26,p=38,d=700,v=72,x=128,y="-",g=/^xn--/,m=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=l-u,A=Math.floor,O=String.fromCharCode;function _(e){throw RangeError(w[e])}function C(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(b,".")).split("."),t).join(".")}function I(e){for(var t,n,r=[],o=0,a=e.length;o<a;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<a?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function M(e){return C(e,function(e){var t="";return e>65535&&(t+=O((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=O(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,n){var r=0;for(e=n?A(e/d):e>>1,e+=A(e/t);e>E*c>>1;r+=l)e=A(e/E);return A(r+(E+1)*e/(e+p))}function N(e){var t,n,r,o,a,i,s,f,p,d,g,m=[],b=e.length,w=0,E=x,O=v;for((n=e.lastIndexOf(y))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&_("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<b;){for(a=w,i=1,s=l;o>=b&&_("invalid-input"),((f=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:l)>=l||f>A((h-w)/i))&&_("overflow"),w+=f*i,!(f<(p=s<=O?u:s>=O+c?c:s-O));s+=l)i>A(h/(d=l-p))&&_("overflow"),i*=d;O=D(w-a,t=m.length+1,0==a),A(w/t)>h-E&&_("overflow"),E+=A(w/t),w%=t,m.splice(w++,0,E)}return M(m)}function R(e){var t,n,r,o,a,i,s,f,p,d,g,m,b,w,E,C=[];for(m=(e=I(e)).length,t=x,n=0,a=v,i=0;i<m;++i)(g=e[i])<128&&C.push(O(g));for(r=o=C.length,o&&C.push(y);r<m;){for(s=h,i=0;i<m;++i)(g=e[i])>=t&&g<s&&(s=g);for(s-t>A((h-n)/(b=r+1))&&_("overflow"),n+=(s-t)*b,t=s,i=0;i<m;++i)if((g=e[i])<t&&++n>h&&_("overflow"),g==t){for(f=n,p=l;!(f<(d=p<=a?u:p>=a+c?c:p-a));p+=l)E=f-d,w=l-d,C.push(O(j(d+E%w,0))),f=A(E/w);C.push(O(j(f,0))),a=D(n,b,r==o),n=0,++r}++n,++t}return C.join("")}if(s={version:"1.3.2",ucs2:{decode:I,encode:M},decode:N,encode:R,toASCII:function(e){return k(e,function(e){return m.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return k(e,function(e){return g.test(e)?N(e.slice(4).toLowerCase()):e})}},o&&a)if(e.exports==o)a.exports=s;else for(f in s)s.hasOwnProperty(f)&&(o[f]=s[f]);else n.punycode=s}(r)}),P={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}};function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var i=1e3;r&&"number"==typeof r.maxKeys&&(i=r.maxKeys);var s=e.length;i>0&&s>i&&(s=i);for(var f=0;f<s;++f){var h,l,u,c,p=e[f].replace(a,"%20"),d=p.indexOf(n);d>=0?(h=p.substr(0,d),l=p.substr(d+1)):(h=p,l=""),u=decodeURIComponent(h),c=decodeURIComponent(l),S(o,u)?Array.isArray(o[u])?o[u].push(c):o[u]=[o[u],c]:o[u]=c}return o},q=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},U=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(r){var o=encodeURIComponent(q(r))+n;return Array.isArray(e[r])?e[r].map(function(e){return o+encodeURIComponent(q(e))}).join(t):o+encodeURIComponent(q(e[r]))}).join(t):r?encodeURIComponent(q(r))+n+encodeURIComponent(q(e)):""},Z=o(function(e,t){t.decode=t.parse=T,t.encode=t.stringify=U}),F=re,B=function(e,t){return re(e,!1,!0).resolve(t)},z=function(e){P.isString(e)&&(e=re(e));if(!(e instanceof X))return X.prototype.format.call(e);return e.format()};function X(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var J=/^([a-z0-9.+-]+:)/i,W=/:[0-9]*$/,H=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),G=["'"].concat($),Y=["%","/","?",";","#"].concat(G),K=["/","?","#"],V=/^[+a-z0-9A-Z_-]{0,63}$/,Q=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ee={javascript:!0,"javascript:":!0},te={javascript:!0,"javascript:":!0},ne={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function re(e,t,n){if(e&&P.isObject(e)&&e instanceof X)return e;var r=new X;return r.parse(e,t,n),r}X.prototype.parse=function(e,t,n){if(!P.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r<e.indexOf("#")?"?":"#",a=e.split(o);a[0]=a[0].replace(/\\/g,"/");var i=e=a.join(o);if(i=i.trim(),!n&&1===e.split("#").length){var s=H.exec(i);if(s)return this.path=i,this.href=i,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Z.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var f=J.exec(i);if(f){var h=(f=f[0]).toLowerCase();this.protocol=h,i=i.substr(f.length)}if(n||f||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===i.substr(0,2);!l||f&&te[f]||(i=i.substr(2),this.slashes=!0)}if(!te[f]&&(l||f&&!ne[f])){for(var u,c,p=-1,d=0;d<K.length;d++){-1!==(v=i.indexOf(K[d]))&&(-1===p||v<p)&&(p=v)}-1!==(c=-1===p?i.lastIndexOf("@"):i.lastIndexOf("@",p))&&(u=i.slice(0,c),i=i.slice(c+1),this.auth=decodeURIComponent(u)),p=-1;for(d=0;d<Y.length;d++){var v;-1!==(v=i.indexOf(Y[d]))&&(-1===p||v<p)&&(p=v)}-1===p&&(p=i.length),this.host=i.slice(0,p),i=i.slice(p),this.parseHost(),this.hostname=this.hostname||"";var x="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!x)for(var y=this.hostname.split(/\./),g=(d=0,y.length);d<g;d++){var m=y[d];if(m&&!m.match(V)){for(var b="",w=0,E=m.length;w<E;w++)m.charCodeAt(w)>127?b+="x":b+=m[w];if(!b.match(V)){var A=y.slice(0,d),O=y.slice(d+1),_=m.match(Q);_&&(A.push(_[1]),O.unshift(_[2])),O.length&&(i="/"+O.join(".")+i),this.hostname=A.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=L.toASCII(this.hostname));var C=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+C,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!ee[h])for(d=0,g=G.length;d<g;d++){var I=G[d];if(-1!==i.indexOf(I)){var M=encodeURIComponent(I);M===I&&(M=escape(I)),i=i.split(I).join(M)}}var j=i.indexOf("#");-1!==j&&(this.hash=i.substr(j),i=i.slice(0,j));var D=i.indexOf("?");if(-1!==D?(this.search=i.substr(D),this.query=i.substr(D+1),t&&(this.query=Z.parse(this.query)),i=i.slice(0,D)):t&&(this.search="",this.query={}),i&&(this.pathname=i),ne[h]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){C=this.pathname||"";var N=this.search||"";this.path=C+N}return this.href=this.format(),this},X.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&P.isObject(this.query)&&Object.keys(this.query).length&&(a=Z.stringify(this.query));var i=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||ne[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),i&&"?"!==i.charAt(0)&&(i="?"+i),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(i=i.replace("#","%23"))+r},X.prototype.resolve=function(e){return this.resolveObject(re(e,!1,!0)).format()},X.prototype.resolveObject=function(e){if(P.isString(e)){var t=new X;t.parse(e,!1,!0),e=t}for(var n=new X,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var i=Object.keys(e),s=0;s<i.length;s++){var f=i[s];"protocol"!==f&&(n[f]=e[f])}return ne[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!ne[e.protocol]){for(var h=Object.keys(e),l=0;l<h.length;l++){var u=h[l];n[u]=e[u]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||te[e.protocol])n.pathname=e.pathname;else{for(var c=(e.pathname||"").split("/");c.length&&!(e.host=c.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),n.pathname=c.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",d=n.search||"";n.path=p+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=x||v||n.host&&e.pathname,g=y,m=n.pathname&&n.pathname.split("/")||[],b=(c=e.pathname&&e.pathname.split("/")||[],n.protocol&&!ne[n.protocol]);if(b&&(n.hostname="",n.port=null,n.host&&(""===m[0]?m[0]=n.host:m.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===c[0]?c[0]=e.host:c.unshift(e.host)),e.host=null),y=y&&(""===c[0]||""===m[0])),x)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,m=c;else if(c.length)m||(m=[]),m.pop(),m=m.concat(c),n.search=e.search,n.query=e.query;else if(!P.isNullOrUndefined(e.search)){if(b)n.hostname=n.host=m.shift(),(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift());return n.search=e.search,n.query=e.query,P.isNull(n.pathname)&&P.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!m.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=m.slice(-1)[0],E=(n.host||e.host||m.length>1)&&("."===w||".."===w)||""===w,A=0,O=m.length;O>=0;O--)"."===(w=m[O])?m.splice(O,1):".."===w?(m.splice(O,1),A++):A&&(m.splice(O,1),A--);if(!y&&!g)for(;A--;A)m.unshift("..");!y||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),E&&"/"!==m.join("/").substr(-1)&&m.push("");var _,C=""===m[0]||m[0]&&"/"===m[0].charAt(0);b&&(n.hostname=n.host=C?"":m.length?m.shift():"",(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift()));return(y=y||n.host&&m.length)&&!C&&m.unshift(""),m.length?n.pathname=m.join("/"):(n.pathname=null,n.path=null),P.isNull(n.pathname)&&P.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},X.prototype.parseHost=function(){var e=this.host,t=W.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var oe={parse:F,format:z,resolve:B};t.settings.RETINA_PREFIX=/@([0-9\.]+)x/,t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var ae,ie=!1,se="6.1.0-rc.6";var fe={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var he=function(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[n.BLEND_MODES.NORMAL_NPM]=n.BLEND_MODES.NORMAL,e[n.BLEND_MODES.ADD_NPM]=n.BLEND_MODES.ADD,e[n.BLEND_MODES.SCREEN_NPM]=n.BLEND_MODES.SCREEN,t[n.BLEND_MODES.NORMAL]=n.BLEND_MODES.NORMAL_NPM,t[n.BLEND_MODES.ADD]=n.BLEND_MODES.ADD_NPM,t[n.BLEND_MODES.SCREEN]=n.BLEND_MODES.SCREEN_NPM;var o=[];return o.push(t),o.push(e),o}();function le(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var ue={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};var ce=0;var pe={};var de=Object.create(null),ve=Object.create(null);var xe=function(){function e(e,n,r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||t.settings.RESOLUTION,this.resize(e,n)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,t){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(t*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),e}();var ye,ge=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;return Object.defineProperty(e,"isMobile",{enumerable:!0,get:function(){return t.isMobile}}),e.BaseTextureCache=ve,e.CanvasRenderTarget=xe,e.DATA_URI=ge,e.EventEmitter=a,e.ProgramCache={},e.TextureCache=de,e.clearTextureCache=function(){var e;for(e in de)delete de[e];for(e in ve)delete ve[e]},e.correctBlendMode=function(e,t){return he[t?1:0][e]},e.createIndicesForQuads=function(e,t){void 0===t&&(t=null);var n=6*e;if((t=t||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+t.length+" and expected "+n);for(var r=0,o=0;r<n;r+=6,o+=4)t[r+0]=o+0,t[r+1]=o+1,t[r+2]=o+2,t[r+3]=o+0,t[r+4]=o+2,t[r+5]=o+3;return t},e.decomposeDataUri=function(e){var t=ge.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]}},e.deprecation=function(e,t,n){if(void 0===n&&(n=3),!pe[t]){var r=(new Error).stack;void 0===r?console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e):(r=r.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",t+"\nDeprecated since v"+e),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",t+"\nDeprecated since v"+e),console.warn(r))),pe[t]=!0}},e.destroyTextureCache=function(){var e;for(e in de)de[e].destroy();for(e in ve)ve[e].destroy()},e.determineCrossOrigin=function(e,t){if(void 0===t&&(t=self.location),0===e.indexOf("data:"))return"";t=t||self.location,ye||(ye=document.createElement("a")),ye.href=e;var n=oe.parse(ye.href),r=!n.port&&""===t.port||n.port===t.port;return n.hostname===t.hostname&&r&&n.protocol===t.protocol?"":"anonymous"},e.earcut=i,e.getBufferType=le,e.getResolutionOfUrl=function(e,n){var r=t.settings.RETINA_PREFIX.exec(e);return r?parseFloat(r[1]):void 0!==n?n:1},e.hex2rgb=function(e,t){return void 0===t&&(t=[]),t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},e.hex2string=function(e){var t=e.toString(16);return"#"+(t="000000".substr(0,6-t.length)+t)},e.interleaveTypedArrays=function(e,t){for(var n=0,r=0,o={},a=0;a<e.length;a++)r+=t[a],n+=e[a].length;var i=new ArrayBuffer(4*n),s=null,f=0;for(a=0;a<e.length;a++){var h=t[a],l=e[a],u=le(l);o[u]||(o[u]=new ue[u](i)),s=o[u];for(var c=0;c<l.length;c++)s[(c/h|0)*r+f+c%h]=l[c];f+=h}return new Float32Array(i)},e.isPow2=function(e){return!(e&e-1||!e)},e.isWebGLSupported=function(){return void 0===ae&&(ae=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:t.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var n=document.createElement("canvas"),r=n.getContext("webgl",e)||n.getContext("experimental-webgl",e),o=!(!r||!r.getContextAttributes().stencil);if(r){var a=r.getExtension("WEBGL_lose_context");a&&a.loseContext()}return r=null,o}catch(e){return!1}}()),ae},e.log2=function(e){var t=(e>65535?1:0)<<4,n=((e>>>=t)>255?1:0)<<3;return t|=n,t|=n=((e>>>=n)>15?1:0)<<2,(t|=n=((e>>>=n)>3?1:0)<<1)|(e>>>=n)>>1},e.nextPow2=function(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,1+(e|=e>>>16)},e.premultiplyBlendMode=he,e.premultiplyRgba=function(e,t,n,r){return n=n||new Float32Array(4),r||void 0===r?(n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t):(n[0]=e[0],n[1]=e[1],n[2]=e[2]),n[3]=t,n},e.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var n=e>>16&255,r=e>>8&255,o=255&e;return(255*t<<24)+((n=n*t+.5|0)<<16)+((r=r*t+.5|0)<<8)+(o=o*t+.5|0)},e.premultiplyTintToRgba=function(e,t,n,r){return(n=n||new Float32Array(4))[0]=(e>>16&255)/255,n[1]=(e>>8&255)/255,n[2]=(255&e)/255,(r||void 0===r)&&(n[0]*=t,n[1]*=t,n[2]*=t),n[3]=t,n},e.removeItems=function(e,t,n){var r,o=e.length;if(!(t>=o||0===n)){var a=o-(n=t+n>o?o-t:n);for(r=t;r<a;++r)e[r]=e[r+n];e.length=a}},e.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},e.sayHello=function(e){var t;if(!ie){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var n=["\n %c %c %c PixiJS "+se+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=self.console).log.apply(t,n)}else self.console&&self.console.log("PixiJS "+se+" - "+e+" - http://www.pixijs.com/");ie=!0}},e.sign=function(e){return 0===e?0:e<0?-1:1},e.skipHello=function(){ie=!0},e.string2hex=function(e){return"string"==typeof e&&"#"===(e=fe[e.toLowerCase()]||e)[0]&&(e=e.substr(1)),parseInt(e,16)},e.trimCanvas=function(e){var t,n,r,o=e.width,a=e.height,i=e.getContext("2d"),s=i.getImageData(0,0,o,a).data,f=s.length,h={top:null,left:null,right:null,bottom:null},l=null;for(t=0;t<f;t+=4)0!==s[t+3]&&(n=t/4%o,r=~~(t/4/o),null===h.top&&(h.top=r),null===h.left?h.left=n:n<h.left&&(h.left=n),null===h.right?h.right=n+1:h.right<n&&(h.right=n+1),null===h.bottom?h.bottom=r:h.bottom<r&&(h.bottom=r));return null!==h.top&&(o=h.right-h.left,a=h.bottom-h.top+1,l=i.getImageData(h.left,h.top,o,a)),{height:a,width:o,data:l}},e.uid=function(){return++ce},e.url=oe,e}({},PIXI,PIXI);Object.assign(this.PIXI.utils,_pixi_utils);
//# sourceMappingURL=utils.min.js.map
/*!
* @pixi/utils - v6.1.0-rc.5
* Compiled Mon, 19 Jul 2021 20:32:18 UTC
* @pixi/utils - v6.1.0-rc.6
* Compiled Fri, 23 Jul 2021 22:53:45 UTC
*

@@ -72,3 +72,3 @@ * @pixi/utils is licensed under the MIT License.

var saidHello = false;
var VERSION = '6.1.0-rc.5';
var VERSION = '6.1.0-rc.6';
/**

@@ -969,8 +969,8 @@ * Skips the hello message of renderers that are created after this is run.

*
* @param width - the new width of the canvas
* @param height - the new height of the canvas
* @param desiredWidth - the desired width of the canvas
* @param desiredHeight - the desired height of the canvas
*/
CanvasRenderTarget.prototype.resize = function (width, height) {
this.canvas.width = width * this.resolution;
this.canvas.height = height * this.resolution;
CanvasRenderTarget.prototype.resize = function (desiredWidth, desiredHeight) {
this.canvas.width = Math.round(desiredWidth * this.resolution);
this.canvas.height = Math.round(desiredHeight * this.resolution);
};

@@ -992,3 +992,3 @@ /** Destroys this canvas. */

set: function (val) {
this.canvas.width = val;
this.canvas.width = Math.round(val);
},

@@ -1008,3 +1008,3 @@ enumerable: false,

set: function (val) {
this.canvas.height = val;
this.canvas.height = Math.round(val);
},

@@ -1011,0 +1011,0 @@ enumerable: false,

/*!
* @pixi/utils - v6.1.0-rc.5
* Compiled Mon, 19 Jul 2021 20:32:18 UTC
* @pixi/utils - v6.1.0-rc.6
* Compiled Fri, 23 Jul 2021 22:53:45 UTC
*

@@ -8,3 +8,3 @@ * @pixi/utils is licensed under the MIT License.

*/
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var settings=require("@pixi/settings"),eventemitter3=_interopDefault(require("eventemitter3")),earcut=_interopDefault(require("earcut")),url$1=require("url"),constants=require("@pixi/constants"),url={parse:url$1.parse,format:url$1.format,resolve:url$1.resolve};settings.settings.RETINA_PREFIX=/@([0-9\.]+)x/,settings.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var supported,saidHello=!1,VERSION="6.1.0-rc.5";function skipHello(){saidHello=!0}function sayHello(e){var r;if(!saidHello){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+VERSION+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(r=self.console).log.apply(r,t)}else self.console&&self.console.log("PixiJS "+VERSION+" - "+e+" - http://www.pixijs.com/");saidHello=!0}}function isWebGLSupported(){return void 0===supported&&(supported=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:settings.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var r=document.createElement("canvas"),t=r.getContext("webgl",e)||r.getContext("experimental-webgl",e),a=!(!t||!t.getContextAttributes().stencil);if(t){var n=t.getExtension("WEBGL_lose_context");n&&n.loseContext()}return t=null,a}catch(e){return!1}}()),supported}var aliceblue="#f0f8ff",antiquewhite="#faebd7",aqua="#00ffff",aquamarine="#7fffd4",azure="#f0ffff",beige="#f5f5dc",bisque="#ffe4c4",black="#000000",blanchedalmond="#ffebcd",blue="#0000ff",blueviolet="#8a2be2",brown="#a52a2a",burlywood="#deb887",cadetblue="#5f9ea0",chartreuse="#7fff00",chocolate="#d2691e",coral="#ff7f50",cornflowerblue="#6495ed",cornsilk="#fff8dc",crimson="#dc143c",cyan="#00ffff",darkblue="#00008b",darkcyan="#008b8b",darkgoldenrod="#b8860b",darkgray="#a9a9a9",darkgreen="#006400",darkgrey="#a9a9a9",darkkhaki="#bdb76b",darkmagenta="#8b008b",darkolivegreen="#556b2f",darkorange="#ff8c00",darkorchid="#9932cc",darkred="#8b0000",darksalmon="#e9967a",darkseagreen="#8fbc8f",darkslateblue="#483d8b",darkslategray="#2f4f4f",darkslategrey="#2f4f4f",darkturquoise="#00ced1",darkviolet="#9400d3",deeppink="#ff1493",deepskyblue="#00bfff",dimgray="#696969",dimgrey="#696969",dodgerblue="#1e90ff",firebrick="#b22222",floralwhite="#fffaf0",forestgreen="#228b22",fuchsia="#ff00ff",gainsboro="#dcdcdc",ghostwhite="#f8f8ff",goldenrod="#daa520",gold="#ffd700",gray="#808080",green="#008000",greenyellow="#adff2f",grey="#808080",honeydew="#f0fff0",hotpink="#ff69b4",indianred="#cd5c5c",indigo="#4b0082",ivory="#fffff0",khaki="#f0e68c",lavenderblush="#fff0f5",lavender="#e6e6fa",lawngreen="#7cfc00",lemonchiffon="#fffacd",lightblue="#add8e6",lightcoral="#f08080",lightcyan="#e0ffff",lightgoldenrodyellow="#fafad2",lightgray="#d3d3d3",lightgreen="#90ee90",lightgrey="#d3d3d3",lightpink="#ffb6c1",lightsalmon="#ffa07a",lightseagreen="#20b2aa",lightskyblue="#87cefa",lightslategray="#778899",lightslategrey="#778899",lightsteelblue="#b0c4de",lightyellow="#ffffe0",lime="#00ff00",limegreen="#32cd32",linen="#faf0e6",magenta="#ff00ff",maroon="#800000",mediumaquamarine="#66cdaa",mediumblue="#0000cd",mediumorchid="#ba55d3",mediumpurple="#9370db",mediumseagreen="#3cb371",mediumslateblue="#7b68ee",mediumspringgreen="#00fa9a",mediumturquoise="#48d1cc",mediumvioletred="#c71585",midnightblue="#191970",mintcream="#f5fffa",mistyrose="#ffe4e1",moccasin="#ffe4b5",navajowhite="#ffdead",navy="#000080",oldlace="#fdf5e6",olive="#808000",olivedrab="#6b8e23",orange="#ffa500",orangered="#ff4500",orchid="#da70d6",palegoldenrod="#eee8aa",palegreen="#98fb98",paleturquoise="#afeeee",palevioletred="#db7093",papayawhip="#ffefd5",peachpuff="#ffdab9",peru="#cd853f",pink="#ffc0cb",plum="#dda0dd",powderblue="#b0e0e6",purple="#800080",rebeccapurple="#663399",red="#ff0000",rosybrown="#bc8f8f",royalblue="#4169e1",saddlebrown="#8b4513",salmon="#fa8072",sandybrown="#f4a460",seagreen="#2e8b57",seashell="#fff5ee",sienna="#a0522d",silver="#c0c0c0",skyblue="#87ceeb",slateblue="#6a5acd",slategray="#708090",slategrey="#708090",snow="#fffafa",springgreen="#00ff7f",steelblue="#4682b4",tan="#d2b48c",teal="#008080",thistle="#d8bfd8",tomato="#ff6347",turquoise="#40e0d0",violet="#ee82ee",wheat="#f5deb3",white="#ffffff",whitesmoke="#f5f5f5",yellow="#ffff00",yellowgreen="#9acd32",cssColorNames={aliceblue:aliceblue,antiquewhite:antiquewhite,aqua:aqua,aquamarine:aquamarine,azure:azure,beige:beige,bisque:bisque,black:black,blanchedalmond:blanchedalmond,blue:blue,blueviolet:blueviolet,brown:brown,burlywood:burlywood,cadetblue:cadetblue,chartreuse:chartreuse,chocolate:chocolate,coral:coral,cornflowerblue:cornflowerblue,cornsilk:cornsilk,crimson:crimson,cyan:cyan,darkblue:darkblue,darkcyan:darkcyan,darkgoldenrod:darkgoldenrod,darkgray:darkgray,darkgreen:darkgreen,darkgrey:darkgrey,darkkhaki:darkkhaki,darkmagenta:darkmagenta,darkolivegreen:darkolivegreen,darkorange:darkorange,darkorchid:darkorchid,darkred:darkred,darksalmon:darksalmon,darkseagreen:darkseagreen,darkslateblue:darkslateblue,darkslategray:darkslategray,darkslategrey:darkslategrey,darkturquoise:darkturquoise,darkviolet:darkviolet,deeppink:deeppink,deepskyblue:deepskyblue,dimgray:dimgray,dimgrey:dimgrey,dodgerblue:dodgerblue,firebrick:firebrick,floralwhite:floralwhite,forestgreen:forestgreen,fuchsia:fuchsia,gainsboro:gainsboro,ghostwhite:ghostwhite,goldenrod:goldenrod,gold:gold,gray:gray,green:green,greenyellow:greenyellow,grey:grey,honeydew:honeydew,hotpink:hotpink,indianred:indianred,indigo:indigo,ivory:ivory,khaki:khaki,lavenderblush:lavenderblush,lavender:lavender,lawngreen:lawngreen,lemonchiffon:lemonchiffon,lightblue:lightblue,lightcoral:lightcoral,lightcyan:lightcyan,lightgoldenrodyellow:lightgoldenrodyellow,lightgray:lightgray,lightgreen:lightgreen,lightgrey:lightgrey,lightpink:lightpink,lightsalmon:lightsalmon,lightseagreen:lightseagreen,lightskyblue:lightskyblue,lightslategray:lightslategray,lightslategrey:lightslategrey,lightsteelblue:lightsteelblue,lightyellow:lightyellow,lime:lime,limegreen:limegreen,linen:linen,magenta:magenta,maroon:maroon,mediumaquamarine:mediumaquamarine,mediumblue:mediumblue,mediumorchid:mediumorchid,mediumpurple:mediumpurple,mediumseagreen:mediumseagreen,mediumslateblue:mediumslateblue,mediumspringgreen:mediumspringgreen,mediumturquoise:mediumturquoise,mediumvioletred:mediumvioletred,midnightblue:midnightblue,mintcream:mintcream,mistyrose:mistyrose,moccasin:moccasin,navajowhite:navajowhite,navy:navy,oldlace:oldlace,olive:olive,olivedrab:olivedrab,orange:orange,orangered:orangered,orchid:orchid,palegoldenrod:palegoldenrod,palegreen:palegreen,paleturquoise:paleturquoise,palevioletred:palevioletred,papayawhip:papayawhip,peachpuff:peachpuff,peru:peru,pink:pink,plum:plum,powderblue:powderblue,purple:purple,rebeccapurple:rebeccapurple,red:red,rosybrown:rosybrown,royalblue:royalblue,saddlebrown:saddlebrown,salmon:salmon,sandybrown:sandybrown,seagreen:seagreen,seashell:seashell,sienna:sienna,silver:silver,skyblue:skyblue,slateblue:slateblue,slategray:slategray,slategrey:slategrey,snow:snow,springgreen:springgreen,steelblue:steelblue,tan:tan,teal:teal,thistle:thistle,tomato:tomato,turquoise:turquoise,violet:violet,wheat:wheat,white:white,whitesmoke:whitesmoke,yellow:yellow,yellowgreen:yellowgreen};function hex2rgb(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function hex2string(e){var r=e.toString(16);return"#"+(r="000000".substr(0,6-r.length)+r)}function string2hex(e){return"string"==typeof e&&"#"===(e=cssColorNames[e.toLowerCase()]||e)[0]&&(e=e.substr(1)),parseInt(e,16)}function rgb2hex(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}function mapPremultipliedBlendModes(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[constants.BLEND_MODES.NORMAL_NPM]=constants.BLEND_MODES.NORMAL,e[constants.BLEND_MODES.ADD_NPM]=constants.BLEND_MODES.ADD,e[constants.BLEND_MODES.SCREEN_NPM]=constants.BLEND_MODES.SCREEN,r[constants.BLEND_MODES.NORMAL]=constants.BLEND_MODES.NORMAL_NPM,r[constants.BLEND_MODES.ADD]=constants.BLEND_MODES.ADD_NPM,r[constants.BLEND_MODES.SCREEN]=constants.BLEND_MODES.SCREEN_NPM;var a=[];return a.push(r),a.push(e),a}var premultiplyBlendMode=mapPremultipliedBlendModes();function correctBlendMode(e,r){return premultiplyBlendMode[r?1:0][e]}function premultiplyRgba(e,r,t,a){return t=t||new Float32Array(4),a||void 0===a?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function premultiplyTint(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,a=e>>8&255,n=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((a=a*r+.5|0)<<8)+(n=n*r+.5|0)}function premultiplyTintToRgba(e,r,t,a){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(a||void 0===a)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function createIndicesForQuads(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var a=0,n=0;a<t;a+=6,n+=4)r[a+0]=n+0,r[a+1]=n+1,r[a+2]=n+2,r[a+3]=n+0,r[a+4]=n+2,r[a+5]=n+3;return r}function getBufferType(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var map={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function interleaveTypedArrays(e,r){for(var t=0,a=0,n={},o=0;o<e.length;o++)a+=r[o],t+=e[o].length;var i=new ArrayBuffer(4*t),l=null,s=0;for(o=0;o<e.length;o++){var d=r[o],u=e[o],f=getBufferType(u);n[f]||(n[f]=new map[f](i)),l=n[f];for(var c=0;c<u.length;c++){l[(c/d|0)*a+s+c%d]=u[c]}s+=d}return new Float32Array(i)}function nextPow2(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function isPow2(e){return!(e&e-1||!e)}function log2(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1}function removeItems(e,r,t){var a,n=e.length;if(!(r>=n||0===t)){var o=n-(t=r+t>n?n-r:t);for(a=r;a<o;++a)e[a]=e[a+t];e.length=o}}function sign(e){return 0===e?0:e<0?-1:1}var nextUid=0;function uid(){return++nextUid}var warnings={};function deprecation(e,r,t){if(void 0===t&&(t=3),!warnings[r]){var a=(new Error).stack;void 0===a?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(a=a.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(a),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(a))),warnings[r]=!0}}var ProgramCache={},TextureCache=Object.create(null),BaseTextureCache=Object.create(null);function destroyTextureCache(){var e;for(e in TextureCache)TextureCache[e].destroy();for(e in BaseTextureCache)BaseTextureCache[e].destroy()}function clearTextureCache(){var e;for(e in TextureCache)delete TextureCache[e];for(e in BaseTextureCache)delete BaseTextureCache[e]}var CanvasRenderTarget=function(){function e(e,r,t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=t||settings.settings.RESOLUTION,this.resize(e,r)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,r){this.canvas.width=e*this.resolution,this.canvas.height=r*this.resolution},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=e},enumerable:!1,configurable:!0}),e}();function trimCanvas(e){var r,t,a,n=e.width,o=e.height,i=e.getContext("2d"),l=i.getImageData(0,0,n,o).data,s=l.length,d={top:null,left:null,right:null,bottom:null},u=null;for(r=0;r<s;r+=4)0!==l[r+3]&&(t=r/4%n,a=~~(r/4/n),null===d.top&&(d.top=a),null===d.left?d.left=t:t<d.left&&(d.left=t),null===d.right?d.right=t+1:d.right<t&&(d.right=t+1),null===d.bottom?d.bottom=a:d.bottom<a&&(d.bottom=a));return null!==d.top&&(n=d.right-d.left,o=d.bottom-d.top+1,u=i.getImageData(d.left,d.top,n,o)),{height:o,width:n,data:u}}var tempAnchor,DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function decomposeDataUri(e){var r=DATA_URI.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}}function determineCrossOrigin(e,r){if(void 0===r&&(r=self.location),0===e.indexOf("data:"))return"";r=r||self.location,tempAnchor||(tempAnchor=document.createElement("a")),tempAnchor.href=e;var t=url.parse(tempAnchor.href),a=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&a&&t.protocol===r.protocol?"":"anonymous"}function getResolutionOfUrl(e,r){var t=settings.settings.RETINA_PREFIX.exec(e);return t?parseFloat(t[1]):void 0!==r?r:1}Object.defineProperty(exports,"isMobile",{enumerable:!0,get:function(){return settings.isMobile}}),exports.EventEmitter=eventemitter3,exports.earcut=earcut,exports.BaseTextureCache=BaseTextureCache,exports.CanvasRenderTarget=CanvasRenderTarget,exports.DATA_URI=DATA_URI,exports.ProgramCache=ProgramCache,exports.TextureCache=TextureCache,exports.clearTextureCache=clearTextureCache,exports.correctBlendMode=correctBlendMode,exports.createIndicesForQuads=createIndicesForQuads,exports.decomposeDataUri=decomposeDataUri,exports.deprecation=deprecation,exports.destroyTextureCache=destroyTextureCache,exports.determineCrossOrigin=determineCrossOrigin,exports.getBufferType=getBufferType,exports.getResolutionOfUrl=getResolutionOfUrl,exports.hex2rgb=hex2rgb,exports.hex2string=hex2string,exports.interleaveTypedArrays=interleaveTypedArrays,exports.isPow2=isPow2,exports.isWebGLSupported=isWebGLSupported,exports.log2=log2,exports.nextPow2=nextPow2,exports.premultiplyBlendMode=premultiplyBlendMode,exports.premultiplyRgba=premultiplyRgba,exports.premultiplyTint=premultiplyTint,exports.premultiplyTintToRgba=premultiplyTintToRgba,exports.removeItems=removeItems,exports.rgb2hex=rgb2hex,exports.sayHello=sayHello,exports.sign=sign,exports.skipHello=skipHello,exports.string2hex=string2hex,exports.trimCanvas=trimCanvas,exports.uid=uid,exports.url=url;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var settings=require("@pixi/settings"),eventemitter3=_interopDefault(require("eventemitter3")),earcut=_interopDefault(require("earcut")),url$1=require("url"),constants=require("@pixi/constants"),url={parse:url$1.parse,format:url$1.format,resolve:url$1.resolve};settings.settings.RETINA_PREFIX=/@([0-9\.]+)x/,settings.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var supported,saidHello=!1,VERSION="6.1.0-rc.6";function skipHello(){saidHello=!0}function sayHello(e){var r;if(!saidHello){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+VERSION+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(r=self.console).log.apply(r,t)}else self.console&&self.console.log("PixiJS "+VERSION+" - "+e+" - http://www.pixijs.com/");saidHello=!0}}function isWebGLSupported(){return void 0===supported&&(supported=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:settings.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var r=document.createElement("canvas"),t=r.getContext("webgl",e)||r.getContext("experimental-webgl",e),a=!(!t||!t.getContextAttributes().stencil);if(t){var n=t.getExtension("WEBGL_lose_context");n&&n.loseContext()}return t=null,a}catch(e){return!1}}()),supported}var aliceblue="#f0f8ff",antiquewhite="#faebd7",aqua="#00ffff",aquamarine="#7fffd4",azure="#f0ffff",beige="#f5f5dc",bisque="#ffe4c4",black="#000000",blanchedalmond="#ffebcd",blue="#0000ff",blueviolet="#8a2be2",brown="#a52a2a",burlywood="#deb887",cadetblue="#5f9ea0",chartreuse="#7fff00",chocolate="#d2691e",coral="#ff7f50",cornflowerblue="#6495ed",cornsilk="#fff8dc",crimson="#dc143c",cyan="#00ffff",darkblue="#00008b",darkcyan="#008b8b",darkgoldenrod="#b8860b",darkgray="#a9a9a9",darkgreen="#006400",darkgrey="#a9a9a9",darkkhaki="#bdb76b",darkmagenta="#8b008b",darkolivegreen="#556b2f",darkorange="#ff8c00",darkorchid="#9932cc",darkred="#8b0000",darksalmon="#e9967a",darkseagreen="#8fbc8f",darkslateblue="#483d8b",darkslategray="#2f4f4f",darkslategrey="#2f4f4f",darkturquoise="#00ced1",darkviolet="#9400d3",deeppink="#ff1493",deepskyblue="#00bfff",dimgray="#696969",dimgrey="#696969",dodgerblue="#1e90ff",firebrick="#b22222",floralwhite="#fffaf0",forestgreen="#228b22",fuchsia="#ff00ff",gainsboro="#dcdcdc",ghostwhite="#f8f8ff",goldenrod="#daa520",gold="#ffd700",gray="#808080",green="#008000",greenyellow="#adff2f",grey="#808080",honeydew="#f0fff0",hotpink="#ff69b4",indianred="#cd5c5c",indigo="#4b0082",ivory="#fffff0",khaki="#f0e68c",lavenderblush="#fff0f5",lavender="#e6e6fa",lawngreen="#7cfc00",lemonchiffon="#fffacd",lightblue="#add8e6",lightcoral="#f08080",lightcyan="#e0ffff",lightgoldenrodyellow="#fafad2",lightgray="#d3d3d3",lightgreen="#90ee90",lightgrey="#d3d3d3",lightpink="#ffb6c1",lightsalmon="#ffa07a",lightseagreen="#20b2aa",lightskyblue="#87cefa",lightslategray="#778899",lightslategrey="#778899",lightsteelblue="#b0c4de",lightyellow="#ffffe0",lime="#00ff00",limegreen="#32cd32",linen="#faf0e6",magenta="#ff00ff",maroon="#800000",mediumaquamarine="#66cdaa",mediumblue="#0000cd",mediumorchid="#ba55d3",mediumpurple="#9370db",mediumseagreen="#3cb371",mediumslateblue="#7b68ee",mediumspringgreen="#00fa9a",mediumturquoise="#48d1cc",mediumvioletred="#c71585",midnightblue="#191970",mintcream="#f5fffa",mistyrose="#ffe4e1",moccasin="#ffe4b5",navajowhite="#ffdead",navy="#000080",oldlace="#fdf5e6",olive="#808000",olivedrab="#6b8e23",orange="#ffa500",orangered="#ff4500",orchid="#da70d6",palegoldenrod="#eee8aa",palegreen="#98fb98",paleturquoise="#afeeee",palevioletred="#db7093",papayawhip="#ffefd5",peachpuff="#ffdab9",peru="#cd853f",pink="#ffc0cb",plum="#dda0dd",powderblue="#b0e0e6",purple="#800080",rebeccapurple="#663399",red="#ff0000",rosybrown="#bc8f8f",royalblue="#4169e1",saddlebrown="#8b4513",salmon="#fa8072",sandybrown="#f4a460",seagreen="#2e8b57",seashell="#fff5ee",sienna="#a0522d",silver="#c0c0c0",skyblue="#87ceeb",slateblue="#6a5acd",slategray="#708090",slategrey="#708090",snow="#fffafa",springgreen="#00ff7f",steelblue="#4682b4",tan="#d2b48c",teal="#008080",thistle="#d8bfd8",tomato="#ff6347",turquoise="#40e0d0",violet="#ee82ee",wheat="#f5deb3",white="#ffffff",whitesmoke="#f5f5f5",yellow="#ffff00",yellowgreen="#9acd32",cssColorNames={aliceblue:aliceblue,antiquewhite:antiquewhite,aqua:aqua,aquamarine:aquamarine,azure:azure,beige:beige,bisque:bisque,black:black,blanchedalmond:blanchedalmond,blue:blue,blueviolet:blueviolet,brown:brown,burlywood:burlywood,cadetblue:cadetblue,chartreuse:chartreuse,chocolate:chocolate,coral:coral,cornflowerblue:cornflowerblue,cornsilk:cornsilk,crimson:crimson,cyan:cyan,darkblue:darkblue,darkcyan:darkcyan,darkgoldenrod:darkgoldenrod,darkgray:darkgray,darkgreen:darkgreen,darkgrey:darkgrey,darkkhaki:darkkhaki,darkmagenta:darkmagenta,darkolivegreen:darkolivegreen,darkorange:darkorange,darkorchid:darkorchid,darkred:darkred,darksalmon:darksalmon,darkseagreen:darkseagreen,darkslateblue:darkslateblue,darkslategray:darkslategray,darkslategrey:darkslategrey,darkturquoise:darkturquoise,darkviolet:darkviolet,deeppink:deeppink,deepskyblue:deepskyblue,dimgray:dimgray,dimgrey:dimgrey,dodgerblue:dodgerblue,firebrick:firebrick,floralwhite:floralwhite,forestgreen:forestgreen,fuchsia:fuchsia,gainsboro:gainsboro,ghostwhite:ghostwhite,goldenrod:goldenrod,gold:gold,gray:gray,green:green,greenyellow:greenyellow,grey:grey,honeydew:honeydew,hotpink:hotpink,indianred:indianred,indigo:indigo,ivory:ivory,khaki:khaki,lavenderblush:lavenderblush,lavender:lavender,lawngreen:lawngreen,lemonchiffon:lemonchiffon,lightblue:lightblue,lightcoral:lightcoral,lightcyan:lightcyan,lightgoldenrodyellow:lightgoldenrodyellow,lightgray:lightgray,lightgreen:lightgreen,lightgrey:lightgrey,lightpink:lightpink,lightsalmon:lightsalmon,lightseagreen:lightseagreen,lightskyblue:lightskyblue,lightslategray:lightslategray,lightslategrey:lightslategrey,lightsteelblue:lightsteelblue,lightyellow:lightyellow,lime:lime,limegreen:limegreen,linen:linen,magenta:magenta,maroon:maroon,mediumaquamarine:mediumaquamarine,mediumblue:mediumblue,mediumorchid:mediumorchid,mediumpurple:mediumpurple,mediumseagreen:mediumseagreen,mediumslateblue:mediumslateblue,mediumspringgreen:mediumspringgreen,mediumturquoise:mediumturquoise,mediumvioletred:mediumvioletred,midnightblue:midnightblue,mintcream:mintcream,mistyrose:mistyrose,moccasin:moccasin,navajowhite:navajowhite,navy:navy,oldlace:oldlace,olive:olive,olivedrab:olivedrab,orange:orange,orangered:orangered,orchid:orchid,palegoldenrod:palegoldenrod,palegreen:palegreen,paleturquoise:paleturquoise,palevioletred:palevioletred,papayawhip:papayawhip,peachpuff:peachpuff,peru:peru,pink:pink,plum:plum,powderblue:powderblue,purple:purple,rebeccapurple:rebeccapurple,red:red,rosybrown:rosybrown,royalblue:royalblue,saddlebrown:saddlebrown,salmon:salmon,sandybrown:sandybrown,seagreen:seagreen,seashell:seashell,sienna:sienna,silver:silver,skyblue:skyblue,slateblue:slateblue,slategray:slategray,slategrey:slategrey,snow:snow,springgreen:springgreen,steelblue:steelblue,tan:tan,teal:teal,thistle:thistle,tomato:tomato,turquoise:turquoise,violet:violet,wheat:wheat,white:white,whitesmoke:whitesmoke,yellow:yellow,yellowgreen:yellowgreen};function hex2rgb(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function hex2string(e){var r=e.toString(16);return"#"+(r="000000".substr(0,6-r.length)+r)}function string2hex(e){return"string"==typeof e&&"#"===(e=cssColorNames[e.toLowerCase()]||e)[0]&&(e=e.substr(1)),parseInt(e,16)}function rgb2hex(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}function mapPremultipliedBlendModes(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[constants.BLEND_MODES.NORMAL_NPM]=constants.BLEND_MODES.NORMAL,e[constants.BLEND_MODES.ADD_NPM]=constants.BLEND_MODES.ADD,e[constants.BLEND_MODES.SCREEN_NPM]=constants.BLEND_MODES.SCREEN,r[constants.BLEND_MODES.NORMAL]=constants.BLEND_MODES.NORMAL_NPM,r[constants.BLEND_MODES.ADD]=constants.BLEND_MODES.ADD_NPM,r[constants.BLEND_MODES.SCREEN]=constants.BLEND_MODES.SCREEN_NPM;var a=[];return a.push(r),a.push(e),a}var premultiplyBlendMode=mapPremultipliedBlendModes();function correctBlendMode(e,r){return premultiplyBlendMode[r?1:0][e]}function premultiplyRgba(e,r,t,a){return t=t||new Float32Array(4),a||void 0===a?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function premultiplyTint(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,a=e>>8&255,n=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((a=a*r+.5|0)<<8)+(n=n*r+.5|0)}function premultiplyTintToRgba(e,r,t,a){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(a||void 0===a)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function createIndicesForQuads(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var a=0,n=0;a<t;a+=6,n+=4)r[a+0]=n+0,r[a+1]=n+1,r[a+2]=n+2,r[a+3]=n+0,r[a+4]=n+2,r[a+5]=n+3;return r}function getBufferType(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var map={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function interleaveTypedArrays(e,r){for(var t=0,a=0,n={},o=0;o<e.length;o++)a+=r[o],t+=e[o].length;var i=new ArrayBuffer(4*t),l=null,s=0;for(o=0;o<e.length;o++){var d=r[o],u=e[o],f=getBufferType(u);n[f]||(n[f]=new map[f](i)),l=n[f];for(var c=0;c<u.length;c++){l[(c/d|0)*a+s+c%d]=u[c]}s+=d}return new Float32Array(i)}function nextPow2(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function isPow2(e){return!(e&e-1||!e)}function log2(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1}function removeItems(e,r,t){var a,n=e.length;if(!(r>=n||0===t)){var o=n-(t=r+t>n?n-r:t);for(a=r;a<o;++a)e[a]=e[a+t];e.length=o}}function sign(e){return 0===e?0:e<0?-1:1}var nextUid=0;function uid(){return++nextUid}var warnings={};function deprecation(e,r,t){if(void 0===t&&(t=3),!warnings[r]){var a=(new Error).stack;void 0===a?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(a=a.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(a),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(a))),warnings[r]=!0}}var ProgramCache={},TextureCache=Object.create(null),BaseTextureCache=Object.create(null);function destroyTextureCache(){var e;for(e in TextureCache)TextureCache[e].destroy();for(e in BaseTextureCache)BaseTextureCache[e].destroy()}function clearTextureCache(){var e;for(e in TextureCache)delete TextureCache[e];for(e in BaseTextureCache)delete BaseTextureCache[e]}var CanvasRenderTarget=function(){function e(e,r,t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=t||settings.settings.RESOLUTION,this.resize(e,r)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},e.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(e.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),e}();function trimCanvas(e){var r,t,a,n=e.width,o=e.height,i=e.getContext("2d"),l=i.getImageData(0,0,n,o).data,s=l.length,d={top:null,left:null,right:null,bottom:null},u=null;for(r=0;r<s;r+=4)0!==l[r+3]&&(t=r/4%n,a=~~(r/4/n),null===d.top&&(d.top=a),null===d.left?d.left=t:t<d.left&&(d.left=t),null===d.right?d.right=t+1:d.right<t&&(d.right=t+1),null===d.bottom?d.bottom=a:d.bottom<a&&(d.bottom=a));return null!==d.top&&(n=d.right-d.left,o=d.bottom-d.top+1,u=i.getImageData(d.left,d.top,n,o)),{height:o,width:n,data:u}}var tempAnchor,DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function decomposeDataUri(e){var r=DATA_URI.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}}function determineCrossOrigin(e,r){if(void 0===r&&(r=self.location),0===e.indexOf("data:"))return"";r=r||self.location,tempAnchor||(tempAnchor=document.createElement("a")),tempAnchor.href=e;var t=url.parse(tempAnchor.href),a=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&a&&t.protocol===r.protocol?"":"anonymous"}function getResolutionOfUrl(e,r){var t=settings.settings.RETINA_PREFIX.exec(e);return t?parseFloat(t[1]):void 0!==r?r:1}Object.defineProperty(exports,"isMobile",{enumerable:!0,get:function(){return settings.isMobile}}),exports.EventEmitter=eventemitter3,exports.earcut=earcut,exports.BaseTextureCache=BaseTextureCache,exports.CanvasRenderTarget=CanvasRenderTarget,exports.DATA_URI=DATA_URI,exports.ProgramCache=ProgramCache,exports.TextureCache=TextureCache,exports.clearTextureCache=clearTextureCache,exports.correctBlendMode=correctBlendMode,exports.createIndicesForQuads=createIndicesForQuads,exports.decomposeDataUri=decomposeDataUri,exports.deprecation=deprecation,exports.destroyTextureCache=destroyTextureCache,exports.determineCrossOrigin=determineCrossOrigin,exports.getBufferType=getBufferType,exports.getResolutionOfUrl=getResolutionOfUrl,exports.hex2rgb=hex2rgb,exports.hex2string=hex2string,exports.interleaveTypedArrays=interleaveTypedArrays,exports.isPow2=isPow2,exports.isWebGLSupported=isWebGLSupported,exports.log2=log2,exports.nextPow2=nextPow2,exports.premultiplyBlendMode=premultiplyBlendMode,exports.premultiplyRgba=premultiplyRgba,exports.premultiplyTint=premultiplyTint,exports.premultiplyTintToRgba=premultiplyTintToRgba,exports.removeItems=removeItems,exports.rgb2hex=rgb2hex,exports.sayHello=sayHello,exports.sign=sign,exports.skipHello=skipHello,exports.string2hex=string2hex,exports.trimCanvas=trimCanvas,exports.uid=uid,exports.url=url;
//# sourceMappingURL=utils.min.js.map
/*!
* @pixi/utils - v6.1.0-rc.5
* Compiled Mon, 19 Jul 2021 20:32:18 UTC
* @pixi/utils - v6.1.0-rc.6
* Compiled Fri, 23 Jul 2021 22:53:45 UTC
*

@@ -67,3 +67,3 @@ * @pixi/utils is licensed under the MIT License.

var saidHello = false;
var VERSION = '6.1.0-rc.5';
var VERSION = '6.1.0-rc.6';
/**

@@ -964,8 +964,8 @@ * Skips the hello message of renderers that are created after this is run.

*
* @param width - the new width of the canvas
* @param height - the new height of the canvas
* @param desiredWidth - the desired width of the canvas
* @param desiredHeight - the desired height of the canvas
*/
CanvasRenderTarget.prototype.resize = function (width, height) {
this.canvas.width = width * this.resolution;
this.canvas.height = height * this.resolution;
CanvasRenderTarget.prototype.resize = function (desiredWidth, desiredHeight) {
this.canvas.width = Math.round(desiredWidth * this.resolution);
this.canvas.height = Math.round(desiredHeight * this.resolution);
};

@@ -987,3 +987,3 @@ /** Destroys this canvas. */

set: function (val) {
this.canvas.width = val;
this.canvas.width = Math.round(val);
},

@@ -1003,3 +1003,3 @@ enumerable: false,

set: function (val) {
this.canvas.height = val;
this.canvas.height = Math.round(val);
},

@@ -1006,0 +1006,0 @@ enumerable: false,

/*!
* @pixi/utils - v6.1.0-rc.5
* Compiled Mon, 19 Jul 2021 20:32:18 UTC
* @pixi/utils - v6.1.0-rc.6
* Compiled Fri, 23 Jul 2021 22:53:45 UTC
*

@@ -8,3 +8,3 @@ * @pixi/utils is licensed under the MIT License.

*/
import{settings as e}from"@pixi/settings";export{isMobile}from"@pixi/settings";export{default as EventEmitter}from"eventemitter3";export{default as earcut}from"earcut";import{parse as r,format as t,resolve as n}from"url";import{BLEND_MODES as a}from"@pixi/constants";var f={parse:r,format:t,resolve:n};e.RETINA_PREFIX=/@([0-9\.]+)x/,e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var o,i=!1,l="6.1.0-rc.5";function c(){i=!0}function d(e){var r;if(!i){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+l+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(r=self.console).log.apply(r,t)}else self.console&&self.console.log("PixiJS "+l+" - "+e+" - http://www.pixijs.com/");i=!0}}function u(){return void 0===o&&(o=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),a=!(!n||!n.getContextAttributes().stencil);if(n){var f=n.getExtension("WEBGL_lose_context");f&&f.loseContext()}return n=null,a}catch(e){return!1}}()),o}var s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function g(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function b(e){var r=e.toString(16);return"#"+(r="000000".substr(0,6-r.length)+r)}function h(e){return"string"==typeof e&&"#"===(e=s[e.toLowerCase()]||e)[0]&&(e=e.substr(1)),parseInt(e,16)}function p(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}var v=function(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[a.NORMAL_NPM]=a.NORMAL,e[a.ADD_NPM]=a.ADD,e[a.SCREEN_NPM]=a.SCREEN,r[a.NORMAL]=a.NORMAL_NPM,r[a.ADD]=a.ADD_NPM,r[a.SCREEN]=a.SCREEN_NPM;var n=[];return n.push(r),n.push(e),n}();function m(e,r){return v[r?1:0][e]}function y(e,r,t,n){return t=t||new Float32Array(4),n||void 0===n?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function w(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,n=e>>8&255,a=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((n=n*r+.5|0)<<8)+(a=a*r+.5|0)}function k(e,r,t,n){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(n||void 0===n)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function A(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var n=0,a=0;n<t;n+=6,a+=4)r[n+0]=a+0,r[n+1]=a+1,r[n+2]=a+2,r[n+3]=a+0,r[n+4]=a+2,r[n+5]=a+3;return r}function E(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var x={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function C(e,r){for(var t=0,n=0,a={},f=0;f<e.length;f++)n+=r[f],t+=e[f].length;var o=new ArrayBuffer(4*t),i=null,l=0;for(f=0;f<e.length;f++){var c=r[f],d=e[f],u=E(d);a[u]||(a[u]=new x[u](o)),i=a[u];for(var s=0;s<d.length;s++){i[(s/c|0)*n+l+s%c]=d[s]}l+=c}return new Float32Array(o)}function R(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function _(e){return!(e&e-1||!e)}function N(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1}function P(e,r,t){var n,a=e.length;if(!(r>=a||0===t)){var f=a-(t=r+t>a?a-r:t);for(n=r;n<f;++n)e[n]=e[n+t];e.length=f}}function M(e){return 0===e?0:e<0?-1:1}var L=0;function O(){return++L}var D={};function F(e,r,t){if(void 0===t&&(t=3),!D[r]){var n=(new Error).stack;void 0===n?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(n=n.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(n))),D[r]=!0}}var I={},S=Object.create(null),T=Object.create(null);function U(){var e;for(e in S)S[e].destroy();for(e in T)T[e].destroy()}function j(){var e;for(e in S)delete S[e];for(e in T)delete T[e]}var q=function(){function r(r,t,n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=n||e.RESOLUTION,this.resize(r,t)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(e,r){this.canvas.width=e*this.resolution,this.canvas.height=r*this.resolution},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=e},enumerable:!1,configurable:!0}),r}();function J(e){var r,t,n,a=e.width,f=e.height,o=e.getContext("2d"),i=o.getImageData(0,0,a,f).data,l=i.length,c={top:null,left:null,right:null,bottom:null},d=null;for(r=0;r<l;r+=4)0!==i[r+3]&&(t=r/4%a,n=~~(r/4/a),null===c.top&&(c.top=n),null===c.left?c.left=t:t<c.left&&(c.left=t),null===c.right?c.right=t+1:c.right<t&&(c.right=t+1),null===c.bottom?c.bottom=n:c.bottom<n&&(c.bottom=n));return null!==c.top&&(a=c.right-c.left,f=c.bottom-c.top+1,d=o.getImageData(c.left,c.top,a,f)),{height:f,width:a,data:d}}var B,W=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function z(e){var r=W.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}}function Y(e,r){if(void 0===r&&(r=self.location),0===e.indexOf("data:"))return"";r=r||self.location,B||(B=document.createElement("a")),B.href=e;var t=f.parse(B.href),n=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&n&&t.protocol===r.protocol?"":"anonymous"}function G(r,t){var n=e.RETINA_PREFIX.exec(r);return n?parseFloat(n[1]):void 0!==t?t:1}export{T as BaseTextureCache,q as CanvasRenderTarget,W as DATA_URI,I as ProgramCache,S as TextureCache,j as clearTextureCache,m as correctBlendMode,A as createIndicesForQuads,z as decomposeDataUri,F as deprecation,U as destroyTextureCache,Y as determineCrossOrigin,E as getBufferType,G as getResolutionOfUrl,g as hex2rgb,b as hex2string,C as interleaveTypedArrays,_ as isPow2,u as isWebGLSupported,N as log2,R as nextPow2,v as premultiplyBlendMode,y as premultiplyRgba,w as premultiplyTint,k as premultiplyTintToRgba,P as removeItems,p as rgb2hex,d as sayHello,M as sign,c as skipHello,h as string2hex,J as trimCanvas,O as uid,f as url};
import{settings as e}from"@pixi/settings";export{isMobile}from"@pixi/settings";export{default as EventEmitter}from"eventemitter3";export{default as earcut}from"earcut";import{parse as r,format as t,resolve as n}from"url";import{BLEND_MODES as a}from"@pixi/constants";var o={parse:r,format:t,resolve:n};e.RETINA_PREFIX=/@([0-9\.]+)x/,e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var f,i=!1,l="6.1.0-rc.6";function c(){i=!0}function d(e){var r;if(!i){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+l+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(r=self.console).log.apply(r,t)}else self.console&&self.console.log("PixiJS "+l+" - "+e+" - http://www.pixijs.com/");i=!0}}function u(){return void 0===f&&(f=function(){var r={stencil:!0,failIfMajorPerformanceCaveat:e.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),n=t.getContext("webgl",r)||t.getContext("experimental-webgl",r),a=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,a}catch(e){return!1}}()),f}var s={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function g(e,r){return void 0===r&&(r=[]),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function b(e){var r=e.toString(16);return"#"+(r="000000".substr(0,6-r.length)+r)}function h(e){return"string"==typeof e&&"#"===(e=s[e.toLowerCase()]||e)[0]&&(e=e.substr(1)),parseInt(e,16)}function p(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}var v=function(){for(var e=[],r=[],t=0;t<32;t++)e[t]=t,r[t]=t;e[a.NORMAL_NPM]=a.NORMAL,e[a.ADD_NPM]=a.ADD,e[a.SCREEN_NPM]=a.SCREEN,r[a.NORMAL]=a.NORMAL_NPM,r[a.ADD]=a.ADD_NPM,r[a.SCREEN]=a.SCREEN_NPM;var n=[];return n.push(r),n.push(e),n}();function m(e,r){return v[r?1:0][e]}function y(e,r,t,n){return t=t||new Float32Array(4),n||void 0===n?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function w(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,n=e>>8&255,a=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((n=n*r+.5|0)<<8)+(a=a*r+.5|0)}function k(e,r,t,n){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(n||void 0===n)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}function A(e,r){void 0===r&&(r=null);var t=6*e;if((r=r||new Uint16Array(t)).length!==t)throw new Error("Out buffer length is incorrect, got "+r.length+" and expected "+t);for(var n=0,a=0;n<t;n+=6,a+=4)r[n+0]=a+0,r[n+1]=a+1,r[n+2]=a+2,r[n+3]=a+0,r[n+4]=a+2,r[n+5]=a+3;return r}function E(e){if(4===e.BYTES_PER_ELEMENT)return e instanceof Float32Array?"Float32Array":e instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===e.BYTES_PER_ELEMENT){if(e instanceof Uint16Array)return"Uint16Array"}else if(1===e.BYTES_PER_ELEMENT&&e instanceof Uint8Array)return"Uint8Array";return null}var x={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array};function C(e,r){for(var t=0,n=0,a={},o=0;o<e.length;o++)n+=r[o],t+=e[o].length;var f=new ArrayBuffer(4*t),i=null,l=0;for(o=0;o<e.length;o++){var c=r[o],d=e[o],u=E(d);a[u]||(a[u]=new x[u](f)),i=a[u];for(var s=0;s<d.length;s++){i[(s/c|0)*n+l+s%c]=d[s]}l+=c}return new Float32Array(f)}function R(e){return e+=0===e?1:0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1}function _(e){return!(e&e-1||!e)}function M(e){var r=(e>65535?1:0)<<4,t=((e>>>=r)>255?1:0)<<3;return r|=t,r|=t=((e>>>=t)>15?1:0)<<2,(r|=t=((e>>>=t)>3?1:0)<<1)|(e>>>=t)>>1}function N(e,r,t){var n,a=e.length;if(!(r>=a||0===t)){var o=a-(t=r+t>a?a-r:t);for(n=r;n<o;++n)e[n]=e[n+t];e.length=o}}function P(e){return 0===e?0:e<0?-1:1}var L=0;function O(){return++L}var D={};function F(e,r,t){if(void 0===t&&(t=3),!D[r]){var n=(new Error).stack;void 0===n?console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e):(n=n.split("\n").splice(t).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",r+"\nDeprecated since v"+e),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",r+"\nDeprecated since v"+e),console.warn(n))),D[r]=!0}}var I={},S=Object.create(null),T=Object.create(null);function U(){var e;for(e in S)S[e].destroy();for(e in T)T[e].destroy()}function j(){var e;for(e in S)delete S[e];for(e in T)delete T[e]}var q=function(){function r(r,t,n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=n||e.RESOLUTION,this.resize(r,t)}return r.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},r.prototype.resize=function(e,r){this.canvas.width=Math.round(e*this.resolution),this.canvas.height=Math.round(r*this.resolution)},r.prototype.destroy=function(){this.context=null,this.canvas=null},Object.defineProperty(r.prototype,"width",{get:function(){return this.canvas.width},set:function(e){this.canvas.width=Math.round(e)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this.canvas.height},set:function(e){this.canvas.height=Math.round(e)},enumerable:!1,configurable:!0}),r}();function J(e){var r,t,n,a=e.width,o=e.height,f=e.getContext("2d"),i=f.getImageData(0,0,a,o).data,l=i.length,c={top:null,left:null,right:null,bottom:null},d=null;for(r=0;r<l;r+=4)0!==i[r+3]&&(t=r/4%a,n=~~(r/4/a),null===c.top&&(c.top=n),null===c.left?c.left=t:t<c.left&&(c.left=t),null===c.right?c.right=t+1:c.right<t&&(c.right=t+1),null===c.bottom?c.bottom=n:c.bottom<n&&(c.bottom=n));return null!==c.top&&(a=c.right-c.left,o=c.bottom-c.top+1,d=f.getImageData(c.left,c.top,a,o)),{height:o,width:a,data:d}}var B,W=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i;function z(e){var r=W.exec(e);if(r)return{mediaType:r[1]?r[1].toLowerCase():void 0,subType:r[2]?r[2].toLowerCase():void 0,charset:r[3]?r[3].toLowerCase():void 0,encoding:r[4]?r[4].toLowerCase():void 0,data:r[5]}}function Y(e,r){if(void 0===r&&(r=self.location),0===e.indexOf("data:"))return"";r=r||self.location,B||(B=document.createElement("a")),B.href=e;var t=o.parse(B.href),n=!t.port&&""===r.port||t.port===r.port;return t.hostname===r.hostname&&n&&t.protocol===r.protocol?"":"anonymous"}function G(r,t){var n=e.RETINA_PREFIX.exec(r);return n?parseFloat(n[1]):void 0!==t?t:1}export{T as BaseTextureCache,q as CanvasRenderTarget,W as DATA_URI,I as ProgramCache,S as TextureCache,j as clearTextureCache,m as correctBlendMode,A as createIndicesForQuads,z as decomposeDataUri,F as deprecation,U as destroyTextureCache,Y as determineCrossOrigin,E as getBufferType,G as getResolutionOfUrl,g as hex2rgb,b as hex2string,C as interleaveTypedArrays,_ as isPow2,u as isWebGLSupported,M as log2,R as nextPow2,v as premultiplyBlendMode,y as premultiplyRgba,w as premultiplyTint,k as premultiplyTintToRgba,N as removeItems,p as rgb2hex,d as sayHello,P as sign,c as skipHello,h as string2hex,J as trimCanvas,O as uid,o as url};
//# sourceMappingURL=utils.min.js.map

@@ -56,6 +56,6 @@ import type { BaseTexture } from '@pixi/core';

*
* @param width - the new width of the canvas
* @param height - the new height of the canvas
* @param desiredWidth - the desired width of the canvas
* @param desiredHeight - the desired height of the canvas
*/
resize(width: number, height: number): void;
resize(desiredWidth: number, desiredHeight: number): void;
/** Destroys this canvas. */

@@ -62,0 +62,0 @@ destroy(): void;

{
"name": "@pixi/utils",
"version": "6.1.0-rc.5",
"version": "6.1.0-rc.6",
"main": "dist/cjs/utils.js",

@@ -35,4 +35,4 @@ "module": "dist/esm/utils.js",

"peerDependencies": {
"@pixi/constants": "6.1.0-rc.5",
"@pixi/settings": "6.1.0-rc.5"
"@pixi/constants": "6.1.0-rc.6",
"@pixi/settings": "6.1.0-rc.6"
},

@@ -42,3 +42,3 @@ "devDependencies": {

},
"gitHead": "95ea00e00e06701e990aba8c76d5c910211c2959"
"gitHead": "f783dd44a8dc87d2a511e6f4bc7b7839f5b6f6f3"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc