PageSourceSearch

https://www.restless.ai/_next/static/immutable/chunks/329m6clnwpmkh.js

js restless.ai collected 2026-10-05 12:33:17 UTC 65,450 bytes, 23 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="da980798-a4c3-b09d-4ed3-d106657aef93")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,571650,(t,e,i)=>{"use strict";var s=Object.prototype.hasOwnProperty,r="~";function n(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function h(t,e,i,s,n){if("function"!=typeof i)throw TypeError("The listener must be a function");var h=new a(i,s||t,n),o=r?r+e:e;return t._events[o]?t._events[o].fn?t._events[o]=[t._events[o],h]:t._events[o].push(h):(t._events[o]=h,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),u.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)s.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},u.prototype.listeners=function(t){var e=r?r+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var s=0,n=i.length,a=Array(n);s<n;s++)a[s]=i[s].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,i=this._events[e];return i?i.fn?1:i.length:0},u.prototype.emit=function(t,e,i,s,n,a){var h=r?r+t:t;if(!this._events[h])return!1;var o,u,l=this._events[h],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,i),!0;case 4:return l.fn.call(l.context,e,i,s),!0;case 5:return l.fn.call(l.context,e,i,s,n),!0;case 6:return l.fn.call(l.context,e,i,s,n,a),!0}for(u=1,o=Array(d-1);u<d;u++)o[u-1]=arguments[u];l.fn.apply(l.context,o)}else{var c,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,i);break;case 4:l[u].fn.call(l[u].context,e,i,s);break;default:if(!o)for(c=1,o=Array(d-1);c<d;c++)o[c-1]=arguments[c];l[u].fn.apply(l[u].context,o)}}return!0},u.prototype.on=function(t,e,i){return h(this,t,e,i,!1)},u.prototype.once=function(t,e,i){return h(this,t,e,i,!0)},u.prototype.removeListener=function(t,e,i,s){var n=r?r+t:t;if(!this._events[n])return this;if(!e)return o(this,n),this;var a=this._events[n];if(a.fn)a.fn!==e||s&&!a.once||i&&a.context!==i||o(this,n);else{for(var h=0,u=[],l=a.length;h<l;h++)(a[h].fn!==e||s&&!a[h].once||i&&a[h].context!==i)&&u.push(a[h]);u.length?this._events[n]=1===u.length?u[0]:u:o(this,n)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&o(this,e)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u},329723,t=>{"use strict";let e=t.i(571650).default;t.s(["default",0,e])},652089,t=>{"use strict";var e={grad:.9,turn:360,rad:360/(2*Math.PI)},i=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},s=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},r=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),t>i?i:t>e?t:e},n=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},a=function(t){return{r:r(t.r,0,255),g:r(t.g,0,255),b:r(t.b,0,255),a:r(t.a)}},h=function(t){return{r:s(t.r),g:s(t.g),b:s(t.b),a:s(t.a,3)}},o=/^#([0-9a-f]{3,8})$/i,u=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},l=function(t){var e=t.r,i=t.g,s=t.b,r=t.a,n=Math.max(e,i,s),a=n-Math.min(e,i,s),h=a?n===e?(i-s)/a:n===i?2+(s-e)/a:4+(e-i)/a:0;return{h:60*(h<0?h+6:h),s:n?a/n*100:0,v:n/255*100,a:r}},d=function(t){var e=t.h,i=t.s,s=t.v,r=t.a;e=e/360*6,i/=100,s/=100;var n=Math.floor(e),a=s*(1-i),h=s*(1-(e-n)*i),o=s*(1-(1-e+n)*i),u=n%6;return{r:255*[s,h,a,a,o,s][u],g:255*[o,s,s,h,a,a][u],b:255*[a,a,o,s,s,h][u],a:r}},c=function(t){return{h:n(t.h),s:r(t.s,0,100),l:r(t.l,0,100),a:r(t.a)}},f=function(t){return{h:s(t.h),s:s(t.s),l:s(t.l),a:s(t.a,3)}},m=function(t){var e,i;return d((e=t.s,{h:t.h,s:(e*=((i=t.l)<50?i:100-i)/100)>0?2*e/(i+e)*100:0,v:i+e,a:t.a}))},p=function(t){var e,i,s,r;return{h:(e=l(t)).h,s:(r=(200-(i=e.s))*(s=e.v)/100)>0&&r<200?i*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a}},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,y=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\
2s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(t){var e=o.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?s(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?s(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=x.exec(t)||b.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:a({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var i,s,r=g.exec(t)||y.exec(t);return r?m(c({h:(i=r[1],void 0===(s=r[2])&&(s="deg"),Number(i)*(e[s]||1)),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)})):null},"hsl"]],object:[[function(t){var e=t.r,s=t.g,r=t.b,n=t.a;return i(e)&&i(s)&&i(r)?a({r:Number(e),g:Number(s),b:Number(r),a:Number(void 0===n?1:n)}):null},"rgb"],[function(t){var e=t.h,s=t.s,r=t.l,n=t.a;return i(e)&&i(s)&&i(r)?m(c({h:Number(e),s:Number(s),l:Number(r),a:Number(void 0===n?1:n)})):null},"hsl"],[function(t){var e,s=t.h,a=t.s,h=t.v,o=t.a;return i(s)&&i(a)&&i(h)?d({h:n((e={h:Number(s),s:Number(a),v:Number(h),a:Number(void 0===o?1:o)}).h),s:r(e.s,0,100),v:r(e.v,0,100),a:r(e.a)}):null},"hsv"]]},v=function(t,e){for(var i=0;i<e.length;i++){var s=e[i][0](t);if(s)return[s,e[i][1]]}return[null,void 0]},w=function(t,e){var i=p(t);return{h:i.h,s:r(i.s+100*e,0,100),l:i.l,a:i.a}},M=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},A=function(t,e){var i=p(t);return{h:i.h,s:i.s,l:r(i.l+100*e,0,100),a:i.a}},E=function(){function t(t){this.parsed=("string"==typeof t?v(t.trim(),_.string):"object"==typeof t&&null!==t?v(t,_.object):[null,void 0])[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return null!==this.parsed},t.prototype.brightness=function(){return s(M(this.rgba),2)},t.prototype.isDark=function(){return .5>M(this.rgba)},t.prototype.isLight=function(){return M(this.rgba)>=.5},t.prototype.toHex=function(){var t,e,i,r,n,a;return e=(t=h(this.rgba)).r,i=t.g,r=t.b,a=(n=t.a)<1?u(s(255*n)):"","#"+u(e)+u(i)+u(r)+a},t.prototype.toRgb=function(){return h(this.rgba)},t.prototype.toRgbString=function(){var t,e,i,s,r;return e=(t=h(this.rgba)).r,i=t.g,s=t.b,(r=t.a)<1?"rgba("+e+", "+i+", "+s+", "+r+")":"rgb("+e+", "+i+", "+s+")"},t.prototype.toHsl=function(){return f(p(this.rgba))},t.prototype.toHslString=function(){var t,e,i,s,r;return e=(t=f(p(this.rgba))).h,i=t.s,s=t.l,(r=t.a)<1?"hsla("+e+", "+i+"%, "+s+"%, "+r+")":"hsl("+e+", "+i+"%, "+s+"%)"},t.prototype.toHsv=function(){var t;return{h:s((t=l(this.rgba)).h),s:s(t.s),v:s(t.v),a:s(t.a,3)}},t.prototype.invert=function(){var t;return C({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a})},t.prototype.saturate=function(t){return void 0===t&&(t=.1),C(w(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),C(w(this.rgba,-t))},t.prototype.grayscale=function(){return C(w(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),C(A(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),C(A(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){var e;return"number"==typeof t?C({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):s(this.rgba.a,3)},t.prototype.hue=function(t){var e=p(this.rgba);return"number"==typeof t?C({h:t,s:e.s,l:e.l,a:e.a}):s(e.h)},t.prototype.isEqual=function(t){return this.toHex()===C(t).toHex()},t}(),C=function(t){return t instanceof E?t:new E(t)},T=[];[function(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",s
2andybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},s={};for(var r in i)s[i[r]]=r;var n={};t.prototype.toName=function(e){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,a=s[this.toHex()];if(a)return a;if(null==e?void 0:e.closest){var h=this.toRgb(),o=1/0,u="black";if(!n.length)for(var l in i)n[l]=new t(i[l]).toRgb();for(var d in i){var c=(r=n[d],Math.pow(h.r-r.r,2)+Math.pow(h.g-r.g,2)+Math.pow(h.b-r.b,2));c<o&&(o=c,u=d)}return u}},e.string.push([function(e){var s=e.toLowerCase(),r="transparent"===s?"#0000":i[s];return r?new t(r).toRgb():null},"name"])}].forEach(function(t){0>T.indexOf(t)&&(t(E,_),T.push(t))});let Y=class t{constructor(t=0xffffff){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=0xffffff,this.value=t}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(t){return this.value=t,this}set value(e){if(e instanceof t)this._value=this._cloneSource(e._value),this._int=e._int,this._components.set(e._components);else if(null===e)throw Error("Cannot set Color#value to null");else null!==this._value&&this._isSourceEqual(this._value,e)||(this._value=this._cloneSource(e),this._normalize(this._value))}get value(){return this._value}_cloneSource(t){if("string"==typeof t||"number"==typeof t||t instanceof Number||null===t);else if(Array.isArray(t)||ArrayBuffer.isView(t))return t.slice(0);else if("object"==typeof t&&null!==t)return{...t};return t}_isSourceEqual(t,e){let i=typeof t;if(i!==typeof e)return!1;if("number"===i||"string"===i||t instanceof Number);else if(Array.isArray(t)&&Array.isArray(e)||ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return t.length===e.length&&t.every((t,i)=>t===e[i]);else if(null!==t&&null!==e){let i=Object.keys(t),s=Object.keys(e);return i.length===s.length&&i.every(i=>t[i]===e[i])}return t===e}toRgba(){let[t,e,i,s]=this._components;return{r:t,g:e,b:i,a:s}}toRgb(){let[t,e,i]=this._components;return{r:t,g:e,b:i}}toRgbaString(){let[t,e,i]=this.toUint8RgbArray();return`rgba(${t},${e},${i},${this.alpha})`}toUint8RgbArray(t){let[e,i,s]=this._components;return this._arrayRgb||(this._arrayRgb=[]),t||(t=this._arrayRgb),t[0]=Math.round(255*e),t[1]=Math.round(255*i),t[2]=Math.round(255*s),t}toArray(t){this._arrayRgba||(this._arrayRgba=[]),t||(t=this._arrayRgba);let[e,i,s,r]=this._components;return t[0]=e,t[1]=i,t[2]=s,t[3]=r,t}toRgbArray(t){this._arrayRgb||(this._arrayRgb=[]),t||(t=this._arrayRgb);let[e,i,s]=this._components;return t[0]=e,t[1]=i,t[2]=s,t}toNumber(){return this._int}toBgrNumber(){let[t,e,i]=this.toUint8RgbArray();return(i<<16)+(e<<8)+t}toLittleEndianNumber(){let t=this._int;return(t>>16)+(65280&t)+((255&t)<<16)}multiply(e){let[i,s,r,n]=t._temp.setValue(e)._components;return this._components[0]*=i,this._components[1]*=s,this._components[2]*=r,this._components[3]*=n,this._refreshInt(),this._value=null,this}premultiply(t,e=!0){return e&&(this._components[0]*=t,this._components[1]*=t,this._components[2]*=t),this._components[3]=t,this._refreshInt(),this._value=null,this}toPremultiplied(t,e=!0){if(1===t)return -0x1000000+this._int;if(0===t)return e?0:this._int;let i=this._int>>16&255,s=this._int>>8&255,r=255&this._int;return e&&(i=i*t+.5|0,s=s*t+.5|0,r=r*t+.5|0),(255*t<<24)+(i<<16)+(s<<8)+r}toHex(){let t=this._int.toString(16);return`#${"000000".substring(0,6-t.length)+t}`}toHexa(){let t=Math.round(255*this._components[3]).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(t){return this._components[3]=this._clamp(t),this._value=null,this}_normalize(e){let i,s,r,n;if(("number"==typeof e||e instanceof Number)&&e>=0&&e<=0xffffff){let t=e;i=(t>>16&255)/255,s=(t>>8&255)/255,r=(255&t)/255,n=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[i,s,r,n=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[i,s,r,n=255]=e,i/=255,s/=255,r/=255,n/=255;else if("string"==typeof e||"object"==typeof e){if("string"==typeof e){let i=t.HEX_PATTERN.exec(e);i&&(e=`#${i[2]}`)}let a=C(e);a.isValid()&&({r:i,g:s,b:r,a:n}=a.rgba,i/=255,s/=255,r/=255)}if(void 0!==i)this._components[0]=i,this._components[1]=s,this._components[2]=r,this._components[3]=n,this._refreshInt();else throw Error(`Unable to convert color ${e}`)}_refreshInt(){this._clamp(this._components);let[t,e,i]=this._components;this._int=(255*t<<16)+(255*e<<8)+(255*i|0)}_clamp(t,e=0,i=1){return"number"==typeof t?Math.min(Math.max(t,e),i):(t.forEach((s,r)=>{t[r]=Math.min(Math.max(s,e),i)}),t)}static isColorLike(e){return"number"==typeof e||"string"==typeof e||e instanceof Number||e instanceof t||Array.isArray(e)||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Float32Array||void 0!==e.r&&void 0!==e.g&&void 0!==e.b||void 0!==e.r&&void 0!==e.g&&void 0!==e.b&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.l||void 0!==e.h&&void 0!==e.s&&void 0!==e.l&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.v||void 0!==e.h&&void 0!==e.s&&void 0!==e.v&&void 0!==e.a}};Y.shared=new Y,Y._temp=new Y,Y.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i,t.s(["Color",0,Y],652089)},245221,t=>{"use strict";let e={createCanvas:(t,e)=>{let i=document.createElement("canvas");return i.width=t,i.height=e,i},createImage:()=>new Image,getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>new DOMParser().parseFromString(t,"text/xml")};t.s(["DOMAdapter",0,{get:()=>e,set(t){e=t}}],245221)},445997,t=>{"use strict";var e,i=((e=i||{}).Application="application",e.WebGLPipes="webgl-pipes",e.WebGLPipesAdaptor="webgl-pipes-adaptor",e.WebGLSystem="webgl-system",e.WebGPUPipes="webgpu-pipes",e.WebGPUPipesAdaptor="webgpu-pipes-adaptor",e.WebGPUSystem="webgpu-system",e.CanvasSystem="canvas-system",e.CanvasPipesAdaptor="canvas-pipes-adaptor",e.CanvasPipes="canvas-pipes",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e.MaskEffect="mask-effect",e.BlendMode="blend-mode",e.TextureSource="texture-source",e.TextureUploaderWebGL="texture-uploader-webgl",e.TextureUploaderWebGPU="texture-uploader-webgpu",e.Environment="environment",e.ShapeBuilder="shape-builder",e.Batcher="batcher",e);let s=t=>{if("function"==typeof t||"object"==typeof t&&t.extension){if(!t.extension)throw Error("Extension class must have an extension object");t={..."object"!=typeof t.extension?{type:t.extension}:t.extension,ref:t}}if("object"==typeof t)t={...t};else throw Error("Invalid extension type");return"string"==typeof t.type&&(t.type=[t.type]),t},r=(t,e)=>s(t).priority??e;t.s(["ExtensionType",0,i,"extensions",0,{_addHandlers:{},_removeHandlers:{},_queue:{}
2,remove(...t){return t.map(s).forEach(t=>{t.type.forEach(e=>this._removeHandlers[e]?.(t))}),this},add(...t){return t.map(s).forEach(t=>{t.type.forEach(e=>{let i=this._addHandlers,s=this._queue;i[e]?i[e]?.(t):(s[e]=s[e]||[],s[e]?.push(t))})}),this},handle(t,e,i){let s=this._addHandlers,r=this._removeHandlers;if(s[t]||r[t])throw Error(`Extension type ${t} already has a handler`);s[t]=e,r[t]=i;let n=this._queue;return n[t]&&(n[t]?.forEach(t=>e(t)),delete n[t]),this},handleByMap(t,e){return this.handle(t,t=>{t.name&&(e[t.name]=t.ref)},t=>{t.name&&delete e[t.name]})},handleByNamedList(t,e,i=-1){return this.handle(t,t=>{e.findIndex(e=>e.name===t.name)>=0||(e.push({name:t.name,value:t.ref}),e.sort((t,e)=>r(e.value,i)-r(t.value,i)))},t=>{let i=e.findIndex(e=>e.name===t.name);-1!==i&&e.splice(i,1)})},handleByList(t,e,i=-1){return this.handle(t,t=>{e.includes(t.ref)||(e.push(t.ref),e.sort((t,e)=>r(e,i)-r(t,i)))},t=>{let i=e.indexOf(t.ref);-1!==i&&e.splice(i,1)})},mixin(t,...e){for(let i of e)Object.defineProperties(t.prototype,Object.getOwnPropertyDescriptors(i))}}])},781163,214845,753158,t=>{"use strict";let e=2*Math.PI,i=180/Math.PI,s=Math.PI/180;t.s(["DEG_TO_RAD",0,s,"PI_2",0,e,"RAD_TO_DEG",0,i],214845);class r{constructor(t=0,e=0){this.x=0,this.y=0,this.x=t,this.y=e}clone(){return new r(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,e=t){return this.x=t,this.y=e,this}toString(){return`[pixi.js/math:Point x=${this.x} y=${this.y}]`}static get shared(){return n.x=0,n.y=0,n}}let n=new r;t.s(["Point",0,r],753158);class a{constructor(t=1,e=0,i=0,s=1,r=0,n=0){this.array=null,this.a=t,this.b=e,this.c=i,this.d=s,this.tx=r,this.ty=n}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,e,i,s,r,n){return this.a=t,this.b=e,this.c=i,this.d=s,this.tx=r,this.ty=n,this}toArray(t,e){this.array||(this.array=new Float32Array(9));let i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0),i[8]=1,i}apply(t,e){e=e||new r;let i=t.x,s=t.y;return e.x=this.a*i+this.c*s+this.tx,e.y=this.b*i+this.d*s+this.ty,e}applyInverse(t,e){e=e||new r;let i=this.a,s=this.b,n=this.c,a=this.d,h=this.tx,o=this.ty,u=1/(i*a+-(n*s)),l=t.x,d=t.y;return e.x=a*u*l+-n*u*d+(o*n-h*a)*u,e.y=i*u*d+-s*u*l+(-o*i+h*s)*u,e}translate(t,e){return this.tx+=t,this.ty+=e,this}scale(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this}rotate(t){let e=Math.cos(t),i=Math.sin(t),s=this.a,r=this.c,n=this.tx;return this.a=s*e-this.b*i,this.b=s*i+this.b*e,this.c=r*e-this.d*i,this.d=r*i+this.d*e,this.tx=n*e-this.ty*i,this.ty=n*i+this.ty*e,this}append(t){let e=this.a,i=this.b,s=this.c,r=this.d;return this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*r,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*r,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*r+this.ty,this}appendFrom(t,e){let i=t.a,s=t.b,r=t.c,n=t.d,a=t.tx,h=t.ty,o=e.a,u=e.b,l=e.c,d=e.d;return this.a=i*o+s*l,this.b=i*u+s*d,this.c=r*o+n*l,this.d=r*u+n*d,this.tx=a*o+h*l+e.tx,this.ty=a*u+h*d+e.ty,this}setTransform(t,e,i,s,r,n,a,h,o){return this.a=Math.cos(a+o)*r,this.b=Math.sin(a+o)*r,this.c=-Math.sin(a-h)*n,this.d=Math.cos(a-h)*n,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d),this}prepend(t){let e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){let e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this}decompose(t){let i=this.a,s=this.b,r=this.c,n=this.d,a=t.pivot,h=-Math.atan2(-r,n),o=Math.atan2(s,i),u=Math.abs(h+o);return u<1e-5||1e-5>Math.abs(e-u)?(t.rotation=o,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=h,t.skew.y=o),t.scale.x=Math.sqrt(i*i+s*s),t.scale.y=Math.sqrt(r*r+n*n),t.position.x=this.tx+(a.x*i+a.y*r),t.position.y=this.ty+(a.x*s+a.y*n),t}invert(){let t=this.a,e=this.b,i=this.c,s=this.d,r=this.tx,n=t*s-e*i;return this.a=s/n,this.b=-e/n,this.c=-i/n,this.d=t/n,this.tx=(i*this.ty-s*r)/n,this.ty=-(t*this.ty-e*r)/n,this}isIdentity(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){let t=new a;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}equals(t){return t.a===this.a&&t.b===this.b&&t.c===this.c&&t.d===this.d&&t.tx===this.tx&&t.ty===this.ty}toString(){return`[pixi.js:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return o.identity()}static get shared(){return h.identity()}}let h=new a,o=new a;t.s(["Matrix",0,a],781163)},954184,t=>{"use strict";var e=t.i(781163);let i=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],s=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],r=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],n=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],a=[],h=[],o=Math.sign;!function(){for(let t=0;t<16;t++){let e=[];a.push(e);for(let a=0;a<16;a++){let h=o(i[t]*i[a]+r[t]*s[a]),u=o(s[t]*i[a]+n[t]*s[a]),l=o(i[t]*r[a]+r[t]*n[a]),d=o(s[t]*r[a]+n[t]*n[a]);for(let t=0;t<16;t++)if(i[t]===h&&s[t]===u&&r[t]===l&&n[t]===d){e.push(t);break}}}for(let t=0;t<16;
2t++){let a=new e.Matrix;a.set(i[t],s[t],r[t],n[t],0,0),h.push(a)}}();let u={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:t=>i[t],uY:t=>s[t],vX:t=>r[t],vY:t=>n[t],inv:t=>8&t?15&t:7&-t,add:(t,e)=>a[t][e],sub:(t,e)=>a[t][u.inv(e)],rotate180:t=>4^t,isVertical:t=>(3&t)==2,byDirection:(t,e)=>2*Math.abs(t)<=Math.abs(e)?e>=0?u.S:u.N:2*Math.abs(e)<=Math.abs(t)?t>0?u.E:u.W:e>0?t>0?u.SE:u.SW:t>0?u.NE:u.NW,matrixAppendRotationInv:(t,e,i=0,s=0,r=0,n=0)=>{let a=h[u.inv(e)],o=a.a,l=a.b,d=a.c,c=a.d,f=i-Math.min(0,o*r,d*n,o*r+d*n),m=s-Math.min(0,l*r,c*n,l*r+c*n),p=t.a,g=t.b,y=t.c,x=t.d;t.a=o*p+l*y,t.b=o*g+l*x,t.c=d*p+c*y,t.d=d*g+c*x,t.tx=f*p+m*y+t.tx,t.ty=f*g+m*x+t.ty},transformRectCoords:(t,e,i,s)=>{let{x:r,y:n,width:a,height:h}=t,{x:o,y:l,width:d,height:c}=e;return i===u.E?(s.set(r+o,n+l,a,h),s):i===u.S?s.set(d-n-h+o,r+l,h,a):i===u.W?s.set(d-r-a+o,c-n-h+l,a,h):i===u.N?s.set(n+o,c-r-a+l,h,a):s.set(r+o,n+l,a,h)}};t.s(["groupD8",0,u])},174808,t=>{"use strict";var e=t.i(753158);let i=[new e.Point,new e.Point,new e.Point,new e.Point];t.s(["Rectangle",0,class t{constructor(t=0,e=0,i=0,s=0){this.type="rectangle",this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(s)}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}isEmpty(){return this.left===this.right||this.top===this.bottom}static get EMPTY(){return new t(0,0,0,0)}clone(){return new t(this.x,this.y,this.width,this.height)}copyFromBounds(t){return this.x=t.minX,this.y=t.minY,this.width=t.maxX-t.minX,this.height=t.maxY-t.minY,this}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.copyFrom(this),t}contains(t,e){return!(this.width<=0)&&!(this.height<=0)&&!!(t>=this.x)&&!!(t<this.x+this.width)&&!!(e>=this.y)&&!!(e<this.y+this.height)}strokeContains(t,e,i,s=.5){let{width:r,height:n}=this;if(r<=0||n<=0)return!1;let a=this.x,h=this.y,o=i*(1-s),u=i-o;return t>=a-o&&t<=a+r+o&&e>=h-o&&e<=h+n+o&&!(t>a+u&&t<a+r-u&&e>h+u&&e<h+n-u)}intersects(t,e){if(!e){let e=this.x<t.x?t.x:this.x;if((this.right>t.right?t.right:this.right)<=e)return!1;let i=this.y<t.y?t.y:this.y;return(this.bottom>t.bottom?t.bottom:this.bottom)>i}let s=this.left,r=this.right,n=this.top,a=this.bottom;if(r<=s||a<=n)return!1;let h=i[0].set(t.left,t.top),o=i[1].set(t.left,t.bottom),u=i[2].set(t.right,t.top),l=i[3].set(t.right,t.bottom);if(u.x<=h.x||o.y<=h.y)return!1;let d=Math.sign(e.a*e.d-e.b*e.c);if(0===d||(e.apply(h,h),e.apply(o,o),e.apply(u,u),e.apply(l,l),Math.max(h.x,o.x,u.x,l.x)<=s||Math.min(h.x,o.x,u.x,l.x)>=r||Math.max(h.y,o.y,u.y,l.y)<=n||Math.min(h.y,o.y,u.y,l.y)>=a))return!1;let c=d*(o.y-h.y),f=d*(h.x-o.x),m=c*s+f*n,p=c*r+f*n,g=c*s+f*a,y=c*r+f*a;if(Math.max(m,p,g,y)<=c*h.x+f*h.y||Math.min(m,p,g,y)>=c*l.x+f*l.y)return!1;let x=d*(h.y-u.y),b=d*(u.x-h.x),_=x*s+b*n,v=x*r+b*n,w=x*s+b*a,M=x*r+b*a;return!(Math.max(_,v,w,M)<=x*h.x+b*h.y||Math.min(_,v,w,M)>=x*l.x+b*l.y)}pad(t=0,e=t){return this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this}fit(t){let e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),s=Math.max(this.y,t.y),r=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=s,this.height=Math.max(r-s,0),this}ceil(t=1,e=.001){let i=Math.ceil((this.x+this.width-e)*t)/t,s=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=s-this.y,this}scale(t,e=t){return this.x*=t,this.y*=e,this.width*=t,this.height*=e,this}enlarge(t){let e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),s=Math.min(this.y,t.y),r=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=s,this.height=r-s,this}getBounds(e){return e||(e=new t),e.copyFrom(this),e}containsRect(t){if(this.width<=0||this.height<=0)return!1;let e=t.x,i=t.y,s=t.x+t.width,r=t.y+t.height;return e>=this.x&&e<this.x+this.width&&i>=this.y&&i<this.y+this.height&&s>=this.x&&s<this.x+this.width&&r>=this.y&&r<this.y+this.height}set(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this}toString(){return`[pixi.js/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}])},527080,t=>{"use strict";let e;var i=t.i(506288),s=t.i(657993);let r={},n={},a={stripVersion:function(t,e){return e?t.replace("#version 300 es",""):t}
2,ensurePrecision:function(t,e,i){let s=i?e.maxSupportedFragmentPrecision:e.maxSupportedVertexPrecision;if("precision"!==t.substring(0,9)){let r=i?e.requestedFragmentPrecision:e.requestedVertexPrecision;return"highp"===r&&"highp"!==s&&(r="mediump"),`precision ${r} float;
3${t}`}return"highp"!==s&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t},addProgramDefines:function(t,e,i){return e?t:i?(t=t.replace("out vec4 finalColor;",""),`
4
5        #ifdef GL_ES // This checks if it is WebGL1
6        #define in varying
7        #define finalColor gl_FragColor
8        #define texture texture2D
9        #endif
10        ${t}
11        `):`
12
13        #ifdef GL_ES // This checks if it is WebGL1
14        #define in attribute
15        #define out varying
16        #endif
17        ${t}
18        `},setProgramName:function(t,{name:e="pixi-program"},i=!0){e=e.replace(/\s+/g,"-")+(i?"-fragment":"-vertex");let s=i?r:n;if(s[e]?(s[e]++,e+=`-${s[e]}`):s[e]=1,-1!==t.indexOf("#define SHADER_NAME"))return t;let a=`#define SHADER_NAME ${e}`;return`${a}
19${t}`},insertVersion:function(t,e){return e?`#version 300 es
20${t}`:t}},h=Object.create(null),o=class t{constructor(r){const n=-1!==(r={...t.defaultOptions,...r}).fragment.indexOf("#version 300 es"),h={stripVersion:n,ensurePrecision:{requestedFragmentPrecision:r.preferredFragmentPrecision,requestedVertexPrecision:r.preferredVertexPrecision,maxSupportedVertexPrecision:"highp",maxSupportedFragmentPrecision:function(){if(!e){e="mediump";let t=(0,s.getTestContext)();t&&t.getShaderPrecisionFormat&&(e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision?"highp":"mediump")}return e}()},setProgramName:{name:r.name},addProgramDefines:n,insertVersion:n};let o=r.fragment,u=r.vertex;Object.keys(a).forEach(t=>{let e=h[t];o=a[t](o,e,!0),u=a[t](u,e,!1)}),this.fragment=o,this.vertex=u,this.transformFeedbackVaryings=r.transformFeedbackVaryings,this._key=(0,i.createIdFromString)(`${this.vertex}:${this.fragment}`,"gl-program")}destroy(){this.fragment=null,this.vertex=null,this._attributeData=null,this._uniformData=null,this._uniformBlockData=null,this.transformFeedbackVaryings=null,h[this._cacheKey]=null}static from(e){let i=`${e.vertex}:${e.fragment}`;return h[i]||(h[i]=new t(e),h[i]._cacheKey=i),h[i]}};o.defaultOptions={preferredVertexPrecision:"highp",preferredFragmentPrecision:"mediump"},t.s(["GlProgram",0,o],527080)},657993,t=>{"use strict";let e;var i=t.i(245221);t.s(["getTestContext",0,function(){return(!e||e?.isContextLost())&&(e=i.DOMAdapter.get().createCanvas().getContext("webgl",{})),e}])},168238,t=>{"use strict";t.s(["BindGroup",0,class{constructor(t){this.resources=Object.create(null),this._dirty=!0;let e=0;for(const i in t){const s=t[i];this.setResource(s,e++)}this._updateKey()}_updateKey(){if(!this._dirty)return;this._dirty=!1;let t=[],e=0;for(let i in this.resources)t[e++]=this.resources[i]._resourceId;this._key=t.join("|")}setResource(t,e){let i=this.resources[e];t!==i&&(i?.off?.("change",this.onResourceChange,this),t.on?.("change",this.onResourceChange,this),this.resources[e]=t,this._dirty=!0)}getResource(t){return this.resources[t]}_touch(t,e){let i=this.resources;for(let s in i)i[s]._gcLastUsed=t,i[s]._touched=e}destroy(){let t=this.resources;for(let e in t){let i=t[e];i?.off?.("change",this.onResourceChange,this)}this.resources=null}onResourceChange(t){this._dirty=!0,t.destroyed?this.destroy():this._updateKey()}}])},852648,t=>{"use strict";var e,i=t.i(506288),s=t.i(809016);let r={f32:"float32","vec2<f32>":"float32x2","vec3<f32>":"float32x3","vec4<f32>":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2<i32>":"sint32x2","vec3<i32>":"sint32x3","vec4<i32>":"sint32x4",vec2i:"sint32x2",vec3i:"sint32x3",vec4i:"sint32x4",u32:"uint32","vec2<u32>":"uint32x2","vec3<u32>":"uint32x3","vec4<u32>":"uint32x4",vec2u:"uint32x2",vec3u:"uint32x3",vec4u:"uint32x4",bool:"uint32","vec2<bool>":"uint32x2","vec3<bool>":"uint32x3","vec4<bool>":"uint32x4"},n=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|\)|$)/g;function a(t,e){let i;for(;null!==(i=n.exec(t));){let t=r[i[3]]??"float32";e[i[2]]={location:parseInt(i[1],10),format:t,stride:(0,s.getAttributeInfoFromFormat)(t).stride,offset:0,instance:!1,start:0}}n.lastIndex=0}function h(t){let e=/@group\((\d+)\)/,i=/@binding\((\d+)\)/,s=/var(<[^>]+>
20)? (\w+)/,r=/:\s*([\w<>]+)/,n=/(\w+)\s*:\s*([\w\<\>]+)/g,a=/struct\s+(\w+)/,h=t.match(/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g)?.map(t=>({group:parseInt(t.match(e)[1],10),binding:parseInt(t.match(i)[1],10),name:t.match(s)[2],isUniform:"<uniform>"===t.match(s)[1],type:t.match(r)[1]}));if(!h)return{groups:[],structs:[]};let o=t.match(/struct\s+(\w+)\s*{([^}]+)}/g)?.map(t=>{let e=t.match(a)[1],i=t.match(n).reduce((t,e)=>{let[i,s]=e.split(":");return t[i.trim()]=s.trim(),t},{});return i?{name:e,members:i}:null}).filter(({name:t})=>h.some(e=>e.type===t||e.type.includes(`<${t}>`)))??[];return{groups:h,structs:o}}var o=((e=o||{})[e.VERTEX=1]="VERTEX",e[e.FRAGMENT=2]="FRAGMENT",e[e.COMPUTE=4]="COMPUTE",e);let u=Object.create(null);t.s(["GpuProgram",0,class t{constructor(t){this._layoutKey=0,this._attributeLocationsKey=0;const{fragment:e,vertex:i,layout:s,gpuLayout:r,name:n}=t;if(this.name=n,this.fragment=e,this.vertex=i,e.source===i.source){const t=h(e.source);this.structsAndGroups=t}else{const t=h(i.source),s=h(e.source);this.structsAndGroups=function(t,e){let i=new Set,s=new Set;return{structs:[...t.structs,...e.structs].filter(t=>!i.has(t.name)&&(i.add(t.name),!0)),groups:[...t.groups,...e.groups].filter(t=>{let e=`${t.name}-${t.binding}`;return!s.has(e)&&(s.add(e),!0)})}}(t,s)}this.layout=s??function({groups:t}){let e=[];for(let i=0;i<t.length;i++){let s=t[i];e[s.group]||(e[s.group]={}),e[s.group][s.name]=s.binding}return e}(this.structsAndGroups),this.gpuLayout=r??function({groups:t}){let e=[];for(let i=0;i<t.length;i++){let s=t[i];e[s.group]||(e[s.group]=[]),s.isUniform?e[s.group].push({binding:s.binding,visibility:o.VERTEX|o.FRAGMENT,buffer:{type:"uniform"}}):"sampler"===s.type?e[s.group].push({binding:s.binding,visibility:o.FRAGMENT,sampler:{type:"filtering"}}):"texture_2d"===s.type||s.type.startsWith("texture_2d<")?e[s.group].push({binding:s.binding,visibility:o.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d",multisampled:!1}}):"texture_2d_array"===s.type||s.type.startsWith("texture_2d_array<")?e[s.group].push({binding:s.binding,visibility:o.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d-array",multisampled:!1}}):("texture_cube"===s.type||s.type.startsWith("texture_cube<"))&&e[s.group].push({binding:s.binding,visibility:o.FRAGMENT,texture:{sampleType:"float",viewDimension:"cube",multisampled:!1}})}for(let t=0;t<e.length;t++)e[t]||(e[t]=[]);return e}(this.structsAndGroups),this.autoAssignGlobalUniforms=this.layout[0]?.globalUniforms!==void 0,this.autoAssignLocalUniforms=this.layout[1]?.localUniforms!==void 0,this._generateProgramKey()}_generateProgramKey(){let{vertex:t,fragment:e}=this,s=t.source+e.source+t.entryPoint+e.entryPoint;this._layoutKey=(0,i.createIdFromString)(s,"program")}get attributeData(){return this._attributeData??(this._attributeData=function({source:t,entryPoint:e}){let i={},s=t.replace(/\/\/.*$/gm,"").replace(/\/\*[\s\S]*?\*\//g,""),r=s.indexOf(`fn ${e}(`);if(-1===r)return i;let n=s.indexOf("->",r);if(-1===n)return i;let h=s.substring(r,n);if(a(h,i),0===Object.keys(i).length){let t=h.match(/\(\s*\w+\s*:\s*(\w+)/);if(t){let e=t[1],r=RegExp(`struct\\s+${e}\\s*\\{([^}]+)\\}`,"s"),n=s.match(r);n&&a(n[1],i)}}return i}(this.vertex)),this._attributeData}destroy(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null,u[this._cacheKey]=null}static from(e){let i=`${e.vertex.source}:${e.fragment.source}:${e.fragment.entryPoint}:${e.vertex.entryPoint}`;return u[i]||(u[i]=new t(e),u[i]._cacheKey=i),u[i]}}],852648)},55239,426076,841726,t=>{"use strict";var e,i=t.i(329723),s=t.i(777038),r=t.i(707876),n=i,a=((e=a||{})[e.MAP_READ=1]="MAP_READ",e[e.MAP_WRITE=2]="MAP_WRITE",e[e.COPY_SRC=4]="COPY_SRC",e[e.COPY_DST=8]="COPY_DST",e[e.INDEX=16]="INDEX",e[e.VERTEX=32]="VERTEX",e[e.UNIFORM=64]="UNIFORM",e[e.STORAGE=128]="STORAGE",e[e.INDIRECT=256]="INDIRECT",e[e.QUERY_RESOLVE=512]="QUERY_RESOLVE",e[e.STATIC=1024]="STATIC",e);t.s(["BufferUsage",0,a],426076);class h extends n.default{constructor(t){let{data:e,size:i}=t;const{usage:s,label:n,shrinkToFit:a}=t;super(),this._gpuData=Object.create(null),this._gcLastUsed=-1,this.autoGarbageCollect=!0,this.uid=(0,r.uid)("buffer"),this._resourceType="buffer",this._resourceId=(0,r.uid)("resource"),this._touched=0,this._updateID=1,this._dataInt32=null,this.shrinkToFit=!0,this.destroyed=!1,e instanceof Array&&(e=new Float32Array(e)),this._data=e,i??(i=e?.byteLength);const h=!!e;this.descriptor={size:i,usage:s,mappedAtCreation:h,label:n},this.shrinkToFit=a??!0}get data(){return this._data}set data(t){this.setDataWithSize(t,t.length,!0)}get dataInt32(){return this._dataInt32||(this._dataInt32=new Int32Array(this.data.buffer)),this._dataInt32}get static(){return!!(this.descriptor.usage&a.STATIC)}set static(t){t?this.descriptor.usage|=a.STATIC:this.descriptor.usage&=~a.STATIC}setDataWithSize(t,e,i){if(this._updateID++,this._updateSize=e*t.BYTES_PER_ELEMENT,this._data===t){i&&this.emit
20("update",this);return}let s=this._data;(this._data=t,this._dataInt32=null,s&&s.length===t.length)?i&&this.emit("update",this):!this.shrinkToFit&&s&&t.byteLength<s.byteLength?i&&this.emit("update",this):(this.descriptor.size=t.byteLength,this._resourceId=(0,r.uid)("resource"),this.emit("change",this))}update(t){this._updateSize=t??this._updateSize,this._updateID++,this.emit("update",this)}unload(){for(let t in this.emit("unload",this),this._gpuData)this._gpuData[t]?.destroy();this._gpuData=Object.create(null)}destroy(){this.destroyed=!0,this.unload(),this.emit("destroy",this),this.emit("change",this),this._data=null,this.descriptor=null,this.removeAllListeners()}}function o(t,e){if(!(t instanceof h)){let i=e?a.INDEX:a.VERTEX;t instanceof Array&&(e?(t=new Uint32Array(t),i=a.INDEX|a.COPY_DST):(t=new Float32Array(t),i=a.VERTEX|a.COPY_DST)),t=new h({data:t,label:e?"index-mesh-buffer":"vertex-mesh-buffer",usage:i})}return t}t.s(["Buffer",0,h],841726);class u extends i.default{constructor(t={}){super(),this._gpuData=Object.create(null),this.autoGarbageCollect=!0,this._gcLastUsed=-1,this.uid=(0,r.uid)("geometry"),this._layoutKey=0,this.instanceCount=1,this._bounds=new s.Bounds,this._boundsDirty=!0;const{attributes:e,indexBuffer:i,topology:n}=t;if(this.buffers=[],this.attributes={},e)for(const t in e)this.addAttribute(t,e[t]);this.instanceCount=t.instanceCount??1,i&&this.addIndex(i),this.topology=n||"triangle-list"}onBufferUpdate(){this._boundsDirty=!0,this.emit("update",this)}getAttribute(t){return this.attributes[t]}getIndex(){return this.indexBuffer}getBuffer(t){return this.getAttribute(t).buffer}getSize(){for(let t in this.attributes){let e=this.attributes[t];return e.buffer.data.length/(e.stride/4||e.size)}return 0}addAttribute(t,e){var i;let s=(((i=e)instanceof h||Array.isArray(i)||i.BYTES_PER_ELEMENT)&&(i={buffer:i}),i.buffer=o(i.buffer,!1),i);-1===this.buffers.indexOf(s.buffer)&&(this.buffers.push(s.buffer),s.buffer.on("update",this.onBufferUpdate,this),s.buffer.on("change",this.onBufferUpdate,this)),this.attributes[t]=s}addIndex(t){this.indexBuffer=o(t,!0),this.buffers.push(this.indexBuffer)}get bounds(){return this._boundsDirty?(this._boundsDirty=!1,function(t,e,i){let s=t.getAttribute(e);if(!s)return i.minX=0,i.minY=0,i.maxX=0,i.maxY=0,i;let r=s.buffer.data,n=1/0,a=1/0,h=-1/0,o=-1/0,u=r.BYTES_PER_ELEMENT,l=(s.offset||0)/u,d=(s.stride||8)/u;for(let t=l;t<r.length;t+=d){let e=r[t],i=r[t+1];e>h&&(h=e),i>o&&(o=i),e<n&&(n=e),i<a&&(a=i)}return i.minX=n,i.minY=a,i.maxX=h,i.maxY=o,i}(this,"aPosition",this._bounds)):this._bounds}unload(){for(let t in this.emit("unload",this),this._gpuData)this._gpuData[t]?.destroy();this._gpuData=Object.create(null)}destroy(t=!1){this.emit("destroy",this),this.removeAllListeners(),t&&this.buffers.forEach(t=>t.destroy()),this.unload(),this.indexBuffer?.destroy(),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null}}t.s(["Geometry",0,u],55239)},809016,t=>{"use strict";let e={uint8x2:{size:2,stride:2,normalised:!1},uint8x4:{size:4,stride:4,normalised:!1},sint8x2:{size:2,stride:2,normalised:!1},sint8x4:{size:4,stride:4,normalised:!1},unorm8x2:{size:2,stride:2,normalised:!0},unorm8x4:{size:4,stride:4,normalised:!0},snorm8x2:{size:2,stride:2,normalised:!0},snorm8x4:{size:4,stride:4,normalised:!0},uint16x2:{size:2,stride:4,normalised:!1},uint16x4:{size:4,stride:8,normalised:!1},sint16x2:{size:2,stride:4,normalised:!1},sint16x4:{size:4,stride:8,normalised:!1},unorm16x2:{size:2,stride:4,normalised:!0},unorm16x4:{size:4,stride:8,normalised:!0},snorm16x2:{size:2,stride:4,normalised:!0},snorm16x4:{size:4,stride:8,normalised:!0},float16x2:{size:2,stride:4,normalised:!1},float16x4:{size:4,stride:8,normalised:!1},float32:{size:1,stride:4,normalised:!1},float32x2:{size:2,stride:8,normalised:!1},float32x3:{size:3,stride:12,normalised:!1},float32x4:{size:4,stride:16,normalised:!1},uint32:{size:1,stride:4,normalised:!1},uint32x2:{size:2,stride:8,normalised:!1},uint32x3:{size:3,stride:12,normalised:!1},uint32x4:{size:4,stride:16,normalised:!1},sint32:{size:1,stride:4,normalised:!1},sint32x2:{size:2,stride:8,normalised:!1},sint32x3:{size:3,stride:12,normalised:!1},sint32x4:{size:4,stride:16,normalised:!1}};t.s(["getAttributeInfoFromFormat",0,function(t){return e[t]??e.float32}])},444853,t=>{"use strict";var e=t.i(707876);t.s(["InstructionSet",0,class{constructor(){this.uid=(0,e.uid)("instructionSet"),this.instructions=[],this.instructionSize=0,this.renderables=[],this.gcTick=0}reset(){this.instructionSize=0}destroy(){this.instructions.length=0,this.renderables.length=0,this.renderPipes=null,this.gcTick=0}add(t){this.instructions[this.instructionSize++]=t}log(){this.instructions.length=this.instructionSize,console.table(this.instructions,["type","action"])}}])},981662,t=>{"use strict";var e=t.i(329723),i=t.i(707876),s=t.i(527080),r=t.i(168238),n=t.i(852648),a=t.i(427739),h=t.i(159190);class o extends e.default{constructor(t){super(),this.uid=(0,i.uid)("shader"),this._uniformBindMap=Object.create(null),this._ownedBindGroups=[],this._destroyed=!1;let{gpuProgram:e,glProgram:s,groups:n,resources:o,compatibleRenderers:u,groupMap:l}=t;this.gpuProgram=e,this.glProgram=s,void 0===u&&(u=0,e&&(u|=a.RendererType.WEBGPU),s&&(u|=a.RendererType.WEBGL)),this.compatibleRenderers=u;const d={};if(o||n||(o={}),o&&n)throw Error("[Shader] Cannot have both resources and groups");
20if(e||!n||l){if(!e&&n&&l)for(const t in l)for(const e in l[t]){const i=l[t][e];d[i]={group:t,binding:e,name:i}}else if(e&&n&&!l){const t=e.structsAndGroups.groups;l={},t.forEach(t=>{l[t.group]=l[t.group]||{},l[t.group][t.binding]=t.name,d[t.name]=t})}else if(o){n={},l={},e&&e.structsAndGroups.groups.forEach(t=>{l[t.group]=l[t.group]||{},l[t.group][t.binding]=t.name,d[t.name]=t});let t=0;for(const e in o)!d[e]&&(n[99]||(n[99]=new r.BindGroup,this._ownedBindGroups.push(n[99])),d[e]={group:99,binding:t,name:e},l[99]=l[99]||{},l[99][t]=e,t++);for(const t in o){let e=o[t];e.source||e._resourceType||(e=new h.UniformGroup(e));const i=d[t];i&&(n[i.group]||(n[i.group]=new r.BindGroup,this._ownedBindGroups.push(n[i.group])),n[i.group].setResource(e,i.binding))}}}else throw Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");this.groups=n,this._uniformBindMap=l,this.resources=this._buildResourceAccessor(n,d)}addResource(t,e,i){var s,n;(s=this._uniformBindMap)[e]||(s[e]={}),(n=this._uniformBindMap[e])[i]||(n[i]=t),this.groups[e]||(this.groups[e]=new r.BindGroup,this._ownedBindGroups.push(this.groups[e]))}_buildResourceAccessor(t,e){let i={};for(let s in e){let r=e[s];Object.defineProperty(i,r.name,{get:()=>t[r.group].getResource(r.binding),set(e){t[r.group].setResource(e,r.binding)}})}return i}destroy(t=!1){this._destroyed||(this._destroyed=!0,this.emit("destroy",this),t&&(this.gpuProgram?.destroy(),this.glProgram?.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach(t=>{t.destroy()}),this._ownedBindGroups=null,this.resources=null,this.groups=null)}static from(t){let e,i,{gpu:r,gl:a,...h}=t;return r&&(e=n.GpuProgram.from(r)),a&&(i=s.GlProgram.from(a)),new o({gpuProgram:e,glProgram:i,...h})}}t.s(["Shader",0,o])},159190,t=>{"use strict";var e=t.i(707876),i=t.i(506288);let s=["f32","i32","vec2<f32>","vec3<f32>","vec4<f32>","mat2x2<f32>","mat3x3<f32>","mat4x4<f32>","mat3x2<f32>","mat4x2<f32>","mat2x3<f32>","mat4x3<f32>","mat2x4<f32>","mat3x4<f32>","vec2<i32>","vec3<i32>","vec4<i32>"],r=s.reduce((t,e)=>(t[e]=!0,t),{}),n=class t{constructor(n,a){this._touched=0,this.uid=(0,e.uid)("uniform"),this._resourceType="uniformGroup",this._resourceId=(0,e.uid)("resource"),this.isUniformGroup=!0,this._dirtyId=0,this.destroyed=!1,a={...t.defaultOptions,...a},this.uniformStructures=n;const h={};for(const t in n){const e=n[t];
20if(e.name=t,e.size=e.size??1,!r[e.type]){const t=e.type.match(/^array<(\w+(?:<\w+>)?),\s*(\d+)>$/);if(t){const[,i,s]=t;throw Error(`Uniform type ${e.type} is not supported. Use type: '${i}', size: ${s} instead.`)}throw Error(`Uniform type ${e.type} is not supported. Supported uniform types are: ${s.join(", ")}`)}e.value??(e.value=function(t,e){switch(t){case"f32":return 0;case"vec2<f32>":return new Float32Array(2*e);case"vec3<f32>":return new Float32Array(3*e);case"vec4<f32>":return new Float32Array(4*e);case"mat2x2<f32>":return new Float32Array([1,0,0,1]);case"mat3x3<f32>":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4x4<f32>":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}(e.type,e.size)),h[t]=e.value}this.uniforms=h,this._dirtyId=1,this.ubo=a.ubo,this.isStatic=a.isStatic,this._signature=(0,i.createIdFromString)(Object.keys(h).map(t=>`${t}-${n[t].type}`).join("-"),"uniform-group")}update(){this._dirtyId++}};n.defaultOptions={ubo:!1,isStatic:!1},t.s(["UniformGroup",0,n],159190)},560460,674533,41745,t=>{"use strict";var e=t.i(329723),i=t.i(954184),s=t.i(174808),r=t.i(707876),n=t.i(571442),a=t.i(261477),h=t.i(445997),o=t.i(422213);class u extends o.TextureSource{constructor(t){const e=t.resource||new Float32Array(t.width*t.height*4);let i=t.format;i||(e instanceof Float32Array?i="rgba32float":e instanceof Int32Array||e instanceof Uint32Array?i="rgba32uint":e instanceof Int16Array||e instanceof Uint16Array?i="rgba16uint":(Int8Array,i="bgra8unorm")),super({...t,resource:e,format:i}),this.uploadMethodId="buffer"}static test(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array}}u.extension=h.ExtensionType.TextureSource,t.s(["BufferImageSource",0,u],674533);var l=t.i(781163);let d=new l.Matrix;class c{constructor(t,e){this.mapCoord=new l.Matrix,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._updateID=0,this.clampOffset=0,void 0===e?this.clampMargin=t.width<10?0:.5:this.clampMargin=e,this.isSimple=!1,this.texture=t}get texture(){return this._texture}set texture(t){this._texture!==t&&(this._texture?.removeListener("update",this.update,this),this._texture=t,this._texture.addListener("update",this.update,this)),this.update()}multiplyUvs(t,e){void 0===e&&(e=t);let i=this.mapCoord;for(let s=0;s<t.length;s+=2){let r=t[s],n=t[s+1];e[s]=r*i.a+n*i.c+i.tx,e[s+1]=r*i.b+n*i.d+i.ty}return e}update(){let t=this._texture;this._updateID++;let e=t.uvs;this.mapCoord.set(e.x1-e.x0,e.y1-e.y0,e.x3-e.x0,e.y3-e.y0,e.x0,e.y0);let i=t.orig,s=t.trim;s&&(d.set(i.width/s.width,0,0,i.height/s.height,-s.x/s.width,-s.y/s.height),this.mapCoord.append(d));let r=t.source,n=this.uClampFrame,a=this.clampMargin/r._resolution,h=this.clampOffset/r._resolution;return n[0]=(t.frame.x+a+h)/r.width,n[1]=(t.frame.y+a+h)/r.height,n[2]=(t.frame.x+t.frame.width-a+h)/r.width,n[3]=(t.frame.y+t.frame.height-a+h)/r.height,this.uClampOffset[0]=this.clampOffset/r.pixelWidth,this.uClampOffset[1]=this.clampOffset/r.pixelHeight,this.isSimple=t.frame.width===r.width&&t.frame.height===r.height&&0===t.rotate,!0}}t.s(["TextureMatrix",0,c],41745);class f extends e.default{constructor({source:t,label:e,frame:i,orig:n,trim:a,defaultAnchor:h,defaultBorders:u,rotate:l,dynamic:d}={}){if(super(),this.uid=(0,r.uid)("texture"),this.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},this.frame=new s.Rectangle,this.noFrame=!1,this.dynamic=!1,this.isTexture=!0,this.label=e,this.source=t?.source??new o.TextureSource,this.noFrame=!i,i)this.frame.copyFrom(i);else{const{width:t,height:e}=this._source;this.frame.width=t,this.frame.height=e}this.orig=n||this.frame,this.trim=a,this.rotate=l??0,this.defaultAnchor=h,this.defaultBorders=u,this.destroyed=!1,this.dynamic=d||
20!1,this.updateUvs()}set source(t){this._source&&this._source.off("resize",this.update,this),this._source=t,t.on("resize",this.update,this),this.emit("update",this)}get source(){return this._source}get textureMatrix(){return this._textureMatrix||(this._textureMatrix=new c(this)),this._textureMatrix}get width(){return this.orig.width}get height(){return this.orig.height}updateUvs(){let{uvs:t,frame:e}=this,{width:s,height:r}=this._source,n=e.x/s,a=e.y/r,h=e.width/s,o=e.height/r,u=this.rotate;if(u){let e=h/2,s=o/2,r=n+e,l=a+s;u=i.groupD8.add(u,i.groupD8.NW),t.x0=r+e*i.groupD8.uX(u),t.y0=l+s*i.groupD8.uY(u),u=i.groupD8.add(u,2),t.x1=r+e*i.groupD8.uX(u),t.y1=l+s*i.groupD8.uY(u),u=i.groupD8.add(u,2),t.x2=r+e*i.groupD8.uX(u),t.y2=l+s*i.groupD8.uY(u),u=i.groupD8.add(u,2),t.x3=r+e*i.groupD8.uX(u),t.y3=l+s*i.groupD8.uY(u)}else t.x0=n,t.y0=a,t.x1=n+h,t.y1=a,t.x2=n+h,t.y2=a+o,t.x3=n,t.y3=a+o}destroy(t=!1){this._source&&(this._source.off("resize",this.update,this),t&&(this._source.destroy(),this._source=null)),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}update(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit("update",this)}get baseTexture(){return(0,n.deprecation)(n.v8_0_0,"Texture.baseTexture is now Texture.source"),this._source}}f.EMPTY=new f({label:"EMPTY",source:new o.TextureSource({label:"EMPTY"})}),f.EMPTY.destroy=a.NOOP,f.WHITE=new f({source:new u({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"}),f.WHITE.destroy=a.NOOP,t.s(["Texture",0,f],560460)},422213,459165,168760,103420,t=>{"use strict";var e=t.i(329723);function i(t){return!(t&t-1)&&!!t}function s(t){let e={};for(let i in t)void 0!==t[i]&&(e[i]=t[i]);return e}t.s(["isPow2",0,i,"nextPow2",0,function(t){return t+=+(0===t),--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}],459165),t.s(["definedProps",0,s],168760);var r=t.i(707876),n=e,a=t.i(571442);let h=Object.create(null),o=class t extends n.default{constructor(e={}){super(),this._resourceType="textureSampler",this._touched=0,this._maxAnisotropy=1,this.destroyed=!1,e={...t.defaultOptions,...e},this.addressMode=e.addressMode,this.addressModeU=e.addressModeU??this.addressModeU,this.addressModeV=e.addressModeV??this.addressModeV,this.addressModeW=e.addressModeW??this.addressModeW,this.scaleMode=e.scaleMode,this.magFilter=e.magFilter??this.magFilter,this.minFilter=e.minFilter??this.minFilter,this.mipmapFilter=e.mipmapFilter??this.mipmapFilter,this.lodMinClamp=e.lodMinClamp,this.lodMaxClamp=e.lodMaxClamp,this.compare=e.compare,this.maxAnisotropy=e.maxAnisotropy??1}set addressMode(t){this.addressModeU=t,this.addressModeV=t,this.addressModeW=t}get addressMode(){return this.addressModeU}set wrapMode(t){(0,a.deprecation)(a.v8_0_0,"TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=t}get wrapMode(){return this.addressMode}set scaleMode(t){this.magFilter=t,this.minFilter=t,this.mipmapFilter=t}get scaleMode(){return this.magFilter}set maxAnisotropy(t){this._maxAnisotropy=Math.min(t,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}get maxAnisotropy(){return this._maxAnisotropy}get _resourceId(){return this._sharedResourceId||this._generateResourceId()}update(){this._sharedResourceId=null,this.emit("change",this)}_generateResourceId(){let t,e=`${this.addressModeU}-${this.addressModeV}-${this.addressModeW}-${this.magFilter}-${this.minFilter}-${this.mipmapFilter}-${this.lodMinClamp}-${this.lodMaxClamp}-${this.compare}-${this._maxAnisotropy}`;return this._sharedResourceId=(void 0===(t=h[e])&&(h[e]=(0,r.uid)("resource")),t),this._resourceId}destroy(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}};o.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"},t.s(["TextureStyle",0,o],103420);let u=class t extends e.default{constructor(e={}){super(),this.options=e,this._gpuData=Object.create(null),this._gcLastUsed=-1,this.uid=(0,r.uid)("textureSource"),this._resourceType="textureSource",this._resourceId=(0,r.uid)("resource"),this.uploadMethodId="unknown",this._resolution=1,this.pixelWidth=1,this.pixelHeight=1,this.width=1,this.height=1,this.sampleCount=1,this.mipLevelCount=1,this.autoGenerateMipmaps=!1,this.format="rgba8unorm",this.dimension="2d",this.viewDimension="2d",this.arrayLayerCount=1,this.antialias=!1,this.transient=!1,this._touched=0,this._batchTick=-1,this._textureBindLocation=-1,e={...t.defaultOptions,...e},this.label=e.label??"",this.resource=e.resource,this.autoGarbageCollect=e.autoGarbageCollect,this._resolution=e.resolution,e.width?this.pixelWidth=e.width*this._resolution:this.pixelWidth=this.resource?this.resourceWidth??1:1,e.height?this.pixelHeight=e.height*this._resolution:this.pixelHeight=this.resource?this.resourceHeight??1:1,this.width=this.pixelWidth/this._resolution,this.height=this.pixelHeight/this._resolution,this.format=e.format,this.dimension=e.dimensions,this.viewDimension=e.viewDimension??e.dimensions,this.arrayLayerCount=e.arrayLayerCount,this.mipLevelCount=e.mipLevelCount,this.autoGenerateMipmaps=e.autoGenerateMipmaps,this.sampleCount=e.sampleC
20ount,this.antialias=e.antialias,this.transient=e.transient??!1,this.alphaMode=e.alphaMode,this.style=new o(s(e)),this.destroyed=!1,this._refreshPOT()}get source(){return this}get style(){return this._style}set style(t){this.style!==t&&(this._style?.off("change",this._onStyleChange,this),this._style=t,this._style?.on("change",this._onStyleChange,this),this._onStyleChange())}set maxAnisotropy(t){this._style.maxAnisotropy=t}get maxAnisotropy(){return this._style.maxAnisotropy}get addressMode(){return this._style.addressMode}set addressMode(t){this._style.addressMode=t}get repeatMode(){return this._style.addressMode}set repeatMode(t){this._style.addressMode=t}get magFilter(){return this._style.magFilter}set magFilter(t){this._style.magFilter=t}get minFilter(){return this._style.minFilter}set minFilter(t){this._style.minFilter=t}get mipmapFilter(){return this._style.mipmapFilter}set mipmapFilter(t){this._style.mipmapFilter=t}get lodMinClamp(){return this._style.lodMinClamp}set lodMinClamp(t){this._style.lodMinClamp=t}get lodMaxClamp(){return this._style.lodMaxClamp}set lodMaxClamp(t){this._style.lodMaxClamp=t}_onStyleChange(){this.emit("styleChange",this)}update(){if(this.resource){let t=this._resolution;if(this.resize(this.resourceWidth/t,this.resourceHeight/t))return}this.emit("update",this)}destroy(){this.destroyed=!0,this.unload(),this.emit("destroy",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}unload(){for(let t in this._resourceId=(0,r.uid)("resource"),this.emit("change",this),this.emit("unload",this),this._gpuData)this._gpuData[t]?.destroy?.();this._gpuData=Object.create(null)}get resourceWidth(){let{resource:t}=this;return t.naturalWidth||t.videoWidth||t.displayWidth||t.width}get resourceHeight(){let{resource:t}=this;return t.naturalHeight||t.videoHeight||t.displayHeight||t.height}get resolution(){return this._resolution}set resolution(t){this._resolution!==t&&(this._resolution=t,this.width=this.pixelWidth/t,this.height=this.pixelHeight/t)}resize(t,e,i){i||(i=this._resolution),t||(t=this.width),e||(e=this.height);let s=Math.round(t*i),n=Math.round(e*i);return this.width=s/i,this.height=n/i,this._resolution=i,(this.pixelWidth!==s||this.pixelHeight!==n)&&(this._refreshPOT(),this.pixelWidth=s,this.pixelHeight=n,this.emit("resize",this),this._resourceId=(0,r.uid)("resource"),this.emit("change",this),!0)}updateMipmaps(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}set wrapMode(t){this._style.wrapMode=t}get wrapMode(){return this._style.wrapMode}set scaleMode(t){this._style.scaleMode=t}get scaleMode(){return this._style.scaleMode}_refreshPOT(){this.isPowerOfTwo=i(this.pixelWidth)&&i(this.pixelHeight)}static test(t){throw Error("Unimplemented")}};u.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",viewDimension:"2d",arrayLayerCount:1,mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1},t.s(["TextureSource",0,u],422213)},506288,t=>{"use strict";let e=Object.create(null),i=Object.create(null);t.s(["createIdFromString",0,function(t,s){let r=i[t];return void 0===r&&(void 0===e[s]&&(e[s]=1),i[t]=r=e[s]++),r}])},427739,t=>{"use strict";var e,i=((e=i||{})[e.WEBGL=1]="WEBGL",e[e.WEBGPU=2]="WEBGPU",e[e.CANVAS=4]="CANVAS",e[e.BOTH=3]="BOTH",e);t.s(["RendererType",0,i])},777038,t=>{"use strict";var e=t.i(781163),i=t.i(174808);
20let s=new e.Matrix;t.s(["Bounds",0,class t{constructor(t=1/0,e=1/0,i=-1/0,r=-1/0){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=s,this.minX=t,this.minY=e,this.maxX=i,this.maxY=r}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}get rectangle(){this._rectangle||(this._rectangle=new i.Rectangle);let t=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(t.x=0,t.y=0,t.width=0,t.height=0):t.copyFromBounds(this),t}clear(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=s,this}set(t,e,i,s){this.minX=t,this.minY=e,this.maxX=i,this.maxY=s}addFrame(t,e,i,s,r){r||(r=this.matrix);let n=r.a,a=r.b,h=r.c,o=r.d,u=r.tx,l=r.ty,d=this.minX,c=this.minY,f=this.maxX,m=this.maxY,p=n*t+h*e+u,g=a*t+o*e+l;p<d&&(d=p),g<c&&(c=g),p>f&&(f=p),g>m&&(m=g),p=n*i+h*e+u,g=a*i+o*e+l,p<d&&(d=p),g<c&&(c=g),p>f&&(f=p),g>m&&(m=g),p=n*t+h*s+u,g=a*t+o*s+l,p<d&&(d=p),g<c&&(c=g),p>f&&(f=p),g>m&&(m=g),p=n*i+h*s+u,g=a*i+o*s+l,p<d&&(d=p),g<c&&(c=g),p>f&&(f=p),g>m&&(m=g),this.minX=d,this.minY=c,this.maxX=f,this.maxY=m}addRect(t,e){this.addFrame(t.x,t.y,t.x+t.width,t.y+t.height,e)}addBounds(t,e){this.addFrame(t.minX,t.minY,t.maxX,t.maxY,e)}addBoundsMask(t){this.minX=this.minX>t.minX?this.minX:t.minX,this.minY=this.minY>t.minY?this.minY:t.minY,this.maxX=this.maxX<t.maxX?this.maxX:t.maxX,this.maxY=this.maxY<t.maxY?this.maxY:t.maxY}applyMatrix(t){let e=this.minX,i=this.minY,s=this.maxX,r=this.maxY,{a:n,b:a,c:h,d:o,tx:u,ty:l}=t,d=n*e+h*i+u,c=a*e+o*i+l;this.minX=d,this.minY=c,this.maxX=d,this.maxY=c,d=n*s+h*i+u,c=a*s+o*i+l,this.minX=d<this.minX?d:this.minX,this.minY=c<this.minY?c:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=c>this.maxY?c:this.maxY,d=n*e+h*r+u,c=a*e+o*r+l,this.minX=d<this.minX?d:this.minX,this.minY=c<this.minY?c:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=c>this.maxY?c:this.maxY,d=n*s+h*r+u,c=a*s+o*r+l,this.minX=d<this.minX?d:this.minX,this.minY=c<this.minY?c:this.minY,this.maxX=d>this.maxX?d:this.maxX,this.maxY=c>this.maxY?c:this.maxY}fit(t){return this.minX<t.left&&(this.minX=t.left),this.maxX>t.right&&(this.maxX=t.right),this.minY<t.top&&(this.minY=t.top),this.maxY>t.bottom&&(this.maxY=t.bottom),this}fitBounds(t,e,i,s){return this.minX<t&&(this.minX=t),this.maxX>e&&(this.maxX=e),this.minY<i&&(this.minY=i),this.maxY>s&&(this.maxY=s),this}pad(t,e=t){return this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e,this}ceil(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}clone(){return new t(this.minX,this.minY,this.maxX,this.maxY)}scale(t,e=t){return this.minX*=t,this.minY*=e,this.maxX*=t,this.maxY*=e,this}get x(){return this.minX}set x(t){let e=this.maxX-this.minX;this.minX=t,this.maxX=t+e}get y(){return this.minY}set y(t){let e=this.maxY-this.minY;this.minY=t,this.maxY=t+e}get width(){return this.maxX-this.minX}set width(t){this.maxX=this.minX+t}get height(){return this.maxY-this.minY}set height(t){this.maxY=this.minY+t}get left(){return this.minX}get right(){return this.maxX}get top(){return this.minY}get bottom(){return this.maxY}get isPositive(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}get isValid(){return this.minX+this.minY!==1/0}addVertexData(t,e,i,s){let r=this.minX,n=this.minY,a=this.maxX,h=this.maxY;s||(s=this.matrix);let o=s.a,u=s.b,l=s.c,d=s.d,c=s.tx,f=s.ty;for(let s=e;s<i;s+=2){let e=t[s],i=t[s+1],m=o*e+l*i+c,p=u*e+d*i+f;r=m<r?m:r,n=p<n?p:n,a=m>a?m:a,h=p>h?p:h}this.minX=r,this.minY=n,this.maxX=a,this.maxY=h}containsPoint(t,e){return!!(this.minX<=t)&&!!(this.minY<=e)&&!!(this.maxX>=t)&&!!(this.maxY>=e)}toString(){return`[pixi.js:Bounds minX=${this.minX} minY=${this.minY} maxX=${this.maxX} maxY=${this.maxY} width=${this.width} height=${this.height}]`}copyFrom(t){return this.minX=t.minX,this.minY=t.minY,this.maxX=t.maxX,this.maxY=t.maxY,this}}])},810099,t=>{"use strict";t.s(["multiplyHexColors",0,function(t,e){return 0xffffff!==t&&e?0xffffff!==e&&t?((t>>16&255)*(e>>16&255)/255<<16)+((t>>8&255)*(e>>8&255)/255<<8)+((255&t)*(255&e)/255|0):t:e}])},707876,t=>{"use strict";let e={default:-1};t.s(["uid",0,function(t="default"){return void 0===e[t]&&(e[t]=-1),++e[t]}])},571442,t=>{"use strict";let e=new Set,i={quiet:!1,noColor:!1},s=(t,s,r=3)=>{if(i.quiet||e.has(s))return;let n=Error().stack,a=`${s}
21Deprecated since v${t}`,h="function"==typeof console.groupCollapsed&&!i.noColor;void 0===n?console.warn("PixiJS Deprecation Warning: ",a):(n=n.split("\n").splice(r).join("\n"),h?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",a),console.warn(n),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",a),console.warn(n))),e.add(s)};Object.defineProperties(s,{quiet:{get:()=>i.quiet,set:t=>{i.quiet=t},enumerable:!0,configurable:!1},noColor:{get:()=>i.noColor,set:t=>{i.noColor=t},enumerable:!0,configurable:!1}}),t.s(["deprecation",0,s,"v8_0_0",0,"8.0.0","v8_3_4",0,"8.3.4"])},821642,t=>{"use strict";let e=0;
21t.s(["warn",0,function(...t){500!==e&&(500==++e?console.warn("PixiJS Warning: too many warnings, no more warnings will be reported to the console by PixiJS."):console.warn("PixiJS Warning: ",...t))}])},261477,t=>{"use strict";t.s(["NOOP",0,()=>{}])},136702,734655,t=>{"use strict";let e={_registeredResources:new Set,register(t){this._registeredResources.add(t)},unregister(t){this._registeredResources.delete(t)},release(){this._registeredResources.forEach(t=>t.clear())},get registeredCount(){return this._registeredResources.size},isRegistered(t){return this._registeredResources.has(t)},reset(){this._registeredResources.clear()}};t.s(["GlobalResourceRegistry",0,e],734655);class i{constructor(t,e){this._pool=[],this._count=0,this._index=0,this._classType=t,e&&this.prepopulate(e)}prepopulate(t){for(let e=0;e<t;e++)this._pool[this._index++]=new this._classType;this._count+=t}get(t){let e;return this._index>0?e=this._pool[--this._index]:(e=new this._classType,this._count++),e.init?.(t),e}return(t){t.reset?.(),this._pool[this._index++]=t}get totalSize(){return this._count}get totalFree(){return this._index}get totalUsed(){return this._count-this._index}clear(){if(this._pool.length>0&&this._pool[0].destroy)for(let t=0;t<this._index;t++)this._pool[t].destroy();this._pool.length=0,this._count=0,this._index=0}}let s=new class{constructor(){this._poolsByClass=new Map}prepopulate(t,e){this.getPool(t).prepopulate(e)}get(t,e){return this.getPool(t).get(e)}return(t){this.getPool(t.constructor).return(t)}getPool(t){return this._poolsByClass.has(t)||this._poolsByClass.set(t,new i(t)),this._poolsByClass.get(t)}stats(){let t={};return this._poolsByClass.forEach(e=>{let i=t[e._classType.name]?e._classType.name+e._classType.ID:e._classType.name;t[i]={free:e.totalFree,used:e.totalUsed,size:e.totalSize}}),t}clear(){this._poolsByClass.forEach(t=>t.clear()),this._poolsByClass.clear()}};e.register(s),t.s(["BigPool",0,s],136702)}]);
22
23//# debugId=da980798-a4c3-b09d-4ed3-d106657aef93

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.