Created
March 5, 2026 19:51
-
-
Save jgranick/a13f17b839f8cbbb7dfc108316c8aeb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const t of i.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&l(t)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function l(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function an(n){return{height:n.height,src:n,width:n.width}}function B(n,e,r){n.roundPixels?e.setTransform(r.a,r.b,r.c,r.d,Math.fround(r.tx),Math.fround(r.ty)):e.setTransform(r.a,r.b,r.c,r.d,r.tx,r.ty)}function fn(n){n.context.restore()}function un(n,e,r){n.context.save(),B(n,n.context,r),n.context.beginPath(),n.context.rect(e.x,e.y,e.width,e.height),n.context.clip()}function T(n,e,r,l,o,i){return{a:n??1,b:e??0,c:r??0,d:l??1,tx:o??0,ty:i??0}}function dn(n,e,r){const l=e.a*r.a+e.b*r.c;n.b=e.a*r.b+e.b*r.d,n.a=l;const o=e.c*r.a+e.d*r.c;n.d=e.c*r.b+e.d*r.d,n.c=o;const i=e.tx*r.a+e.ty*r.c+r.tx;n.ty=e.tx*r.b+e.ty*r.d+r.ty,n.tx=i}function $(n,e){pn(n,e.a,e.b,e.c,e.d,e.tx,e.ty)}function mn(n,e){const r=e.a*e.d-e.c*e.b;if(r===0)n.a=n.b=n.c=n.d=0,n.tx=-e.tx,n.ty=-e.ty;else{const l=1/r;n.a=e.d*l,n.b=-e.b*l,n.c=-e.c*l,n.d=e.a*l,n.tx=-(n.a*e.tx+n.b*e.ty),n.ty=-(n.c*e.tx+n.d*e.ty)}}function hn(n,e,r){const l=e.a,o=e.b,i=e.tx,t=e.c,c=e.d,m=e.ty,h=r.a,s=r.b,d=r.tx,f=r.c,p=r.d,u=r.ty;n.a=l*h+t*s,n.b=o*h+c*s,n.tx=l*d+t*u+i,n.c=l*f+t*p,n.d=o*f+c*p,n.ty=o*d+c*u+m}function pn(n,e,r,l,o,i,t){n.a=e,n.b=r,n.c=l,n.d=o,n.tx=i,n.ty=t}function A(n,e,r){gn(n,e,r.x,r.y,r.x+r.width,r.y+r.height)}function gn(n,e,r,l,o,i){const{a:t,b:c,c:m,d:h}=e;if(r===o&&l===i){n.x=e.tx,n.y=e.ty,n.width=0,n.height=0;return}let s=t*r+m*l,d=s,f=c*r+h*l,p=f,u=t*o+m*l,a=c*o+h*l;u<s&&(s=u),a<f&&(f=a),u>d&&(d=u),a>p&&(p=a),u=t*o+m*i,a=c*o+h*i,u<s&&(s=u),a<f&&(f=a),u>d&&(d=u),a>p&&(p=a),u=t*r+m*i,a=c*r+h*i,u<s&&(s=u),a<f&&(f=a),u>d&&(d=u),a>p&&(p=a),n.x=s+e.tx,n.y=f+e.ty,n.width=d-s,n.height=p-f}function yn(n,e,r,l){n.tx=e.tx+e.a*r+e.c*l,n.ty=e.ty+e.b*r+e.d*l}function Dn(){let n;return S.length>0?n=S.pop():n=T(),n}function wn(n){n&&S.push(n)}const S=[];function R(n,e,r,l){return{x:n??0,y:e??0,width:r??0,height:l??0}}function Tn(n,e){n!==e&&(n.x=e.x,n.y=e.y,n.width=e.width,n.height=e.height)}function Rn(n){n.x=n.y=n.width=n.height=0}function In(n,e,r){const{x:l,y:o,width:i,height:t}=e,{x:c,y:m,width:h,height:s}=r,d=i===0||t===0,f=h===0||s===0;if(d||f){if(f&&e===n)return;n.x=f?l:c,n.y=f?o:m,n.width=f?i:h,n.height=f?t:s}else{const p=Math.min(l,l+i),u=Math.max(l,l+i),a=Math.min(o,o+t),en=Math.max(o,o+t),rn=Math.min(c,c+h),ln=Math.max(c,c+h),on=Math.min(m,m+s),tn=Math.max(m,m+s);let E=Math.min(p,rn);const cn=Math.max(u,ln),P=Math.min(a,on),sn=Math.max(en,tn);n.x=E,n.y=P,n.width=cn-E,n.height=sn-P}}function F(n){return{redMultiplier:n?.redMultiplier??1,greenMultiplier:n?.greenMultiplier??1,blueMultiplier:n?.blueMultiplier??1,alphaMultiplier:n?.alphaMultiplier??1,redOffset:n?.redOffset??0,greenOffset:n?.greenOffset??0,blueOffset:n?.blueOffset??0,alphaOffset:n?.alphaOffset??0}}function xn(n,e,r){n.redOffset=e.redMultiplier*r.redOffset+e.redOffset,n.greenOffset=e.greenMultiplier*r.greenOffset+e.greenOffset,n.blueOffset=e.blueMultiplier*r.blueOffset+e.blueOffset,n.alphaOffset=e.alphaMultiplier*r.alphaOffset+e.alphaOffset,n.redMultiplier=e.redMultiplier*r.redMultiplier,n.greenMultiplier=e.greenMultiplier*r.greenMultiplier,n.blueMultiplier=e.blueMultiplier*r.blueMultiplier,n.alphaMultiplier=e.alphaMultiplier*r.alphaMultiplier}function W(n,e){n.redMultiplier=e.redMultiplier,n.greenMultiplier=e.greenMultiplier,n.blueMultiplier=e.blueMultiplier,n.alphaMultiplier=e.alphaMultiplier,n.redOffset=e.redOffset,n.greenOffset=e.greenOffset,n.blueOffset=e.blueOffset,n.alphaOffset=e.alphaOffset}function G(n,e=!0){return Bn(n,N)&&bn(n,N,e)}function bn(n,e,r=!0){return r&&n.alphaMultiplier===e.alphaMultiplier&&n.redMultiplier===e.redMultiplier&&n.greenMultiplier===e.greenMultiplier&&n.blueMultiplier==e.blueMultiplier}function Bn(n,e,r=!0){return r&&n.alphaOffset===e.alphaOffset&&n.redOffset===e.redOffset&&n.greenOffset===e.greenOffset&&n.blueOffset==e.blueOffset}const N=F();function Mn(n,e){const r=n;r.backgroundColor=e;const l=(e&4278190080)>>>24,o=(e&16711680)>>>16,i=(e&65280)>>>8,t=e&255;r.backgroundColorRGBA[0]=l/255,r.backgroundColorRGBA[1]=o/255,r.backgroundColorRGBA[2]=i/255,r.backgroundColorRGBA[3]=t/255,r.backgroundColorString="#"+e.toString(16).padStart(8,"0").toUpperCase()}function q(n,e,r){const o=e.source.colorTransform??null;let i=null;r!==void 0?r.useColorTransform&&(i=r.colorTransform):n.renderColorTransform!==null&&(i=n.renderColorTransform),e.useColorTransform=kn(e.colorTransform,o,i)}function kn(n,e,r){return r!==null&&!G(r)?(e!==null?xn(n,e,r):W(n,r),!0):e!==null&&!G(e)?(W(n,e),!0):!1}var C;(function(n){n[n.Add=0]="Add",n[n.Alpha=1]="Alpha",n[n.Darken=2]="Darken",n[n.Difference=3]="Difference",n[n.Erase=4]="Erase",n[n.Hardlight=5]="Hardlight",n[n.Invert=6]="Invert",n[n.Layer=7]="Layer",n[n.Lighten=8]="Lighten",n[n.Multiply=9]="Multiply",n[n.Normal=10]="Normal",n[n.Overlay=11]="Overlay",n[n.Screen=12]="Screen",n[n.Shader=13]="Shader",n[n.Subtract=14]="Subtract"})(C||(C={}));const y=C;var x;(function(n){n[n.None=0]="None",n[n.Visible=1]="Visible",n[n.Alpha=2]="Alpha",n[n.BlendMode=4]="BlendMode",n[n.ScrollRect=8]="ScrollRect",n[n.Scale9Grid=16]="Scale9Grid",n[n.Mask=32]="Mask",n[n.CacheAsBitmap=64]="CacheAsBitmap",n[n.Filters=128]="Filters",n[n.Any=-2147483648]="Any"})(x||(x={}));(function(n){function e(t,c){return(t&c)!==0}n.any=e;function r(t,c){return(t&c)===c}n.has=r;function l(t,c){return t|c}n.add=l;function o(t,c){return t&~c}n.remove=o;function i(){return n.None}n.clear=i})(x||(x={}));var D;(function(n){n.SymbolKey=Symbol("GraphState")})(D||(D={}));function On(n){return{alpha:1,appearanceFrameID:-1,blendMode:y.Normal,cacheAsBitmap:!1,cacheBitmap:null,colorTransform:F(),isMaskFrameID:-1,lastAppearanceID:-1,lastLocalTransformID:-1,maskDepth:0,scrollRectDepth:0,shader:null,source:n,transform:T(),transformFrameID:-1,useColorTransform:!1,visible:!0}}function vn(n){return{allowCacheAsBitmap:n?.allowCacheAsBitmap??!0,allowFilters:n?.allowFilters??!0,allowSmoothing:n?.allowSmoothing??!0,backgroundColor:n?.backgroundColor??0,backgroundColorRGBA:n?.backgroundColorRGBA??[],backgroundColorString:n?.backgroundColorString??"",currentFrameID:n?.currentFrameID??0,currentMaskDepth:n?.currentMaskDepth??0,currentQueue:n?.currentQueue??[],currentQueueLength:n?.currentQueueLength??0,currentScrollRectDepth:n?.currentScrollRectDepth??0,pixelRatio:n?.pixelRatio??1,renderableDataMap:n?.renderableDataMap??new WeakMap,renderAlpha:n?.renderAlpha??1,renderBlendMode:n?.renderBlendMode??y.Normal,renderColorTransform:n?.renderColorTransform??null,renderShader:n?.renderShader??null,renderTransform:n?.renderTransform??null,roundPixels:n?.roundPixels??!1,tempStack:n?.tempStack??[]}}function g(n){return n[D.SymbolKey]===void 0&&(n[D.SymbolKey]={appearanceID:0,boundsRectUsingLocalBoundsID:-1,boundsRectUsingLocalTransformID:-1,boundsRect:null,localBoundsRect:null,localBoundsRectUsingLocalBoundsID:-1,localBoundsID:0,localTransform:null,localTransformID:0,localTransformUsingLocalTransformID:-1,rotationAngle:0,rotationCosine:1,rotationSine:0,worldBoundsRect:null,worldBoundsRectUsingLocalBoundsID:-1,worldBoundsRectUsingWorldTransformID:-1,worldTransform:null,worldTransformID:0,worldTransformUsingLocalTransformID:-1,worldTransformUsingParentTransformID:-1}),n[D.SymbolKey]}function K(n){const e=g(n);e.localTransformUsingLocalTransformID!==e.localTransformID&&Sn(n,e)}function M(n){const e=g(n),r=n.parent;let l,o=0;r!==null&&(M(r),l=g(r),o=l.worldTransformID),(e.worldTransformUsingLocalTransformID!==e.localTransformID||e.worldTransformUsingParentTransformID!==o)&&Cn(n,e,l)}function Q(n){return K(n),g(n).localTransform}function X(n){return M(n),g(n).worldTransform}function Sn(n,e){if(n.rotation!==e.rotationAngle){let l=n.rotation%360;l>180?l-=360:l<-180&&(l+=360);const o=Math.PI/180;let i,t;if(l===0)i=0,t=1;else if(l===90)i=1,t=0;else if(l===-90)i=-1,t=0;else if(l===180||l===-180)i=0,t=-1;else{const c=l*o;i=Math.sin(c),t=Math.cos(c)}e.rotationAngle=l,e.rotationSine=i,e.rotationCosine=t}e.localTransform===null&&(e.localTransform=T());const r=e.localTransform;r.a=e.rotationCosine*n.scaleX,r.b=e.rotationSine*n.scaleX,r.c=-e.rotationSine*n.scaleY,r.d=e.rotationCosine*n.scaleY,r.tx=n.x,r.ty=n.y,e.localTransformUsingLocalTransformID=e.localTransformID}function Cn(n,e,r){e.worldTransform===null&&(e.worldTransform=T()),K(n),r!==void 0?hn(e.worldTransform,r.worldTransform,e.localTransform):$(e.worldTransform,e.localTransform),Ln(e,r)}function Ln(n,e){const r=n.localTransformID,l=e?e.worldTransformID:0;n.worldTransformUsingLocalTransformID=r,n.worldTransformUsingParentTransformID=l,n.worldTransformID=r<<16|l&65535}function Y(n,e,r){r||(r=e);let l;if(r.parent===null?l=L(e):(e.children===null||e.children.length===0)&&(r===e?l=U(e):r===e.parent&&(l=Pn(e))),l)Tn(n,l);else{const o=L(e),i=Dn();mn(i,X(r)),A(n,i,o),wn(i)}}function An(n){const e=g(n);(e.boundsRectUsingLocalBoundsID!==e.localBoundsID||e.boundsRectUsingLocalTransformID!==e.localTransformID)&&Wn(n,e)}function Un(n){const e=g(n);e.localBoundsRectUsingLocalBoundsID!==e.localBoundsID&&Gn(n,e)}function En(n){const e=g(n),r=e.worldBoundsRectUsingLocalBoundsID!==e.localBoundsID,l=n.children!==null;let o=!1;if(!l&&!r){if(qn(n,e))return;o=!0}M(n),(o||r||e.worldBoundsRectUsingWorldTransformID!==e.worldTransformID)&&Nn(n,e)}function Pn(n){return An(n),g(n).boundsRect}function U(n){return Un(n),g(n).localBoundsRect}function L(n){return En(n),g(n).worldBoundsRect}function Wn(n,e){e.boundsRect===null&&(e.boundsRect=R()),A(e.boundsRect,Q(n),U(n)),e.boundsRectUsingLocalBoundsID=e.localBoundsID,e.boundsRectUsingLocalTransformID=e.localTransformID}function Gn(n,e){switch(e.localBoundsRect===null&&(e.localBoundsRect=R()),n.type){case"bitmap":const r=n.data;r.image&&(e.localBoundsRect.width=r.image.width,e.localBoundsRect.height=r.image.height);break;case"container":default:Rn(e.localBoundsRect);break}e.localBoundsRectUsingLocalBoundsID=e.localBoundsID}function Nn(n,e){if(e.worldBoundsRect===null&&(e.worldBoundsRect=R()),A(e.worldBoundsRect,X(n),U(n)),n.children!==null)for(const r of n.children){const l=L(r);l.width!==0&&l.height!==0&&In(e.worldBoundsRect,e.worldBoundsRect,l)}e.worldBoundsRectUsingWorldTransformID=e.worldTransformID,e.worldBoundsRectUsingLocalBoundsID=e.localBoundsID}function qn(n,e){if(e.worldBoundsRect!==null&&e.worldTransform!==null){const{a:r,b:l,c:o,d:i,tx:t,ty:c}=e.worldTransform;M(n);const{a:m,b:h,c:s,d,tx:f,ty:p}=e.worldTransform;if(m===r&&h===l&&s===o&&d===i)return(f!==t||p!==c)&&(e.worldBoundsRect.x+=f-t,e.worldBoundsRect.y+=p-c),!0}return!1}function _n(n){return g(n).appearanceID}function $n(n){return g(n).localTransformID}function H(n){g(n).appearanceID++}function V(n){const e=g(n);e.worldTransformUsingParentTransformID=-1}function z(n){const e=g(n);e.worldBoundsRectUsingWorldTransformID=-1,e.worldBoundsRectUsingLocalBoundsID=-1}function Fn(n,e){return Kn(n,e,n.children?n.children.length:0)}function Kn(n,e,r){if(e===null)throw new TypeError("Error #2007: Parameter child must be non-null.");if(e===n)throw new TypeError("Error #2024: An object cannot be added as a child of itself.");if(e.stage==e)throw new TypeError("Error #3783: A Stage object cannot be added as the child of another object.");if(r<0||n.children!==null&&r>n.children.length||n.children===null&&r>0)throw"Invalid index position "+r;if(n.children===null&&(n.children=[]),e.parent===n){const l=n.children.indexOf(e);if(l!==-1){if(l===r)return e;n.children.splice(l,1)}}else e.parent!==null&&Qn(e.parent,e);return g(e),n.children.splice(r,0,e),e.parent=n,H(n),z(n),V(e),e}function Qn(n,e){if(n.children!==null&&e!==null&&e.parent===n){n.stage,e.parent=null;const r=n.children.indexOf(e);r!==-1&&n.children.splice(r,1),H(n),z(n),V(e)}return e}function J(n){return{alpha:n?.alpha??1,blendMode:n?.blendMode??y.Normal,cacheAsBitmap:n?.cacheAsBitmap??!1,cacheAsBitmapMatrix:n?.cacheAsBitmapMatrix??null,children:n?.children??null,colorTransform:n?.colorTransform??null,data:n?.data??null,filters:n?.filters??null,mask:n?.mask??null,name:n?.name??null,opaqueBackground:n?.opaqueBackground??null,parent:n?.parent??null,rotation:n?.rotation??0,scale9Grid:n?.scale9Grid??null,scaleX:n?.scaleX??1,scaleY:n?.scaleY??1,scrollRect:n?.scrollRect??null,shader:n?.shader??null,stage:n?.stage??null,type:n?.type??"container",visible:n?.visible??!0,x:n?.x??0,y:n?.y??0,[D.SymbolKey]:void 0}}function Xn(n,e,r){const l=J(e);return r!==void 0&&(l.data=r(e?.data)),l.type=n,l}function Yn(n){return Xn("bitmap",n,Hn)}function Hn(n){return{image:n?.image??null,smoothing:n?.smoothing??!0}}function Vn(n,e,r){const l=_n(e.source);return r!==void 0&&r.appearanceFrameID===n.currentFrameID||e.lastAppearanceID!==l?(zn(n,e,r),e.lastAppearanceID=l,!0):!1}function zn(n,e,r){const l=e.source;if(r!==void 0){if(e.visible=l.visible&&r.visible,!e.visible||(e.alpha=l.alpha*r.alpha,e.alpha<=0))return;q(n,e,r),e.blendMode=r.blendMode!==y.Normal?r.blendMode:l.blendMode,e.shader=r.shader!==null?r.shader:l.shader}else{if(e.visible=l.visible,!e.visible||(e.alpha=l.alpha*n.renderAlpha,e.alpha<=0))return;q(n,e),e.blendMode=n.renderBlendMode!==null?n.renderBlendMode:l.blendMode,e.shader=n.renderShader!==null?n.renderShader:l.shader}e.appearanceFrameID=n.currentFrameID}function Jn(n,e,r){const l=$n(e.source);return r!==void 0&&r.transformFrameID===n.currentFrameID||e.lastLocalTransformID!==l?(Zn(n,e,r),e.lastLocalTransformID=l,!0):!1}function Zn(n,e,r){const l=e.source,o=Q(l),i=r!==void 0?r.transform:n.renderTransform;if(i!==null?dn(e.transform,o,i):$(e.transform,o),l.scrollRect!==null){const t=l.scrollRect;yn(e.transform,e.transform,-t.x,-t.y)}e.transformFrameID=n.currentFrameID}function w(n,e){const r=n.renderableDataMap;return r.has(e)||r.set(e,On(e)),r.get(e)}function jn(n,e){const r=n.tempStack,l=++n.currentFrameID;let o=1;r[0]=e;let i,t=null,c=0,m=0,h=!1;for(;o>0;){const s=r[--o],d=w(n,s);if(s!==e){const a=s.parent;a===null?(i=void 0,t=null,c=0,m=0):a!==t&&(i=w(n,a),t=a,c=i.scrollRectDepth,m=i.maskDepth)}const f=Vn(n,d,i),p=Jn(n,d,i);h||(h=f||p),s.scrollRect!==null?d.scrollRectDepth=++c:d.scrollRectDepth=c;const u=s.mask;if(u!==null){const a=w(n,u);a.isMaskFrameID=l,a.scrollRectDepth=0,a.maskDepth=0,r[o++]=u,d.maskDepth=++m}else d.maskDepth=m;if(s.children!==null)for(let a=s.children.length-1;a>=0;a--)r[o++]=s.children[a]}return h}function ne(n,e={}){const r=n.getContext("2d",e.contextAttributes||void 0);if(!r)throw new Error("Failed to get context for canvas.");const l=vn({pixelRatio:e.pixelRatio??window.devicePixelRatio|1,renderTransform:e.renderTransform??T(),roundPixels:e.roundPixels??!1});return e.backgroundColor&&Mn(l,e.backgroundColor),l.canvas=n,l.context=r,l.contextAttributes=r.getContextAttributes(),r.imageSmoothingEnabled=e.imageSmoothingEnabled??!0,r.imageSmoothingQuality=e.imageSmoothingQuality??"high",l}function Z(n,e){const r=e.source,l=r.type;if(r.opaqueBackground!==null||l==="bitmap"||l==="video")Y(O,r,r),n.context.rect(0,0,O.width,O.width);else switch(l){case"container":case"stage":const o=r.children;if(o!==null)for(let i=0;i<o.length;i++){const t=w(n,o[i]);Z(n,t)}break}}function ee(n){n.context.restore()}function re(n,e){n.context.save(),B(n,n.context,e.transform),n.context.beginPath(),Z(n,e),n.context.closePath(),n.context.clip()}const O=R();function b(n,e){if(e===n.currentBlendMode)return;n.currentBlendMode=e;const r=n.context;switch(e){case y.Add:r.globalCompositeOperation="lighter";break;case y.Darken:r.globalCompositeOperation="darken";break;case y.Difference:r.globalCompositeOperation="difference";break;case y.Hardlight:r.globalCompositeOperation="hard-light";break;case y.Lighten:r.globalCompositeOperation="lighten";break;case y.Multiply:r.globalCompositeOperation="multiply";break;case y.Overlay:r.globalCompositeOperation="overlay";break;case y.Screen:r.globalCompositeOperation="screen";break;default:r.globalCompositeOperation="source-over";break}}function _(n,e){const r=e.source;if(r.data.image!==null){const l=n.context;b(n,e.blendMode),l.globalAlpha=e.alpha;const o=r.scrollRect;B(n,l,e.transform),(!n.allowSmoothing||!r.data.smoothing)&&(l.imageSmoothingEnabled=!1);const i=r.data.image;o===null?l.drawImage(i.src,0,0,i.width,i.height):l.drawImage(i.src,o.x,o.y,o.width,o.height,o.x,o.y,o.width,o.height),(!n.allowSmoothing||!r.data.smoothing)&&(l.imageSmoothingEnabled=!0)}}function le(n,e){const r=e.source.opaqueBackground;if(r===null)return;b(n,e.blendMode);const l=n.context;B(n,l,e.transform);const o=r>>16&255,i=r>>8&255,t=r&255;l.fillStyle=`rgb(${o},${i},${t})`,Y(v,e.source,e.source),l.fillRect(0,0,v.width,v.height)}const v=R();function oe(n){const e=n.currentBlendMode;n.currentBlendMode=null,b(n,y.Normal),n.context.setTransform(1,0,0,1,0,0),n.context.globalAlpha=1,n.backgroundColor&255?(n.context.fillStyle=n.backgroundColorString,n.context.fillRect(0,0,n.canvas.width,n.canvas.height)):n.context.clearRect(0,0,n.canvas.width,n.canvas.height),b(n,e)}function ie(n,e,r=!0){const l=e.source;l.mask!==null&&ee(n),r&&l.scrollRect!==null&&fn(n)}function te(n,e,r=!0){const l=e.source;r&&l.scrollRect!=null&&un(n,l.scrollRect,e.transform),l.mask!==null&&re(n,w(n,l.mask))}function ce(n,e){if(!jn(n,e))return;oe(n);const l=n.currentFrameID,o=n.tempStack;let i=0;for(o[i++]=e;i>0;){const t=o[--i],c=w(n,t);if(!(c.isMaskFrameID===l||!(c.visible&&c.alpha>0&&!(c.transform.a===0&&c.transform.d===0)))&&(se(n,c),t.children!==null))for(let s=t.children.length-1;s>=0;s--)o[i++]=t.children[s]}}function se(n,e){if(te(n,e),n.allowCacheAsBitmap&&e.cacheBitmap!==null){_(n,e.cacheBitmap);return}const r=e.source;switch(le(n,e),r.type){case"bitmap":_(n,e);break}ie(n,e)}const k=document.createElement("canvas");k.width=550;k.height=400;document.body.appendChild(k);const ae={backgroundColor:4007513343,contextAttributes:{alpha:!1}},fe=ne(k,ae),j=J(),I=Yn();try{const n=an(await ue("assets/wabbit_alpha.png"));I.data.image=n,I.x=(550-n.width)/2,I.y=(400-n.height)/2,Fn(j,I)}catch{}function ue(n){return new Promise((e,r)=>{const l=new Image;l.onload=()=>e(l),l.onerror=()=>r(new Error("Failed to load image")),l.src=n})}function nn(){ce(fe,j),requestAnimationFrame(nn)}requestAnimationFrame(nn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment