modern-canvas 0.4.55 → 0.4.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(g,At){typeof exports=="object"&&typeof module<"u"?At(exports):typeof define=="function"&&define.amd?define(["exports"],At):(g=typeof globalThis<"u"?globalThis:g||self,At(g.modernCanvas={}))})(this,function(g){"use strict";var bE=Object.defineProperty;var DE=(g,At,TA)=>At in g?bE(g,At,{enumerable:!0,configurable:!0,writable:!0,value:TA}):g[At]=TA;var u=(g,At,TA)=>DE(g,typeof At!="symbol"?At+"":At,TA);var NA,BA;var At=typeof document<"u"?document.currentScript:null,TA={grad:.9,turn:360,rad:360/(2*Math.PI)},Ht=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},Ue=function(r,A,e){return A===void 0&&(A=0),e===void 0&&(e=Math.pow(10,A)),Math.round(e*r)/e+0},Bt=function(r,A,e){return A===void 0&&(A=0),e===void 0&&(e=1),r>e?e:r>A?r:A},uo=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},fo=function(r){return{r:Bt(r.r,0,255),g:Bt(r.g,0,255),b:Bt(r.b,0,255),a:Bt(r.a)}},ys=function(r){return{r:Ue(r.r),g:Ue(r.g),b:Ue(r.b),a:Ue(r.a,3)}},Oh=/^#([0-9a-f]{3,8})$/i,or=function(r){var A=r.toString(16);return A.length<2?"0"+A:A},Io=function(r){var A=r.r,e=r.g,t=r.b,i=r.a,s=Math.max(A,e,t),n=s-Math.min(A,e,t),o=n?s===A?(e-t)/n:s===e?2+(t-A)/n:4+(A-e)/n:0;return{h:60*(o<0?o+6:o),s:s?n/s*100:0,v:s/255*100,a:i}},po=function(r){var A=r.h,e=r.s,t=r.v,i=r.a;A=A/360*6,e/=100,t/=100;var s=Math.floor(A),n=t*(1-e),o=t*(1-(A-s)*e),a=t*(1-(1-A+s)*e),l=s%6;return{r:255*[t,o,n,n,a,t][l],g:255*[a,t,t,o,n,n][l],b:255*[n,n,a,t,t,o][l],a:i}},Eo=function(r){return{h:uo(r.h),s:Bt(r.s,0,100),l:Bt(r.l,0,100),a:Bt(r.a)}},Bo=function(r){return{h:Ue(r.h),s:Ue(r.s),l:Ue(r.l),a:Ue(r.a,3)}},Co=function(r){return po((e=(A=r).s,{h:A.h,s:(e*=((t=A.l)<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:A.a}));var A,e,t},Ei=function(r){return{h:(A=Io(r)).h,s:(i=(200-(e=A.s))*(t=A.v)/100)>0&&i<200?e*t/100/(i<=100?i:200-i)*100:0,l:i/2,a:A.a};var A,e,t,i},Hh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ms={string:[[function(r){var A=Oh.exec(r);return A?(r=A[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?Ue(parseInt(r[3]+r[3],16)/255,2):1}:r.length===6||r.length===8?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:r.length===8?Ue(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var A=Kh.exec(r)||Yh.exec(r);return A?A[2]!==A[4]||A[4]!==A[6]?null:fo({r:Number(A[1])/(A[2]?100/255:1),g:Number(A[3])/(A[4]?100/255:1),b:Number(A[5])/(A[6]?100/255:1),a:A[7]===void 0?1:Number(A[7])/(A[8]?100:1)}):null},"rgb"],[function(r){var A=Hh.exec(r)||Jh.exec(r);if(!A)return null;var e,t,i=Eo({h:(e=A[1],t=A[2],t===void 0&&(t="deg"),Number(e)*(TA[t]||1)),s:Number(A[3]),l:Number(A[4]),a:A[5]===void 0?1:Number(A[5])/(A[6]?100:1)});return Co(i)},"hsl"]],object:[[function(r){var A=r.r,e=r.g,t=r.b,i=r.a,s=i===void 0?1:i;return Ht(A)&&Ht(e)&&Ht(t)?fo({r:Number(A),g:Number(e),b:Number(t),a:Number(s)}):null},"rgb"],[function(r){var A=r.h,e=r.s,t=r.l,i=r.a,s=i===void 0?1:i;if(!Ht(A)||!Ht(e)||!Ht(t))return null;var n=Eo({h:Number(A),s:Number(e),l:Number(t),a:Number(s)});return Co(n)},"hsl"],[function(r){var A=r.h,e=r.s,t=r.v,i=r.a,s=i===void 0?1:i;if(!Ht(A)||!Ht(e)||!Ht(t))return null;var n=function(o){return{h:uo(o.h),s:Bt(o.s,0,100),v:Bt(o.v,0,100),a:Bt(o.a)}}({h:Number(A),s:Number(e),v:Number(t),a:Number(s)});return po(n)},"hsv"]]},Qo=function(r,A){for(var e=0;e<A.length;e++){var t=A[e][0](r);if(t)return[t,A[e][1]]}return[null,void 0]},Vh=function(r){return typeof r=="string"?Qo(r.trim(),ms.string):typeof r=="object"&&r!==null?Qo(r,ms.object):[null,void 0]},ws=function(r,A){var e=Ei(r);return{h:e.h,s:Bt(e.s+100*A,0,100),l:e.l,a:e.a}},vs=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},yo=function(r,A){var e=Ei(r);return{h:e.h,s:e.s,l:Bt(e.l+100*A,0,100),a:e.a}},_s=function(){function r(A){this.parsed=Vh(A)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return this.parsed!==null},r.prototype.brightness=function(){return Ue(vs(this.rgba),2)},r.prototype.isDark=function(){return vs(this.rgba)<.5},r.prototype.isLight=function(){return vs(this.rgba)>=.5},r.prototype.toHex=function(){return A=ys(this.rgba),e=A.r,t=A.g,i=A.b,n=(s=A.a)<1?or(Ue(255*s)):"","#"+or(e)+or(t)+or(i)+n;var A,e,t,i,s,n},r.prototype.toRgb=function(){return ys(this.rgba)},r.prototype.toRgbString=function(){return A=ys(this.rgba),e=A.r,t=A.g,i=A.b,(s=A.a)<1?"rgba("+e+", "+t+", "+i+", "+s+")":"rgb("+e+", "+t+", "+i+")";var A,e,t,i,s},r.prototype.toHsl=function(){return Bo(Ei(this.rgba))},r.prototype.toHslString=function(){return A=Bo(Ei(this.rgba)),e=A.h,t=A.s,i=A.l,(s=A.a)<1?"hsla("+e+", "+t+"%, "+i+"%, "+s+")":"hsl("+e+", "+t+"%, "+i+"%)";var A,e,t,i,s},r.prototype.toHsv=function(){return A=Io(this.rgba),{h:Ue(A.h),s:Ue(A.s),v:Ue(A.v),a:Ue(A.a,3)};var A},r.prototype.invert=function(){return St({r:255-(A=this.rgba).r,g:255-A.g,b:255-A.b,a:A.a});var A},r.prototype.saturate=function(A){return A===void 0&&(A=.1),St(ws(this.rgba,A))},r.prototype.desaturate=function(A){return A===void 0&&(A=.1),St(ws(this.rgba,-A))},r.prototype.grayscale=function(){return St(ws(this.rgba,-1))},r.prototype.lighten=function(A){return A===void 0&&(A=.1),St(yo(this.rgba,A))},r.prototype.darken=function(A){return A===void 0&&(A=.1),St(yo(this.rgba,-A))},r.prototype.rotate=function(A){return A===void 0&&(A=15),this.hue(this.hue()+A)},r.prototype.alpha=function(A){return typeof A=="number"?St({r:(e=this.rgba).r,g:e.g,b:e.b,a:A}):Ue(this.rgba.a,3);var e},r.prototype.hue=function(A){var e=Ei(this.rgba);return typeof A=="number"?St({h:A,s:e.s,l:e.l,a:e.a}):Ue(e.h)},r.prototype.isEqual=function(A){return this.toHex()===St(A).toHex()},r}(),St=function(r){return r instanceof _s?r:new _s(r)},mo=[],zh=function(r){r.forEach(function(A){mo.indexOf(A)<0&&(A(_s,ms),mo.push(A))})};function he(r){return r==null||r==="none"}function GA(r,A=0,e=10**A){return Math.round(e*r)/e+0}function bs(r,A=!1){if(typeof r!="object"||!r)return r;if(Array.isArray(r))return A?r.map(t=>bs(t,A)):r;const e={};for(const t in r){const i=r[t];i!=null&&(A?e[t]=bs(i,A):e[t]=i)}return e}function Ds(r,A){const e={};return A.forEach(t=>{t in r&&(e[t]=r[t])}),e}function Wh(r,A,e){const t=A.length-1;if(t<0)return r===void 0?e:r;for(let i=0;i<t;i++){if(r==null)return e;r=r[A[i]]}return r==null||r[A[t]]===void 0?e:r[A[t]]}function qh(r,A,e){const t=A.length-1;for(let i=0;i<t;i++)typeof r[A[i]]!="object"&&(r[A[i]]={}),r=r[A[i]];r[A[t]]=e}function Xh(r,A,e){return r==null||!A||typeof A!="string"?e:r[A]!==void 0?r[A]:(A=A.replace(/\[(\w+)\]/g,".$1"),A=A.replace(/^\./,""),Wh(r,A.split("."),e))}function jh(r,A,e){if(!(typeof r!="object"||!A))return A=A.replace(/\[(\w+)\]/g,".$1"),A=A.replace(/^\./,""),qh(r,A.split("."),e)}let xs=class{constructor(){u(this,"_map",new WeakMap)}_toRaw(A){if(A&&typeof A=="object"){const e=A.__v_raw;e&&(A=this._toRaw(e))}return A}delete(A){return this._map.delete(this._toRaw(A))}get(A){return this._map.get(this._toRaw(A))}has(A){return this._map.has(this._toRaw(A))}set(A,e){return this._map.set(this._toRaw(A),this._toRaw(e)),this}};function Ss(r){let A;return typeof r=="number"?A={r:r>>24&255,g:r>>16&255,b:r>>8&255,a:(r&255)/255}:A=r,St(A)}function Zh(r){return{r:GA(r.r),g:GA(r.g),b:GA(r.b),a:GA(r.a,3)}}function ar(r){const A=r.toString(16);return A.length<2?`0${A}`:A}const wo="#000000FF";function $h(r){return Ss(r).isValid()}function ht(r,A=!1){const e=Ss(r);if(!e.isValid()){if(typeof r=="string")return r;const o=`Failed to normalizeColor ${r}`;if(A)throw new Error(o);return console.warn(o),wo}const{r:t,g:i,b:s,a:n}=Zh(e.rgba);return`#${ar(t)}${ar(i)}${ar(s)}${ar(GA(n*255))}`}var lr=lr||{};lr.parse=function(){const r={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?((\d*\.\d+)|(\d+\.?)))px/,percentageValue:/^(-?((\d*\.\d+)|(\d+\.?)))%/,emValue:/^(-?((\d*\.\d+)|(\d+\.?)))em/,angleValue:/^(-?((\d*\.\d+)|(\d+\.?)))deg/,radianValue:/^(-?((\d*\.\d+)|(\d+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-f]+)/i,literalColor:/^([a-z]+)/i,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-z0-9-,\s#]+)/i,number:/^((\d*\.\d+)|(\d+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i};let A="";function e(N){const U=new Error(`${A}: ${N}`);throw U.source=A,U}function t(){const N=i();return A.length>0&&e("Invalid input not EOF"),N}function i(){return w(s)}function s(){return n("linear-gradient",r.linearGradient,a)||n("repeating-linear-gradient",r.repeatingLinearGradient,a)||n("radial-gradient",r.radialGradient,c)||n("repeating-radial-gradient",r.repeatingRadialGradient,c)}function n(N,U,X){return o(U,ee=>{const oe=X();return oe&&(J(r.comma)||e("Missing comma before color stops")),{type:N,orientation:oe,colorStops:w(R)}})}function o(N,U){const X=J(N);if(X){J(r.startCall)||e("Missing (");const ee=U(X);return J(r.endCall)||e("Missing )"),ee}}function a(){const N=l();if(N)return N;const U=ie("position-keyword",r.positionKeywords,1);return U?{type:"directional",value:U.value}:h()}function l(){return ie("directional",r.sideOrCorner,1)}function h(){return ie("angular",r.angleValue,1)||ie("angular",r.radianValue,1)}function c(){let N,U=f(),X;return U&&(N=[],N.push(U),X=A,J(r.comma)&&(U=f(),U?N.push(U):A=X)),N}function f(){let N=I()||d();if(N)N.at=p();else{const U=C();if(U){N=U;const X=p();X&&(N.at=X)}else{const X=p();if(X)N={type:"default-radial",at:X};else{const ee=x();ee&&(N={type:"default-radial",at:ee})}}}return N}function I(){const N=ie("shape",/^(circle)/i,0);return N&&(N.style=q()||C()),N}function d(){const N=ie("shape",/^(ellipse)/i,0);return N&&(N.style=x()||L()||C()),N}function C(){return ie("extent-keyword",r.extentKeywords,1)}function p(){if(ie("position",/^at/,0)){const N=x();return N||e("Missing positioning value"),N}}function x(){const N=P();if(N.x||N.y)return{type:"position",value:N}}function P(){return{x:L(),y:L()}}function w(N){let U=N();const X=[];if(U)for(X.push(U);J(r.comma);)U=N(),U?X.push(U):e("One extra comma");return X}function R(){const N=v();return N||e("Expected color definition"),N.length=L(),N}function v(){return b()||K()||W()||z()||D()||Ae()||m()}function m(){return ie("literal",r.literalColor,0)}function b(){return ie("hex",r.hexColor,1)}function D(){return o(r.rgbColor,()=>({type:"rgb",value:w(Y)}))}function z(){return o(r.rgbaColor,()=>({type:"rgba",value:w(Y)}))}function Ae(){return o(r.varColor,()=>({type:"var",value:te()}))}function W(){return o(r.hslColor,()=>{J(r.percentageValue)&&e("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");const U=Y();J(r.comma);let X=J(r.percentageValue);const ee=X?X[1]:null;J(r.comma),X=J(r.percentageValue);const oe=X?X[1]:null;return(!ee||!oe)&&e("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[U,ee,oe]}})}function K(){return o(r.hslaColor,()=>{const N=Y();J(r.comma);let U=J(r.percentageValue);const X=U?U[1]:null;J(r.comma),U=J(r.percentageValue);const ee=U?U[1]:null;J(r.comma);const oe=Y();return(!X||!ee)&&e("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[N,X,ee,oe]}})}function te(){return J(r.variableName)[1]}function Y(){return J(r.number)[1]}function L(){return ie("%",r.percentageValue,1)||se()||H()||q()}function se(){return ie("position-keyword",r.positionKeywords,1)}function H(){return o(r.calcValue,()=>{let N=1,U=0;for(;N>0&&U<A.length;){const ee=A.charAt(U);ee==="("?N++:ee===")"&&N--,U++}N>0&&e("Missing closing parenthesis in calc() expression");const X=A.substring(0,U-1);return $(U-1),{type:"calc",value:X}})}function q(){return ie("px",r.pixelValue,1)||ie("em",r.emValue,1)}function ie(N,U,X){const ee=J(U);if(ee)return{type:N,value:ee[X]}}function J(N){let U,X;return X=/^\s+/.exec(A),X&&$(X[0].length),U=N.exec(A),U&&$(U[0].length),U}function $(N){A=A.substr(N)}return function(N){return A=N.toString().trim(),A.endsWith(";")&&(A=A.slice(0,-1)),t()}}();const ec=lr.parse.bind(lr);var hr=hr||{};hr.stringify=function(){var r={"visit_linear-gradient":function(A){return r.visit_gradient(A)},"visit_repeating-linear-gradient":function(A){return r.visit_gradient(A)},"visit_radial-gradient":function(A){return r.visit_gradient(A)},"visit_repeating-radial-gradient":function(A){return r.visit_gradient(A)},visit_gradient:function(A){var e=r.visit(A.orientation);return e&&(e+=", "),A.type+"("+e+r.visit(A.colorStops)+")"},visit_shape:function(A){var e=A.value,t=r.visit(A.at),i=r.visit(A.style);return i&&(e+=" "+i),t&&(e+=" at "+t),e},"visit_default-radial":function(A){var e="",t=r.visit(A.at);return t&&(e+=t),e},"visit_extent-keyword":function(A){var e=A.value,t=r.visit(A.at);return t&&(e+=" at "+t),e},"visit_position-keyword":function(A){return A.value},visit_position:function(A){return r.visit(A.value.x)+" "+r.visit(A.value.y)},"visit_%":function(A){return A.value+"%"},visit_em:function(A){return A.value+"em"},visit_px:function(A){return A.value+"px"},visit_calc:function(A){return"calc("+A.value+")"},visit_literal:function(A){return r.visit_color(A.value,A)},visit_hex:function(A){return r.visit_color("#"+A.value,A)},visit_rgb:function(A){return r.visit_color("rgb("+A.value.join(", ")+")",A)},visit_rgba:function(A){return r.visit_color("rgba("+A.value.join(", ")+")",A)},visit_hsl:function(A){return r.visit_color("hsl("+A.value[0]+", "+A.value[1]+"%, "+A.value[2]+"%)",A)},visit_hsla:function(A){return r.visit_color("hsla("+A.value[0]+", "+A.value[1]+"%, "+A.value[2]+"%, "+A.value[3]+")",A)},visit_var:function(A){return r.visit_color("var("+A.value+")",A)},visit_color:function(A,e){var t=A,i=r.visit(e.length);return i&&(t+=" "+i),t},visit_angular:function(A){return A.value+"deg"},visit_directional:function(A){return"to "+A.value},visit_array:function(A){var e="",t=A.length;return A.forEach(function(i,s){e+=r.visit(i),s<t-1&&(e+=", ")}),e},visit_object:function(A){return A.width&&A.height?r.visit(A.width)+" "+r.visit(A.height):""},visit:function(A){if(!A)return"";if(A instanceof Array)return r.visit_array(A);if(typeof A=="object"&&!A.type)return r.visit_object(A);if(A.type){var e=r["visit_"+A.type];if(e)return e(A);throw Error("Missing visitor visit_"+A.type)}else throw Error("Invalid node.")}};return function(A){return r.visit(A)}}(),hr.stringify.bind(hr);function vo(r){const A=r.length-1;return r.map((e,t)=>{var o;const i=e.value;let s=GA(t/A,3),n="#00000000";switch(e.type){case"rgb":n=ht({r:Number(i[0]??0),g:Number(i[1]??0),b:Number(i[2]??0)});break;case"rgba":n=ht({r:Number(i[0]??0),g:Number(i[1]??0),b:Number(i[2]??0),a:Number(i[3]??0)});break;case"literal":n=ht(e.value);break;case"hex":n=ht(`#${e.value}`);break}switch((o=e.length)==null?void 0:o.type){case"%":s=Number(e.length.value)/100;break}return{offset:s,color:n}})}function _o(r){var e;let A=0;switch((e=r.orientation)==null?void 0:e.type){case"angular":A=Number(r.orientation.value);break}return{type:"linear-gradient",angle:A,stops:vo(r.colorStops)}}function bo(r){var A;return(A=r.orientation)==null||A.map(e=>{switch(e==null?void 0:e.type){case"shape":case"default-radial":case"extent-keyword":default:return null}}),{type:"radial-gradient",stops:vo(r.colorStops)}}function Bi(r){return r.startsWith("linear-gradient(")||r.startsWith("radial-gradient(")}function tc(r){return ec(r).map(A=>{switch(A==null?void 0:A.type){case"linear-gradient":return _o(A);case"repeating-linear-gradient":return{..._o(A),repeat:!0};case"radial-gradient":return bo(A);case"repeating-radial-gradient":return{...bo(A),repeat:!0};default:return}}).filter(Boolean)}function Ac(r){let A;return typeof r=="string"?A={color:r}:A=r,{color:ht(A.color)}}function ic(r){let A;if(typeof r=="string"?A={image:r}:A=r,A.image){const{type:e,...t}=tc(A.image)[0]??{};switch(e){case"radial-gradient":return{radialGradient:t};case"linear-gradient":return{linearGradient:t}}}return A}function rc(r){let A;return typeof r=="string"?A={image:r}:A=r,A}function sc(r){let A;return typeof r=="string"?A={preset:r}:A=r,{preset:A.preset,foregroundColor:he(A.foregroundColor)?void 0:ht(A.foregroundColor),backgroundColor:he(A.backgroundColor)?void 0:ht(A.backgroundColor)}}function nc(r){return!he(r.color)}function oc(r){return typeof r=="string"?$h(r):nc(r)}function ac(r){return!he(r.image)&&Bi(r.image)||!!r.linearGradient||!!r.radialGradient}function lc(r){return typeof r=="string"?Bi(r):ac(r)}function hc(r){return!he(r.image)&&!Bi(r.image)}function cc(r){return typeof r=="string"?!Bi(r):hc(r)}function gc(r){return!he(r.preset)}function uc(r){return typeof r=="string"?!1:gc(r)}function yA(r){return oc(r)?Ac(r):lc(r)?ic(r):cc(r)?rc(r):uc(r)?sc(r):{}}function fc(r){return typeof r=="string"?{...yA(r)}:{...yA(r),...Ds(r,["fillWithShape"])}}const Do=new xs;function Ms(r){let A=Do.get(r);if(!A){const e=Object.getPrototypeOf(r);A=new Map(e?Ms(e):void 0),Do.set(r,A)}return A}function cr(r,A,e={}){Ms(r).set(A,e);const{default:t,alias:i=Symbol.for(String(A))}=e,s=()=>typeof t=="function"?t():t,n=Object.getOwnPropertyDescriptor(r.prototype,A)||{get(){return typeof i=="string"?Xh(this,i):this[i]},set(o){typeof i=="string"?jh(this,i,o):this[i]=o}};Object.defineProperty(r.prototype,A,{get(){var a,l;let o=(a=n.get)==null?void 0:a.call(this);return o===void 0&&(o=s(),o!==void 0&&((l=n.set)==null||l.call(this,o))),o},set(o){var l,h,c;let a=(l=n.get)==null?void 0:l.call(this);a===void 0&&(a=s()),(h=n.set)==null||h.call(this,o),(c=this.requestUpdate)==null||c.call(this,A,o,a,e)},configurable:!0,enumerable:!0})}function M(r){return function(A,e){cr(A.constructor,e,r)}}function dc(r){return typeof r=="string"?{...yA(r)}:{...yA(r),...Ds(r,["fillWithShape"])}}function Ic(r){return typeof r=="string"?{...yA(r)}:{...yA(r),...Ds(r,["width","style","headEnd","tailEnd"])}}function pc(r){return typeof r=="string"?{color:ht(r)}:{...r,color:he(r.color)?wo:ht(r.color)}}function Ec(){return{boxShadow:"none"}}function Bc(r){return typeof r=="string"?r.startsWith("<svg")?{svg:r}:{paths:[{data:r}]}:Array.isArray(r)?{paths:r.map(A=>typeof A=="string"?{data:A}:A)}:r}function Cc(){return{overflow:"visible",direction:void 0,display:void 0,boxSizing:void 0,width:void 0,height:void 0,maxHeight:void 0,maxWidth:void 0,minHeight:void 0,minWidth:void 0,position:void 0,left:0,top:0,right:void 0,bottom:void 0,borderTop:void 0,borderLeft:void 0,borderRight:void 0,borderBottom:void 0,borderWidth:0,border:void 0,flex:void 0,flexBasis:void 0,flexDirection:void 0,flexGrow:void 0,flexShrink:void 0,flexWrap:void 0,justifyContent:void 0,gap:void 0,alignContent:void 0,alignItems:void 0,alignSelf:void 0,marginTop:void 0,marginLeft:void 0,marginRight:void 0,marginBottom:void 0,margin:void 0,paddingTop:void 0,paddingLeft:void 0,paddingRight:void 0,paddingBottom:void 0,padding:void 0}}function Qc(){return{rotate:0,scaleX:1,scaleY:1,skewX:0,skewY:0,translateX:0,translateY:0,transform:"none",transformOrigin:"center"}}function yc(){return{...Cc(),...Qc(),...Ec(),backgroundImage:"none",backgroundSize:"auto, auto",backgroundColor:"none",backgroundColormap:"none",borderRadius:0,borderColor:"none",borderStyle:"solid",outlineWidth:0,outlineOffset:0,outlineColor:"rgb(0, 0, 0)",outlineStyle:"none",visibility:"visible",filter:"none",opacity:1,pointerEvents:"auto",maskImage:"none"}}function mc(){return{highlight:{},highlightImage:"none",highlightReferImage:"none",highlightColormap:"none",highlightLine:"none",highlightSize:"cover",highlightThickness:"100%"}}function wc(){return{listStyle:{},listStyleType:"none",listStyleImage:"none",listStyleColormap:"none",listStyleSize:"cover",listStylePosition:"outside"}}function vc(){return{...mc(),color:"rgb(0, 0, 0)",verticalAlign:"baseline",letterSpacing:0,wordSpacing:0,fontSize:14,fontWeight:"normal",fontFamily:"",fontStyle:"normal",fontKerning:"normal",textTransform:"none",textOrientation:"mixed",textDecoration:"none"}}function _c(){return{...wc(),writingMode:"horizontal-tb",textWrap:"wrap",textAlign:"start",textIndent:0,lineHeight:1.2}}function bc(){return{..._c(),...vc(),textStrokeWidth:0,textStrokeColor:"rgb(0, 0, 0)"}}function gr(r){return bs({...r,color:he(r.color)?void 0:ht(r.color),backgroundColor:he(r.backgroundColor)?void 0:ht(r.backgroundColor),borderColor:he(r.borderColor)?void 0:ht(r.borderColor),outlineColor:he(r.outlineColor)?void 0:ht(r.outlineColor),shadowColor:he(r.shadowColor)?void 0:ht(r.shadowColor)})}function xo(){return{...yc(),...bc()}}const Dc=/\r\n|\n\r|\n|\r/,xc=new RegExp(`^(${Dc.source})$`),So=`
2
- `;function Sc(r){return xc.test(r)}function Mc(r,A){const e=Array.from(new Set([...Object.keys(r),...Object.keys(A)]));return!e.length||e.every(t=>r[t]===A[t])}function ur(r){const A=[];function e(){return A[A.length-1]}function t(o={}){let a=A[A.length-1];return(a==null?void 0:a.fragments.length)===0?(a={...o,fragments:[]},A[A.length-1]=a):(a={...o,fragments:[]},A.push(a)),a}function i(o="",a={}){Array.from(o).forEach(l=>{if(Sc(l)){const{fragments:h,...c}=e()||t();h.length||h.push({...a,content:So}),t(c)}else{const h=e()||t(),c=h.fragments[h.fragments.length-1];if(c){const{content:f,...I}=c;if(Mc(a,I)){c.content=`${f}${l}`;return}}h.fragments.push({...a,content:l})}})}(Array.isArray(r)?r:[r]).forEach(o=>{if(typeof o=="string")t(),i(o);else if("content"in o){const{content:a,...l}=o;t(gr(l)),i(a)}else if("fragments"in o){const{fragments:a,...l}=o;t(gr(l)),a.forEach(h=>{const{content:c,...f}=h;i(c,gr(f))})}else Array.isArray(o)?(t(),o.forEach(a=>{if(typeof a=="string")i(a);else{const{content:l,...h}=a;i(l,gr(h))}})):console.warn("Failed to parse text content",o)});const n=e();return n&&!n.fragments.length&&n.fragments.push({content:So}),A}function Rc(r){return typeof r=="string"?{content:ur(r)}:"content"in r?{...r,content:ur(r.content)}:{content:ur(r)}}const fr=new Map;function ne(r,A){return function(e){Object.defineProperty(e.prototype,"tag",{value:r,enumerable:!0,configurable:!0}),A&&Object.keys(A).forEach(t=>{cr(e,t,{default:A[t]})}),fr.set(r,e)}}function Be(r){return M({...r,protected:!0})}function Pc(r="node",A={}){const e=fr.get(r);if(!e)throw new Error(`Failed to createNode, tag: ${r}`);return new e().setProperties(A)}class Se{static get currentTime(){return this._currentTime}static get elapsed(){return this._elapsed}static on(A,e={}){const{sort:t=0,once:i=!1}=e;this._queue[t]||(this._queue[t]=[]),this._queue[t].push({cb:A,once:i})}static off(A,e={}){const{sort:t=0}=e,i=this._queue[t];if(!i)return;const s=[];for(let n=i.length,o=0;o<n;o++){const a=i[o];a.cb!==A&&s.push(a)}s.length?this._queue[t]=s:this._queue.splice(t,1)}static start(){"requestAnimationFrame"in globalThis&&(this._currentTime=performance.now(),this._requestId=requestAnimationFrame(A=>this._update(A)))}static stop(){this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=void 0)}static _update(A){this._elapsed=A-this._currentTime,this._currentTime=A,this._requestId=requestAnimationFrame(e=>this._update(e)),this._performUpdate()}static _performUpdate(){const A=this._queue,e=[];for(let t=A.length,i=t;i>=0;i--){const s=A[i];if(!s)continue;const n=[];for(let o=s.length,a=0;a<o;a++){const l=s[a];try{l.cb()}catch(h){console.warn(h)}l.once||n.push(l)}n.length&&(e[i]=n)}this._queue=e}}u(Se,"_queue",[]),u(Se,"_currentTime",0),u(Se,"_elapsed",0),u(Se,"_requestId"),Se.start();async function Rs(r){return new Promise(A=>{Se.on(()=>{r==null||r(),A()},{sort:1,once:!0})})}let Jt=class{constructor(){u(this,"eventListeners",new Map)}removeAllListeners(){return this.eventListeners.clear(),this}hasEventListener(A){return this.eventListeners.has(A)}on(A,e,t){const i={value:e,options:t},s=this.eventListeners.get(A);return s?Array.isArray(s)?s.push(i):this.eventListeners.set(A,[s,i]):this.eventListeners.set(A,i),this}once(A,e){return this.on(A,e,{once:!0})}off(A,e,t){var s,n;if(!e)return this.eventListeners.delete(A),this;const i=this.eventListeners.get(A);if(!i)return this;if(Array.isArray(i)){const o=[];for(let a=0,l=i.length;a<l;a++){const h=i[a];(h.value!==e||typeof t=="object"&&(t!=null&&t.once)&&(typeof h.options=="boolean"||!((s=h.options)!=null&&s.once)))&&o.push(h)}o.length?this.eventListeners.set(A,o.length===1?o[0]:o):this.eventListeners.delete(A)}else i.value===e&&(typeof t=="boolean"||!(t!=null&&t.once)||typeof i.options=="boolean"||(n=i.options)!=null&&n.once)&&this.eventListeners.delete(A);return this}emit(A,...e){var i,s;const t=this.eventListeners.get(A);if(t){if(Array.isArray(t))for(let n=t.length,o=0;o<n;o++){const a=t[o];typeof a.options=="object"&&((i=a.options)!=null&&i.once)&&this.off(A,a.value,a.options),a.value.apply(this,e)}else typeof t.options=="object"&&((s=t.options)!=null&&s.once)&&this.off(A,t.value,t.options),t.value.apply(this,e);return!0}else return!1}},kc=0;class iA extends Jt{constructor(){super(...arguments);u(this,"instanceId",++kc);u(this,"_defaultProperties");u(this,"_updatedProperties",new Map);u(this,"_changedProperties",new Set);u(this,"_updatingPromise",Promise.resolve());u(this,"_updating",!1)}is(e){return!!(e&&this.instanceId===e.instanceId)}async _enqueueUpdate(){this._updating=!0;try{await this._updatingPromise}catch(e){Promise.reject(e)}await Rs(),this._updating&&(this.update(),this._updating=!1)}update(){this._update(this._updatedProperties),this._updatedProperties=new Map}_update(e){}_updateProperty(e,t,i,s){}isDirty(e){return this._updatedProperties.has(e)}getPropertyDeclarations(){return Ms(this.constructor)}getPropertyDeclaration(e){return this.getPropertyDeclarations().get(e)}getDefaultProperties(){if(!this._defaultProperties){this._defaultProperties={};for(const[e,t]of this.getPropertyDeclarations())!t.protected&&!t.alias&&(this._defaultProperties[e]=typeof t.default=="function"?t.default():t.default)}return this._defaultProperties}getProperty(e){return this[e]}setProperty(e,t){return this[e]=t,this}getProperties(e){const t={};for(const[i,s]of this.getPropertyDeclarations())!s.protected&&!s.alias&&(!e||e.includes(i))&&(t[i]=this.getProperty(i));return t}setProperties(e){if(e&&typeof e=="object")for(const[t]of this.getPropertyDeclarations())t in e&&this.setProperty(t,e[t]);return this}resetProperties(){for(const[e,t]of this.getPropertyDeclarations())this.setProperty(e,t.default);return this}requestUpdate(e,t,i,s){if(e!==void 0)if(!Object.is(t,i))this._updatedProperties.set(e,i),this._changedProperties.add(e),s??(s=this.getPropertyDeclaration(e)),this._updateProperty(e,t,i,s),this.emit("updateProperty",e,t,i,s);else return;this._updating||(this._updatingPromise=this._enqueueUpdate())}toJSON(){const e={},t=this.getProperties(Array.from(this._changedProperties));for(const i in t){const s=t[i];s&&typeof s=="object"?"toJSON"in s&&typeof s.toJSON=="function"?e[i]=s.toJSON():e[i]={...s}:e[i]=s}return e}clone(){return new this.constructor(this.toJSON())}free(){this.removeAllListeners()}}class Mo extends iA{}const dr=Math.PI,it=dr*2;let Uc=0;function Ro(r){var A;return((A=r==null?void 0:r.__SPECTOR_Object_TAG)==null?void 0:A.id)??++Uc}function Ps(r){return!(r&r-1)&&!!r}const Nc=/([\w-]+)\((.+?)\)/g,Fc=/[^,]+/g,Tc=/([-e.\d]+)(.*)/;function ks(r){return Array.isArray(r)?r.map(A=>({name:A.name,args:A.args.map(e=>({...e,normalizedIntValue:e.normalizedDefaultIntValue}))})):{...r,normalizedIntValue:r.normalizedDefaultIntValue}}function Ci(r,A,e={}){const t=Qi(A,e);return t.length?t:Po(r,A,e)}function Qi(r,A={}){const e=[];let t;for(;(t=Nc.exec(r))!==null;){const[,i,s]=t;i&&e.push({name:i,args:Gc(i,s,A)})}return e}function Gc(r,A,e={}){const t=[];let i,s=0;for(;(i=Fc.exec(A))!==null;)t.push(Po(r,i[0],{...e,index:s++}));return t}function Po(r,A,e={}){const{width:t=1,height:i=1,index:s=0}=e,n=A.match(Tc),o={unit:(n==null?void 0:n[2])??null,value:A,intValue:Number(n==null?void 0:n[1]),normalizedIntValue:0,normalizedDefaultIntValue:0};switch(r){case"scale":case"scaleX":case"scaleY":case"scale3d":o.normalizedDefaultIntValue=1;break}switch(o.unit){case"%":o.normalizedIntValue=o.intValue/100;break;case"rad":o.normalizedIntValue=o.intValue/it;break;case"deg":o.normalizedIntValue=o.intValue/360;break;case"px":switch(s){case 0:o.normalizedIntValue=o.intValue/t;break;case 1:o.normalizedIntValue=o.intValue/i;break}break;case"turn":case"em":case"rem":default:o.normalizedIntValue=o.intValue;break}return o}const ko="WebGL2RenderingContext"in globalThis,Uo="ImageBitmap"in globalThis,No="ResizeObserver"in globalThis,LA="PointerEvent"in globalThis,Fo="WheelEvent"in globalThis,Lc="MouseEvent"in globalThis,Kt="ontouchstart"in globalThis,To="onclick"in globalThis,Us="createImageBitmap"in globalThis,Ns="AudioContext"in globalThis,Fs="webkitAudioContext"in globalThis,Ts="OfflineAudioContext"in globalThis,Go="webkitOfflineAudioContext"in globalThis,Lo=Ns||Fs,yi=typeof window<"u",Gs=globalThis.devicePixelRatio||1,Ls=r=>r!==null&&typeof r=="object"&&r.nodeType===1,Oo=r=>Ls(r)&&r.tagName==="VIDEO",Oc=r=>Ls(r)&&r.tagName==="IMG";function Ho(r){return typeof r=="object"&&r!==null&&r.nodeType===1&&r.tagName==="CANVAS"}function Jo(r){return ko&&r instanceof globalThis.WebGL2RenderingContext}function Ko(){if(yi)return globalThis.document.createElement("canvas")}function Yo(r,A=globalThis.location){if(r.startsWith("data:"))return"";A=A||globalThis.location;const e=new URL(r,document.baseURI);return e.hostname!==A.hostname||e.port!==A.port||e.protocol!==A.protocol?"anonymous":""}function Vo(r,A,e){e===null&&!A.startsWith("data:")?r.crossOrigin=Yo(A):e!==!1&&(r.crossOrigin=typeof e=="string"?e:"anonymous")}class Os{constructor(){u(this,"_map",new WeakMap)}_toRaw(A){if(A&&typeof A=="object"){const e=A.__v_raw;e&&(A=this._toRaw(e))}return A}delete(A){return this._map.delete(this._toRaw(A))}get(A){return this._map.get(this._toRaw(A))}has(A){return this._map.has(this._toRaw(A))}set(A,e){return this._map.set(this._toRaw(A),this._toRaw(e)),this}}class Ir{constructor(){u(this,"bubbles",!0);u(this,"cancelable",!1);u(this,"which");u(this,"cancelBubble",!0);u(this,"returnValue");u(this,"srcElement");u(this,"composed",!1);u(this,"currentTarget");u(this,"defaultPrevented",!1);u(this,"eventPhase",Ir.prototype.NONE);u(this,"isTrusted");u(this,"target");u(this,"timeStamp");u(this,"type");u(this,"nativeEvent");u(this,"originalEvent");u(this,"propagationStopped",!1);u(this,"propagationImmediatelyStopped",!1);u(this,"path");u(this,"detail");u(this,"view");u(this,"layer",{x:0,y:0});u(this,"page",{x:0,y:0});u(this,"NONE",0);u(this,"CAPTURING_PHASE",1);u(this,"AT_TARGET",2);u(this,"BUBBLING_PHASE",3)}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}initEvent(...A){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(...A){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}composedPath(){return this.path}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class Hs extends Ir{constructor(){super(...arguments);u(this,"altKey");u(this,"button");u(this,"buttons");u(this,"ctrlKey");u(this,"metaKey");u(this,"relatedTarget");u(this,"shiftKey");u(this,"client",{x:0,y:0});u(this,"movement",{x:0,y:0});u(this,"offset",{x:0,y:0});u(this,"global",{x:0,y:0});u(this,"screen",{x:0,y:0})}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(...e){throw new Error("Method not implemented.")}}class zo extends Hs{constructor(){super(...arguments);u(this,"width",0);u(this,"height",0);u(this,"isPrimary",!1);u(this,"pointerType");u(this,"pressure");u(this,"tangentialPressure");u(this,"tiltX");u(this,"tiltY");u(this,"twist")}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class mi extends Hs{constructor(){super(...arguments);u(this,"deltaMode");u(this,"deltaX");u(this,"deltaY");u(this,"deltaZ");u(this,"DOM_DELTA_PIXEL",0);u(this,"DOM_DELTA_LINE",1);u(this,"DOM_DELTA_PAGE",2)}}u(mi,"DOM_DELTA_PIXEL",0),u(mi,"DOM_DELTA_LINE",1),u(mi,"DOM_DELTA_PAGE",2);const Hc={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"};class Wo extends Jt{constructor(){super(...arguments);u(this,"target");u(this,"cursor","default");u(this,"cursorStyles",{default:"inherit",pointer:"pointer"});u(this,"setuped",!1);u(this,"event");u(this,"enableMoveEvent",!0);u(this,"enableWheelEvent",!0);u(this,"enableClickEvent",!0);u(this,"onPointerDown",e=>{if(Kt&&e.pointerType==="touch")return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("pointerdown",this.event=this.clonePointerEvent(t[i]));this.setCursor(this.cursor)});u(this,"onPointerOver",e=>{if(!this.enableClickEvent||Kt&&e.pointerType==="touch")return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("pointerover",this.event=this.clonePointerEvent(t[i]))});u(this,"onPointerMove",e=>{if(!this.enableMoveEvent||Kt&&e.pointerType==="touch")return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("pointermove",this.event=this.clonePointerEvent(t[i]))});u(this,"onPointerUp",e=>{if(!this.enableClickEvent||Kt&&e.pointerType==="touch")return;let t=e.target;e.composedPath&&e.composedPath().length>0&&(t=e.composedPath()[0]);const i=t!==this.target?"outside":"",s=this.normalize(e);for(let n=0,o=s.length;n<o;n++){const a=this.clonePointerEvent(s[n]);a.type+=i,this.emit("pointerup",this.event=a)}});u(this,"onWheel",e=>{if(!this.enableWheelEvent)return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("wheel",this.event=this.cloneWheelEvent(t[i]))})}setTarget(e){this.removeEventListeners(),this.target=e,this.addEventListeners()}removeEventListeners(){if(!this.setuped||!this.target)return;const e=this.target.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):LA&&(e.touchAction=""),LA?(this.target.removeEventListener("pointerdown",this.onPointerDown),this.target.removeEventListener("pointerleave",this.onPointerOver),this.target.removeEventListener("pointerover",this.onPointerOver),this.target.removeEventListener("pointermove",this.onPointerMove),this.target.removeEventListener("pointerup",this.onPointerUp)):(this.target.removeEventListener("mousedown",this.onPointerDown),this.target.removeEventListener("mouseout",this.onPointerOver),this.target.removeEventListener("mouseover",this.onPointerOver),this.target.removeEventListener("mousemove",this.onPointerMove),this.target.removeEventListener("mouseup",this.onPointerUp)),Kt&&(this.target.removeEventListener("touchstart",this.onPointerDown),this.target.removeEventListener("touchmove",this.onPointerMove),this.target.removeEventListener("touchend",this.onPointerUp)),this.target.removeEventListener("wheel",this.onWheel),this.target=void 0,this.setuped=!1}addEventListeners(){if(this.setuped||!this.target)return;const e=this.target.style;e&&(globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):LA&&(e.touchAction="none")),LA?(this.target.addEventListener("pointerdown",this.onPointerDown),this.target.addEventListener("pointerleave",this.onPointerOver),this.target.addEventListener("pointerover",this.onPointerOver),this.target.addEventListener("pointermove",this.onPointerMove),this.target.addEventListener("pointerup",this.onPointerUp)):(this.target.addEventListener("mousedown",this.onPointerDown),this.target.addEventListener("mouseout",this.onPointerOver),this.target.addEventListener("mouseover",this.onPointerOver),this.target.addEventListener("mousemove",this.onPointerMove),this.target.addEventListener("mouseup",this.onPointerUp)),Kt&&(this.target.addEventListener("touchstart",this.onPointerDown),this.target.addEventListener("touchmove",this.onPointerMove),this.target.addEventListener("touchend",this.onPointerUp)),this.target.addEventListener("wheel",this.onWheel),this.setuped=!0}normalize(e){const t=[];if(Kt&&e instanceof globalThis.TouchEvent)for(let i=0,s=e.changedTouches.length;i<s;i++){const n=e.changedTouches[i];typeof n.button>"u"&&(n.button=0),typeof n.buttons>"u"&&(n.buttons=1),typeof n.isPrimary>"u"&&(n.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof n.width>"u"&&(n.width=n.radiusX||1),typeof n.height>"u"&&(n.height=n.radiusY||1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="touch"),typeof n.pointerId>"u"&&(n.pointerId=n.identifier||0),typeof n.pressure>"u"&&(n.pressure=n.force||.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),typeof n.layerX>"u"&&(n.layerX=n.offsetX=n.clientX),typeof n.layerY>"u"&&(n.layerY=n.offsetY=n.clientY),n.type=e.type,t.push(n)}else if(Fo&&e instanceof globalThis.WheelEvent)t.push(e);else if(LA&&e instanceof globalThis.PointerEvent)t.push(e);else{const i=e;typeof i.isPrimary>"u"&&(i.isPrimary=!0),typeof i.width>"u"&&(i.width=1),typeof i.height>"u"&&(i.height=1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="mouse"),typeof i.pointerId>"u"&&(i.pointerId=1),typeof i.pressure>"u"&&(i.pressure=.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),t.push(i)}return t}cloneWheelEvent(e){const t=new mi;return this.copyMouseEvent(t,e),t.wheelDeltaY=e.wheelDeltaY,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.x=t.screen.x,t.global.y=t.screen.y,t.offset.x=t.screen.x,t.offset.y=t.screen.y,t.nativeEvent=e,t.type=e.type,t}clonePointerEvent(e){const t=new zo;return t.originalEvent=null,t.nativeEvent=e,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,t.isTrusted=e.isTrusted,this.copyMouseEvent(t,e),this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.x=t.screen.x,t.global.y=t.screen.y,t.offset.x=t.screen.x,t.offset.y=t.screen.y,t.type==="pointerleave"?t.type="pointerout":t.type.startsWith("mouse")?t.type=t.type.replace("mouse","pointer"):t.type.startsWith("touch")&&(t.type=Hc[t.type]||t.type),t}copyMouseEvent(e,t){e.preventDefault=t.preventDefault.bind(t),e.stopPropagation=t.stopPropagation.bind(t),e.isTrusted=t.isTrusted,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}setCursor(e){if(!this.target||(e=e||"default",this.cursor===e))return;this.cursor=e;const t=!(globalThis.OffscreenCanvas&&this.target instanceof OffscreenCanvas),i=this.cursorStyles[e];if(i)switch(typeof i){case"string":t&&(this.target.style.cursor=i);break;case"function":i(e);break;case"object":t&&Object.assign(this.target.style,i);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.target.style.cursor=e)}mapPositionToPoint(e,t,i){if(!this.target)return;const s=Number(this.target.getAttribute("width"))||0,n=Number(this.target.getAttribute("height"))||0,o=Number(this.target.getAttribute("data-pixel-ratio"))||1,a=this.target.isConnected?this.target.getBoundingClientRect():{width:s,height:n,left:0,top:0},l=1/o;e.x=(t-a.left)*(s/a.width)*l,e.y=(i-a.top)*(n/a.height)*l}}class Yt extends Mo{}function Jc(r,A){var e={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",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},t={};for(var i in e)t[e[i]]=i;var s={};r.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,l=t[this.toHex()];if(l)return l;if(n!=null&&n.closest){var h=this.toRgb(),c=1/0,f="black";if(!s.length)for(var I in e)s[I]=new r(e[I]).toRgb();for(var d in e){var C=(o=h,a=s[d],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));C<c&&(c=C,f=d)}return f}},A.string.push([function(n){var o=n.toLowerCase(),a=o==="transparent"?"#0000":e[o];return a?new r(a).toRgb():null},"name"])}zh([Jc]);class Vt{get value(){return this._value}set value(A){this._colord=Ss(A??"none")}get r8(){return this._colord.rgba.r}get g8(){return this._colord.rgba.g}get b8(){return this._colord.rgba.b}get a8(){return this._colord.rgba.a*255&255}get r(){return this.r8/255}get g(){return this.g8/255}get b(){return this.b8/255}get a(){return this._colord.rgba.a}get rgb(){return(this.r8<<16)+(this.g8<<8)+this.b8}get bgr(){return(this.b8<<16)+(this.g8<<8)+this.r8}get abgr(){return(this.a8<<24)+this.bgr}constructor(A=0){this.value=A}toHex(){return this._colord.toHex()}toRgb(){return this._colord.toRgb()}toRgbString(){return this._colord.toRgbString()}toHsl(){return this._colord.toHsl()}toHslString(){return this._colord.toHslString()}toHsv(){return this._colord.toHsv()}toArgb(A=this.a,e=!0){if(A===1)return(255<<24)+this.rgb;if(A===0)return e?0:this.rgb;let t=this.r8,i=this.g8,s=this.b8;return e&&(t=t*A+.5|0,i=i*A+.5|0,s=s*A+.5|0),(A*255<<24)+(t<<16)+(i<<8)+s}toArray(){return[this.r,this.g,this.b,this.a]}}class wt extends Jt{constructor(e){super();u(this,"_array",[]);this.dim=e}get length(){return this.dim}_operate(e,t,i){const{dim:s,_array:n}=this;let o;typeof t=="number"?o=Array.from({length:s},()=>t):t instanceof Mt||t instanceof wt?o=t.toArray():o=t;let a,l=[];if(i?i instanceof wt?a=i:l=i:a=this,t instanceof Mt){const{cols:h}=t;switch(e){case"*":for(let c=0;c<s;c++){let f=0;for(let I=0;I<s;I++)f+=n[c]*o[I*h+c];l[c]=f}break;default:throw new Error(`Not support operator in '${this.toName()} ${e} ${t.toName()}'`)}}else switch(e){case"+":for(let h=0;h<s;h++)l[h]=n[h]+o[h];break;case"-":for(let h=0;h<s;h++)l[h]=n[h]-o[h];break;case"*":for(let h=0;h<s;h++)l[h]=n[h]*o[h];break;case"/":for(let h=0;h<s;h++)l[h]=n[h]/o[h];break;case"rot":{const h=Math.cos(o[0]),c=Math.sin(o[0]);l[0]=n[0]*h-n[1]*c,l[1]=n[1]*h+n[0]*c;break}case"==":{let h=!0;for(let c=0;c<s;c++)h=h&&n[c]===o[c];return h}case"=":for(let h=0;h<s;h++){const c=o[h];c!==void 0&&(n[h]=c)}return this._onUpdate(n),this.emit("update",n),this;default:throw new Error(`Not support operator in '${this.toName()} ${e} Vector'`)}return(a==null?void 0:a.set(l))??l}add(e,t){return this._operate("+",e,t)}sub(e,t){return this._operate("-",e,t)}multiply(e,t){return this._operate("*",e,t)}divide(e,t){return this._operate("/",e,t)}rotate(e){return this._operate("rot",e)}set(e,...t){return t.length&&typeof e=="number"&&(e=[e,...t]),this._operate("=",e)}equals(e){return this._operate("==",e)}copy(e){return this.set(e)}clone(){const e=new this.constructor;return e.set(this.toArray()),e}_onUpdate(e){}toArray(){return this._array.slice()}toName(){return`Vector${this.dim}`}}class Mt extends Jt{constructor(e,t,i){super();u(this,"_array",[]);u(this,"dirtyId",0);this.rows=e,this.cols=t,i?this.set(i):this.identity()}get length(){return this.cols*this.rows}_operate(e,t,i){const{cols:s,rows:n,length:o,_array:a}=this;let l;typeof t=="number"?l=Array.from({length:o},()=>t):t instanceof wt||t instanceof Mt?l=t.toArray():l=t;let h,c=[];if(i?i instanceof wt||i instanceof Mt?h=i:c=i:t instanceof wt?h=new t.constructor:h=this,t instanceof wt){const{dim:f}=t;switch(e){case"*":for(let I=0;I<f;I++){let d=0;for(let C=0;C<s;C++)C<f&&(d+=a[I*s+C]*(l[C]??0));c[I]=d}break;default:throw new Error(`Not support operator in '${this.toName()} ${e} ${t.toName()}'`)}}else switch(e){case"*":for(let f=0;f<s;f++)for(let I=0;I<n;I++){const d=I*s;let C=0;for(let p=0;p<n;p++){const x=d+p,P=p*s+f;C+=a[x]*(l[P]??0)}c[d+f]=C}break;case"=":for(let f=0;f<o;f++){const I=l[f];I!==void 0&&(a[f]=I)}return this._onUpdate(a),this.emit("update",a),this;default:throw new Error(`Not support operator in '${this.toName()} ${e} Matrix2'`)}return(h==null?void 0:h.set(c))??c}identity(){const{cols:e,rows:t}=this,i=[];for(let s=0;s<e;s++)for(let n=0;n<t;n++){const o=n*e,a=s+o;i[a]=n+o===a?1:0}return this.set(i)}set(e){return this._operate("=",e)}copy(e){return this.set(e)}clone(){const e=new this.constructor;return e.set(this.toArray()),e}multiply(e,t){return this._operate("*",e,t)}_onUpdate(e){this.dirtyId++}toArray(e=!1){const{cols:t,rows:i,_array:s}=this;if(e){const n=[];for(let o=0;o<i;o++)for(let a=0;a<t;a++)n[o+a*t]=s[a+o*t];return n}return s.slice()}toName(){return`Matrix${this.rows}(${this.rows}x${this.cols})`}toJSON(){return this._array}}class qo extends Mt{constructor(A){super(4,4,A)}}const Xo=dr/180,Kc=180/dr;function zt(r,A,e){return Math.max(r,Math.min(A,e))}function Me(r,A,e){return(1-e)*r+e*A}const Yc={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(r,A=20){if(!this.adaptive||!r||Number.isNaN(r))return A;let e=Math.ceil(r/this.maxLength);return e<this.minSegments?e=this.minSegments:e>this.maxSegments&&(e=this.maxSegments),e}};class jo extends wt{constructor(A=0,e=0,t=0,i=0){super(4),this.set([A,e,t,i])}}class Js extends Mt{constructor(A){super(4,5,A)}hueRotate(A=0){const e=Math.sin(A),t=Math.cos(A),i=.213,s=.715,n=.072;return this.multiply([i+t*(1-i)+e*-i,s+t*-s+e*-s,n+t*-n+e*(1-n),0,0,i+t*-i+e*.143,s+t*(1-s)+e*.14,n+t*-n+e*-.283,0,0,i+t*-i+e*-.787,s+t*-s+e*s,n+t*(1-n)+e*n,0,0,0,0,0,1,0])}saturate(A=1){const e=(A-1)*2/3+1,t=(e-1)*-.5;return this.multiply([e,t,t,0,0,t,e,t,0,0,t,t,e,0,0,0,0,0,1,0])}brightness(A=1){const e=A;return this.multiply([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0])}contrast(A=1){const e=A,t=-128*(e-1);return this.multiply([e,0,0,0,t,0,e,0,0,t,0,0,e,0,t,0,0,0,1,0])}invert(A=1){const e=Me(1,-1,A),t=Me(0,255,A);return this.multiply([e,0,0,0,t,0,e,0,0,t,0,0,e,0,t,0,0,0,1,0])}sepia(A=1){const e=zt(0,A,1);return this.multiply([Me(1,.393,e),Me(0,.7689999,e),Me(0,.18899999,e),0,0,Me(0,.349,e),Me(1,.6859999,e),Me(0,.16799999,e),0,0,Me(0,.272,e),Me(0,.5339999,e),Me(1,.13099999,e),0,0,0,0,0,1,0])}opacity(A=1){return this.multiply([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,A,0])}grayscale(A=1){const e=zt(0,A,1),t=Me(1,.3,e),i=Me(0,.3,e),s=Me(1,.59,e),n=Me(0,.59,e),o=Me(1,.11,e),a=Me(0,.11,e);return this.multiply([t,n,a,0,0,i,s,a,0,0,i,n,o,0,0,0,0,0,1,0])}multiply(A){const e=A,t=this._array;return this.set([t[0]*e[0]+t[1]*e[5]+t[2]*e[10]+t[3]*e[15],t[0]*e[1]+t[1]*e[6]+t[2]*e[11]+t[3]*e[16],t[0]*e[2]+t[1]*e[7]+t[2]*e[12]+t[3]*e[17],t[0]*e[3]+t[1]*e[8]+t[2]*e[13]+t[3]*e[18],t[0]*e[4]+t[1]*e[9]+t[2]*e[14]+t[3]*e[19]+t[4],t[5]*e[0]+t[6]*e[5]+t[7]*e[10]+t[8]*e[15],t[5]*e[1]+t[6]*e[6]+t[7]*e[11]+t[8]*e[16],t[5]*e[2]+t[6]*e[7]+t[7]*e[12]+t[8]*e[17],t[5]*e[3]+t[6]*e[8]+t[7]*e[13]+t[8]*e[18],t[5]*e[4]+t[6]*e[9]+t[7]*e[14]+t[8]*e[19]+t[9],t[10]*e[0]+t[11]*e[5]+t[12]*e[10]+t[13]*e[15],t[10]*e[1]+t[11]*e[6]+t[12]*e[11]+t[13]*e[16],t[10]*e[2]+t[11]*e[7]+t[12]*e[12]+t[13]*e[17],t[10]*e[3]+t[11]*e[8]+t[12]*e[13]+t[13]*e[18],t[10]*e[4]+t[11]*e[9]+t[12]*e[14]+t[13]*e[19]+t[14],t[15]*e[0]+t[16]*e[5]+t[17]*e[10]+t[18]*e[15],t[15]*e[1]+t[16]*e[6]+t[17]*e[11]+t[18]*e[16],t[15]*e[2]+t[16]*e[7]+t[17]*e[12]+t[18]*e[17],t[15]*e[3]+t[16]*e[8]+t[17]*e[13]+t[18]*e[18],t[15]*e[4]+t[16]*e[9]+t[17]*e[14]+t[18]*e[19]+t[19]])}toMatrix4(){const A=this._array;return new qo([A[0],A[1],A[2],A[3],A[5],A[6],A[7],A[8],A[10],A[11],A[12],A[13],A[15],A[16],A[17],A[18]])}toVector4(){const A=this._array;return new jo(A[4]/255,A[9]/255,A[14]/255,A[19]/255)}}class Vc extends Mt{constructor(A){super(2,2,A)}}let Ks=class extends Mt{constructor(A){super(3,3,A)}invert(){const[A,e,t,i,s,n,o,a,l]=this._array,h=l*s-n*a,c=n*o-l*i,f=a*i-s*o,I=A*h+e*c+t*f;if(I===0)return this.set([0,0,0,0,0,0,0,0,0]);const d=1/I;return this.set([h*d,(t*a-l*e)*d,(n*e-t*s)*d,c*d,(l*A-t*o)*d,(t*i-n*A)*d,f*d,(e*o-a*A)*d,(s*A-e*i)*d])}};class Zo extends Ks{constructor(A=0,e=0,t=0,i=0,s=!1){super(),this._x=A,this._y=e,this._width=t,this._height=i,this._flipY=s,this._performUpdateArray()}flipY(A){return this._flipY!==A&&(this._flipY=A,this._performUpdateArray()),this}translate(A,e){return(this._x!==A||this._y!==e)&&(this._x=A,this._y=e,this._performUpdateArray()),this}resize(A,e){return(this._width!==A||this._height!==e)&&(this._width=A,this._height=e,this._performUpdateArray()),this}_performUpdateArray(){const A=this._width,e=this._height;if(!A||!e)return;const t=this._x,i=this._y,s=this._flipY?-1:1,n=1/A*2,o=s*(1/e*2),a=-1-t*n,l=-s-i*o;this.set([n,0,a,0,o,l,0,0,1])}}let ut=class Qs extends wt{get x(){return this._array[0]}set x(A){const[e,t]=this._array;e!==A&&this.set(A,t)}get y(){return this._array[1]}set y(A){const[e,t]=this._array;t!==A&&this.set(e,A)}get width(){return this.x}set width(A){this.x=A}get height(){return this.y}set height(A){this.y=A}get left(){return this.x}set left(A){this.x=A}get top(){return this.y}set top(A){this.y=A}constructor(A=0,e){super(2),this.set(typeof A=="number"?[A,e??A]:A)}update(A,e){const[t,i]=this._array;return(t!==A||i!==e)&&this.set(A,e),this}getLength(){const[A,e]=this._array;return Math.sqrt(A*A+e*e)}getAngle(){const[A,e]=this._array;return Math.atan2(-A,-e)+Math.PI}distanceTo(A){return Math.hypot(A.x-this.x,A.y-this.y)}normalize(){const[A,e]=this._array,t=1/(this.getLength()||1);return this.set(A*t,e*t),this}static lerp(A,e,t){return new Qs(e).clone().sub(new Qs(A)).multiply(t).add(new Qs(A))}};class Ys{constructor(...A){u(this,"end",new ut);u(this,"position");u(this,"size");const e=new ut,t=new ut;switch(A.length){case 0:break;case 1:e.set(A[0].position),t.set(A[0].size);break;case 2:e.set(A[0]),t.set(A[1]);break;default:e.set(A[0],A[1]),t.set(A[2],A[3]);break}this.update=this.update.bind(this),this.position=e.on("update",this.update),this.size=t.on("update",this.update),this.update()}get x(){return this.position.x}get y(){return this.position.y}get left(){return this.position.x}get top(){return this.position.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get width(){return this.size.x}get height(){return this.size.y}update(){return this.end.set(this.position.x+this.size.x,this.position.y+this.size.y),this}toArray(){return[this.x,this.y,this.width,this.height]}}const EA=class EA extends Ks{premultiply(A){return A.multiply(this,this)}skewX(A){return this.skew(A,0)}skewY(A){return this.skew(0,A)}skew(A,e){return this.premultiply(EA._t2d.makeSkew(A,e))}makeSkew(A,e){const t=Math.tan(A),i=Math.tan(e);return this.set([1,i,0,t,1,0,0,0,1]),this}translateX(A){return this.translate(A,0)}translateY(A){return this.translate(0,A)}translateZ(A){return this.translate(0,0,A)}translate3d(A,e,t){return this.translate(A,e,t)}translate(A,e,t=0){return this.premultiply(EA._t2d.makeTranslation(A,e,t))}makeTranslation(A,e,t=0){return this.set([1,0,A,0,1,e,0,0,1]),this}scaleX(A){return this.scale(A,1)}scaleY(A){return this.scale(1,A)}scale3d(A,e,t=1){return this.scale(A,e,t)}scale(A,e,t=1){return this.premultiply(EA._t2d.makeScale(A,e,t))}makeScale(A,e,t=1){return this.set([A,0,0,0,e,0,0,0,1]),this}rotateX(A){return this.scaleY(this._rotateToScale(A))}rotateY(A){return this.scaleX(this._rotateToScale(A))}rotateZ(A){return this.rotate(A)}rotate(A){return this.premultiply(EA._t2d.makeRotation(A))}rotate3d(A,e,t,i){const[s,n,o]=this._rotate3d(A,e,t,i);return s&&this.rotateX(s),n&&this.rotateY(n),o&&this.rotateZ(o),this}_rotateToScale(A){const e=A/it;return e<=.5?e*-4+1:(e-1)*4+1}_rotate3d(A,e,t,i){if(A===1&&e===0&&t===0)return[i,0,0];if(A===0&&e===1&&t===0)return[0,i,0];if(A===0&&e===0)return[0,0,i];{const s=Math.cos(i),n=Math.sin(i),o=s+A*A*(1-s),a=A*e*(1-s)-t*n,l=A*t*(1-s)+e*n,h=s+e*e*(1-s),c=e*t*(1-s)-A*n,f=s+t*t*(1-s),I=-Math.atan2(-c,h),d=-Math.atan2(l,Math.sqrt(c*c+f*f)),C=-Math.atan2(-a,o);return[I,d,C]}}makeRotation(A){const e=Math.cos(A),t=Math.sin(A);return this.set([e,-t,0,t,e,0,0,0,1]),this}applyToPoint(A,e){const{a:t,c:i,tx:s,b:n,d:o,ty:a}=this.toObject();return[t*A+i*e+s,n*A+o*e+a]}inverse(){return this.clone().invert()}isIdentity(){const{a:A,b:e,c:t,d:i,tx:s,ty:n}=this.toObject();return A===1&&e===0&&t===0&&i===1&&s===0&&n===0}toObject(){const[A,e,t,i,s,n,,,o]=this._array;return{a:A,c:e,tx:t,b:i,d:s,ty:n,tz:o}}};u(EA,"_t2d",new EA);let ct=EA;class zc extends wt{constructor(){super(3)}}var Wc=Object.defineProperty,$o=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Wc(A,e,i),i};class pr extends iA{constructor(){super();u(this,"_starting",!1);u(this,"_nextDeltaTime",0);this._onNextTick=this._onNextTick.bind(this)}get starting(){return this._starting}get spf(){return this.fps?Math.floor(1e3/this.fps):0}start(e){this._starting||(this._starting=!0,this.off("process"),this.on("process",e),Se.on(this._onNextTick,{sort:0}))}stop(){this._starting&&(this._starting=!1,Se.off(this._onNextTick,{sort:0}))}_onNextTick(){const e=Se.elapsed*this.speed;if((this._nextDeltaTime-=e)<=0){const i=(this._nextDeltaTime=this.spf)||e;this.emit("process",i)}}free(){super.free(),this.stop()}}$o([M({default:24})],pr.prototype,"fps"),$o([M({default:1})],pr.prototype,"speed");class ea{constructor(){u(this,"view");u(this,"pixelRatio",Gs);u(this,"screen",{x:0,y:0,width:0,height:0});u(this,"related",new Os)}getRelated(A,e){let t=this.related.get(A);return t||(e?(this.related.set(A,t=e()),t):(console.warn("Failed to get related",A),null))}resize(A,e,t=!0){this.view&&(this.view.width=Math.floor(A*this.pixelRatio),this.view.height=Math.floor(e*this.pixelRatio)),this.screen.width=A,this.screen.height=e,t&&this.view&&(this.view.style.width=`${A}px`,this.view.style.height=`${e}px`)}}var OA=(r=>(r.NORMAL="normal",r.ADD="add",r.MULTIPLY="multiply",r.SCREEN="screen",r.NONE="none",r.NORMAL_NPM="normal_npm",r.ADD_NPM="add_npm",r.SCREEN_NPM="screen_npm",r.SRC_IN="src_in",r.SRC_OUT="src_out",r.SRC_ATOP="src_atop",r.DST_OVER="dst_over",r.DST_IN="dst_in",r.DST_OUT="dst_out",r.DST_ATOP="dst_atop",r.XOR="xor",r.SUBTRACT="subtract",r))(OA||{});function ta(r){return{normal:[r.ONE,r.ONE_MINUS_SRC_ALPHA],add:[r.ONE,r.ONE],multiply:[r.DST_COLOR,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA],screen:[r.ONE,r.ONE_MINUS_SRC_COLOR,r.ONE,r.ONE_MINUS_SRC_ALPHA],none:[0,0],normal_npm:[r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA],add_npm:[r.SRC_ALPHA,r.ONE,r.ONE,r.ONE],screen_npm:[r.SRC_ALPHA,r.ONE_MINUS_SRC_COLOR,r.ONE,r.ONE_MINUS_SRC_ALPHA],src_in:[r.DST_ALPHA,r.ZERO],src_out:[r.ONE_MINUS_DST_ALPHA,r.ZERO],src_atop:[r.DST_ALPHA,r.ONE_MINUS_SRC_ALPHA],dst_over:[r.ONE_MINUS_DST_ALPHA,r.ONE],dst_in:[r.ZERO,r.SRC_ALPHA],dst_out:[r.ZERO,r.ONE_MINUS_SRC_ALPHA],dst_atop:[r.ONE_MINUS_DST_ALPHA,r.SRC_ALPHA],xor:[r.ONE_MINUS_DST_ALPHA,r.ONE_MINUS_SRC_ALPHA],subtract:[r.ONE,r.ONE,r.ONE,r.ONE,r.FUNC_REVERSE_SUBTRACT,r.FUNC_ADD]}}class Ct{get gl(){return this._renderer.gl}install(A){this._renderer=A}onUpdateContext(){}flush(){}reset(){}free(){}}const ss=class ss{constructor(A){u(this,"_blendMode",OA.NORMAL);u(this,"_polygonOffset",0);u(this,"bitmap",0);if(A)for(const e in A)this[e]=A[e]}static _init(){this._properties.forEach((A,e)=>{Object.defineProperty(this.prototype,A,{get(){return!!(this.bitmap&1<<e)},set(t){!!(this.bitmap&1<<e)!==t&&(this.bitmap^=1<<e)},enumerable:!0,configurable:!0})})}static for2D(){const A=new ss;return A.depthTest=!1,A.blend=!0,A}get blendMode(){return this._blendMode}set blendMode(A){this.blend=A!==OA.NONE,this._blendMode=A}get polygonOffset(){return this._polygonOffset}set polygonOffset(A){this.offsets=!!A,this._polygonOffset=A}};u(ss,"_properties",["blend","offsets","culling","depthTest","clockwiseFrontFace","depthMask"]);let mA=ss;mA._init();class Aa extends Ct{constructor(){super(...arguments);u(this,"_blendEq",!1);u(this,"_setters",mA._properties.map(e=>this[`set${e.replace(/^\S/,t=>t.toUpperCase())}`]));u(this,"boundStateBitmap",0);u(this,"boundBlendMode");u(this,"blendModes");u(this,"defaultState",new mA({blend:!0}))}install(e){super.install(e),e.state=this}onUpdateContext(){super.onUpdateContext(),this.blendModes=ta(this._renderer.gl)}toggle(e,t){this._renderer.gl[t?"enable":"disable"](e)}setBlend(e){this.toggle(this._renderer.gl.BLEND,e)}setOffsets(e){this.toggle(this._renderer.gl.POLYGON_OFFSET_FILL,e)}setCulling(e){this.toggle(this._renderer.gl.CULL_FACE,e)}setDepthTest(e){this.toggle(this._renderer.gl.DEPTH_TEST,e)}setDepthMask(e){this._renderer.gl.depthMask(e)}setClockwiseFrontFace(e){const t=this._renderer.gl;t.frontFace(t[e?"CW":"CCW"])}setBlendMode(e){if(e===this.boundBlendMode)return;this.boundBlendMode=e;const t=this.blendModes[e],i=this._renderer.gl;t.length===2?i.blendFunc(t[0],t[1]):i.blendFuncSeparate(t[0],t[1],t[2],t[3]),t.length===6?(this._blendEq=!0,i.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,i.blendEquationSeparate(i.FUNC_ADD,i.FUNC_ADD))}setPolygonOffset(e,t){this._renderer.gl.polygonOffset(e,t)}bind(e){var t;if(this.boundStateBitmap!==e.bitmap){let i=this.boundStateBitmap^e.bitmap,s=0;for(;i;)i&1&&((t=this._setters[s])==null||t.call(this,!!(e.bitmap&1<<s))),i=i>>1,s++;this.boundStateBitmap=e.bitmap}e.blend&&this.setBlendMode(e.blendMode),e.offsets&&this.setPolygonOffset(1,e.polygonOffset)}reset(){super.reset();const e=this._renderer.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.bind(this.defaultState),this._blendEq=!0,this.setBlendMode(OA.NORMAL)}}class ia extends Ct{constructor(){super(...arguments);u(this,"_state",mA.for2D());u(this,"_batchSize",4096*4);u(this,"_drawCallUid",0);u(this,"_defaultModulate",4294967295);u(this,"_defaultBackgroundColor",0);u(this,"_defaultColorMatrixOffset",[0,0,0,0]);u(this,"_defaultColorMatrix",[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);u(this,"_batchables",[]);u(this,"_vertexCount",0);u(this,"_indexCount",0);u(this,"_attributeBuffer",[]);u(this,"_indexBuffers",[]);u(this,"_shaders",new Map);u(this,"_attributes",{aTextureId:{size:1,normalized:!0,type:"float"},aPosition:{size:2,normalized:!1,type:"float"},aUv:{size:2,normalized:!1,type:"float"},aModulate:{size:4,normalized:!0,type:"unsigned_byte"},aBackgroundColor:{size:4,normalized:!0,type:"unsigned_byte"},aDisableWrapMode:{size:4,normalized:!0,type:"float"},aColorMatrixOffset:{size:4,normalized:!1,type:"float"},aColorMatrix:{size:4,normalized:!1,type:"float"}});u(this,"_vertexSize",31)}install(e){super.install(e),e.batch2D=this}_getShader(e){let t=this._shaders.get(e);return t||this._shaders.set(e,t=this._createShader(e)),t}_createShader(e){const t=this._renderer,i=t.program.create({vert:`precision highp float;
1
+ (function(g,At){typeof exports=="object"&&typeof module<"u"?At(exports):typeof define=="function"&&define.amd?define(["exports"],At):(g=typeof globalThis<"u"?globalThis:g||self,At(g.modernCanvas={}))})(this,function(g){"use strict";var DE=Object.defineProperty;var xE=(g,At,TA)=>At in g?DE(g,At,{enumerable:!0,configurable:!0,writable:!0,value:TA}):g[At]=TA;var u=(g,At,TA)=>xE(g,typeof At!="symbol"?At+"":At,TA);var NA,BA;var At=typeof document<"u"?document.currentScript:null,TA={grad:.9,turn:360,rad:360/(2*Math.PI)},Ht=function(r){return typeof r=="string"?r.length>0:typeof r=="number"},Ue=function(r,A,e){return A===void 0&&(A=0),e===void 0&&(e=Math.pow(10,A)),Math.round(e*r)/e+0},Bt=function(r,A,e){return A===void 0&&(A=0),e===void 0&&(e=1),r>e?e:r>A?r:A},fo=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},Io=function(r){return{r:Bt(r.r,0,255),g:Bt(r.g,0,255),b:Bt(r.b,0,255),a:Bt(r.a)}},ys=function(r){return{r:Ue(r.r),g:Ue(r.g),b:Ue(r.b),a:Ue(r.a,3)}},Hc=/^#([0-9a-f]{3,8})$/i,or=function(r){var A=r.toString(16);return A.length<2?"0"+A:A},po=function(r){var A=r.r,e=r.g,t=r.b,i=r.a,s=Math.max(A,e,t),n=s-Math.min(A,e,t),o=n?s===A?(e-t)/n:s===e?2+(t-A)/n:4+(A-e)/n:0;return{h:60*(o<0?o+6:o),s:s?n/s*100:0,v:s/255*100,a:i}},Eo=function(r){var A=r.h,e=r.s,t=r.v,i=r.a;A=A/360*6,e/=100,t/=100;var s=Math.floor(A),n=t*(1-e),o=t*(1-(A-s)*e),a=t*(1-(1-A+s)*e),l=s%6;return{r:255*[t,o,n,n,a,t][l],g:255*[a,t,t,o,n,n][l],b:255*[n,n,a,t,t,o][l],a:i}},Bo=function(r){return{h:fo(r.h),s:Bt(r.s,0,100),l:Bt(r.l,0,100),a:Bt(r.a)}},Co=function(r){return{h:Ue(r.h),s:Ue(r.s),l:Ue(r.l),a:Ue(r.a,3)}},Qo=function(r){return Eo((e=(A=r).s,{h:A.h,s:(e*=((t=A.l)<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:A.a}));var A,e,t},Ei=function(r){return{h:(A=po(r)).h,s:(i=(200-(e=A.s))*(t=A.v)/100)>0&&i<200?e*t/100/(i<=100?i:200-i)*100:0,l:i/2,a:A.a};var A,e,t,i},Jc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Vc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ms={string:[[function(r){var A=Hc.exec(r);return A?(r=A[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?Ue(parseInt(r[3]+r[3],16)/255,2):1}:r.length===6||r.length===8?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:r.length===8?Ue(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var A=Yc.exec(r)||Vc.exec(r);return A?A[2]!==A[4]||A[4]!==A[6]?null:Io({r:Number(A[1])/(A[2]?100/255:1),g:Number(A[3])/(A[4]?100/255:1),b:Number(A[5])/(A[6]?100/255:1),a:A[7]===void 0?1:Number(A[7])/(A[8]?100:1)}):null},"rgb"],[function(r){var A=Jc.exec(r)||Kc.exec(r);if(!A)return null;var e,t,i=Bo({h:(e=A[1],t=A[2],t===void 0&&(t="deg"),Number(e)*(TA[t]||1)),s:Number(A[3]),l:Number(A[4]),a:A[5]===void 0?1:Number(A[5])/(A[6]?100:1)});return Qo(i)},"hsl"]],object:[[function(r){var A=r.r,e=r.g,t=r.b,i=r.a,s=i===void 0?1:i;return Ht(A)&&Ht(e)&&Ht(t)?Io({r:Number(A),g:Number(e),b:Number(t),a:Number(s)}):null},"rgb"],[function(r){var A=r.h,e=r.s,t=r.l,i=r.a,s=i===void 0?1:i;if(!Ht(A)||!Ht(e)||!Ht(t))return null;var n=Bo({h:Number(A),s:Number(e),l:Number(t),a:Number(s)});return Qo(n)},"hsl"],[function(r){var A=r.h,e=r.s,t=r.v,i=r.a,s=i===void 0?1:i;if(!Ht(A)||!Ht(e)||!Ht(t))return null;var n=function(o){return{h:fo(o.h),s:Bt(o.s,0,100),v:Bt(o.v,0,100),a:Bt(o.a)}}({h:Number(A),s:Number(e),v:Number(t),a:Number(s)});return Eo(n)},"hsv"]]},yo=function(r,A){for(var e=0;e<A.length;e++){var t=A[e][0](r);if(t)return[t,A[e][1]]}return[null,void 0]},zc=function(r){return typeof r=="string"?yo(r.trim(),ms.string):typeof r=="object"&&r!==null?yo(r,ms.object):[null,void 0]},ws=function(r,A){var e=Ei(r);return{h:e.h,s:Bt(e.s+100*A,0,100),l:e.l,a:e.a}},vs=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},mo=function(r,A){var e=Ei(r);return{h:e.h,s:e.s,l:Bt(e.l+100*A,0,100),a:e.a}},_s=function(){function r(A){this.parsed=zc(A)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return this.parsed!==null},r.prototype.brightness=function(){return Ue(vs(this.rgba),2)},r.prototype.isDark=function(){return vs(this.rgba)<.5},r.prototype.isLight=function(){return vs(this.rgba)>=.5},r.prototype.toHex=function(){return A=ys(this.rgba),e=A.r,t=A.g,i=A.b,n=(s=A.a)<1?or(Ue(255*s)):"","#"+or(e)+or(t)+or(i)+n;var A,e,t,i,s,n},r.prototype.toRgb=function(){return ys(this.rgba)},r.prototype.toRgbString=function(){return A=ys(this.rgba),e=A.r,t=A.g,i=A.b,(s=A.a)<1?"rgba("+e+", "+t+", "+i+", "+s+")":"rgb("+e+", "+t+", "+i+")";var A,e,t,i,s},r.prototype.toHsl=function(){return Co(Ei(this.rgba))},r.prototype.toHslString=function(){return A=Co(Ei(this.rgba)),e=A.h,t=A.s,i=A.l,(s=A.a)<1?"hsla("+e+", "+t+"%, "+i+"%, "+s+")":"hsl("+e+", "+t+"%, "+i+"%)";var A,e,t,i,s},r.prototype.toHsv=function(){return A=po(this.rgba),{h:Ue(A.h),s:Ue(A.s),v:Ue(A.v),a:Ue(A.a,3)};var A},r.prototype.invert=function(){return St({r:255-(A=this.rgba).r,g:255-A.g,b:255-A.b,a:A.a});var A},r.prototype.saturate=function(A){return A===void 0&&(A=.1),St(ws(this.rgba,A))},r.prototype.desaturate=function(A){return A===void 0&&(A=.1),St(ws(this.rgba,-A))},r.prototype.grayscale=function(){return St(ws(this.rgba,-1))},r.prototype.lighten=function(A){return A===void 0&&(A=.1),St(mo(this.rgba,A))},r.prototype.darken=function(A){return A===void 0&&(A=.1),St(mo(this.rgba,-A))},r.prototype.rotate=function(A){return A===void 0&&(A=15),this.hue(this.hue()+A)},r.prototype.alpha=function(A){return typeof A=="number"?St({r:(e=this.rgba).r,g:e.g,b:e.b,a:A}):Ue(this.rgba.a,3);var e},r.prototype.hue=function(A){var e=Ei(this.rgba);return typeof A=="number"?St({h:A,s:e.s,l:e.l,a:e.a}):Ue(e.h)},r.prototype.isEqual=function(A){return this.toHex()===St(A).toHex()},r}(),St=function(r){return r instanceof _s?r:new _s(r)},wo=[],Wc=function(r){r.forEach(function(A){wo.indexOf(A)<0&&(A(_s,ms),wo.push(A))})};function ce(r){return r==null||r==="none"}function GA(r,A=0,e=10**A){return Math.round(e*r)/e+0}function bs(r,A=!1){if(typeof r!="object"||!r)return r;if(Array.isArray(r))return A?r.map(t=>bs(t,A)):r;const e={};for(const t in r){const i=r[t];i!=null&&(A?e[t]=bs(i,A):e[t]=i)}return e}function Ds(r,A){const e={};return A.forEach(t=>{t in r&&(e[t]=r[t])}),e}function qc(r,A,e){const t=A.length-1;if(t<0)return r===void 0?e:r;for(let i=0;i<t;i++){if(r==null)return e;r=r[A[i]]}return r==null||r[A[t]]===void 0?e:r[A[t]]}function Xc(r,A,e){const t=A.length-1;for(let i=0;i<t;i++)typeof r[A[i]]!="object"&&(r[A[i]]={}),r=r[A[i]];r[A[t]]=e}function jc(r,A,e){return r==null||!A||typeof A!="string"?e:r[A]!==void 0?r[A]:(A=A.replace(/\[(\w+)\]/g,".$1"),A=A.replace(/^\./,""),qc(r,A.split("."),e))}function Zc(r,A,e){if(!(typeof r!="object"||!A))return A=A.replace(/\[(\w+)\]/g,".$1"),A=A.replace(/^\./,""),Xc(r,A.split("."),e)}let xs=class{constructor(){u(this,"_map",new WeakMap)}_toRaw(A){if(A&&typeof A=="object"){const e=A.__v_raw;e&&(A=this._toRaw(e))}return A}delete(A){return this._map.delete(this._toRaw(A))}get(A){return this._map.get(this._toRaw(A))}has(A){return this._map.has(this._toRaw(A))}set(A,e){return this._map.set(this._toRaw(A),this._toRaw(e)),this}};function Ss(r){let A;return typeof r=="number"?A={r:r>>24&255,g:r>>16&255,b:r>>8&255,a:(r&255)/255}:A=r,St(A)}function $c(r){return{r:GA(r.r),g:GA(r.g),b:GA(r.b),a:GA(r.a,3)}}function ar(r){const A=r.toString(16);return A.length<2?`0${A}`:A}const vo="#000000FF";function eh(r){return Ss(r).isValid()}function ct(r,A=!1){const e=Ss(r);if(!e.isValid()){if(typeof r=="string")return r;const o=`Failed to normalizeColor ${r}`;if(A)throw new Error(o);return console.warn(o),vo}const{r:t,g:i,b:s,a:n}=$c(e.rgba);return`#${ar(t)}${ar(i)}${ar(s)}${ar(GA(n*255))}`}var lr=lr||{};lr.parse=function(){const r={linearGradient:/^(-(webkit|o|ms|moz)-)?(linear-gradient)/i,repeatingLinearGradient:/^(-(webkit|o|ms|moz)-)?(repeating-linear-gradient)/i,radialGradient:/^(-(webkit|o|ms|moz)-)?(radial-gradient)/i,repeatingRadialGradient:/^(-(webkit|o|ms|moz)-)?(repeating-radial-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?((\d*\.\d+)|(\d+\.?)))px/,percentageValue:/^(-?((\d*\.\d+)|(\d+\.?)))%/,emValue:/^(-?((\d*\.\d+)|(\d+\.?)))em/,angleValue:/^(-?((\d*\.\d+)|(\d+\.?)))deg/,radianValue:/^(-?((\d*\.\d+)|(\d+\.?)))rad/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^#([0-9a-f]+)/i,literalColor:/^([a-z]+)/i,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,varColor:/^var/i,calcValue:/^calc/i,variableName:/^(--[a-z0-9-,\s#]+)/i,number:/^((\d*\.\d+)|(\d+\.?))/,hslColor:/^hsl/i,hslaColor:/^hsla/i};let A="";function e(N){const U=new Error(`${A}: ${N}`);throw U.source=A,U}function t(){const N=i();return A.length>0&&e("Invalid input not EOF"),N}function i(){return w(s)}function s(){return n("linear-gradient",r.linearGradient,a)||n("repeating-linear-gradient",r.repeatingLinearGradient,a)||n("radial-gradient",r.radialGradient,h)||n("repeating-radial-gradient",r.repeatingRadialGradient,h)}function n(N,U,X){return o(U,ee=>{const oe=X();return oe&&(J(r.comma)||e("Missing comma before color stops")),{type:N,orientation:oe,colorStops:w(R)}})}function o(N,U){const X=J(N);if(X){J(r.startCall)||e("Missing (");const ee=U(X);return J(r.endCall)||e("Missing )"),ee}}function a(){const N=l();if(N)return N;const U=ie("position-keyword",r.positionKeywords,1);return U?{type:"directional",value:U.value}:c()}function l(){return ie("directional",r.sideOrCorner,1)}function c(){return ie("angular",r.angleValue,1)||ie("angular",r.radianValue,1)}function h(){let N,U=f(),X;return U&&(N=[],N.push(U),X=A,J(r.comma)&&(U=f(),U?N.push(U):A=X)),N}function f(){let N=I()||d();if(N)N.at=p();else{const U=C();if(U){N=U;const X=p();X&&(N.at=X)}else{const X=p();if(X)N={type:"default-radial",at:X};else{const ee=x();ee&&(N={type:"default-radial",at:ee})}}}return N}function I(){const N=ie("shape",/^(circle)/i,0);return N&&(N.style=q()||C()),N}function d(){const N=ie("shape",/^(ellipse)/i,0);return N&&(N.style=x()||L()||C()),N}function C(){return ie("extent-keyword",r.extentKeywords,1)}function p(){if(ie("position",/^at/,0)){const N=x();return N||e("Missing positioning value"),N}}function x(){const N=P();if(N.x||N.y)return{type:"position",value:N}}function P(){return{x:L(),y:L()}}function w(N){let U=N();const X=[];if(U)for(X.push(U);J(r.comma);)U=N(),U?X.push(U):e("One extra comma");return X}function R(){const N=v();return N||e("Expected color definition"),N.length=L(),N}function v(){return b()||K()||W()||z()||D()||Ae()||m()}function m(){return ie("literal",r.literalColor,0)}function b(){return ie("hex",r.hexColor,1)}function D(){return o(r.rgbColor,()=>({type:"rgb",value:w(Y)}))}function z(){return o(r.rgbaColor,()=>({type:"rgba",value:w(Y)}))}function Ae(){return o(r.varColor,()=>({type:"var",value:te()}))}function W(){return o(r.hslColor,()=>{J(r.percentageValue)&&e("HSL hue value must be a number in degrees (0-360) or normalized (-360 to 360), not a percentage");const U=Y();J(r.comma);let X=J(r.percentageValue);const ee=X?X[1]:null;J(r.comma),X=J(r.percentageValue);const oe=X?X[1]:null;return(!ee||!oe)&&e("Expected percentage value for saturation and lightness in HSL"),{type:"hsl",value:[U,ee,oe]}})}function K(){return o(r.hslaColor,()=>{const N=Y();J(r.comma);let U=J(r.percentageValue);const X=U?U[1]:null;J(r.comma),U=J(r.percentageValue);const ee=U?U[1]:null;J(r.comma);const oe=Y();return(!X||!ee)&&e("Expected percentage value for saturation and lightness in HSLA"),{type:"hsla",value:[N,X,ee,oe]}})}function te(){return J(r.variableName)[1]}function Y(){return J(r.number)[1]}function L(){return ie("%",r.percentageValue,1)||se()||H()||q()}function se(){return ie("position-keyword",r.positionKeywords,1)}function H(){return o(r.calcValue,()=>{let N=1,U=0;for(;N>0&&U<A.length;){const ee=A.charAt(U);ee==="("?N++:ee===")"&&N--,U++}N>0&&e("Missing closing parenthesis in calc() expression");const X=A.substring(0,U-1);return $(U-1),{type:"calc",value:X}})}function q(){return ie("px",r.pixelValue,1)||ie("em",r.emValue,1)}function ie(N,U,X){const ee=J(U);if(ee)return{type:N,value:ee[X]}}function J(N){let U,X;return X=/^\s+/.exec(A),X&&$(X[0].length),U=N.exec(A),U&&$(U[0].length),U}function $(N){A=A.substr(N)}return function(N){return A=N.toString().trim(),A.endsWith(";")&&(A=A.slice(0,-1)),t()}}();const th=lr.parse.bind(lr);var cr=cr||{};cr.stringify=function(){var r={"visit_linear-gradient":function(A){return r.visit_gradient(A)},"visit_repeating-linear-gradient":function(A){return r.visit_gradient(A)},"visit_radial-gradient":function(A){return r.visit_gradient(A)},"visit_repeating-radial-gradient":function(A){return r.visit_gradient(A)},visit_gradient:function(A){var e=r.visit(A.orientation);return e&&(e+=", "),A.type+"("+e+r.visit(A.colorStops)+")"},visit_shape:function(A){var e=A.value,t=r.visit(A.at),i=r.visit(A.style);return i&&(e+=" "+i),t&&(e+=" at "+t),e},"visit_default-radial":function(A){var e="",t=r.visit(A.at);return t&&(e+=t),e},"visit_extent-keyword":function(A){var e=A.value,t=r.visit(A.at);return t&&(e+=" at "+t),e},"visit_position-keyword":function(A){return A.value},visit_position:function(A){return r.visit(A.value.x)+" "+r.visit(A.value.y)},"visit_%":function(A){return A.value+"%"},visit_em:function(A){return A.value+"em"},visit_px:function(A){return A.value+"px"},visit_calc:function(A){return"calc("+A.value+")"},visit_literal:function(A){return r.visit_color(A.value,A)},visit_hex:function(A){return r.visit_color("#"+A.value,A)},visit_rgb:function(A){return r.visit_color("rgb("+A.value.join(", ")+")",A)},visit_rgba:function(A){return r.visit_color("rgba("+A.value.join(", ")+")",A)},visit_hsl:function(A){return r.visit_color("hsl("+A.value[0]+", "+A.value[1]+"%, "+A.value[2]+"%)",A)},visit_hsla:function(A){return r.visit_color("hsla("+A.value[0]+", "+A.value[1]+"%, "+A.value[2]+"%, "+A.value[3]+")",A)},visit_var:function(A){return r.visit_color("var("+A.value+")",A)},visit_color:function(A,e){var t=A,i=r.visit(e.length);return i&&(t+=" "+i),t},visit_angular:function(A){return A.value+"deg"},visit_directional:function(A){return"to "+A.value},visit_array:function(A){var e="",t=A.length;return A.forEach(function(i,s){e+=r.visit(i),s<t-1&&(e+=", ")}),e},visit_object:function(A){return A.width&&A.height?r.visit(A.width)+" "+r.visit(A.height):""},visit:function(A){if(!A)return"";if(A instanceof Array)return r.visit_array(A);if(typeof A=="object"&&!A.type)return r.visit_object(A);if(A.type){var e=r["visit_"+A.type];if(e)return e(A);throw Error("Missing visitor visit_"+A.type)}else throw Error("Invalid node.")}};return function(A){return r.visit(A)}}(),cr.stringify.bind(cr);function _o(r){const A=r.length-1;return r.map((e,t)=>{var o;const i=e.value;let s=GA(t/A,3),n="#00000000";switch(e.type){case"rgb":n=ct({r:Number(i[0]??0),g:Number(i[1]??0),b:Number(i[2]??0)});break;case"rgba":n=ct({r:Number(i[0]??0),g:Number(i[1]??0),b:Number(i[2]??0),a:Number(i[3]??0)});break;case"literal":n=ct(e.value);break;case"hex":n=ct(`#${e.value}`);break}switch((o=e.length)==null?void 0:o.type){case"%":s=Number(e.length.value)/100;break}return{offset:s,color:n}})}function bo(r){var e;let A=0;switch((e=r.orientation)==null?void 0:e.type){case"angular":A=Number(r.orientation.value);break}return{type:"linear-gradient",angle:A,stops:_o(r.colorStops)}}function Do(r){var A;return(A=r.orientation)==null||A.map(e=>{switch(e==null?void 0:e.type){case"shape":case"default-radial":case"extent-keyword":default:return null}}),{type:"radial-gradient",stops:_o(r.colorStops)}}function Bi(r){return r.startsWith("linear-gradient(")||r.startsWith("radial-gradient(")}function Ah(r){return th(r).map(A=>{switch(A==null?void 0:A.type){case"linear-gradient":return bo(A);case"repeating-linear-gradient":return{...bo(A),repeat:!0};case"radial-gradient":return Do(A);case"repeating-radial-gradient":return{...Do(A),repeat:!0};default:return}}).filter(Boolean)}function ih(r){let A;return typeof r=="string"?A={color:r}:A=r,{color:ct(A.color)}}function rh(r){let A;if(typeof r=="string"?A={image:r}:A=r,A.image){const{type:e,...t}=Ah(A.image)[0]??{};switch(e){case"radial-gradient":return{radialGradient:t};case"linear-gradient":return{linearGradient:t}}}return A}function sh(r){let A;return typeof r=="string"?A={image:r}:A=r,A}function nh(r){let A;return typeof r=="string"?A={preset:r}:A=r,{preset:A.preset,foregroundColor:ce(A.foregroundColor)?void 0:ct(A.foregroundColor),backgroundColor:ce(A.backgroundColor)?void 0:ct(A.backgroundColor)}}function oh(r){return!ce(r.color)}function ah(r){return typeof r=="string"?eh(r):oh(r)}function lh(r){return!ce(r.image)&&Bi(r.image)||!!r.linearGradient||!!r.radialGradient}function ch(r){return typeof r=="string"?Bi(r):lh(r)}function hh(r){return!ce(r.image)&&!Bi(r.image)}function gh(r){return typeof r=="string"?!Bi(r):hh(r)}function uh(r){return!ce(r.preset)}function fh(r){return typeof r=="string"?!1:uh(r)}function yA(r){return ah(r)?ih(r):ch(r)?rh(r):gh(r)?sh(r):fh(r)?nh(r):{}}function dh(r){return typeof r=="string"?{...yA(r)}:{...yA(r),...Ds(r,["fillWithShape"])}}const xo=new xs;function Ms(r){let A=xo.get(r);if(!A){const e=Object.getPrototypeOf(r);A=new Map(e?Ms(e):void 0),xo.set(r,A)}return A}function hr(r,A,e={}){Ms(r).set(A,e);const{default:t,alias:i=Symbol.for(String(A))}=e,s=()=>typeof t=="function"?t():t,n=Object.getOwnPropertyDescriptor(r.prototype,A)||{get(){return typeof i=="string"?jc(this,i):this[i]},set(o){typeof i=="string"?Zc(this,i,o):this[i]=o}};Object.defineProperty(r.prototype,A,{get(){var a,l;let o=(a=n.get)==null?void 0:a.call(this);return o===void 0&&(o=s(),o!==void 0&&((l=n.set)==null||l.call(this,o))),o},set(o){var l,c,h;let a=(l=n.get)==null?void 0:l.call(this);a===void 0&&(a=s()),(c=n.set)==null||c.call(this,o),(h=this.requestUpdate)==null||h.call(this,A,o,a,e)},configurable:!0,enumerable:!0})}function M(r){return function(A,e){hr(A.constructor,e,r)}}function Ih(r){return typeof r=="string"?{...yA(r)}:{...yA(r),...Ds(r,["fillWithShape"])}}function ph(r){return typeof r=="string"?{...yA(r)}:{...yA(r),...Ds(r,["width","style","headEnd","tailEnd"])}}function Eh(r){return typeof r=="string"?{color:ct(r)}:{...r,color:ce(r.color)?vo:ct(r.color)}}function Bh(){return{boxShadow:"none"}}function Ch(r){return typeof r=="string"?r.startsWith("<svg")?{svg:r}:{paths:[{data:r}]}:Array.isArray(r)?{paths:r.map(A=>typeof A=="string"?{data:A}:A)}:r}function Qh(){return{overflow:"visible",direction:void 0,display:void 0,boxSizing:void 0,width:void 0,height:void 0,maxHeight:void 0,maxWidth:void 0,minHeight:void 0,minWidth:void 0,position:void 0,left:0,top:0,right:void 0,bottom:void 0,borderTop:void 0,borderLeft:void 0,borderRight:void 0,borderBottom:void 0,borderWidth:0,border:void 0,flex:void 0,flexBasis:void 0,flexDirection:void 0,flexGrow:void 0,flexShrink:void 0,flexWrap:void 0,justifyContent:void 0,gap:void 0,alignContent:void 0,alignItems:void 0,alignSelf:void 0,marginTop:void 0,marginLeft:void 0,marginRight:void 0,marginBottom:void 0,margin:void 0,paddingTop:void 0,paddingLeft:void 0,paddingRight:void 0,paddingBottom:void 0,padding:void 0}}function yh(){return{rotate:0,scaleX:1,scaleY:1,skewX:0,skewY:0,translateX:0,translateY:0,transform:"none",transformOrigin:"center"}}function mh(){return{...Qh(),...yh(),...Bh(),backgroundImage:"none",backgroundSize:"auto, auto",backgroundColor:"none",backgroundColormap:"none",borderRadius:0,borderColor:"none",borderStyle:"solid",outlineWidth:0,outlineOffset:0,outlineColor:"rgb(0, 0, 0)",outlineStyle:"none",visibility:"visible",filter:"none",opacity:1,pointerEvents:"auto",maskImage:"none"}}function wh(){return{highlight:{},highlightImage:"none",highlightReferImage:"none",highlightColormap:"none",highlightLine:"none",highlightSize:"cover",highlightThickness:"100%"}}function vh(){return{listStyle:{},listStyleType:"none",listStyleImage:"none",listStyleColormap:"none",listStyleSize:"cover",listStylePosition:"outside"}}function _h(){return{...wh(),color:"rgb(0, 0, 0)",verticalAlign:"baseline",letterSpacing:0,wordSpacing:0,fontSize:14,fontWeight:"normal",fontFamily:"",fontStyle:"normal",fontKerning:"normal",textTransform:"none",textOrientation:"mixed",textDecoration:"none"}}function bh(){return{...vh(),writingMode:"horizontal-tb",textWrap:"wrap",textAlign:"start",textIndent:0,lineHeight:1.2}}function Dh(){return{...bh(),..._h(),textStrokeWidth:0,textStrokeColor:"rgb(0, 0, 0)"}}function gr(r){return bs({...r,color:ce(r.color)?void 0:ct(r.color),backgroundColor:ce(r.backgroundColor)?void 0:ct(r.backgroundColor),borderColor:ce(r.borderColor)?void 0:ct(r.borderColor),outlineColor:ce(r.outlineColor)?void 0:ct(r.outlineColor),shadowColor:ce(r.shadowColor)?void 0:ct(r.shadowColor)})}function So(){return{...mh(),...Dh()}}const xh=/\r\n|\n\r|\n|\r/,Sh=new RegExp(`^(${xh.source})$`),Mo=`
2
+ `;function Mh(r){return Sh.test(r)}function Rh(r,A){const e=Array.from(new Set([...Object.keys(r),...Object.keys(A)]));return!e.length||e.every(t=>r[t]===A[t])}function ur(r){const A=[];function e(){return A[A.length-1]}function t(o={}){let a=A[A.length-1];return(a==null?void 0:a.fragments.length)===0?(a={...o,fragments:[]},A[A.length-1]=a):(a={...o,fragments:[]},A.push(a)),a}function i(o="",a={}){Array.from(o).forEach(l=>{if(Mh(l)){const{fragments:c,...h}=e()||t();c.length||c.push({...a,content:Mo}),t(h)}else{const c=e()||t(),h=c.fragments[c.fragments.length-1];if(h){const{content:f,...I}=h;if(Rh(a,I)){h.content=`${f}${l}`;return}}c.fragments.push({...a,content:l})}})}(Array.isArray(r)?r:[r]).forEach(o=>{if(typeof o=="string")t(),i(o);else if("content"in o){const{content:a,...l}=o;t(gr(l)),i(a)}else if("fragments"in o){const{fragments:a,...l}=o;t(gr(l)),a.forEach(c=>{const{content:h,...f}=c;i(h,gr(f))})}else Array.isArray(o)?(t(),o.forEach(a=>{if(typeof a=="string")i(a);else{const{content:l,...c}=a;i(l,gr(c))}})):console.warn("Failed to parse text content",o)});const n=e();return n&&!n.fragments.length&&n.fragments.push({content:Mo}),A}function Ph(r){return typeof r=="string"?{content:ur(r)}:"content"in r?{...r,content:ur(r.content)}:{content:ur(r)}}const fr=new Map;function ne(r,A){return function(e){Object.defineProperty(e.prototype,"tag",{value:r,enumerable:!0,configurable:!0}),A&&Object.keys(A).forEach(t=>{hr(e,t,{default:A[t]})}),fr.set(r,e)}}function Ie(r){return M({...r,protected:!0})}function kh(r="node",A={}){const e=fr.get(r);if(!e)throw new Error(`Failed to createNode, tag: ${r}`);return new e().setProperties(A)}class Se{static get currentTime(){return this._currentTime}static get elapsed(){return this._elapsed}static on(A,e={}){const{sort:t=0,once:i=!1}=e;this._queue[t]||(this._queue[t]=[]),this._queue[t].push({cb:A,once:i})}static off(A,e={}){const{sort:t=0}=e,i=this._queue[t];if(!i)return;const s=[];for(let n=i.length,o=0;o<n;o++){const a=i[o];a.cb!==A&&s.push(a)}s.length?this._queue[t]=s:this._queue.splice(t,1)}static start(){"requestAnimationFrame"in globalThis&&(this._currentTime=performance.now(),this._requestId=requestAnimationFrame(A=>this._update(A)))}static stop(){this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=void 0)}static _update(A){this._elapsed=A-this._currentTime,this._currentTime=A,this._requestId=requestAnimationFrame(e=>this._update(e)),this._performUpdate()}static _performUpdate(){const A=this._queue,e=[];for(let t=A.length,i=t;i>=0;i--){const s=A[i];if(!s)continue;const n=[];for(let o=s.length,a=0;a<o;a++){const l=s[a];try{l.cb()}catch(c){console.warn(c)}l.once||n.push(l)}n.length&&(e[i]=n)}this._queue=e}}u(Se,"_queue",[]),u(Se,"_currentTime",0),u(Se,"_elapsed",0),u(Se,"_requestId"),Se.start();async function Rs(r){return new Promise(A=>{Se.on(()=>{r==null||r(),A()},{sort:1,once:!0})})}let Jt=class{constructor(){u(this,"eventListeners",new Map)}removeAllListeners(){return this.eventListeners.clear(),this}hasEventListener(A){return this.eventListeners.has(A)}on(A,e,t){const i={value:e,options:t},s=this.eventListeners.get(A);return s?Array.isArray(s)?s.push(i):this.eventListeners.set(A,[s,i]):this.eventListeners.set(A,i),this}once(A,e){return this.on(A,e,{once:!0})}off(A,e,t){var s,n;if(!e)return this.eventListeners.delete(A),this;const i=this.eventListeners.get(A);if(!i)return this;if(Array.isArray(i)){const o=[];for(let a=0,l=i.length;a<l;a++){const c=i[a];(c.value!==e||typeof t=="object"&&(t!=null&&t.once)&&(typeof c.options=="boolean"||!((s=c.options)!=null&&s.once)))&&o.push(c)}o.length?this.eventListeners.set(A,o.length===1?o[0]:o):this.eventListeners.delete(A)}else i.value===e&&(typeof t=="boolean"||!(t!=null&&t.once)||typeof i.options=="boolean"||(n=i.options)!=null&&n.once)&&this.eventListeners.delete(A);return this}emit(A,...e){var i,s;const t=this.eventListeners.get(A);if(t){if(Array.isArray(t))for(let n=t.length,o=0;o<n;o++){const a=t[o];typeof a.options=="object"&&((i=a.options)!=null&&i.once)&&this.off(A,a.value,a.options),a.value.apply(this,e)}else typeof t.options=="object"&&((s=t.options)!=null&&s.once)&&this.off(A,t.value,t.options),t.value.apply(this,e);return!0}else return!1}},Uh=0;class iA extends Jt{constructor(){super(...arguments);u(this,"instanceId",++Uh);u(this,"_defaultProperties");u(this,"_updatedProperties",new Map);u(this,"_changedProperties",new Set);u(this,"_updatingPromise",Promise.resolve());u(this,"_updating",!1)}is(e){return!!(e&&this.instanceId===e.instanceId)}async _enqueueUpdate(){this._updating=!0;try{await this._updatingPromise}catch(e){Promise.reject(e)}await Rs(),this._updating&&(this.update(),this._updating=!1)}update(){this._update(this._updatedProperties),this._updatedProperties=new Map}_update(e){}_updateProperty(e,t,i,s){}isDirty(e){return this._updatedProperties.has(e)}getPropertyDeclarations(){return Ms(this.constructor)}getPropertyDeclaration(e){return this.getPropertyDeclarations().get(e)}getDefaultProperties(){if(!this._defaultProperties){this._defaultProperties={};for(const[e,t]of this.getPropertyDeclarations())!t.protected&&!t.alias&&(this._defaultProperties[e]=typeof t.default=="function"?t.default():t.default)}return this._defaultProperties}getProperty(e){return this[e]}setProperty(e,t){return this[e]=t,this}getProperties(e){const t={};for(const[i,s]of this.getPropertyDeclarations())!s.protected&&!s.alias&&(!e||e.includes(i))&&(t[i]=this.getProperty(i));return t}setProperties(e){if(e&&typeof e=="object")for(const[t]of this.getPropertyDeclarations())t in e&&this.setProperty(t,e[t]);return this}resetProperties(){for(const[e,t]of this.getPropertyDeclarations())this.setProperty(e,t.default);return this}requestUpdate(e,t,i,s){if(e!==void 0)if(!Object.is(t,i))this._updatedProperties.set(e,i),this._changedProperties.add(e),s??(s=this.getPropertyDeclaration(e)),this._updateProperty(e,t,i,s),this.emit("updateProperty",e,t,i,s);else return;this._updating||(this._updatingPromise=this._enqueueUpdate())}toJSON(){const e={},t=this.getProperties(Array.from(this._changedProperties));for(const i in t){const s=t[i];s&&typeof s=="object"?"toJSON"in s&&typeof s.toJSON=="function"?e[i]=s.toJSON():e[i]={...s}:e[i]=s}return e}clone(){return new this.constructor(this.toJSON())}free(){this.removeAllListeners()}}class Ro extends iA{}const dr=Math.PI,it=dr*2;let Nh=0;function Po(r){var A;return((A=r==null?void 0:r.__SPECTOR_Object_TAG)==null?void 0:A.id)??++Nh}function Ps(r){return!(r&r-1)&&!!r}const Fh=/([\w-]+)\((.+?)\)/g,Th=/[^,]+/g,Gh=/([-e.\d]+)(.*)/;function ks(r){return Array.isArray(r)?r.map(A=>({name:A.name,args:A.args.map(e=>({...e,normalizedIntValue:e.normalizedDefaultIntValue}))})):{...r,normalizedIntValue:r.normalizedDefaultIntValue}}function Ci(r,A,e={}){const t=Qi(A,e);return t.length?t:ko(r,A,e)}function Qi(r,A={}){const e=[];let t;for(;(t=Fh.exec(r))!==null;){const[,i,s]=t;i&&e.push({name:i,args:Lh(i,s,A)})}return e}function Lh(r,A,e={}){const t=[];let i,s=0;for(;(i=Th.exec(A))!==null;)t.push(ko(r,i[0],{...e,index:s++}));return t}function ko(r,A,e={}){const{width:t=1,height:i=1,index:s=0}=e,n=A.match(Gh),o={unit:(n==null?void 0:n[2])??null,value:A,intValue:Number(n==null?void 0:n[1]),normalizedIntValue:0,normalizedDefaultIntValue:0};switch(r){case"scale":case"scaleX":case"scaleY":case"scale3d":o.normalizedDefaultIntValue=1;break}switch(o.unit){case"%":o.normalizedIntValue=o.intValue/100;break;case"rad":o.normalizedIntValue=o.intValue/it;break;case"deg":o.normalizedIntValue=o.intValue/360;break;case"px":switch(s){case 0:o.normalizedIntValue=o.intValue/t;break;case 1:o.normalizedIntValue=o.intValue/i;break}break;case"turn":case"em":case"rem":default:o.normalizedIntValue=o.intValue;break}return o}const Uo="WebGL2RenderingContext"in globalThis,No="ImageBitmap"in globalThis,Fo="ResizeObserver"in globalThis,LA="PointerEvent"in globalThis,To="WheelEvent"in globalThis,Oh="MouseEvent"in globalThis,Kt="ontouchstart"in globalThis,Go="onclick"in globalThis,Us="createImageBitmap"in globalThis,Ns="AudioContext"in globalThis,Fs="webkitAudioContext"in globalThis,Ts="OfflineAudioContext"in globalThis,Lo="webkitOfflineAudioContext"in globalThis,Oo=Ns||Fs,yi=typeof window<"u",Gs=globalThis.devicePixelRatio||1,Ls=r=>r!==null&&typeof r=="object"&&r.nodeType===1,Ho=r=>Ls(r)&&r.tagName==="VIDEO",Hh=r=>Ls(r)&&r.tagName==="IMG";function Jo(r){return typeof r=="object"&&r!==null&&r.nodeType===1&&r.tagName==="CANVAS"}function Ko(r){return Uo&&r instanceof globalThis.WebGL2RenderingContext}function Yo(){if(yi)return globalThis.document.createElement("canvas")}function Vo(r,A=globalThis.location){if(r.startsWith("data:"))return"";A=A||globalThis.location;const e=new URL(r,document.baseURI);return e.hostname!==A.hostname||e.port!==A.port||e.protocol!==A.protocol?"anonymous":""}function zo(r,A,e){e===null&&!A.startsWith("data:")?r.crossOrigin=Vo(A):e!==!1&&(r.crossOrigin=typeof e=="string"?e:"anonymous")}class Os{constructor(){u(this,"_map",new WeakMap)}_toRaw(A){if(A&&typeof A=="object"){const e=A.__v_raw;e&&(A=this._toRaw(e))}return A}delete(A){return this._map.delete(this._toRaw(A))}get(A){return this._map.get(this._toRaw(A))}has(A){return this._map.has(this._toRaw(A))}set(A,e){return this._map.set(this._toRaw(A),this._toRaw(e)),this}}class Ir{constructor(){u(this,"bubbles",!0);u(this,"cancelable",!1);u(this,"which");u(this,"cancelBubble",!0);u(this,"returnValue");u(this,"srcElement");u(this,"composed",!1);u(this,"currentTarget");u(this,"defaultPrevented",!1);u(this,"eventPhase",Ir.prototype.NONE);u(this,"isTrusted");u(this,"target");u(this,"timeStamp");u(this,"type");u(this,"nativeEvent");u(this,"originalEvent");u(this,"propagationStopped",!1);u(this,"propagationImmediatelyStopped",!1);u(this,"path");u(this,"detail");u(this,"view");u(this,"layer",{x:0,y:0});u(this,"page",{x:0,y:0});u(this,"NONE",0);u(this,"CAPTURING_PHASE",1);u(this,"AT_TARGET",2);u(this,"BUBBLING_PHASE",3)}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}initEvent(...A){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(...A){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}composedPath(){return this.path}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class Hs extends Ir{constructor(){super(...arguments);u(this,"altKey");u(this,"button");u(this,"buttons");u(this,"ctrlKey");u(this,"metaKey");u(this,"relatedTarget");u(this,"shiftKey");u(this,"client",{x:0,y:0});u(this,"movement",{x:0,y:0});u(this,"offset",{x:0,y:0});u(this,"global",{x:0,y:0});u(this,"screen",{x:0,y:0})}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}getModifierState(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}initMouseEvent(...e){throw new Error("Method not implemented.")}}class Wo extends Hs{constructor(){super(...arguments);u(this,"width",0);u(this,"height",0);u(this,"isPrimary",!1);u(this,"pointerType");u(this,"pressure");u(this,"tangentialPressure");u(this,"tiltX");u(this,"tiltY");u(this,"twist")}getCoalescedEvents(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class mi extends Hs{constructor(){super(...arguments);u(this,"deltaMode");u(this,"deltaX");u(this,"deltaY");u(this,"deltaZ");u(this,"DOM_DELTA_PIXEL",0);u(this,"DOM_DELTA_LINE",1);u(this,"DOM_DELTA_PAGE",2)}}u(mi,"DOM_DELTA_PIXEL",0),u(mi,"DOM_DELTA_LINE",1),u(mi,"DOM_DELTA_PAGE",2);const Jh={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"};class qo extends Jt{constructor(){super(...arguments);u(this,"target");u(this,"cursor","default");u(this,"cursorStyles",{default:"inherit",pointer:"pointer"});u(this,"setuped",!1);u(this,"event");u(this,"enableMoveEvent",!0);u(this,"enableWheelEvent",!0);u(this,"enableClickEvent",!0);u(this,"onPointerDown",e=>{if(Kt&&e.pointerType==="touch")return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("pointerdown",this.event=this.clonePointerEvent(t[i]));this.setCursor(this.cursor)});u(this,"onPointerOver",e=>{if(!this.enableClickEvent||Kt&&e.pointerType==="touch")return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("pointerover",this.event=this.clonePointerEvent(t[i]))});u(this,"onPointerMove",e=>{if(!this.enableMoveEvent||Kt&&e.pointerType==="touch")return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("pointermove",this.event=this.clonePointerEvent(t[i]))});u(this,"onPointerUp",e=>{if(!this.enableClickEvent||Kt&&e.pointerType==="touch")return;let t=e.target;e.composedPath&&e.composedPath().length>0&&(t=e.composedPath()[0]);const i=t!==this.target?"outside":"",s=this.normalize(e);for(let n=0,o=s.length;n<o;n++){const a=this.clonePointerEvent(s[n]);a.type+=i,this.emit("pointerup",this.event=a)}});u(this,"onWheel",e=>{if(!this.enableWheelEvent)return;const t=this.normalize(e);for(let i=0,s=t.length;i<s;i++)this.emit("wheel",this.event=this.cloneWheelEvent(t[i]))})}setTarget(e){this.removeEventListeners(),this.target=e,this.addEventListeners()}removeEventListeners(){if(!this.setuped||!this.target)return;const e=this.target.style;globalThis.navigator.msPointerEnabled?(e.msContentZooming="",e.msTouchAction=""):LA&&(e.touchAction=""),LA?(this.target.removeEventListener("pointerdown",this.onPointerDown),this.target.removeEventListener("pointerleave",this.onPointerOver),this.target.removeEventListener("pointerover",this.onPointerOver),this.target.removeEventListener("pointermove",this.onPointerMove),this.target.removeEventListener("pointerup",this.onPointerUp)):(this.target.removeEventListener("mousedown",this.onPointerDown),this.target.removeEventListener("mouseout",this.onPointerOver),this.target.removeEventListener("mouseover",this.onPointerOver),this.target.removeEventListener("mousemove",this.onPointerMove),this.target.removeEventListener("mouseup",this.onPointerUp)),Kt&&(this.target.removeEventListener("touchstart",this.onPointerDown),this.target.removeEventListener("touchmove",this.onPointerMove),this.target.removeEventListener("touchend",this.onPointerUp)),this.target.removeEventListener("wheel",this.onWheel),this.target=void 0,this.setuped=!1}addEventListeners(){if(this.setuped||!this.target)return;const e=this.target.style;e&&(globalThis.navigator.msPointerEnabled?(e.msContentZooming="none",e.msTouchAction="none"):LA&&(e.touchAction="none")),LA?(this.target.addEventListener("pointerdown",this.onPointerDown),this.target.addEventListener("pointerleave",this.onPointerOver),this.target.addEventListener("pointerover",this.onPointerOver),this.target.addEventListener("pointermove",this.onPointerMove),this.target.addEventListener("pointerup",this.onPointerUp)):(this.target.addEventListener("mousedown",this.onPointerDown),this.target.addEventListener("mouseout",this.onPointerOver),this.target.addEventListener("mouseover",this.onPointerOver),this.target.addEventListener("mousemove",this.onPointerMove),this.target.addEventListener("mouseup",this.onPointerUp)),Kt&&(this.target.addEventListener("touchstart",this.onPointerDown),this.target.addEventListener("touchmove",this.onPointerMove),this.target.addEventListener("touchend",this.onPointerUp)),this.target.addEventListener("wheel",this.onWheel),this.setuped=!0}normalize(e){const t=[];if(Kt&&e instanceof globalThis.TouchEvent)for(let i=0,s=e.changedTouches.length;i<s;i++){const n=e.changedTouches[i];typeof n.button>"u"&&(n.button=0),typeof n.buttons>"u"&&(n.buttons=1),typeof n.isPrimary>"u"&&(n.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof n.width>"u"&&(n.width=n.radiusX||1),typeof n.height>"u"&&(n.height=n.radiusY||1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="touch"),typeof n.pointerId>"u"&&(n.pointerId=n.identifier||0),typeof n.pressure>"u"&&(n.pressure=n.force||.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),typeof n.layerX>"u"&&(n.layerX=n.offsetX=n.clientX),typeof n.layerY>"u"&&(n.layerY=n.offsetY=n.clientY),n.type=e.type,t.push(n)}else if(To&&e instanceof globalThis.WheelEvent)t.push(e);else if(LA&&e instanceof globalThis.PointerEvent)t.push(e);else{const i=e;typeof i.isPrimary>"u"&&(i.isPrimary=!0),typeof i.width>"u"&&(i.width=1),typeof i.height>"u"&&(i.height=1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="mouse"),typeof i.pointerId>"u"&&(i.pointerId=1),typeof i.pressure>"u"&&(i.pressure=.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),t.push(i)}return t}cloneWheelEvent(e){const t=new mi;return this.copyMouseEvent(t,e),t.wheelDeltaY=e.wheelDeltaY,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.x=t.screen.x,t.global.y=t.screen.y,t.offset.x=t.screen.x,t.offset.y=t.screen.y,t.nativeEvent=e,t.type=e.type,t}clonePointerEvent(e){const t=new Wo;return t.originalEvent=null,t.nativeEvent=e,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,t.isTrusted=e.isTrusted,this.copyMouseEvent(t,e),this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.x=t.screen.x,t.global.y=t.screen.y,t.offset.x=t.screen.x,t.offset.y=t.screen.y,t.type==="pointerleave"?t.type="pointerout":t.type.startsWith("mouse")?t.type=t.type.replace("mouse","pointer"):t.type.startsWith("touch")&&(t.type=Jh[t.type]||t.type),t}copyMouseEvent(e,t){e.preventDefault=t.preventDefault.bind(t),e.stopPropagation=t.stopPropagation.bind(t),e.isTrusted=t.isTrusted,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}setCursor(e){if(!this.target||(e=e||"default",this.cursor===e))return;this.cursor=e;const t=!(globalThis.OffscreenCanvas&&this.target instanceof OffscreenCanvas),i=this.cursorStyles[e];if(i)switch(typeof i){case"string":t&&(this.target.style.cursor=i);break;case"function":i(e);break;case"object":t&&Object.assign(this.target.style,i);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.target.style.cursor=e)}mapPositionToPoint(e,t,i){if(!this.target)return;const s=Number(this.target.getAttribute("width"))||0,n=Number(this.target.getAttribute("height"))||0,o=Number(this.target.getAttribute("data-pixel-ratio"))||1,a=this.target.isConnected?this.target.getBoundingClientRect():{width:s,height:n,left:0,top:0},l=1/o;e.x=(t-a.left)*(s/a.width)*l,e.y=(i-a.top)*(n/a.height)*l}}class Yt extends Ro{}function Kh(r,A){var e={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",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},t={};for(var i in e)t[e[i]]=i;var s={};r.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,l=t[this.toHex()];if(l)return l;if(n!=null&&n.closest){var c=this.toRgb(),h=1/0,f="black";if(!s.length)for(var I in e)s[I]=new r(e[I]).toRgb();for(var d in e){var C=(o=c,a=s[d],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));C<h&&(h=C,f=d)}return f}},A.string.push([function(n){var o=n.toLowerCase(),a=o==="transparent"?"#0000":e[o];return a?new r(a).toRgb():null},"name"])}Wc([Kh]);class Vt{get value(){return this._value}set value(A){this._colord=Ss(A??"none")}get r8(){return this._colord.rgba.r}get g8(){return this._colord.rgba.g}get b8(){return this._colord.rgba.b}get a8(){return this._colord.rgba.a*255&255}get r(){return this.r8/255}get g(){return this.g8/255}get b(){return this.b8/255}get a(){return this._colord.rgba.a}get rgb(){return(this.r8<<16)+(this.g8<<8)+this.b8}get bgr(){return(this.b8<<16)+(this.g8<<8)+this.r8}get abgr(){return(this.a8<<24)+this.bgr}constructor(A=0){this.value=A}toHex(){return this._colord.toHex()}toRgb(){return this._colord.toRgb()}toRgbString(){return this._colord.toRgbString()}toHsl(){return this._colord.toHsl()}toHslString(){return this._colord.toHslString()}toHsv(){return this._colord.toHsv()}toArgb(A=this.a,e=!0){if(A===1)return(255<<24)+this.rgb;if(A===0)return e?0:this.rgb;let t=this.r8,i=this.g8,s=this.b8;return e&&(t=t*A+.5|0,i=i*A+.5|0,s=s*A+.5|0),(A*255<<24)+(t<<16)+(i<<8)+s}toArray(){return[this.r,this.g,this.b,this.a]}}class wt extends Jt{constructor(e){super();u(this,"_array",[]);this.dim=e}get length(){return this.dim}_operate(e,t,i){const{dim:s,_array:n}=this;let o;typeof t=="number"?o=Array.from({length:s},()=>t):t instanceof Mt||t instanceof wt?o=t.toArray():o=t;let a,l=[];if(i?i instanceof wt?a=i:l=i:a=this,t instanceof Mt){const{cols:c}=t;switch(e){case"*":for(let h=0;h<s;h++){let f=0;for(let I=0;I<s;I++)f+=n[h]*o[I*c+h];l[h]=f}break;default:throw new Error(`Not support operator in '${this.toName()} ${e} ${t.toName()}'`)}}else switch(e){case"+":for(let c=0;c<s;c++)l[c]=n[c]+o[c];break;case"-":for(let c=0;c<s;c++)l[c]=n[c]-o[c];break;case"*":for(let c=0;c<s;c++)l[c]=n[c]*o[c];break;case"/":for(let c=0;c<s;c++)l[c]=n[c]/o[c];break;case"rot":{const c=Math.cos(o[0]),h=Math.sin(o[0]);l[0]=n[0]*c-n[1]*h,l[1]=n[1]*c+n[0]*h;break}case"==":{let c=!0;for(let h=0;h<s;h++)c=c&&n[h]===o[h];return c}case"=":for(let c=0;c<s;c++){const h=o[c];h!==void 0&&(n[c]=h)}return this._onUpdate(n),this.emit("update",n),this;default:throw new Error(`Not support operator in '${this.toName()} ${e} Vector'`)}return(a==null?void 0:a.set(l))??l}add(e,t){return this._operate("+",e,t)}sub(e,t){return this._operate("-",e,t)}multiply(e,t){return this._operate("*",e,t)}divide(e,t){return this._operate("/",e,t)}rotate(e){return this._operate("rot",e)}set(e,...t){return t.length&&typeof e=="number"&&(e=[e,...t]),this._operate("=",e)}equals(e){return this._operate("==",e)}copy(e){return this.set(e)}clone(){const e=new this.constructor;return e.set(this.toArray()),e}_onUpdate(e){}toArray(){return this._array.slice()}toName(){return`Vector${this.dim}`}}class Mt extends Jt{constructor(e,t,i){super();u(this,"_array",[]);u(this,"dirtyId",0);this.rows=e,this.cols=t,i?this.set(i):this.identity()}get length(){return this.cols*this.rows}_operate(e,t,i){const{cols:s,rows:n,length:o,_array:a}=this;let l;typeof t=="number"?l=Array.from({length:o},()=>t):t instanceof wt||t instanceof Mt?l=t.toArray():l=t;let c,h=[];if(i?i instanceof wt||i instanceof Mt?c=i:h=i:t instanceof wt?c=new t.constructor:c=this,t instanceof wt){const{dim:f}=t;switch(e){case"*":for(let I=0;I<f;I++){let d=0;for(let C=0;C<s;C++)C<f&&(d+=a[I*s+C]*(l[C]??0));h[I]=d}break;default:throw new Error(`Not support operator in '${this.toName()} ${e} ${t.toName()}'`)}}else switch(e){case"*":for(let f=0;f<s;f++)for(let I=0;I<n;I++){const d=I*s;let C=0;for(let p=0;p<n;p++){const x=d+p,P=p*s+f;C+=a[x]*(l[P]??0)}h[d+f]=C}break;case"=":for(let f=0;f<o;f++){const I=l[f];I!==void 0&&(a[f]=I)}return this._onUpdate(a),this.emit("update",a),this;default:throw new Error(`Not support operator in '${this.toName()} ${e} Matrix2'`)}return(c==null?void 0:c.set(h))??h}identity(){const{cols:e,rows:t}=this,i=[];for(let s=0;s<e;s++)for(let n=0;n<t;n++){const o=n*e,a=s+o;i[a]=n+o===a?1:0}return this.set(i)}set(e){return this._operate("=",e)}copy(e){return this.set(e)}clone(){const e=new this.constructor;return e.set(this.toArray()),e}multiply(e,t){return this._operate("*",e,t)}_onUpdate(e){this.dirtyId++}toArray(e=!1){const{cols:t,rows:i,_array:s}=this;if(e){const n=[];for(let o=0;o<i;o++)for(let a=0;a<t;a++)n[o+a*t]=s[a+o*t];return n}return s.slice()}toName(){return`Matrix${this.rows}(${this.rows}x${this.cols})`}toJSON(){return this._array}}class Xo extends Mt{constructor(A){super(4,4,A)}}const jo=dr/180,Yh=180/dr;function zt(r,A,e){return Math.max(r,Math.min(A,e))}function Me(r,A,e){return(1-e)*r+e*A}const Vh={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(r,A=20){if(!this.adaptive||!r||Number.isNaN(r))return A;let e=Math.ceil(r/this.maxLength);return e<this.minSegments?e=this.minSegments:e>this.maxSegments&&(e=this.maxSegments),e}};class Zo extends wt{constructor(A=0,e=0,t=0,i=0){super(4),this.set([A,e,t,i])}}class Js extends Mt{constructor(A){super(4,5,A)}hueRotate(A=0){const e=Math.sin(A),t=Math.cos(A),i=.213,s=.715,n=.072;return this.multiply([i+t*(1-i)+e*-i,s+t*-s+e*-s,n+t*-n+e*(1-n),0,0,i+t*-i+e*.143,s+t*(1-s)+e*.14,n+t*-n+e*-.283,0,0,i+t*-i+e*-.787,s+t*-s+e*s,n+t*(1-n)+e*n,0,0,0,0,0,1,0])}saturate(A=1){const e=(A-1)*2/3+1,t=(e-1)*-.5;return this.multiply([e,t,t,0,0,t,e,t,0,0,t,t,e,0,0,0,0,0,1,0])}brightness(A=1){const e=A;return this.multiply([e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0])}contrast(A=1){const e=A,t=-128*(e-1);return this.multiply([e,0,0,0,t,0,e,0,0,t,0,0,e,0,t,0,0,0,1,0])}invert(A=1){const e=Me(1,-1,A),t=Me(0,255,A);return this.multiply([e,0,0,0,t,0,e,0,0,t,0,0,e,0,t,0,0,0,1,0])}sepia(A=1){const e=zt(0,A,1);return this.multiply([Me(1,.393,e),Me(0,.7689999,e),Me(0,.18899999,e),0,0,Me(0,.349,e),Me(1,.6859999,e),Me(0,.16799999,e),0,0,Me(0,.272,e),Me(0,.5339999,e),Me(1,.13099999,e),0,0,0,0,0,1,0])}opacity(A=1){return this.multiply([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,A,0])}grayscale(A=1){const e=zt(0,A,1),t=Me(1,.3,e),i=Me(0,.3,e),s=Me(1,.59,e),n=Me(0,.59,e),o=Me(1,.11,e),a=Me(0,.11,e);return this.multiply([t,n,a,0,0,i,s,a,0,0,i,n,o,0,0,0,0,0,1,0])}multiply(A){const e=A,t=this._array;return this.set([t[0]*e[0]+t[1]*e[5]+t[2]*e[10]+t[3]*e[15],t[0]*e[1]+t[1]*e[6]+t[2]*e[11]+t[3]*e[16],t[0]*e[2]+t[1]*e[7]+t[2]*e[12]+t[3]*e[17],t[0]*e[3]+t[1]*e[8]+t[2]*e[13]+t[3]*e[18],t[0]*e[4]+t[1]*e[9]+t[2]*e[14]+t[3]*e[19]+t[4],t[5]*e[0]+t[6]*e[5]+t[7]*e[10]+t[8]*e[15],t[5]*e[1]+t[6]*e[6]+t[7]*e[11]+t[8]*e[16],t[5]*e[2]+t[6]*e[7]+t[7]*e[12]+t[8]*e[17],t[5]*e[3]+t[6]*e[8]+t[7]*e[13]+t[8]*e[18],t[5]*e[4]+t[6]*e[9]+t[7]*e[14]+t[8]*e[19]+t[9],t[10]*e[0]+t[11]*e[5]+t[12]*e[10]+t[13]*e[15],t[10]*e[1]+t[11]*e[6]+t[12]*e[11]+t[13]*e[16],t[10]*e[2]+t[11]*e[7]+t[12]*e[12]+t[13]*e[17],t[10]*e[3]+t[11]*e[8]+t[12]*e[13]+t[13]*e[18],t[10]*e[4]+t[11]*e[9]+t[12]*e[14]+t[13]*e[19]+t[14],t[15]*e[0]+t[16]*e[5]+t[17]*e[10]+t[18]*e[15],t[15]*e[1]+t[16]*e[6]+t[17]*e[11]+t[18]*e[16],t[15]*e[2]+t[16]*e[7]+t[17]*e[12]+t[18]*e[17],t[15]*e[3]+t[16]*e[8]+t[17]*e[13]+t[18]*e[18],t[15]*e[4]+t[16]*e[9]+t[17]*e[14]+t[18]*e[19]+t[19]])}toMatrix4(){const A=this._array;return new Xo([A[0],A[1],A[2],A[3],A[5],A[6],A[7],A[8],A[10],A[11],A[12],A[13],A[15],A[16],A[17],A[18]])}toVector4(){const A=this._array;return new Zo(A[4]/255,A[9]/255,A[14]/255,A[19]/255)}}class zh extends Mt{constructor(A){super(2,2,A)}}let Ks=class extends Mt{constructor(A){super(3,3,A)}invert(){const[A,e,t,i,s,n,o,a,l]=this._array,c=l*s-n*a,h=n*o-l*i,f=a*i-s*o,I=A*c+e*h+t*f;if(I===0)return this.set([0,0,0,0,0,0,0,0,0]);const d=1/I;return this.set([c*d,(t*a-l*e)*d,(n*e-t*s)*d,h*d,(l*A-t*o)*d,(t*i-n*A)*d,f*d,(e*o-a*A)*d,(s*A-e*i)*d])}};class $o extends Ks{constructor(A=0,e=0,t=0,i=0,s=!1){super(),this._x=A,this._y=e,this._width=t,this._height=i,this._flipY=s,this._performUpdateArray()}flipY(A){return this._flipY!==A&&(this._flipY=A,this._performUpdateArray()),this}translate(A,e){return(this._x!==A||this._y!==e)&&(this._x=A,this._y=e,this._performUpdateArray()),this}resize(A,e){return(this._width!==A||this._height!==e)&&(this._width=A,this._height=e,this._performUpdateArray()),this}_performUpdateArray(){const A=this._width,e=this._height;if(!A||!e)return;const t=this._x,i=this._y,s=this._flipY?-1:1,n=1/A*2,o=s*(1/e*2),a=-1-t*n,l=-s-i*o;this.set([n,0,a,0,o,l,0,0,1])}}let ut=class Qs extends wt{get x(){return this._array[0]}set x(A){const[e,t]=this._array;e!==A&&this.set(A,t)}get y(){return this._array[1]}set y(A){const[e,t]=this._array;t!==A&&this.set(e,A)}get width(){return this.x}set width(A){this.x=A}get height(){return this.y}set height(A){this.y=A}get left(){return this.x}set left(A){this.x=A}get top(){return this.y}set top(A){this.y=A}constructor(A=0,e){super(2),this.set(typeof A=="number"?[A,e??A]:A)}update(A,e){const[t,i]=this._array;return(t!==A||i!==e)&&this.set(A,e),this}getLength(){const[A,e]=this._array;return Math.sqrt(A*A+e*e)}getAngle(){const[A,e]=this._array;return Math.atan2(-A,-e)+Math.PI}distanceTo(A){return Math.hypot(A.x-this.x,A.y-this.y)}normalize(){const[A,e]=this._array,t=1/(this.getLength()||1);return this.set(A*t,e*t),this}static lerp(A,e,t){return new Qs(e).clone().sub(new Qs(A)).multiply(t).add(new Qs(A))}};class Ys{constructor(...A){u(this,"end",new ut);u(this,"position");u(this,"size");const e=new ut,t=new ut;switch(A.length){case 0:break;case 1:e.set(A[0].position),t.set(A[0].size);break;case 2:e.set(A[0]),t.set(A[1]);break;default:e.set(A[0],A[1]),t.set(A[2],A[3]);break}this.update=this.update.bind(this),this.position=e.on("update",this.update),this.size=t.on("update",this.update),this.update()}get x(){return this.position.x}get y(){return this.position.y}get left(){return this.position.x}get top(){return this.position.y}get right(){return this.x+this.width}get bottom(){return this.y+this.height}get width(){return this.size.x}get height(){return this.size.y}update(){return this.end.set(this.position.x+this.size.x,this.position.y+this.size.y),this}toArray(){return[this.x,this.y,this.width,this.height]}}const EA=class EA extends Ks{premultiply(A){return A.multiply(this,this)}skewX(A){return this.skew(A,0)}skewY(A){return this.skew(0,A)}skew(A,e){return this.premultiply(EA._t2d.makeSkew(A,e))}makeSkew(A,e){const t=Math.tan(A),i=Math.tan(e);return this.set([1,i,0,t,1,0,0,0,1]),this}translateX(A){return this.translate(A,0)}translateY(A){return this.translate(0,A)}translateZ(A){return this.translate(0,0,A)}translate3d(A,e,t){return this.translate(A,e,t)}translate(A,e,t=0){return this.premultiply(EA._t2d.makeTranslation(A,e,t))}makeTranslation(A,e,t=0){return this.set([1,0,A,0,1,e,0,0,1]),this}scaleX(A){return this.scale(A,1)}scaleY(A){return this.scale(1,A)}scale3d(A,e,t=1){return this.scale(A,e,t)}scale(A,e,t=1){return this.premultiply(EA._t2d.makeScale(A,e,t))}makeScale(A,e,t=1){return this.set([A,0,0,0,e,0,0,0,1]),this}rotateX(A){return this.scaleY(this._rotateToScale(A))}rotateY(A){return this.scaleX(this._rotateToScale(A))}rotateZ(A){return this.rotate(A)}rotate(A){return this.premultiply(EA._t2d.makeRotation(A))}rotate3d(A,e,t,i){const[s,n,o]=this._rotate3d(A,e,t,i);return s&&this.rotateX(s),n&&this.rotateY(n),o&&this.rotateZ(o),this}_rotateToScale(A){const e=A/it;return e<=.5?e*-4+1:(e-1)*4+1}_rotate3d(A,e,t,i){if(A===1&&e===0&&t===0)return[i,0,0];if(A===0&&e===1&&t===0)return[0,i,0];if(A===0&&e===0)return[0,0,i];{const s=Math.cos(i),n=Math.sin(i),o=s+A*A*(1-s),a=A*e*(1-s)-t*n,l=A*t*(1-s)+e*n,c=s+e*e*(1-s),h=e*t*(1-s)-A*n,f=s+t*t*(1-s),I=-Math.atan2(-h,c),d=-Math.atan2(l,Math.sqrt(h*h+f*f)),C=-Math.atan2(-a,o);return[I,d,C]}}makeRotation(A){const e=Math.cos(A),t=Math.sin(A);return this.set([e,-t,0,t,e,0,0,0,1]),this}applyToPoint(A,e){const{a:t,c:i,tx:s,b:n,d:o,ty:a}=this.toObject();return[t*A+i*e+s,n*A+o*e+a]}inverse(){return this.clone().invert()}isIdentity(){const{a:A,b:e,c:t,d:i,tx:s,ty:n}=this.toObject();return A===1&&e===0&&t===0&&i===1&&s===0&&n===0}toObject(){const[A,e,t,i,s,n,,,o]=this._array;return{a:A,c:e,tx:t,b:i,d:s,ty:n,tz:o}}};u(EA,"_t2d",new EA);let ht=EA;class Wh extends wt{constructor(){super(3)}}var qh=Object.defineProperty,ea=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&qh(A,e,i),i};class pr extends iA{constructor(){super();u(this,"_starting",!1);u(this,"_nextDeltaTime",0);this._onNextTick=this._onNextTick.bind(this)}get starting(){return this._starting}get spf(){return this.fps?Math.floor(1e3/this.fps):0}start(e){this._starting||(this._starting=!0,this.off("process"),this.on("process",e),Se.on(this._onNextTick,{sort:0}))}stop(){this._starting&&(this._starting=!1,Se.off(this._onNextTick,{sort:0}))}_onNextTick(){const e=Se.elapsed*this.speed;if((this._nextDeltaTime-=e)<=0){const i=(this._nextDeltaTime=this.spf)||e;this.emit("process",i)}}free(){super.free(),this.stop()}}ea([M({default:24})],pr.prototype,"fps"),ea([M({default:1})],pr.prototype,"speed");class ta{constructor(){u(this,"view");u(this,"pixelRatio",Gs);u(this,"screen",{x:0,y:0,width:0,height:0});u(this,"related",new Os)}getRelated(A,e){let t=this.related.get(A);return t||(e?(this.related.set(A,t=e()),t):(console.warn("Failed to get related",A),null))}resize(A,e,t=!0){this.view&&(this.view.width=Math.floor(A*this.pixelRatio),this.view.height=Math.floor(e*this.pixelRatio)),this.screen.width=A,this.screen.height=e,t&&this.view&&(this.view.style.width=`${A}px`,this.view.style.height=`${e}px`)}}var OA=(r=>(r.NORMAL="normal",r.ADD="add",r.MULTIPLY="multiply",r.SCREEN="screen",r.NONE="none",r.NORMAL_NPM="normal_npm",r.ADD_NPM="add_npm",r.SCREEN_NPM="screen_npm",r.SRC_IN="src_in",r.SRC_OUT="src_out",r.SRC_ATOP="src_atop",r.DST_OVER="dst_over",r.DST_IN="dst_in",r.DST_OUT="dst_out",r.DST_ATOP="dst_atop",r.XOR="xor",r.SUBTRACT="subtract",r))(OA||{});function Aa(r){return{normal:[r.ONE,r.ONE_MINUS_SRC_ALPHA],add:[r.ONE,r.ONE],multiply:[r.DST_COLOR,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA],screen:[r.ONE,r.ONE_MINUS_SRC_COLOR,r.ONE,r.ONE_MINUS_SRC_ALPHA],none:[0,0],normal_npm:[r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA,r.ONE,r.ONE_MINUS_SRC_ALPHA],add_npm:[r.SRC_ALPHA,r.ONE,r.ONE,r.ONE],screen_npm:[r.SRC_ALPHA,r.ONE_MINUS_SRC_COLOR,r.ONE,r.ONE_MINUS_SRC_ALPHA],src_in:[r.DST_ALPHA,r.ZERO],src_out:[r.ONE_MINUS_DST_ALPHA,r.ZERO],src_atop:[r.DST_ALPHA,r.ONE_MINUS_SRC_ALPHA],dst_over:[r.ONE_MINUS_DST_ALPHA,r.ONE],dst_in:[r.ZERO,r.SRC_ALPHA],dst_out:[r.ZERO,r.ONE_MINUS_SRC_ALPHA],dst_atop:[r.ONE_MINUS_DST_ALPHA,r.SRC_ALPHA],xor:[r.ONE_MINUS_DST_ALPHA,r.ONE_MINUS_SRC_ALPHA],subtract:[r.ONE,r.ONE,r.ONE,r.ONE,r.FUNC_REVERSE_SUBTRACT,r.FUNC_ADD]}}class Ct{get gl(){return this._renderer.gl}install(A){this._renderer=A}onUpdateContext(){}flush(){}reset(){}free(){}}const ss=class ss{constructor(A){u(this,"_blendMode",OA.NORMAL);u(this,"_polygonOffset",0);u(this,"bitmap",0);if(A)for(const e in A)this[e]=A[e]}static _init(){this._properties.forEach((A,e)=>{Object.defineProperty(this.prototype,A,{get(){return!!(this.bitmap&1<<e)},set(t){!!(this.bitmap&1<<e)!==t&&(this.bitmap^=1<<e)},enumerable:!0,configurable:!0})})}static for2D(){const A=new ss;return A.depthTest=!1,A.blend=!0,A}get blendMode(){return this._blendMode}set blendMode(A){this.blend=A!==OA.NONE,this._blendMode=A}get polygonOffset(){return this._polygonOffset}set polygonOffset(A){this.offsets=!!A,this._polygonOffset=A}};u(ss,"_properties",["blend","offsets","culling","depthTest","clockwiseFrontFace","depthMask"]);let mA=ss;mA._init();class ia extends Ct{constructor(){super(...arguments);u(this,"_blendEq",!1);u(this,"_setters",mA._properties.map(e=>this[`set${e.replace(/^\S/,t=>t.toUpperCase())}`]));u(this,"boundStateBitmap",0);u(this,"boundBlendMode");u(this,"blendModes");u(this,"defaultState",new mA({blend:!0}))}install(e){super.install(e),e.state=this}onUpdateContext(){super.onUpdateContext(),this.blendModes=Aa(this._renderer.gl)}toggle(e,t){this._renderer.gl[t?"enable":"disable"](e)}setBlend(e){this.toggle(this._renderer.gl.BLEND,e)}setOffsets(e){this.toggle(this._renderer.gl.POLYGON_OFFSET_FILL,e)}setCulling(e){this.toggle(this._renderer.gl.CULL_FACE,e)}setDepthTest(e){this.toggle(this._renderer.gl.DEPTH_TEST,e)}setDepthMask(e){this._renderer.gl.depthMask(e)}setClockwiseFrontFace(e){const t=this._renderer.gl;t.frontFace(t[e?"CW":"CCW"])}setBlendMode(e){if(e===this.boundBlendMode)return;this.boundBlendMode=e;const t=this.blendModes[e],i=this._renderer.gl;t.length===2?i.blendFunc(t[0],t[1]):i.blendFuncSeparate(t[0],t[1],t[2],t[3]),t.length===6?(this._blendEq=!0,i.blendEquationSeparate(t[4],t[5])):this._blendEq&&(this._blendEq=!1,i.blendEquationSeparate(i.FUNC_ADD,i.FUNC_ADD))}setPolygonOffset(e,t){this._renderer.gl.polygonOffset(e,t)}bind(e){var t;if(this.boundStateBitmap!==e.bitmap){let i=this.boundStateBitmap^e.bitmap,s=0;for(;i;)i&1&&((t=this._setters[s])==null||t.call(this,!!(e.bitmap&1<<s))),i=i>>1,s++;this.boundStateBitmap=e.bitmap}e.blend&&this.setBlendMode(e.blendMode),e.offsets&&this.setPolygonOffset(1,e.polygonOffset)}reset(){super.reset();const e=this._renderer.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.bind(this.defaultState),this._blendEq=!0,this.setBlendMode(OA.NORMAL)}}class ra extends Ct{constructor(){super(...arguments);u(this,"_state",mA.for2D());u(this,"_batchSize",4096*4);u(this,"_drawCallUid",0);u(this,"_defaultModulate",4294967295);u(this,"_defaultBackgroundColor",0);u(this,"_defaultColorMatrixOffset",[0,0,0,0]);u(this,"_defaultColorMatrix",[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);u(this,"_batchables",[]);u(this,"_vertexCount",0);u(this,"_indexCount",0);u(this,"_attributeBuffer",[]);u(this,"_indexBuffers",[]);u(this,"_shaders",new Map);u(this,"_attributes",{aTextureId:{size:1,normalized:!0,type:"float"},aPosition:{size:2,normalized:!1,type:"float"},aUv:{size:2,normalized:!1,type:"float"},aModulate:{size:4,normalized:!0,type:"unsigned_byte"},aBackgroundColor:{size:4,normalized:!0,type:"unsigned_byte"},aDisableWrapMode:{size:4,normalized:!0,type:"float"},aColorMatrixOffset:{size:4,normalized:!1,type:"float"},aColorMatrix:{size:4,normalized:!1,type:"float"}});u(this,"_vertexSize",31)}install(e){super.install(e),e.batch2D=this}_getShader(e){let t=this._shaders.get(e);return t||this._shaders.set(e,t=this._createShader(e)),t}_createShader(e){const t=this._renderer,i=t.program.create({vert:`precision highp float;
3
3
  attribute float aTextureId;
4
4
  attribute vec2 aPosition;
5
5
  attribute vec2 aUv;
@@ -51,11 +51,11 @@ void main(void) {
51
51
  if (vTextureId < 0.0)
52
52
  {
53
53
  color = vec4(0.0, 0.0, 0.0, 0.0);
54
- }${Array.from({length:e},(h,c)=>{let f=" ";return c>=0&&(f+=`
55
- else `),c<e-1&&(f+=`
56
- if (vTextureId < ${c}.5)`),`${f}
54
+ }${Array.from({length:e},(c,h)=>{let f=" ";return h>=0&&(f+=`
55
+ else `),h<e-1&&(f+=`
56
+ if (vTextureId < ${h}.5)`),`${f}
57
57
  {
58
- color = texture2D(samplers[${c}], vUv);
58
+ color = texture2D(samplers[${h}], vUv);
59
59
  }`}).join("")}
60
60
 
61
61
  color += (1.0 - color.a) * vBackgroundColor;
@@ -65,9 +65,9 @@ void main(void) {
65
65
  color += vColorMatrixOffset;
66
66
  }
67
67
  gl_FragColor = color;
68
- }`}),s=t.buffer.create({target:"array_buffer",data:new Float32Array(1),usage:"dynamic_draw"}),n=t.buffer.create({target:"element_array_buffer",data:new Uint16Array(1),usage:"dynamic_draw"}),o={attributes:Object.fromEntries(Object.entries(this._attributes).map(([h,c])=>[h,{...c,buffer:s}])),elementArrayBuffer:n},a=t.vertexArray.create(i,o),l=new Int32Array(Array.from({length:e},(h,c)=>c));return{update:(h,c)=>{t.vertexArray.bind(a??o),t.buffer.update(s,{target:"array_buffer",data:h}),t.buffer.update(n,{target:"element_array_buffer",data:c})},draw:h=>{const c=this._renderer;c.program.bind(i),c.program.updateUniforms(i,{samplers:l,modulate:[1,1,1,1],translationMatrix:[1,0,0,0,1,0,0,0,1],...c.program.uniforms}),c.vertexArray.bind(a??o),c.draw(h)}}}render(e){const{vertices:t,indices:i}=e,s=t.length/2;this._vertexCount+s>this._batchSize&&this.flush(),this._vertexCount+=s,this._indexCount+=i.length,this._batchables.push(e)}flush(){if(super.flush(),this._vertexCount===0)return;const e=this._vertexCount,t=this._indexCount,i=this._batchables;this._batchables=[],this._vertexCount=0,this._indexCount=0;const s=this._renderer.texture.maxUnits,n=this._getAttributeBuffer(e),o=new Float32Array(n),a=new Uint32Array(n),l=this._getIndexBuffer(t);let h=0,c=0;const f=[];for(let d=i.length,C={id:++this._drawCallUid},p=[],x=new Map,P=0,w=0,R=0;R<d;R++){const v=i[R].texture,m=R===d-1;if(!v||x.has(v)){if(!m)continue}else p.push(v),x.set(v,P++);if(m||P>=s){C.textures=p,C.textureLocationMap=x,P=0,C.first=c;for(let b=w;b<=R;b++){const{indices:D,vertices:z,uvs:Ae=[],texture:W,modulate:K=this._defaultModulate,backgroundColor:te=this._defaultBackgroundColor,colorMatrix:Y=this._defaultColorMatrix,colorMatrixOffset:L=this._defaultColorMatrixOffset,blendMode:se=OA.NORMAL,disableWrapMode:H=!1}=i[b],q=(W?x.get(W):-1)??-1;w<b&&C.blendMode!==se&&(C.count=c-C.first,f.push(C),w=b,C={id:++this._drawCallUid},C.textures=p,C.first=c);const ie=h/this._vertexSize;for(let J=z.length,$=0;$<J;$+=2){o[h++]=q,o[h++]=z[$],o[h++]=z[$+1],o[h++]=Ae[$]??0,o[h++]=Ae[$+1]??0,a[h++]=K,a[h++]=te,o[h++]=H?1:0,o[h++]=0,o[h++]=0,o[h++]=0;for(let N=0;N<4;N++)o[h++]=L[N]??0;for(let N=0;N<16;N++)o[h++]=Y[N]??0}for(let J=D.length,$=0;$<J;$++)l[c++]=ie+D[$];C.blendMode=se}w=R+1,C.count=c-C.first,f.push(C),C={id:++this._drawCallUid},p=[],x=new Map}}const I=this._getShader(s);I.update(n,l);for(let d=f.length,C=0;C<d;C++){const p=f[C],{first:x=0,textures:P,textureLocationMap:w}=p;for(let R=P.length,v=0;v<R;v++){const m=P[v],b=w.get(m);b!==void 0&&this._renderer.texture.bind({target:"texture_2d",location:b,value:m})}this._state.blendMode=p.blendMode,this._renderer.state.bind(this._state),I.draw({mode:"triangles",count:p.count,first:x,bytesPerElement:2})}}_getAttributeBuffer(e){const t=Vs(Math.ceil(e/8)),i=zs(t),s=t*8;this._attributeBuffer.length<=i&&(this._indexBuffers.length=i+1);let n=this._attributeBuffer[s];return n||(this._attributeBuffer[s]=n=new ArrayBuffer(s*this._vertexSize*4)),n}_getIndexBuffer(e){const t=Vs(Math.ceil(e/12)),i=zs(t),s=t*12;this._indexBuffers.length<=i&&(this._indexBuffers.length=i+1);let n=this._indexBuffers[i];return n||(this._indexBuffers[i]=n=new Uint16Array(s)),n}}function Vs(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function zs(r){let A=(r>65535?1:0)<<4;r>>>=A;let e=(r>255?1:0)<<3;return r>>>=e,A|=e,e=(r>15?1:0)<<2,r>>>=e,A|=e,e=(r>3?1:0)<<1,r>>>=e,A|=e,A|r>>1}class ra extends Ct{constructor(){super(...arguments);u(this,"boundArrayBuffer",null);u(this,"boundTarget","array_buffer")}install(e){super.install(e),e.buffer=this}create(e){const t=this.gl.createBuffer();if(!t)throw new Error("failed to create");return e&&(this.bind({target:e.target,value:t}),this.update(e)),t}getMeta(e){return this._renderer.getRelated(e,()=>({id:Ro(e),length:0,byteLength:0,bytesPerElement:0}))}update(...e){if(e.length>1){this.bind({target:e[1].target,value:e[0]}),this.update(e[1]);return}const t=e[0],i=(t.target??this.boundTarget)==="array_buffer"?this.boundArrayBuffer:this._renderer.vertexArray.boundVertexArray.elementArrayBuffer;if(!i)return;const s=this.getMeta(i);Object.assign(s,{target:t.target,usage:t.usage});const n=s.target??this.boundTarget,o=s.usage??"static_draw",a=t.data,l=this.gl;let h;Array.isArray(a)?n==="array_buffer"?h=new Float32Array(a):h=new Uint32Array(a):h=a;const c=this._renderer.getBindPoint(n);h&&h.byteLength<=s.byteLength?l.bufferSubData(c,0,h):(l.bufferData(c,h,this._renderer.getBindPoint(o)),s.length=(h==null?void 0:h.length)??0,s.byteLength=(h==null?void 0:h.byteLength)??0,s.bytesPerElement=s.length?s.byteLength/s.length:0)}bind(e){let{target:t,value:i}=e;if(i){const n=this.getMeta(i);t??(t=n.target??this.boundTarget),n.target=t}else t??(t=this.boundTarget);const s=this._renderer.getBindPoint(t);this._renderer.gl.bindBuffer(s,i),t==="array_buffer"?this.boundArrayBuffer=i:this._renderer.vertexArray.boundVertexArray.elementArrayBuffer=i,this.boundTarget=t}unbind(e){return this.bind({target:e,value:null})}reset(){super.reset(),this.boundArrayBuffer=null,this.boundTarget="array_buffer"}}class sa extends Ct{constructor(){super(...arguments);u(this,"boundFramebuffer",null);u(this,"_msaaSamples",[]);u(this,"_hasMRT",!0);u(this,"_writeDepthTexture",!0)}install(e){super.install(e),e.framebuffer=this}onUpdateContext(){if(this._hasMRT=!0,this._writeDepthTexture=!0,this._renderer.version===1){const e=this._renderer.gl,t=this._renderer.extensions.drawBuffers,i=this._renderer.extensions.depthTexture;t?e.drawBuffers=s=>t.drawBuffersWEBGL(s):(this._hasMRT=!1,e.drawBuffers=()=>{}),i||(this._writeDepthTexture=!1)}else{const e=this._renderer.gl;this._msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)}}create(e){const t=this._renderer.gl.createFramebuffer();if(!t)throw new Error("Unable to create framebuffer");return e&&(this.bind(t),this.update(e)),t}getMeta(e){return this._renderer.getRelated(e,()=>({width:0,height:0,mipLevel:0,stencil:!1,depth:!1,depthTexture:null,colorTextures:[],multisample:0}))}update(...e){if(e.length>1)return this.bind(e[0]),this.update(e[1]);const t=this.boundFramebuffer;if(!t)return;const i=e[0],s=this.getMeta(t);Object.assign(s,{...i});const n=this._renderer.gl;let o=s.colorTextures.length;"drawBuffers"in n||(o=Math.min(o,1));for(let a=0;a<o;a++){const l=s.colorTextures[a];this._renderer.texture.bind({location:0,target:"texture_2d",value:l,forceUpdateLocation:!0}),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+a,n.TEXTURE_2D,l,s.mipLevel),this._renderer.texture.unbind(l)}if(o>1&&n.drawBuffers(s.colorTextures.map((a,l)=>n.COLOR_ATTACHMENT0+l)),s.depthTexture&&(this._renderer.version>1||this._renderer.extensions.depthTexture)&&(this._renderer.texture.bind({location:0,target:"texture_2d",value:s.depthTexture,forceUpdateLocation:!0}),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,s.depthTexture,s.mipLevel),this._renderer.texture.unbind(s.depthTexture)),(s.stencilBuffer||s.stencil||s.depth)&&!(s.depthTexture&&this._writeDepthTexture)){s.stencilBuffer??(s.stencilBuffer=n.createRenderbuffer()),n.bindRenderbuffer(n.RENDERBUFFER,s.stencilBuffer);const{attachment:a,format:l}=this._getAttachmentAndFormat(s);s.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,s.multisample,l,s.width,s.height):n.renderbufferStorage(n.RENDERBUFFER,l,s.width*this._renderer.pixelRatio,s.height*this._renderer.pixelRatio),n.framebufferRenderbuffer(n.FRAMEBUFFER,a,n.RENDERBUFFER,s.stencilBuffer)}else s.stencilBuffer&&(n.deleteRenderbuffer(s.stencilBuffer),s.stencilBuffer=null)}_getAttachmentAndFormat(e){const t=this.gl;let i,s;return this._renderer.version===1?(i=t.DEPTH_STENCIL_ATTACHMENT,s=t.DEPTH_STENCIL):e.depth&&e.stencil?(i=t.DEPTH_STENCIL_ATTACHMENT,s=t.DEPTH24_STENCIL8):e.depth?(i=t.DEPTH_ATTACHMENT,s=t.DEPTH_COMPONENT24):(i=t.STENCIL_ATTACHMENT,s=t.STENCIL_INDEX8),{attachment:i,format:s}}resize(e,t,i){const s=this.gl,n=this.getMeta(e);if(Object.assign(n,{width:t,height:i}),n.stencil){const{format:a}=this._getAttachmentAndFormat(n);s.bindRenderbuffer(s.RENDERBUFFER,n.stencil),n.msaaBuffer?s.renderbufferStorageMultisample(s.RENDERBUFFER,n.multisample,a,n.width,n.height):s.renderbufferStorage(s.RENDERBUFFER,a,n.width,n.height)}let o=n.colorTextures.length;s.drawBuffers||(o=Math.min(o,1));for(let a=0;a<o;a++){const l=n.colorTextures[a];this._renderer.texture.update(l,{value:{pixels:null,width:n.width,height:n.height}}),a===0&&n.msaaBuffer&&(s.bindRenderbuffer(s.RENDERBUFFER,n.msaaBuffer),s.renderbufferStorageMultisample(s.RENDERBUFFER,n.multisample,s.RGBA,n.width,n.height))}n.depthTexture&&this._renderer.texture.update(n.depthTexture,{value:{pixels:null,width:n.width,height:n.height}})}bind(e){const t=this._renderer.gl,i=e;if({value:this.boundFramebuffer!==i}.value&&(t.bindFramebuffer(t.FRAMEBUFFER,i),this.boundFramebuffer=i),i){const o=this.getMeta(i);for(let h=0;h<o.colorTextures.length;h++)this._renderer.texture.unbind(o.colorTextures[h]);o.depthTexture&&this._renderer.texture.unbind(o.depthTexture);const a=o.width>>o.mipLevel,l=o.height>>o.mipLevel;this._renderer.viewport.bind({x:0,y:0,width:a*this._renderer.pixelRatio,height:l*this._renderer.pixelRatio})}else this._renderer.viewport.bind({x:0,y:0,width:this._renderer.screen.width*this._renderer.pixelRatio,height:this._renderer.screen.height*this._renderer.pixelRatio})}forceStencil(){const e=this.boundFramebuffer;if(!e)return;const t=this.getMeta(e);if(!t||t.stencilBuffer)return;const i=this._renderer.gl;t.stencilBuffer=i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,t.stencilBuffer);let s,n;this._renderer.version===1?(s=i.DEPTH_STENCIL_ATTACHMENT,n=i.DEPTH_STENCIL):t.depth?(s=i.DEPTH_STENCIL_ATTACHMENT,n=i.DEPTH24_STENCIL8):(s=i.STENCIL_ATTACHMENT,n=i.STENCIL_INDEX8),t.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,t.multisample,n,t.width*this._renderer.pixelRatio,t.height*this._renderer.pixelRatio):i.renderbufferStorage(i.RENDERBUFFER,n,t.width*this._renderer.pixelRatio,t.height*this._renderer.pixelRatio),i.framebufferRenderbuffer(i.FRAMEBUFFER,s,i.RENDERBUFFER,t.stencilBuffer)}reset(){super.reset(),this.boundFramebuffer=null}}class na extends Ct{constructor(){super(...arguments);u(this,"stack",[])}install(e){super.install(e),e.mask=this}get length(){return this.stack.length}get last(){return this.stack[this.length-1]}push(e,t){const i={source:e,mask:t};this.stack.push(i),typeof i.mask=="number"?this.pushColorMask(i):"render"in i.mask?this._renderer.stencil.push(i):this._renderer.scissor.push(i)}pop(e){const t=this.stack.pop();!t||t.source!==e||(typeof t.mask=="number"?this.popColorMask(t):"render"in t.mask?this._renderer.stencil.pop(t):this._renderer.scissor.pop(t))}pushColorMask(e){const t=e.preComputedColor??15,i=e.preComputedColor=t&e.mask;i!==t&&this.useColorMask(i)}popColorMask(e){const t=e.preComputedColor??15,i=this.length>0?this.last.preComputedColor??15:15;i!==t&&this.useColorMask(i)}useColorMask(e){this._renderer.gl.colorMask((e&1)!==0,(e&2)!==0,(e&4)!==0,(e&8)!==0)}}class oa extends Ct{constructor(){super(...arguments);u(this,"boundProgram",null);u(this,"uniforms",{projectionMatrix:[1,0,0,0,1,0,0,0,1]})}install(e){super.install(e),e.program=this}create(e){const t=this.gl.createProgram();if(!t)throw new Error("Unable to create program");return e&&this.update(t,e),t}getMeta(e){return this._renderer.getRelated(e,()=>({attributes:new Map,uniforms:new Map,boundUniforms:new xs}))}update(...e){if(e.length>1){const l=this.boundProgram;this.boundProgram=e[0],this.update(e[1]),this.boundProgram=l;return}const t=e[0],i=this.boundProgram;if(!i)return;const s=this.gl,n=this.getMeta(i),o=this.createShader(t.vert,"vertex_shader"),a=this.createShader(t.frag,"fragment_shader");if(s.attachShader(i,o),s.attachShader(i,a),s.linkProgram(i),s.deleteShader(o),s.deleteShader(a),!s.getProgramParameter(i,s.LINK_STATUS))throw new Error(`Unable to link program: ${s.getProgramInfoLog(i)}`);n.attributes.clear(),n.uniforms.clear();for(let l=s.getProgramParameter(i,s.ACTIVE_ATTRIBUTES),h=0;h<l;h++){const c=s.getActiveAttrib(i,h);if(!c||c.name.startsWith("gl_"))continue;const f=this._renderer.bindPoints.get(c.type)??String(c.type);n.attributes.set(c.name,{type:f,name:c.name,size:qc(f),location:s.getAttribLocation(i,c.name)})}for(let l=s.getProgramParameter(i,s.ACTIVE_UNIFORMS),h=0;h<l;h++){const c=s.getActiveUniform(i,h);if(!c)continue;const f=c.name.replace(/\[.*?\]$/,"");let I=s.getUniformLocation(i,f);I||(I=s.getUniformLocation(i,c.name)),n.uniforms.set(f,{name:f,index:h,type:this._renderer.bindPoints.get(c.type)??String(c.type),size:c.size,isArray:f!==c.name,location:I})}}bind(e){const t=this.gl;({value:this.boundProgram!==e}).value&&(t.useProgram(e),this.boundProgram=e)}createShader(e,t){const i=this.gl,s=i.createShader(this._renderer.getBindPoint(t));if(!s)throw new Error("Unable to create shader");if(i.shaderSource(s,e),i.compileShader(s),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error(`Unable to compiling shader :
68
+ }`}),s=t.buffer.create({target:"array_buffer",data:new Float32Array(1),usage:"dynamic_draw"}),n=t.buffer.create({target:"element_array_buffer",data:new Uint16Array(1),usage:"dynamic_draw"}),o={attributes:Object.fromEntries(Object.entries(this._attributes).map(([c,h])=>[c,{...h,buffer:s}])),elementArrayBuffer:n},a=t.vertexArray.create(i,o),l=new Int32Array(Array.from({length:e},(c,h)=>h));return{update:(c,h)=>{t.vertexArray.bind(a??o),t.buffer.update(s,{target:"array_buffer",data:c}),t.buffer.update(n,{target:"element_array_buffer",data:h})},draw:c=>{const h=this._renderer;h.program.bind(i),h.program.updateUniforms(i,{samplers:l,modulate:[1,1,1,1],translationMatrix:[1,0,0,0,1,0,0,0,1],...h.program.uniforms}),h.vertexArray.bind(a??o),h.draw(c)}}}render(e){const{vertices:t,indices:i}=e,s=t.length/2;this._vertexCount+s>this._batchSize&&this.flush(),this._vertexCount+=s,this._indexCount+=i.length,this._batchables.push(e)}flush(){if(super.flush(),this._vertexCount===0)return;const e=this._vertexCount,t=this._indexCount,i=this._batchables;this._batchables=[],this._vertexCount=0,this._indexCount=0;const s=this._renderer.texture.maxUnits,n=this._getAttributeBuffer(e),o=new Float32Array(n),a=new Uint32Array(n),l=this._getIndexBuffer(t);let c=0,h=0;const f=[];for(let d=i.length,C={id:++this._drawCallUid},p=[],x=new Map,P=0,w=0,R=0;R<d;R++){const v=i[R].texture,m=R===d-1;if(!v||x.has(v)){if(!m)continue}else p.push(v),x.set(v,P++);if(m||P>=s){C.textures=p,C.textureLocationMap=x,P=0,C.first=h;for(let b=w;b<=R;b++){const{indices:D,vertices:z,uvs:Ae=[],texture:W,modulate:K=this._defaultModulate,backgroundColor:te=this._defaultBackgroundColor,colorMatrix:Y=this._defaultColorMatrix,colorMatrixOffset:L=this._defaultColorMatrixOffset,blendMode:se=OA.NORMAL,disableWrapMode:H=!1}=i[b],q=(W?x.get(W):-1)??-1;w<b&&C.blendMode!==se&&(C.count=h-C.first,f.push(C),w=b,C={id:++this._drawCallUid},C.textures=p,C.first=h);const ie=c/this._vertexSize;for(let J=z.length,$=0;$<J;$+=2){o[c++]=q,o[c++]=z[$],o[c++]=z[$+1],o[c++]=Ae[$]??0,o[c++]=Ae[$+1]??0,a[c++]=K,a[c++]=te,o[c++]=H?1:0,o[c++]=0,o[c++]=0,o[c++]=0;for(let N=0;N<4;N++)o[c++]=L[N]??0;for(let N=0;N<16;N++)o[c++]=Y[N]??0}for(let J=D.length,$=0;$<J;$++)l[h++]=ie+D[$];C.blendMode=se}w=R+1,C.count=h-C.first,f.push(C),C={id:++this._drawCallUid},p=[],x=new Map}}const I=this._getShader(s);I.update(n,l);for(let d=f.length,C=0;C<d;C++){const p=f[C],{first:x=0,textures:P,textureLocationMap:w}=p;for(let R=P.length,v=0;v<R;v++){const m=P[v],b=w.get(m);b!==void 0&&this._renderer.texture.bind({target:"texture_2d",location:b,value:m})}this._state.blendMode=p.blendMode,this._renderer.state.bind(this._state),I.draw({mode:"triangles",count:p.count,first:x,bytesPerElement:2})}}_getAttributeBuffer(e){const t=Vs(Math.ceil(e/8)),i=zs(t),s=t*8;this._attributeBuffer.length<=i&&(this._indexBuffers.length=i+1);let n=this._attributeBuffer[s];return n||(this._attributeBuffer[s]=n=new ArrayBuffer(s*this._vertexSize*4)),n}_getIndexBuffer(e){const t=Vs(Math.ceil(e/12)),i=zs(t),s=t*12;this._indexBuffers.length<=i&&(this._indexBuffers.length=i+1);let n=this._indexBuffers[i];return n||(this._indexBuffers[i]=n=new Uint16Array(s)),n}}function Vs(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function zs(r){let A=(r>65535?1:0)<<4;r>>>=A;let e=(r>255?1:0)<<3;return r>>>=e,A|=e,e=(r>15?1:0)<<2,r>>>=e,A|=e,e=(r>3?1:0)<<1,r>>>=e,A|=e,A|r>>1}class sa extends Ct{constructor(){super(...arguments);u(this,"boundArrayBuffer",null);u(this,"boundTarget","array_buffer")}install(e){super.install(e),e.buffer=this}create(e){const t=this.gl.createBuffer();if(!t)throw new Error("failed to create");return e&&(this.bind({target:e.target,value:t}),this.update(e)),t}getMeta(e){return this._renderer.getRelated(e,()=>({id:Po(e),length:0,byteLength:0,bytesPerElement:0}))}update(...e){if(e.length>1){this.bind({target:e[1].target,value:e[0]}),this.update(e[1]);return}const t=e[0],i=(t.target??this.boundTarget)==="array_buffer"?this.boundArrayBuffer:this._renderer.vertexArray.boundVertexArray.elementArrayBuffer;if(!i)return;const s=this.getMeta(i);Object.assign(s,{target:t.target,usage:t.usage});const n=s.target??this.boundTarget,o=s.usage??"static_draw",a=t.data,l=this.gl;let c;Array.isArray(a)?n==="array_buffer"?c=new Float32Array(a):c=new Uint32Array(a):c=a;const h=this._renderer.getBindPoint(n);c&&c.byteLength<=s.byteLength?l.bufferSubData(h,0,c):(l.bufferData(h,c,this._renderer.getBindPoint(o)),s.length=(c==null?void 0:c.length)??0,s.byteLength=(c==null?void 0:c.byteLength)??0,s.bytesPerElement=s.length?s.byteLength/s.length:0)}bind(e){let{target:t,value:i}=e;if(i){const n=this.getMeta(i);t??(t=n.target??this.boundTarget),n.target=t}else t??(t=this.boundTarget);const s=this._renderer.getBindPoint(t);this._renderer.gl.bindBuffer(s,i),t==="array_buffer"?this.boundArrayBuffer=i:this._renderer.vertexArray.boundVertexArray.elementArrayBuffer=i,this.boundTarget=t}unbind(e){return this.bind({target:e,value:null})}reset(){super.reset(),this.boundArrayBuffer=null,this.boundTarget="array_buffer"}}class na extends Ct{constructor(){super(...arguments);u(this,"boundFramebuffer",null);u(this,"_msaaSamples",[]);u(this,"_hasMRT",!0);u(this,"_writeDepthTexture",!0)}install(e){super.install(e),e.framebuffer=this}onUpdateContext(){if(this._hasMRT=!0,this._writeDepthTexture=!0,this._renderer.version===1){const e=this._renderer.gl,t=this._renderer.extensions.drawBuffers,i=this._renderer.extensions.depthTexture;t?e.drawBuffers=s=>t.drawBuffersWEBGL(s):(this._hasMRT=!1,e.drawBuffers=()=>{}),i||(this._writeDepthTexture=!1)}else{const e=this._renderer.gl;this._msaaSamples=e.getInternalformatParameter(e.RENDERBUFFER,e.RGBA8,e.SAMPLES)}}create(e){const t=this._renderer.gl.createFramebuffer();if(!t)throw new Error("Unable to create framebuffer");return e&&(this.bind(t),this.update(e)),t}getMeta(e){return this._renderer.getRelated(e,()=>({width:0,height:0,mipLevel:0,stencil:!1,depth:!1,depthTexture:null,colorTextures:[],multisample:0}))}update(...e){if(e.length>1)return this.bind(e[0]),this.update(e[1]);const t=this.boundFramebuffer;if(!t)return;const i=e[0],s=this.getMeta(t);Object.assign(s,{...i});const n=this._renderer.gl;let o=s.colorTextures.length;"drawBuffers"in n||(o=Math.min(o,1));for(let a=0;a<o;a++){const l=s.colorTextures[a];this._renderer.texture.bind({location:0,target:"texture_2d",value:l,forceUpdateLocation:!0}),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+a,n.TEXTURE_2D,l,s.mipLevel),this._renderer.texture.unbind(l)}if(o>1&&n.drawBuffers(s.colorTextures.map((a,l)=>n.COLOR_ATTACHMENT0+l)),s.depthTexture&&(this._renderer.version>1||this._renderer.extensions.depthTexture)&&(this._renderer.texture.bind({location:0,target:"texture_2d",value:s.depthTexture,forceUpdateLocation:!0}),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,s.depthTexture,s.mipLevel),this._renderer.texture.unbind(s.depthTexture)),(s.stencilBuffer||s.stencil||s.depth)&&!(s.depthTexture&&this._writeDepthTexture)){s.stencilBuffer??(s.stencilBuffer=n.createRenderbuffer()),n.bindRenderbuffer(n.RENDERBUFFER,s.stencilBuffer);const{attachment:a,format:l}=this._getAttachmentAndFormat(s);s.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,s.multisample,l,s.width,s.height):n.renderbufferStorage(n.RENDERBUFFER,l,s.width*this._renderer.pixelRatio,s.height*this._renderer.pixelRatio),n.framebufferRenderbuffer(n.FRAMEBUFFER,a,n.RENDERBUFFER,s.stencilBuffer)}else s.stencilBuffer&&(n.deleteRenderbuffer(s.stencilBuffer),s.stencilBuffer=null)}_getAttachmentAndFormat(e){const t=this.gl;let i,s;return this._renderer.version===1?(i=t.DEPTH_STENCIL_ATTACHMENT,s=t.DEPTH_STENCIL):e.depth&&e.stencil?(i=t.DEPTH_STENCIL_ATTACHMENT,s=t.DEPTH24_STENCIL8):e.depth?(i=t.DEPTH_ATTACHMENT,s=t.DEPTH_COMPONENT24):(i=t.STENCIL_ATTACHMENT,s=t.STENCIL_INDEX8),{attachment:i,format:s}}resize(e,t,i){const s=this.gl,n=this.getMeta(e);if(Object.assign(n,{width:t,height:i}),n.stencil){const{format:a}=this._getAttachmentAndFormat(n);s.bindRenderbuffer(s.RENDERBUFFER,n.stencil),n.msaaBuffer?s.renderbufferStorageMultisample(s.RENDERBUFFER,n.multisample,a,n.width,n.height):s.renderbufferStorage(s.RENDERBUFFER,a,n.width,n.height)}let o=n.colorTextures.length;s.drawBuffers||(o=Math.min(o,1));for(let a=0;a<o;a++){const l=n.colorTextures[a];this._renderer.texture.update(l,{value:{pixels:null,width:n.width,height:n.height}}),a===0&&n.msaaBuffer&&(s.bindRenderbuffer(s.RENDERBUFFER,n.msaaBuffer),s.renderbufferStorageMultisample(s.RENDERBUFFER,n.multisample,s.RGBA,n.width,n.height))}n.depthTexture&&this._renderer.texture.update(n.depthTexture,{value:{pixels:null,width:n.width,height:n.height}})}bind(e){const t=this._renderer.gl,i=e;if({value:this.boundFramebuffer!==i}.value&&(t.bindFramebuffer(t.FRAMEBUFFER,i),this.boundFramebuffer=i),i){const o=this.getMeta(i);for(let c=0;c<o.colorTextures.length;c++)this._renderer.texture.unbind(o.colorTextures[c]);o.depthTexture&&this._renderer.texture.unbind(o.depthTexture);const a=o.width>>o.mipLevel,l=o.height>>o.mipLevel;this._renderer.viewport.bind({x:0,y:0,width:a*this._renderer.pixelRatio,height:l*this._renderer.pixelRatio})}else this._renderer.viewport.bind({x:0,y:0,width:this._renderer.screen.width*this._renderer.pixelRatio,height:this._renderer.screen.height*this._renderer.pixelRatio})}forceStencil(){const e=this.boundFramebuffer;if(!e)return;const t=this.getMeta(e);if(!t||t.stencilBuffer)return;const i=this._renderer.gl;t.stencilBuffer=i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,t.stencilBuffer);let s,n;this._renderer.version===1?(s=i.DEPTH_STENCIL_ATTACHMENT,n=i.DEPTH_STENCIL):t.depth?(s=i.DEPTH_STENCIL_ATTACHMENT,n=i.DEPTH24_STENCIL8):(s=i.STENCIL_ATTACHMENT,n=i.STENCIL_INDEX8),t.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,t.multisample,n,t.width*this._renderer.pixelRatio,t.height*this._renderer.pixelRatio):i.renderbufferStorage(i.RENDERBUFFER,n,t.width*this._renderer.pixelRatio,t.height*this._renderer.pixelRatio),i.framebufferRenderbuffer(i.FRAMEBUFFER,s,i.RENDERBUFFER,t.stencilBuffer)}reset(){super.reset(),this.boundFramebuffer=null}}class oa extends Ct{constructor(){super(...arguments);u(this,"stack",[])}install(e){super.install(e),e.mask=this}get length(){return this.stack.length}get last(){return this.stack[this.length-1]}push(e,t){const i={source:e,mask:t};this.stack.push(i),typeof i.mask=="number"?this.pushColorMask(i):"render"in i.mask?this._renderer.stencil.push(i):this._renderer.scissor.push(i)}pop(e){const t=this.stack.pop();!t||t.source!==e||(typeof t.mask=="number"?this.popColorMask(t):"render"in t.mask?this._renderer.stencil.pop(t):this._renderer.scissor.pop(t))}pushColorMask(e){const t=e.preComputedColor??15,i=e.preComputedColor=t&e.mask;i!==t&&this.useColorMask(i)}popColorMask(e){const t=e.preComputedColor??15,i=this.length>0?this.last.preComputedColor??15:15;i!==t&&this.useColorMask(i)}useColorMask(e){this._renderer.gl.colorMask((e&1)!==0,(e&2)!==0,(e&4)!==0,(e&8)!==0)}}class aa extends Ct{constructor(){super(...arguments);u(this,"boundProgram",null);u(this,"uniforms",{projectionMatrix:[1,0,0,0,1,0,0,0,1]})}install(e){super.install(e),e.program=this}create(e){const t=this.gl.createProgram();if(!t)throw new Error("Unable to create program");return e&&this.update(t,e),t}getMeta(e){return this._renderer.getRelated(e,()=>({attributes:new Map,uniforms:new Map,boundUniforms:new xs}))}update(...e){if(e.length>1){const l=this.boundProgram;this.boundProgram=e[0],this.update(e[1]),this.boundProgram=l;return}const t=e[0],i=this.boundProgram;if(!i)return;const s=this.gl,n=this.getMeta(i),o=this.createShader(t.vert,"vertex_shader"),a=this.createShader(t.frag,"fragment_shader");if(s.attachShader(i,o),s.attachShader(i,a),s.linkProgram(i),s.deleteShader(o),s.deleteShader(a),!s.getProgramParameter(i,s.LINK_STATUS))throw new Error(`Unable to link program: ${s.getProgramInfoLog(i)}`);n.attributes.clear(),n.uniforms.clear();for(let l=s.getProgramParameter(i,s.ACTIVE_ATTRIBUTES),c=0;c<l;c++){const h=s.getActiveAttrib(i,c);if(!h||h.name.startsWith("gl_"))continue;const f=this._renderer.bindPoints.get(h.type)??String(h.type);n.attributes.set(h.name,{type:f,name:h.name,size:Xh(f),location:s.getAttribLocation(i,h.name)})}for(let l=s.getProgramParameter(i,s.ACTIVE_UNIFORMS),c=0;c<l;c++){const h=s.getActiveUniform(i,c);if(!h)continue;const f=h.name.replace(/\[.*?\]$/,"");let I=s.getUniformLocation(i,f);I||(I=s.getUniformLocation(i,h.name)),n.uniforms.set(f,{name:f,index:c,type:this._renderer.bindPoints.get(h.type)??String(h.type),size:h.size,isArray:f!==h.name,location:I})}}bind(e){const t=this.gl;({value:this.boundProgram!==e}).value&&(t.useProgram(e),this.boundProgram=e)}createShader(e,t){const i=this.gl,s=i.createShader(this._renderer.getBindPoint(t));if(!s)throw new Error("Unable to create shader");if(i.shaderSource(s,e),i.compileShader(s),!i.getShaderParameter(s,i.COMPILE_STATUS))throw new Error(`Unable to compiling shader :
69
69
  ${e}
70
- ${i.getShaderInfoLog(s)}`);return s}updateUniforms(...e){if(e.length>1){this.bind(e[0]),this.updateUniforms(e[1]);return}const t=this.boundProgram;if(!t)return;const i=this.gl,s=e[0],{uniforms:n,boundUniforms:o}=this.getMeta(t);for(const a in s){const l=s[a],h=n.get(a);if(!h)continue;const{type:c,isArray:f,location:I}=h;if(!(!I||o.get(I)===l))switch(o.set(I,l),c){case"float":f?i.uniform1fv(I,l):i.uniform1f(I,l);break;case"unsigned_int":f?i.uniform1uiv(I,l):i.uniform1ui(I,l);break;case"bool":case"int":case"sampler_2d":case"sampler_cube":case"sampler_2d_array":f?i.uniform1iv(I,l):i.uniform1i(I,l);break;case"bool_vec2":case"int_vec2":i.uniform2iv(I,l);break;case"unsigned_int_vec2":i.uniform2uiv(I,l);break;case"float_vec2":i.uniform2fv(I,l);break;case"bool_vec3":case"int_vec3":i.uniform3iv(I,l);break;case"unsigned_int_vec3":i.uniform3uiv(I,l);break;case"float_vec3":i.uniform3fv(I,l);break;case"bool_vec4":case"int_vec4":i.uniform4iv(I,l);break;case"unsigned_int_vec4":i.uniform4uiv(I,l);break;case"float_vec4":i.uniform4fv(I,l);break;case"float_mat2":i.uniformMatrix2fv(I,!1,l);break;case"float_mat3":i.uniformMatrix3fv(I,!1,l);break;case"float_mat4":i.uniformMatrix4fv(I,!1,l);break}}}reset(){super.reset(),this.boundProgram=null,this.uniforms={}}free(){super.free(),this.bind(null)}}function qc(r){switch(r){case"float":case"int":case"unsigned_int":case"bool":case"sampler_2d":return 1;case"float_vec2":case"int_vec2":case"unsigned_int_vec2":case"bool_vec2":return 2;case"float_vec3":case"int_vec3":case"unsigned_int_vec3":case"bool_vec3":return 3;case"float_vec4":case"int_vec4":case"unsigned_int_vec4":case"bool_vec4":case"float_mat2":return 4;case"float_mat3":return 9;case"float_mat4":return 16;default:return 1}}class aa extends Ct{install(A){super.install(A),A.scissor=this}get length(){var A;return((A=this._renderer.mask.last)==null?void 0:A.scissorCounter)??0}push(A){const e=this._renderer.gl;e.enable(e.SCISSOR_TEST),A.scissorCounter??(A.scissorCounter=0),A.scissorCounter++,this.use()}pop(A){if(this.length>0)this.use();else{const e=this._renderer.gl;e.disable(e.SCISSOR_TEST)}}use(){const A=this._renderer,{pixelRatio:e,mask:t,viewport:i,screen:s,gl:n}=A,o=t.last.mask;let a;i.boundViewport?a=i.boundViewport.height-(o.height+o.y)*e:a=(s.height-(o.height+o.y))*e,n.scissor(o.x*e,a,o.width*e,o.height*e)}}class la extends Ct{install(A){super.install(A),A.stencil=this}get length(){var A;return((A=this._renderer.mask.last)==null?void 0:A.stencilCounter)??0}push(A){const e=this._renderer.gl,t=A.mask,i=A.stencilCounter??(A.stencilCounter=0);A.stencilCounter===0&&(this._renderer.framebuffer.forceStencil(),e.clearStencil(0),e.clear(e.STENCIL_BUFFER_BIT),e.enable(e.STENCIL_TEST)),A.stencilCounter++;const s=A.color;s&&(A.color=0,e.colorMask(!1,!1,!1,!1)),e.stencilFunc(e.EQUAL,i,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.INCR),t.render(this._renderer),this._renderer.flush(),s&&(A.color=s,e.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this.use()}pop(A){const e=this._renderer.gl,t=A.mask;if(!this.length)e.disable(e.STENCIL_TEST);else{const i=this._renderer.mask.last,s=(i==null?void 0:i.color)??15;s!==0&&(i.color=0,e.colorMask(!1,!1,!1,!1)),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.render(this._renderer),this._renderer.flush(),s!==0&&(i.color=s,e.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this.use()}}use(){const A=this._renderer.gl;A.stencilFunc(A.EQUAL,this.length,4294967295),A.stencilOp(A.KEEP,A.KEEP,A.KEEP)}}function Xc(r,A){const e=new Set([...Object.keys(r),...Object.keys(A)]),t={};return e.forEach(i=>{t[i]=r[i]!==A[i]}),t}class ha extends Ct{constructor(){super(...arguments);u(this,"maxUnits",0);u(this,"boundLocation",0);u(this,"boundTarget","texture_2d");u(this,"boundTextures",[]);u(this,"emptyTextures",{texture_2d:null,texture_cube_map:null})}install(e){super.install(e),e.texture=this}onUpdateContext(){super.onUpdateContext();const e=this.gl;this.maxUnits=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);for(let s=0;s<this.maxUnits;s++)this.boundTextures[s]={texture_2d:null,texture_cube_map:null};const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array(4));const i=e.createTexture();e.bindTexture(e.TEXTURE_CUBE_MAP,i);for(let s=0;s<6;s++)e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+s,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,e.LINEAR),this.emptyTextures={texture_2d:t,texture_cube_map:i};for(let s=this.boundTextures.length,n=0;n<s;n++)this.unbind(n)}create(e){const t=this.gl.createTexture();if(!t)throw new Error("Unable to create texture");return e&&(this.bind({location:e.location,target:e.target,value:t,forceUpdateLocation:!0}),this.update({filterMode:"linear",wrapMode:"repeat",...e})),t}getMeta(e){return this._renderer.getRelated(e,()=>({}))}update(...e){if(e.length>1){this.bind({location:e[1].location,target:e[1].target,value:e[0],forceUpdateLocation:!0}),this.update(e[1]);return}const t=e[0],{value:i,...s}=t,n=this.boundTextures[this.boundLocation][t.target??this.boundTarget];if(!n)return;const o=this.gl,a=this.getMeta(n),l=Xc(a,s);Object.assign(a,s);const h=this._renderer.getBindPoint(a.target??this.boundTarget);if(i!==void 0&&(i===null?o.texImage2D(h,0,o.RGBA,1,1,0,o.RGBA,o.UNSIGNED_BYTE,null):"pixels"in i?o.texImage2D(h,0,o.RGBA,i.width,i.height,0,o.RGBA,o.UNSIGNED_BYTE,i.pixels):o.texImage2D(h,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,i)),l.wrapMode&&a.wrapMode){const f=this._renderer.getBindPoint(a.wrapMode);o.texParameteri(h,o.TEXTURE_WRAP_S,f),o.texParameteri(h,o.TEXTURE_WRAP_T,f)}const c=a.filterMode;if(l.filterMode&&c){const f=this._renderer.getBindPoint(c.split("_")[0]);c.includes("_")?o.texParameteri(h,o.TEXTURE_MIN_FILTER,this._renderer.getBindPoint(c)):o.texParameteri(h,o.TEXTURE_MIN_FILTER,f),o.texParameteri(h,o.TEXTURE_MAG_FILTER,f)}if(a.anisoLevel&&c==="linear"&&this._renderer.extensions.anisotropicFiltering&&l.anisoLevel){const{MAX_TEXTURE_MAX_ANISOTROPY_EXT:f,TEXTURE_MAX_ANISOTROPY_EXT:I}=this._renderer.extensions.anisotropicFiltering;o.texParameterf(h,I,Math.min(a.anisoLevel,o.getParameter(f)))}}bind(e){const t=this.gl;let i,s,n,o;if(e&&"value"in e?{target:s,value:i,location:n,forceUpdateLocation:o}=e:i=e,i){const d=this.getMeta(i);d.target=s??(s=d.target??"texture_2d"),d.location=n??(n=d.location??0)}else s??(s="texture_2d"),n??(n=0);let a=this.boundTextures[n];a||(this.boundTextures[n]=a={texture_2d:null,texture_cube_map:null});const l=a[s]??null,h=this.boundLocation,c=i!==l,f={location:n!==h&&(c||o),texture:c},I=this._renderer.getBindPoint(s);f.location&&(t.activeTexture(t.TEXTURE0+n),this.boundLocation=n),f.texture&&(t.bindTexture(I,i??this.emptyTextures[s]),a[s]=i),this.boundTarget=s}unbind(e,t="texture_2d"){const i=this._renderer.gl;if(typeof e=="number")this.bind({value:null,target:t,location:e});else{const s=this.getMeta(e),{target:n=this.boundTarget}=s,o=this._renderer.getBindPoint(n);for(let a=0;a<this.boundTextures.length;a++)this.boundTextures[a][n]===e&&(this.boundLocation!==a&&(i.activeTexture(i.TEXTURE0+a),this.boundLocation=a),i.bindTexture(o,this.emptyTextures[n]),this.boundTextures[a][n]=null)}}reset(){super.reset(),this.boundLocation=0,this.boundTarget="texture_2d",this.boundTextures=[],this.maxUnits=0}}class ca extends Ct{constructor(){super(...arguments);u(this,"boundVertexArrayNull",{attributes:{},elementArrayBuffer:null});u(this,"boundVertexArrayObject",null);u(this,"boundVertexArray",this.boundVertexArrayNull)}install(e){super.install(e),e.vertexArray=this}enableVertexAttrib(e,t,i,s=1){const{buffer:n,size:o=0,type:a="float",normalized:l=!1,stride:h=0,offset:c=0,divisor:f}=i,I=this._renderer.gl;this._renderer.buffer.bind({target:"array_buffer",value:n});for(let d=0;d<s;d++)I.enableVertexAttribArray(t+d),I.vertexAttribPointer(t+d,o,this._renderer.getBindPoint(a),l,h,c+(h-c)/s*d);f&&("vertexAttribDivisor"in I?I.vertexAttribDivisor(t,f):console.warn("Failed to active vertex array object, GPU Instancing is not supported on this device")),this.boundVertexArray.attributes[e]={enable:!0,...i}}create(...e){const t=this._renderer.gl;if(!("createVertexArray"in t))return null;const i=t.createVertexArray();if(!i)throw new Error("Unable to create vertex array");return e.length===2?this.update(e[0],i,e[1]):e.length===1&&this.update(i,e[0]),i}getVertexArrayMeta(e){return this._renderer.getRelated(e,()=>({attributes:{},elementArrayBuffer:null}))}update(...e){var n,o,a;if(e.length>2){this._renderer.program.bind(e[0]),this.update(e[1],e[2]);return}else if(e.length===2)if(e[0]){const l=e[0],h=e[1],c=this.getVertexArrayMeta(l);this.bind(l),this.update(h),c.attributes=this.boundVertexArray.attributes,c.elementArrayBuffer=this.boundVertexArray.elementArrayBuffer,this.unbind(),this._renderer.buffer.unbind("array_buffer");return}else return this.update(e[1]);const t=this._renderer.program.boundProgram;if(!t)return;const i=e[0];if(i.attributes){const l=this._renderer.program.getMeta(t),h={},c={};for(const I in i.attributes){const d=i.attributes[I],C=l.attributes.get(I);let p;"buffer"in d?p={...d}:p={buffer:d},p.size=p.size||(C==null?void 0:C.size)||0;const x=this._renderer.buffer.getMeta(p.buffer),P=Number(((n=C==null?void 0:C.type.match(/mat(\d)/))==null?void 0:n[1])??1);let w;switch(p.type){case"unsigned_byte":w=p.size;break;case"unsigned_short":w=p.size*2;break;case"float":default:w=p.size*4;break}w*=P,h[o=x.id]??(h[o]=0),h[x.id]+=w,c[I]={attrib:p,meta:x,info:C,byteLength:w,dimension:P}}const f={};for(const I in c){const{attrib:d,meta:C,info:p,byteLength:x,dimension:P}=c[I];(p==null?void 0:p.location)!==void 0&&(f[a=C.id]??(f[a]=0),d.offset??(d.offset=f[C.id]),d.stride??(d.stride=h[C.id]===x?0:h[C.id]),this.enableVertexAttrib(I,p.location,d,P),f[C.id]+=x)}}const s=i.elementArrayBuffer??null;this._renderer.buffer.bind({target:"element_array_buffer",value:s}),this.boundVertexArray.elementArrayBuffer=s}bind(e){const t=this._renderer.gl;if(e&&"attributes"in e)this.update(e);else if("bindVertexArray"in t){const i=this.boundVertexArrayObject;({value:e!==i}).value&&(t.bindVertexArray(e),this.boundVertexArrayObject=e,e?this.boundVertexArray={...this.getVertexArrayMeta(e)}:this.boundVertexArray=this.boundVertexArrayNull)}}unbind(){return this.bind(null)}reset(){super.reset(),this.boundVertexArrayNull={attributes:{},elementArrayBuffer:null},this.boundVertexArray=this.boundVertexArrayNull,this.boundVertexArrayObject=null}}class ga extends Ct{constructor(){super(...arguments);u(this,"boundViewport",{x:0,y:0,width:0,height:0})}install(e){super.install(e),e.viewport=this}bind(e){const t=this.boundViewport,i=Math.floor(e.x),s=Math.floor(e.y),n=Math.floor(e.width),o=Math.floor(e.height);t.x===i&&t.y===s&&t.width===n&&t.height===o||(this._renderer.gl.viewport(i,s,n,o),t.x=i,t.y=s,t.width=n,t.height=o)}reset(){super.reset(),this.boundViewport={x:0,y:0,width:0,height:0}}}class ua extends ea{constructor(e=Ko(),t){super();u(this,"_modules",[new ha,new ra,new sa,new oa,new ca,new ga,new Aa,new na,new aa,new la,new ia]);u(this,"bindPoints",new Map);if(!e)throw new Error("Failed to createHTMLCanvas");Ho(e)?this._setupContext(e,t):(this.gl=e,this.version=Jo(this.gl)?2:1),this._setupBindPoints()._setupExtensions()._setupPolyfill(),this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),this._modules.forEach(i=>i.install(this)),this._modules.forEach(i=>i.onUpdateContext())}_setupContext(e,t){this.view=e;let i=e.getContext("webgl2",t)||e.getContext("experimental-webgl2",t),s=2;if(i||(i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),s=1),!i)throw new Error("Unable to getContext");return this.gl=i,this.version=s,this._onContextLost=this._onContextLost.bind(this),this._onContextRestored=this._onContextRestored.bind(this),e.addEventListener("webglcontextlost",this._onContextLost,!1),e.addEventListener("webglcontextrestored",this._onContextRestored,!1),this}_setupExtensions(){const e=this.gl,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tcSRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};return this.version===1?(t.instancedArrays=e.getExtension("ANGLE_instanced_arrays"),t.drawBuffers=e.getExtension("WEBGL_draw_buffers"),t.depthTexture=e.getExtension("WEBGL_depth_texture"),t.vertexArrayObject=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),t.uint32ElementIndex=e.getExtension("OES_element_index_uint"),t.floatTexture=e.getExtension("OES_texture_float"),t.textureHalfFloat=e.getExtension("OES_texture_half_float"),t.textureHalfFloatLinear=e.getExtension("OES_texture_half_float_linear")):this.version===2&&(t.colorBufferFloat=e.getExtension("EXT_color_buffer_float")),this.extensions=t,this}_setupBindPoints(){for(const e in this.gl)if(e===e.toUpperCase()){const t=this.gl[e];typeof t=="number"&&this.bindPoints.set(t,e.toLowerCase())}return this}_setupPolyfill(){if(this.version===1){const{instancedArrays:e,vertexArrayObject:t,drawBuffers:i}=this.extensions,s=this.gl;t&&(s.createVertexArray=()=>t.createVertexArrayOES(),s.bindVertexArray=n=>t.bindVertexArrayOES(n),s.deleteVertexArray=n=>t.deleteVertexArrayOES(n)),e&&(s.vertexAttribDivisor=(n,o)=>e.vertexAttribDivisorANGLE(n,o),s.drawElementsInstanced=(n,o,a,l,h)=>e.drawElementsInstancedANGLE(n,o,a,l,h),s.drawArraysInstanced=(n,o,a,l)=>e.drawArraysInstancedANGLE(n,o,a,l)),i&&(s.drawBuffers=n=>i.drawBuffersWEBGL(n))}return this}_onContextLost(e){e.preventDefault(),setTimeout(()=>{var t;this.gl.isContextLost()&&((t=this.extensions.loseContext)==null||t.restoreContext())},0)}_onContextRestored(){}getBindPoint(e){return this.gl[e.toUpperCase()]}clear(e=this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT){this.gl.clear(e)}draw(e={}){const{mode:t="triangles",first:i=0,instanceCount:s}=e;let{count:n=0,bytesPerElement:o=0}=e;if(!n||!o){const l=this.vertexArray.boundVertexArray.elementArrayBuffer??Object.values(this.vertexArray.boundVertexArray.attributes)[0];if(l){const h=this.buffer.getMeta(l);n||(n=h.length),o||(o=h.bytesPerElement)}}const a=this.getBindPoint(t);if(o)if(o===2||o===4&&this.extensions.uint32ElementIndex){const l=o===2?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT;s&&"drawElementsInstanced"in this.gl?this.gl.drawElementsInstanced(a,n,l,i*o,s):this.gl.drawElements(a,n,l,i*o)}else console.warn("Unsupported index buffer type: uint32");else s&&"drawArraysInstanced"in this.gl?this.gl.drawArraysInstanced(a,i,n,s):this.gl.drawArrays(a,i,n)}reset(){this._modules.forEach(e=>e.reset())}flush(){this._modules.forEach(e=>e.flush())}free(){var e,t,i;this._modules.forEach(s=>s.free()),(e=this.view)==null||e.removeEventListener("webglcontextlost",this._onContextLost,!1),(t=this.view)==null||t.removeEventListener("webglcontextrestored",this._onContextRestored,!1),(i=this.extensions.loseContext)==null||i.loseContext()}toPixels(){const e=this.gl.drawingBufferWidth,t=this.gl.drawingBufferHeight,i=e*t*4,s=e*4,n=(t-1)*s,o=new Uint8Array(i),a=new Uint8ClampedArray(i);this.gl.readPixels(0,0,e,t,this.gl.RGBA,this.gl.UNSIGNED_BYTE,o);for(let l=0;l<i;l+=s)a.set(o.subarray(l,l+s),n-l);return a}}class rA{}class fa extends rA{install(A){const e=async t=>{const{parseFont:i}=await Promise.resolve().then(()=>gI);return await A.fetch(t).then(s=>s.arrayBuffer()).then(s=>i(s))};return this.load=t=>A.loadBy(t,()=>e(t)),["woff","ttf","otf"].forEach(t=>{A.register(t,e)}),A.font=this,this}}const da={brightness:1,contrast:1,grayscale:0,"hue-rotate":0,invert:0,opacity:1,saturate:1,sepia:0};function Ia(r){const A=new Js;if(r==="none")return A;const e=Qi(r).reduce((t,{name:i,args:s})=>(t[i]=s[0].normalizedIntValue,t),{});Object.keys(da).forEach(t=>{e[t]=e[t]??da[t]});for(const t in e){const i=e[t];switch(t){case"hue-rotate":A.hueRotate(i*it);break;case"saturate":A.saturate(i);break;case"brightness":A.brightness(i);break;case"contrast":A.contrast(i);break;case"invert":A.invert(i);break;case"sepia":A.sepia(i);break;case"opacity":A.opacity(i);break;case"grayscale":A.grayscale(i);break}}return A}function pa(r,A,e,t=new ct){return r=!r||r==="none"?"":r,Qi(r,{width:A,height:e}).forEach(({name:i,args:s})=>{const n=s.map(o=>o.normalizedIntValue);switch(i){case"translate":t.translate(n[0]*A,(n[1]??n[0])*e);break;case"translateX":t.translateX(n[0]*A);break;case"translateY":t.translateY(n[0]*e);break;case"translateZ":t.translateZ(n[0]);break;case"translate3d":t.translate3d(n[0]*A,(n[1]??n[0])*e,n[2]??n[1]??n[0]);break;case"scale":t.scale(n[0],n[1]??n[0]);break;case"scaleX":t.scaleX(n[0]);break;case"scaleY":t.scaleY(n[0]);break;case"scale3d":t.scale3d(n[0],n[1]??n[0],n[2]??n[1]??n[0]);break;case"rotate":t.rotate(n[0]*it);break;case"rotateX":t.rotateX(n[0]*it);break;case"rotateY":t.rotateY(n[0]*it);break;case"rotateZ":t.rotateZ(n[0]*it);break;case"rotate3d":t.rotate3d(n[0]*it,(n[1]??n[0])*it,(n[2]??n[1]??n[0])*it,(n[3]??n[2]??n[1]??n[0])*it);break;case"skew":t.skew(n[0],n[0]??n[1]);break;case"skewX":t.skewX(n[0]);break;case"skewY":t.skewY(n[0]);break;case"matrix":t.set(n);break}}),t}function Ea(r){const[A,e=A]=r.split(" ");return[A,e].map(t=>{switch(t=t.trim(),t){case"left":case"top":return 0;case"center":return .5;case"right":case"bottom":return 1;default:return Number(t)}})}class Er extends Yt{constructor(e={}){super();u(this,"vertexAttributes");u(this,"indexBuffer");u(this,"instanceCount");u(this,"mode");u(this,"_materialWeakMap",new Os);this.vertexAttributes=new Map(Object.entries((e==null?void 0:e.vertexAttributes)??{})),this.indexBuffer=e==null?void 0:e.indexBuffer,this.instanceCount=e==null?void 0:e.instanceCount,this.mode=(e==null?void 0:e.mode)??"triangles"}_glVertexArray(e){var t;return{attributes:Object.fromEntries(Array.from(this.vertexAttributes).map(([i,s])=>[i,{buffer:s.buffer._glBuffer(e),size:s.size,type:s.type,normalized:s.normalized,stride:s.stride,offset:s.offset,divisor:s.divisor}])),elementArrayBuffer:(t=this.indexBuffer)==null?void 0:t._glBuffer(e)}}_glVertexArrayObject(e,t){let i=this._materialWeakMap.get(t);return i||(i={material:t.instanceId,geometry:this.instanceId},this._materialWeakMap.set(t,i)),e.getRelated(i,()=>e.vertexArray.create(t._glProgram(e),this._glVertexArray(e)))}draw(e,t,i){var a;e.flush(),t.activate(e,i);const s=this._glVertexArrayObject(e,t);let n=!1,o;this.vertexAttributes.forEach(l=>{(o==null?void 0:o.instanceId)!==l.buffer.instanceId&&(o=l.buffer,o.upload(e)&&(n=!0)),l.upload()&&(n=!0)}),(a=this.indexBuffer)!=null&&a.upload(e)&&(n=!0),n&&s&&e.vertexArray.update(t._glProgram(e),s,this._glVertexArray(e)),e.vertexArray.bind(s??this._glVertexArray(e)),e.draw({mode:this.mode,instanceCount:this.instanceCount}),e.vertexArray.unbind()}}var jc=Object.defineProperty,Ba=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&jc(A,e,i),i};class HA extends Yt{constructor(e){super();u(this,"needsUpload",!1);this.setProperties(e)}_glBufferOptions(){return{target:"element_array_buffer",data:this.data,usage:this.dynamic?"dynamic_draw":"static_draw"}}_glBuffer(e){return e.getRelated(this,()=>e.buffer.create(this._glBufferOptions()))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"data":case"dynamic":this.needsUpload=!0;break}}upload(e){const t=this.needsUpload;return t&&(this.needsUpload=!1,e.buffer.update(this._glBuffer(e),this._glBufferOptions())),t}}Ba([Be({default:null})],HA.prototype,"data"),Ba([Be({default:!1})],HA.prototype,"dynamic");var Zc=Object.defineProperty,Ca=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Zc(A,e,i),i};class Wt extends Yt{constructor(e){super();u(this,"needsUpload",!1);this.setProperties(e)}_glBufferOptions(){return{target:"array_buffer",data:this.data,usage:this.dynamic?"dynamic_draw":"static_draw"}}_glBuffer(e){return e.getRelated(this,()=>e.buffer.create(this._glBufferOptions()))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"data":case"dynamic":this.needsUpload=!0;break}}upload(e){const t=this.needsUpload;return t&&(this.needsUpload=!1,e.buffer.update(this._glBuffer(e),this._glBufferOptions())),t}}Ca([Be({default:null})],Wt.prototype,"data"),Ca([Be({default:!1})],Wt.prototype,"dynamic");var $c=Object.defineProperty,wA=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&$c(A,e,i),i};class ft extends Yt{constructor(e){super();u(this,"stride");u(this,"offset");u(this,"divisor");u(this,"needsUpload",!1);this.setProperties({buffer:new Wt,...e})}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"buffer":case"size":case"normalized":case"type":case"stride":case"offset":case"divisor":this.needsUpload=!0;break}}upload(){const e=this.needsUpload;return e&&(this.needsUpload=!1),e}}wA([Be()],ft.prototype,"buffer"),wA([Be({default:0})],ft.prototype,"size"),wA([Be({default:!1})],ft.prototype,"normalized"),wA([Be({default:"float"})],ft.prototype,"type"),wA([Be()],ft.prototype,"stride"),wA([Be()],ft.prototype,"offset"),wA([Be()],ft.prototype,"divisor");class eg extends Er{constructor(){super({vertexAttributes:{position:new ft({buffer:new Wt({data:new Float32Array([0,0,1,0,1,1,0,1]),dynamic:!1}),size:2,normalized:!1,type:"float"})},indexBuffer:new HA({data:new Uint16Array([0,1,3,2]),dynamic:!1}),mode:"triangle_strip"})}}const ns=class ns extends Yt{constructor(e={}){super();u(this,"vert");u(this,"frag");u(this,"uniforms");this.vert=e.vert??`precision highp float;
70
+ ${i.getShaderInfoLog(s)}`);return s}updateUniforms(...e){if(e.length>1){this.bind(e[0]),this.updateUniforms(e[1]);return}const t=this.boundProgram;if(!t)return;const i=this.gl,s=e[0],{uniforms:n,boundUniforms:o}=this.getMeta(t);for(const a in s){const l=s[a],c=n.get(a);if(!c)continue;const{type:h,isArray:f,location:I}=c;if(!(!I||o.get(I)===l))switch(o.set(I,l),h){case"float":f?i.uniform1fv(I,l):i.uniform1f(I,l);break;case"unsigned_int":f?i.uniform1uiv(I,l):i.uniform1ui(I,l);break;case"bool":case"int":case"sampler_2d":case"sampler_cube":case"sampler_2d_array":f?i.uniform1iv(I,l):i.uniform1i(I,l);break;case"bool_vec2":case"int_vec2":i.uniform2iv(I,l);break;case"unsigned_int_vec2":i.uniform2uiv(I,l);break;case"float_vec2":i.uniform2fv(I,l);break;case"bool_vec3":case"int_vec3":i.uniform3iv(I,l);break;case"unsigned_int_vec3":i.uniform3uiv(I,l);break;case"float_vec3":i.uniform3fv(I,l);break;case"bool_vec4":case"int_vec4":i.uniform4iv(I,l);break;case"unsigned_int_vec4":i.uniform4uiv(I,l);break;case"float_vec4":i.uniform4fv(I,l);break;case"float_mat2":i.uniformMatrix2fv(I,!1,l);break;case"float_mat3":i.uniformMatrix3fv(I,!1,l);break;case"float_mat4":i.uniformMatrix4fv(I,!1,l);break}}}reset(){super.reset(),this.boundProgram=null,this.uniforms={}}free(){super.free(),this.bind(null)}}function Xh(r){switch(r){case"float":case"int":case"unsigned_int":case"bool":case"sampler_2d":return 1;case"float_vec2":case"int_vec2":case"unsigned_int_vec2":case"bool_vec2":return 2;case"float_vec3":case"int_vec3":case"unsigned_int_vec3":case"bool_vec3":return 3;case"float_vec4":case"int_vec4":case"unsigned_int_vec4":case"bool_vec4":case"float_mat2":return 4;case"float_mat3":return 9;case"float_mat4":return 16;default:return 1}}class la extends Ct{install(A){super.install(A),A.scissor=this}get length(){var A;return((A=this._renderer.mask.last)==null?void 0:A.scissorCounter)??0}push(A){const e=this._renderer.gl;e.enable(e.SCISSOR_TEST),A.scissorCounter??(A.scissorCounter=0),A.scissorCounter++,this.use()}pop(A){if(this.length>0)this.use();else{const e=this._renderer.gl;e.disable(e.SCISSOR_TEST)}}use(){const A=this._renderer,{pixelRatio:e,mask:t,viewport:i,screen:s,gl:n}=A,o=t.last.mask;let a;i.boundViewport?a=i.boundViewport.height-(o.height+o.y)*e:a=(s.height-(o.height+o.y))*e,n.scissor(o.x*e,a,o.width*e,o.height*e)}}class ca extends Ct{install(A){super.install(A),A.stencil=this}get length(){var A;return((A=this._renderer.mask.last)==null?void 0:A.stencilCounter)??0}push(A){const e=this._renderer.gl,t=A.mask,i=A.stencilCounter??(A.stencilCounter=0);A.stencilCounter===0&&(this._renderer.framebuffer.forceStencil(),e.clearStencil(0),e.clear(e.STENCIL_BUFFER_BIT),e.enable(e.STENCIL_TEST)),A.stencilCounter++;const s=A.color;s&&(A.color=0,e.colorMask(!1,!1,!1,!1)),e.stencilFunc(e.EQUAL,i,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.INCR),t.render(this._renderer),this._renderer.flush(),s&&(A.color=s,e.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this.use()}pop(A){const e=this._renderer.gl,t=A.mask;if(!this.length)e.disable(e.STENCIL_TEST);else{const i=this._renderer.mask.last,s=(i==null?void 0:i.color)??15;s!==0&&(i.color=0,e.colorMask(!1,!1,!1,!1)),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.render(this._renderer),this._renderer.flush(),s!==0&&(i.color=s,e.colorMask((s&1)!==0,(s&2)!==0,(s&4)!==0,(s&8)!==0)),this.use()}}use(){const A=this._renderer.gl;A.stencilFunc(A.EQUAL,this.length,4294967295),A.stencilOp(A.KEEP,A.KEEP,A.KEEP)}}function jh(r,A){const e=new Set([...Object.keys(r),...Object.keys(A)]),t={};return e.forEach(i=>{t[i]=r[i]!==A[i]}),t}class ha extends Ct{constructor(){super(...arguments);u(this,"maxUnits",0);u(this,"boundLocation",0);u(this,"boundTarget","texture_2d");u(this,"boundTextures",[]);u(this,"emptyTextures",{texture_2d:null,texture_cube_map:null})}install(e){super.install(e),e.texture=this}onUpdateContext(){super.onUpdateContext();const e=this.gl;this.maxUnits=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);for(let s=0;s<this.maxUnits;s++)this.boundTextures[s]={texture_2d:null,texture_cube_map:null};const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array(4));const i=e.createTexture();e.bindTexture(e.TEXTURE_CUBE_MAP,i);for(let s=0;s<6;s++)e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+s,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,e.LINEAR),this.emptyTextures={texture_2d:t,texture_cube_map:i};for(let s=this.boundTextures.length,n=0;n<s;n++)this.unbind(n)}create(e){const t=this.gl.createTexture();if(!t)throw new Error("Unable to create texture");return e&&(this.bind({location:e.location,target:e.target,value:t,forceUpdateLocation:!0}),this.update({filterMode:"linear",wrapMode:"repeat",...e})),t}getMeta(e){return this._renderer.getRelated(e,()=>({}))}update(...e){if(e.length>1){this.bind({location:e[1].location,target:e[1].target,value:e[0],forceUpdateLocation:!0}),this.update(e[1]);return}const t=e[0],{value:i,...s}=t,n=this.boundTextures[this.boundLocation][t.target??this.boundTarget];if(!n)return;const o=this.gl,a=this.getMeta(n),l=jh(a,s);Object.assign(a,s);const c=this._renderer.getBindPoint(a.target??this.boundTarget);if(i!==void 0&&(i===null?o.texImage2D(c,0,o.RGBA,1,1,0,o.RGBA,o.UNSIGNED_BYTE,null):"pixels"in i?o.texImage2D(c,0,o.RGBA,i.width,i.height,0,o.RGBA,o.UNSIGNED_BYTE,i.pixels):o.texImage2D(c,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,i)),l.wrapMode&&a.wrapMode){const f=this._renderer.getBindPoint(a.wrapMode);o.texParameteri(c,o.TEXTURE_WRAP_S,f),o.texParameteri(c,o.TEXTURE_WRAP_T,f)}const h=a.filterMode;if(l.filterMode&&h){const f=this._renderer.getBindPoint(h.split("_")[0]);h.includes("_")?o.texParameteri(c,o.TEXTURE_MIN_FILTER,this._renderer.getBindPoint(h)):o.texParameteri(c,o.TEXTURE_MIN_FILTER,f),o.texParameteri(c,o.TEXTURE_MAG_FILTER,f)}if(a.anisoLevel&&h==="linear"&&this._renderer.extensions.anisotropicFiltering&&l.anisoLevel){const{MAX_TEXTURE_MAX_ANISOTROPY_EXT:f,TEXTURE_MAX_ANISOTROPY_EXT:I}=this._renderer.extensions.anisotropicFiltering;o.texParameterf(c,I,Math.min(a.anisoLevel,o.getParameter(f)))}}bind(e){const t=this.gl;let i,s,n,o;if(e&&"value"in e?{target:s,value:i,location:n,forceUpdateLocation:o}=e:i=e,i){const d=this.getMeta(i);d.target=s??(s=d.target??"texture_2d"),d.location=n??(n=d.location??0)}else s??(s="texture_2d"),n??(n=0);let a=this.boundTextures[n];a||(this.boundTextures[n]=a={texture_2d:null,texture_cube_map:null});const l=a[s]??null,c=this.boundLocation,h=i!==l,f={location:n!==c&&(h||o),texture:h},I=this._renderer.getBindPoint(s);f.location&&(t.activeTexture(t.TEXTURE0+n),this.boundLocation=n),f.texture&&(t.bindTexture(I,i??this.emptyTextures[s]),a[s]=i),this.boundTarget=s}unbind(e,t="texture_2d"){const i=this._renderer.gl;if(typeof e=="number")this.bind({value:null,target:t,location:e});else{const s=this.getMeta(e),{target:n=this.boundTarget}=s,o=this._renderer.getBindPoint(n);for(let a=0;a<this.boundTextures.length;a++)this.boundTextures[a][n]===e&&(this.boundLocation!==a&&(i.activeTexture(i.TEXTURE0+a),this.boundLocation=a),i.bindTexture(o,this.emptyTextures[n]),this.boundTextures[a][n]=null)}}reset(){super.reset(),this.boundLocation=0,this.boundTarget="texture_2d",this.boundTextures=[],this.maxUnits=0}}class ga extends Ct{constructor(){super(...arguments);u(this,"boundVertexArrayNull",{attributes:{},elementArrayBuffer:null});u(this,"boundVertexArrayObject",null);u(this,"boundVertexArray",this.boundVertexArrayNull)}install(e){super.install(e),e.vertexArray=this}enableVertexAttrib(e,t,i,s=1){const{buffer:n,size:o=0,type:a="float",normalized:l=!1,stride:c=0,offset:h=0,divisor:f}=i,I=this._renderer.gl;this._renderer.buffer.bind({target:"array_buffer",value:n});for(let d=0;d<s;d++)I.enableVertexAttribArray(t+d),I.vertexAttribPointer(t+d,o,this._renderer.getBindPoint(a),l,c,h+(c-h)/s*d);f&&("vertexAttribDivisor"in I?I.vertexAttribDivisor(t,f):console.warn("Failed to active vertex array object, GPU Instancing is not supported on this device")),this.boundVertexArray.attributes[e]={enable:!0,...i}}create(...e){const t=this._renderer.gl;if(!("createVertexArray"in t))return null;const i=t.createVertexArray();if(!i)throw new Error("Unable to create vertex array");return e.length===2?this.update(e[0],i,e[1]):e.length===1&&this.update(i,e[0]),i}getVertexArrayMeta(e){return this._renderer.getRelated(e,()=>({attributes:{},elementArrayBuffer:null}))}update(...e){var n,o,a;if(e.length>2){this._renderer.program.bind(e[0]),this.update(e[1],e[2]);return}else if(e.length===2)if(e[0]){const l=e[0],c=e[1],h=this.getVertexArrayMeta(l);this.bind(l),this.update(c),h.attributes=this.boundVertexArray.attributes,h.elementArrayBuffer=this.boundVertexArray.elementArrayBuffer,this.unbind(),this._renderer.buffer.unbind("array_buffer");return}else return this.update(e[1]);const t=this._renderer.program.boundProgram;if(!t)return;const i=e[0];if(i.attributes){const l=this._renderer.program.getMeta(t),c={},h={};for(const I in i.attributes){const d=i.attributes[I],C=l.attributes.get(I);let p;"buffer"in d?p={...d}:p={buffer:d},p.size=p.size||(C==null?void 0:C.size)||0;const x=this._renderer.buffer.getMeta(p.buffer),P=Number(((n=C==null?void 0:C.type.match(/mat(\d)/))==null?void 0:n[1])??1);let w;switch(p.type){case"unsigned_byte":w=p.size;break;case"unsigned_short":w=p.size*2;break;case"float":default:w=p.size*4;break}w*=P,c[o=x.id]??(c[o]=0),c[x.id]+=w,h[I]={attrib:p,meta:x,info:C,byteLength:w,dimension:P}}const f={};for(const I in h){const{attrib:d,meta:C,info:p,byteLength:x,dimension:P}=h[I];(p==null?void 0:p.location)!==void 0&&(f[a=C.id]??(f[a]=0),d.offset??(d.offset=f[C.id]),d.stride??(d.stride=c[C.id]===x?0:c[C.id]),this.enableVertexAttrib(I,p.location,d,P),f[C.id]+=x)}}const s=i.elementArrayBuffer??null;this._renderer.buffer.bind({target:"element_array_buffer",value:s}),this.boundVertexArray.elementArrayBuffer=s}bind(e){const t=this._renderer.gl;if(e&&"attributes"in e)this.update(e);else if("bindVertexArray"in t){const i=this.boundVertexArrayObject;({value:e!==i}).value&&(t.bindVertexArray(e),this.boundVertexArrayObject=e,e?this.boundVertexArray={...this.getVertexArrayMeta(e)}:this.boundVertexArray=this.boundVertexArrayNull)}}unbind(){return this.bind(null)}reset(){super.reset(),this.boundVertexArrayNull={attributes:{},elementArrayBuffer:null},this.boundVertexArray=this.boundVertexArrayNull,this.boundVertexArrayObject=null}}class ua extends Ct{constructor(){super(...arguments);u(this,"boundViewport",{x:0,y:0,width:0,height:0})}install(e){super.install(e),e.viewport=this}bind(e){const t=this.boundViewport,i=Math.floor(e.x),s=Math.floor(e.y),n=Math.floor(e.width),o=Math.floor(e.height);t.x===i&&t.y===s&&t.width===n&&t.height===o||(this._renderer.gl.viewport(i,s,n,o),t.x=i,t.y=s,t.width=n,t.height=o)}reset(){super.reset(),this.boundViewport={x:0,y:0,width:0,height:0}}}class fa extends ta{constructor(e=Yo(),t){super();u(this,"_modules",[new ha,new sa,new na,new aa,new ga,new ua,new ia,new oa,new la,new ca,new ra]);u(this,"bindPoints",new Map);if(!e)throw new Error("Failed to createHTMLCanvas");Jo(e)?this._setupContext(e,t):(this.gl=e,this.version=Ko(this.gl)?2:1),this._setupBindPoints()._setupExtensions()._setupPolyfill(),this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),this._modules.forEach(i=>i.install(this)),this._modules.forEach(i=>i.onUpdateContext())}_setupContext(e,t){this.view=e;let i=e.getContext("webgl2",t)||e.getContext("experimental-webgl2",t),s=2;if(i||(i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),s=1),!i)throw new Error("Unable to getContext");return this.gl=i,this.version=s,this._onContextLost=this._onContextLost.bind(this),this._onContextRestored=this._onContextRestored.bind(this),e.addEventListener("webglcontextlost",this._onContextLost,!1),e.addEventListener("webglcontextrestored",this._onContextRestored,!1),this}_setupExtensions(){const e=this.gl,t={loseContext:e.getExtension("WEBGL_lose_context"),anisotropicFiltering:e.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:e.getExtension("OES_texture_float_linear"),s3tc:e.getExtension("WEBGL_compressed_texture_s3tc"),s3tcSRGB:e.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:e.getExtension("WEBGL_compressed_texture_etc"),etc1:e.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:e.getExtension("WEBGL_compressed_texture_atc"),astc:e.getExtension("WEBGL_compressed_texture_astc")};return this.version===1?(t.instancedArrays=e.getExtension("ANGLE_instanced_arrays"),t.drawBuffers=e.getExtension("WEBGL_draw_buffers"),t.depthTexture=e.getExtension("WEBGL_depth_texture"),t.vertexArrayObject=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object"),t.uint32ElementIndex=e.getExtension("OES_element_index_uint"),t.floatTexture=e.getExtension("OES_texture_float"),t.textureHalfFloat=e.getExtension("OES_texture_half_float"),t.textureHalfFloatLinear=e.getExtension("OES_texture_half_float_linear")):this.version===2&&(t.colorBufferFloat=e.getExtension("EXT_color_buffer_float")),this.extensions=t,this}_setupBindPoints(){for(const e in this.gl)if(e===e.toUpperCase()){const t=this.gl[e];typeof t=="number"&&this.bindPoints.set(t,e.toLowerCase())}return this}_setupPolyfill(){if(this.version===1){const{instancedArrays:e,vertexArrayObject:t,drawBuffers:i}=this.extensions,s=this.gl;t&&(s.createVertexArray=()=>t.createVertexArrayOES(),s.bindVertexArray=n=>t.bindVertexArrayOES(n),s.deleteVertexArray=n=>t.deleteVertexArrayOES(n)),e&&(s.vertexAttribDivisor=(n,o)=>e.vertexAttribDivisorANGLE(n,o),s.drawElementsInstanced=(n,o,a,l,c)=>e.drawElementsInstancedANGLE(n,o,a,l,c),s.drawArraysInstanced=(n,o,a,l)=>e.drawArraysInstancedANGLE(n,o,a,l)),i&&(s.drawBuffers=n=>i.drawBuffersWEBGL(n))}return this}_onContextLost(e){e.preventDefault(),setTimeout(()=>{var t;this.gl.isContextLost()&&((t=this.extensions.loseContext)==null||t.restoreContext())},0)}_onContextRestored(){}getBindPoint(e){return this.gl[e.toUpperCase()]}clear(e=this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT){this.gl.clear(e)}draw(e={}){const{mode:t="triangles",first:i=0,instanceCount:s}=e;let{count:n=0,bytesPerElement:o=0}=e;if(!n||!o){const l=this.vertexArray.boundVertexArray.elementArrayBuffer??Object.values(this.vertexArray.boundVertexArray.attributes)[0];if(l){const c=this.buffer.getMeta(l);n||(n=c.length),o||(o=c.bytesPerElement)}}const a=this.getBindPoint(t);if(o)if(o===2||o===4&&this.extensions.uint32ElementIndex){const l=o===2?this.gl.UNSIGNED_SHORT:this.gl.UNSIGNED_INT;s&&"drawElementsInstanced"in this.gl?this.gl.drawElementsInstanced(a,n,l,i*o,s):this.gl.drawElements(a,n,l,i*o)}else console.warn("Unsupported index buffer type: uint32");else s&&"drawArraysInstanced"in this.gl?this.gl.drawArraysInstanced(a,i,n,s):this.gl.drawArrays(a,i,n)}reset(){this._modules.forEach(e=>e.reset())}flush(){this._modules.forEach(e=>e.flush())}free(){var e,t,i;this._modules.forEach(s=>s.free()),(e=this.view)==null||e.removeEventListener("webglcontextlost",this._onContextLost,!1),(t=this.view)==null||t.removeEventListener("webglcontextrestored",this._onContextRestored,!1),(i=this.extensions.loseContext)==null||i.loseContext()}toPixels(){const e=this.gl.drawingBufferWidth,t=this.gl.drawingBufferHeight,i=e*t*4,s=e*4,n=(t-1)*s,o=new Uint8Array(i),a=new Uint8ClampedArray(i);this.gl.readPixels(0,0,e,t,this.gl.RGBA,this.gl.UNSIGNED_BYTE,o);for(let l=0;l<i;l+=s)a.set(o.subarray(l,l+s),n-l);return a}}class rA{}class da extends rA{install(A){const e=async t=>{const{parseFont:i}=await Promise.resolve().then(()=>uI);return await A.fetch(t).then(s=>s.arrayBuffer()).then(s=>i(s))};return this.load=t=>A.loadBy(t,()=>e(t)),["woff","ttf","otf"].forEach(t=>{A.register(t,e)}),A.font=this,this}}const Ia={brightness:1,contrast:1,grayscale:0,"hue-rotate":0,invert:0,opacity:1,saturate:1,sepia:0};function pa(r){const A=new Js;if(r==="none")return A;const e=Qi(r).reduce((t,{name:i,args:s})=>(t[i]=s[0].normalizedIntValue,t),{});Object.keys(Ia).forEach(t=>{e[t]=e[t]??Ia[t]});for(const t in e){const i=e[t];switch(t){case"hue-rotate":A.hueRotate(i*it);break;case"saturate":A.saturate(i);break;case"brightness":A.brightness(i);break;case"contrast":A.contrast(i);break;case"invert":A.invert(i);break;case"sepia":A.sepia(i);break;case"opacity":A.opacity(i);break;case"grayscale":A.grayscale(i);break}}return A}function Ea(r,A,e,t=new ht){return r=!r||r==="none"?"":r,Qi(r,{width:A,height:e}).forEach(({name:i,args:s})=>{const n=s.map(o=>o.normalizedIntValue);switch(i){case"translate":t.translate(n[0]*A,(n[1]??n[0])*e);break;case"translateX":t.translateX(n[0]*A);break;case"translateY":t.translateY(n[0]*e);break;case"translateZ":t.translateZ(n[0]);break;case"translate3d":t.translate3d(n[0]*A,(n[1]??n[0])*e,n[2]??n[1]??n[0]);break;case"scale":t.scale(n[0],n[1]??n[0]);break;case"scaleX":t.scaleX(n[0]);break;case"scaleY":t.scaleY(n[0]);break;case"scale3d":t.scale3d(n[0],n[1]??n[0],n[2]??n[1]??n[0]);break;case"rotate":t.rotate(n[0]*it);break;case"rotateX":t.rotateX(n[0]*it);break;case"rotateY":t.rotateY(n[0]*it);break;case"rotateZ":t.rotateZ(n[0]*it);break;case"rotate3d":t.rotate3d(n[0]*it,(n[1]??n[0])*it,(n[2]??n[1]??n[0])*it,(n[3]??n[2]??n[1]??n[0])*it);break;case"skew":t.skew(n[0],n[0]??n[1]);break;case"skewX":t.skewX(n[0]);break;case"skewY":t.skewY(n[0]);break;case"matrix":t.set(n);break}}),t}function Ba(r){const[A,e=A]=r.split(" ");return[A,e].map(t=>{switch(t=t.trim(),t){case"left":case"top":return 0;case"center":return .5;case"right":case"bottom":return 1;default:return Number(t)}})}class Er extends Yt{constructor(e={}){super();u(this,"vertexAttributes");u(this,"indexBuffer");u(this,"instanceCount");u(this,"mode");u(this,"_materialWeakMap",new Os);this.vertexAttributes=new Map(Object.entries((e==null?void 0:e.vertexAttributes)??{})),this.indexBuffer=e==null?void 0:e.indexBuffer,this.instanceCount=e==null?void 0:e.instanceCount,this.mode=(e==null?void 0:e.mode)??"triangles"}_glVertexArray(e){var t;return{attributes:Object.fromEntries(Array.from(this.vertexAttributes).map(([i,s])=>[i,{buffer:s.buffer._glBuffer(e),size:s.size,type:s.type,normalized:s.normalized,stride:s.stride,offset:s.offset,divisor:s.divisor}])),elementArrayBuffer:(t=this.indexBuffer)==null?void 0:t._glBuffer(e)}}_glVertexArrayObject(e,t){let i=this._materialWeakMap.get(t);return i||(i={material:t.instanceId,geometry:this.instanceId},this._materialWeakMap.set(t,i)),e.getRelated(i,()=>e.vertexArray.create(t._glProgram(e),this._glVertexArray(e)))}draw(e,t,i){var a;e.flush(),t.activate(e,i);const s=this._glVertexArrayObject(e,t);let n=!1,o;this.vertexAttributes.forEach(l=>{(o==null?void 0:o.instanceId)!==l.buffer.instanceId&&(o=l.buffer,o.upload(e)&&(n=!0)),l.upload()&&(n=!0)}),(a=this.indexBuffer)!=null&&a.upload(e)&&(n=!0),n&&s&&e.vertexArray.update(t._glProgram(e),s,this._glVertexArray(e)),e.vertexArray.bind(s??this._glVertexArray(e)),e.draw({mode:this.mode,instanceCount:this.instanceCount}),e.vertexArray.unbind()}}var Zh=Object.defineProperty,Ca=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Zh(A,e,i),i};class HA extends Yt{constructor(e){super();u(this,"needsUpload",!1);this.setProperties(e)}_glBufferOptions(){return{target:"element_array_buffer",data:this.data,usage:this.dynamic?"dynamic_draw":"static_draw"}}_glBuffer(e){return e.getRelated(this,()=>e.buffer.create(this._glBufferOptions()))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"data":case"dynamic":this.needsUpload=!0;break}}upload(e){const t=this.needsUpload;return t&&(this.needsUpload=!1,e.buffer.update(this._glBuffer(e),this._glBufferOptions())),t}}Ca([Ie({default:null})],HA.prototype,"data"),Ca([Ie({default:!1})],HA.prototype,"dynamic");var $h=Object.defineProperty,Qa=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&$h(A,e,i),i};class Wt extends Yt{constructor(e){super();u(this,"needsUpload",!1);this.setProperties(e)}_glBufferOptions(){return{target:"array_buffer",data:this.data,usage:this.dynamic?"dynamic_draw":"static_draw"}}_glBuffer(e){return e.getRelated(this,()=>e.buffer.create(this._glBufferOptions()))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"data":case"dynamic":this.needsUpload=!0;break}}upload(e){const t=this.needsUpload;return t&&(this.needsUpload=!1,e.buffer.update(this._glBuffer(e),this._glBufferOptions())),t}}Qa([Ie({default:null})],Wt.prototype,"data"),Qa([Ie({default:!1})],Wt.prototype,"dynamic");var eg=Object.defineProperty,wA=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&eg(A,e,i),i};class ft extends Yt{constructor(e){super();u(this,"stride");u(this,"offset");u(this,"divisor");u(this,"needsUpload",!1);this.setProperties({buffer:new Wt,...e})}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"buffer":case"size":case"normalized":case"type":case"stride":case"offset":case"divisor":this.needsUpload=!0;break}}upload(){const e=this.needsUpload;return e&&(this.needsUpload=!1),e}}wA([Ie()],ft.prototype,"buffer"),wA([Ie({default:0})],ft.prototype,"size"),wA([Ie({default:!1})],ft.prototype,"normalized"),wA([Ie({default:"float"})],ft.prototype,"type"),wA([Ie()],ft.prototype,"stride"),wA([Ie()],ft.prototype,"offset"),wA([Ie()],ft.prototype,"divisor");class tg extends Er{constructor(){super({vertexAttributes:{position:new ft({buffer:new Wt({data:new Float32Array([0,0,1,0,1,1,0,1]),dynamic:!1}),size:2,normalized:!1,type:"float"})},indexBuffer:new HA({data:new Uint16Array([0,1,3,2]),dynamic:!1}),mode:"triangle_strip"})}}const ns=class ns extends Yt{constructor(e={}){super();u(this,"vert");u(this,"frag");u(this,"uniforms");this.vert=e.vert??`precision highp float;
71
71
  attribute vec2 position;
72
72
  uniform mat3 projectionMatrix;
73
73
  uniform mat3 modelViewMatrix;
@@ -78,7 +78,7 @@ void main(void) {
78
78
  gl_FragColor = tint;
79
79
  }`,this.uniforms=new Map(Object.entries(e.uniforms??{projectionMatrix:new Float32Array([1,0,0,0,1,0,0,0,1]),modelViewMatrix:new Float32Array([1,0,0,0,1,0,0,0,1]),tint:new Float32Array([1,1,1,1])}))}_glProgram(e){return e.getRelated(this,()=>{let t=this.vert,i=this.frag;return i.includes("precision")||(i=`precision mediump float;
80
80
  ${i}`),t.includes("precision")||(t=`precision mediump float;
81
- ${t}`),e.program.create({vert:t,frag:i})})}activate(e,t){e.program.bind(this._glProgram(e)),(t||this.uniforms.size>0)&&e.program.updateUniforms({...Object.fromEntries(this.uniforms.entries()),...t})}};u(ns,"instance",new ns);let Ce=ns;const tg=/^uniform \w+ (.+?);\s*\/\/\s*=\s*([^;]+?)[\s;]*$/gm,Ag=/vec(\d)\((.*)\)/;function ig(r){r=r.trim();const A=r.match(Ag);if(A){const e=Array.from({length:Number(A[1])},()=>0);return A[2].split(",").forEach((t,i)=>{e[i]=Number(t.trim())}),e}return Number(r)}const ir=class ir extends Ce{constructor(e){super();u(this,"vert",`attribute vec2 position;
81
+ ${t}`),e.program.create({vert:t,frag:i})})}activate(e,t){e.program.bind(this._glProgram(e)),(t||this.uniforms.size>0)&&e.program.updateUniforms({...Object.fromEntries(this.uniforms.entries()),...t})}};u(ns,"instance",new ns);let Ce=ns;const Ag=/^uniform \w+ (.+?);\s*\/\/\s*=\s*([^;]+?)[\s;]*$/gm,ig=/vec(\d)\((.*)\)/;function rg(r){r=r.trim();const A=r.match(ig);if(A){const e=Array.from({length:Number(A[1])},()=>0);return A[2].split(",").forEach((t,i)=>{e[i]=Number(t.trim())}),e}return Number(r)}const ir=class ir extends Ce{constructor(e){super();u(this,"vert",`attribute vec2 position;
82
82
  attribute vec2 uv;
83
83
  varying vec2 vUv;
84
84
  void main() {
@@ -97,7 +97,7 @@ vec4 getFromColor(vec2 uv) { return texture2D(from, uv); }
97
97
  vec4 getToColor(vec2 uv) { return texture2D(to, uv); }`:""}
98
98
  ${e}${t.transform?`
99
99
  void main(void) { gl_FragColor = transform(vUv); }`:t.transition?`
100
- void main(void) { gl_FragColor = transition(vUv); }`:""}`;const i=e.matchAll(tg);for(const s of i)s[1]&&s[2]&&s[1].split(",").forEach(n=>{this.uniforms.set(n.trim(),ig(s[2]))})}};u(ir,"RE",{getColor:/\sgetColor\s*\(/,getFromColor:/\sgetFromColor\s*\(/,getToColor:/\sgetToColor\s*\(/,transform:/\stransform\s*\(/,transition:/\stransition\s*\(/});let Br=ir;class JA extends Ce{static get instance(){return this._instance??(this._instance=new this)}constructor(){super({vert:`precision highp float;
100
+ void main(void) { gl_FragColor = transition(vUv); }`:""}`;const i=e.matchAll(Ag);for(const s of i)s[1]&&s[2]&&s[1].split(",").forEach(n=>{this.uniforms.set(n.trim(),rg(s[2]))})}};u(ir,"RE",{getColor:/\sgetColor\s*\(/,getFromColor:/\sgetFromColor\s*\(/,getToColor:/\sgetToColor\s*\(/,transform:/\stransform\s*\(/,transition:/\stransition\s*\(/});let Br=ir;class JA extends Ce{static get instance(){return this._instance??(this._instance=new this)}constructor(){super({vert:`precision highp float;
101
101
  attribute vec2 position;
102
102
  attribute vec2 uv;
103
103
  uniform mat3 projectionMatrix;
@@ -111,7 +111,7 @@ uniform sampler2D sampler;
111
111
  uniform vec4 tint;
112
112
  void main(void) {
113
113
  gl_FragColor = texture2D(sampler, vUv) * tint;
114
- }`,uniforms:{sampler:0,projectionMatrix:new Float32Array([1,0,0,0,1,0,0,0,1]),modelViewMatrix:new Float32Array([1,0,0,0,1,0,0,0,1]),tint:new Float32Array([1,1,1,1])}})}}u(JA,"_instance");class fe extends Er{static get instance(){return this._instance??(this._instance=new this)}static draw(A,e=JA.instance,t){this.instance.draw(A,e,t)}constructor(){super({vertexAttributes:{position:new ft({buffer:new Wt({data:new Float32Array([-1,-1,1,-1,1,1,-1,1]),dynamic:!1}),size:2,normalized:!1,type:"float"}),uv:new ft({buffer:new Wt({data:new Float32Array([0,0,1,0,1,1,0,1]),dynamic:!1}),size:2,normalized:!1,type:"float"})},indexBuffer:new HA({data:new Uint16Array([0,1,2,0,2,3]),dynamic:!1})})}}u(fe,"_instance");class rg extends Er{constructor(){const e=new Wt({data:new Float32Array,dynamic:!0}),t=new Wt({data:new Float32Array,dynamic:!0});super({vertexAttributes:{position:new ft({buffer:e,size:2,normalized:!1,type:"float"}),uv:new ft({buffer:t,size:2,normalized:!1,type:"float"})},indexBuffer:new HA({data:new Uint16Array,dynamic:!0})});u(this,"positionBuffer");u(this,"uvBuffer");this.positionBuffer=e,this.uvBuffer=t}}var sg=Object.defineProperty,KA=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&sg(A,e,i),i};class _e extends Yt{constructor(e){super();u(this,"_isPowerOfTwo",!1);u(this,"_needsUpload",!1);this.source=e,this._updateSize()}static get EMPTY(){return new this({width:1,height:1,pixels:null})}static get WHITE(){return new this({width:1,height:1,pixels:new Uint8Array([255,255,255,255])})}static get BLACK(){return new this({width:1,height:1,pixels:new Uint8Array([0,0,0,255])})}static get RED(){return new this({width:1,height:1,pixels:new Uint8Array([255,0,0,255])})}static get GREEN(){return new this({width:1,height:1,pixels:new Uint8Array([0,255,0,255])})}static get BLUE(){return new this({width:1,height:1,pixels:new Uint8Array([0,0,255,255])})}get valid(){return!!(this.width&&this.height)}get realWidth(){return Math.round(this.width*this.pixelRatio)}get realHeight(){return Math.round(this.height*this.pixelRatio)}_glTextureOptions(e,t){let i=this.wrapMode;return e.version===1&&!this._isPowerOfTwo&&(i="clamp_to_edge"),{value:this.source,target:"texture_2d",location:0,filterMode:this.filterMode,wrapMode:i,...t}}_glTexture(e,t){return e.getRelated(this,()=>e.texture.create(this._glTextureOptions(e,t)))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"width":case"height":this._updatePOT();break;case"source":this._updateSize();break;case"filterMode":case"wrapMode":case"pixelRatio":this.requestUpload();break}}_updatePOT(){this._isPowerOfTwo=Ps(this.realWidth)&&Ps(this.realHeight),this.requestUpload()}_updateSize(){const e=this.source;"pixels"in e?(this.width=e.width/this.pixelRatio,this.height=e.height/this.pixelRatio):(this.width=Number(e.naturalWidth||e.videoWidth||e.width||0)/this.pixelRatio,this.height=Number(e.naturalHeight||e.videoHeight||e.height||0)/this.pixelRatio),this.requestUpload()}requestUpload(){this._needsUpload=!0}upload(e,t){return this._needsUpload&&this.valid?(this._needsUpload=!1,e.texture.update(this._glTexture(e,t),this._glTextureOptions(e,t)),!0):!1}activate(e,t=0){return this.valid?(e.texture.bind({target:"texture_2d",value:this._glTexture(e,{location:t}),location:t}),this.upload(e,{location:t}),!0):!1}inactivate(e){e.texture.unbind(this._glTexture(e))}free(){Uo&&this.source instanceof ImageBitmap&&this.source.close()}}KA([Be()],_e.prototype,"source"),KA([M({default:0})],_e.prototype,"width"),KA([M({default:0})],_e.prototype,"height"),KA([M({default:"linear"})],_e.prototype,"filterMode"),KA([M({default:"clamp_to_edge"})],_e.prototype,"wrapMode"),KA([M({default:1})],_e.prototype,"pixelRatio");class Cr extends Yt{constructor(e){super();u(this,"frames");let t;if(Array.isArray(e))t=e;else if(e instanceof _e)t=[{texture:e,duration:0}];else throw new TypeError("Failed new AnimatedTexture");this.frames=t,this.updateDuration()}updateDuration(){return this.duration=this.frames.reduce((e,t)=>t.duration+e,0),this}free(){this.frames.forEach(e=>{e.texture.free()})}}var ng=Object.defineProperty,og=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&ng(A,e,i),i};class YA extends _e{constructor(A=document.createElement("canvas")){super(A)}_updateProperty(A,e,t,i){switch(A){case"width":this.source.width=Math.max(1,Math.ceil(e*this.pixelRatio));break;case"height":this.source.height=Math.max(1,Math.ceil(e*this.pixelRatio));break}super._updateProperty(A,e,t,i)}}og([M({default:2})],YA.prototype,"pixelRatio");class Qa extends _e{constructor(A){const e=new Vt(A);super({width:1,height:1,pixels:new Uint8Array([e.r8,e.g8,e.b8,e.a8])})}}class Qr extends _e{static test(A){return Bi(A)}static linearGradient(A,e,t){const i=document.createElement("canvas");i.width=e,i.height=t;const s=i.getContext("2d");if(!s)throw new Error("Failed to parse linear gradient, get canvas context is null.");let{angle:n=0,stops:o}=A;n-=Math.PI/2;const a=e/2,l=t/2,h=Math.sqrt(e*e+t*t)/2,c=a+h*Math.cos(n+Math.PI),f=l+h*Math.sin(n+Math.PI),I=a+h*Math.cos(n),d=l+h*Math.sin(n),C=s.createLinearGradient(c,f,I,d);o.forEach(x=>{C.addColorStop(x.offset,x.color)}),s.fillStyle=C,s.fillRect(0,0,i.width,i.height);const p=s.getImageData(0,0,i.width,i.height);return{width:p.width,height:p.height,pixels:new Uint8Array(p.data.buffer)}}constructor(A,e,t){super(Qr.linearGradient(A,e,t))}}function ag(r){return{autoLoad:!!((r==null?void 0:r.autoLoad)??!0),useBitmap:!!((r==null?void 0:r.useBitmap)??!0)&&Us,crossorigin:(r==null?void 0:r.crossorigin)??null}}class lg extends _e{constructor(e,t){const i=ag(t);super(e);u(this,"bitmap");u(this,"useBitmap");u(this,"preserveBitmap",!1);u(this,"_loadSource");u(this,"_loadBitmap");const s=e.src,n=s.includes(".svg")||s.startsWith("data:image/svg+xml");this.useBitmap=i.useBitmap&&!n,i.autoLoad&&this.load()}async load(){return this._loadSource||(this._loadSource=new Promise(e=>{this._loadSource=void 0;const t=this.source,i=()=>{t.onload=null,t.onerror=null},s=()=>{i(),this.requestUpload(),this.useBitmap?this.genBitmap().finally(()=>e(this)):e(this)},n=o=>{i(),console.warn(`Failed to load ImageTexture, src: ${t.src}`,o),this.emit("error",o),e(this)};t.complete&&t.src?s():(t.onload=s,t.onerror=n)})),this._loadSource}genBitmap(){if(this._loadBitmap)return this._loadBitmap;if(this.bitmap||!Us)return Promise.resolve(this);const e=this.source,t=!e.crossOrigin||e.crossOrigin==="anonymous";return this._loadBitmap=fetch(e.src,{mode:t?"cors":"no-cors"}).then(i=>i.blob()).then(i=>createImageBitmap(i,0,0,e.width,e.height,{premultiplyAlpha:"premultiply"})).then(i=>(this.bitmap=i,this.requestUpload(),this._loadBitmap=void 0,this)).catch(i=>(console.warn("Failed to genBitmap",i),this)),this._loadBitmap}_glTextureOptions(e){return{...super._glTextureOptions(e),value:this.bitmap??this.source}}upload(e){if(this.useBitmap){if(!this.bitmap)return this.genBitmap(),!1}else{const i=this.source;if(yi&&i instanceof HTMLImageElement&&(!i.complete||i.naturalWidth===0))return!1}const t=super.upload(e);return this.preserveBitmap&&this.bitmap&&(this.bitmap.close(),this.bitmap=void 0),t}}class Ws extends _e{constructor(A,e=1,t=1){const i={width:e,height:t,pixels:null};A&&(ArrayBuffer.isView(A)?i.pixels=new Uint8Array(A.buffer):i.pixels=new Uint8Array(A)),super(i)}_updateProperty(A,e,t,i){switch(A){case"width":this.source.width=Math.round(this.width*this.pixelRatio);break;case"height":this.source.height=Math.round(this.height*this.pixelRatio);break;case"pixelRatio":this.source.width=Math.round(this.width*this.pixelRatio),this.source.height=Math.round(this.height*this.pixelRatio);break}super._updateProperty(A,e,t,i)}}var hg=Object.defineProperty,ya=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&hg(A,e,i),i};function cg(r){return{autoLoad:!!((r==null?void 0:r.autoLoad)??!0),autoPlay:!!((r==null?void 0:r.autoPlay)??!1),fps:Number((r==null?void 0:r.fps)??0),crossorigin:(r==null?void 0:r.crossorigin)??null,loop:!!((r==null?void 0:r.loop)??!1),muted:!!((r==null?void 0:r.muted)??!1),playsinline:!!((r==null?void 0:r.playsinline)??!0)}}const qs=(NA=class extends _e{constructor(e,t){const i=cg(t);if(!Oo(e)){typeof e=="string"&&(e=[e]);const s=e[0].src||e[0],n=document.createElement("video");i.autoLoad&&n.setAttribute("preload","auto"),i.playsinline&&(n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline","")),i.muted&&(n.setAttribute("muted",""),n.muted=!0),i.loop&&n.setAttribute("loop",""),i.autoPlay&&n.setAttribute("autoplay",""),Vo(n,s,i.crossorigin);for(let o=0;o<e.length;++o){let{src:a,mime:l}=e[o];if(a=a||e[o],a.startsWith("data:"))l=a.slice(5,a.indexOf(";"));else if(!a.startsWith("blob:")){const c=a.split("?").shift().toLowerCase(),f=c.slice(c.lastIndexOf(".")+1);l=l||NA.mimeTypes.get(f)||`video/${f}`}const h=document.createElement("source");h.src=a,l&&(h.type=l),n.appendChild(h)}e=n}super(e);u(this,"_spf",0);u(this,"_autoPlay",!1);u(this,"_sourceLoad");u(this,"_nextTime",0);u(this,"_connected",!1);u(this,"_requestId");u(this,"_resolve");u(this,"_reject");u(this,"_onPlayStart",()=>{this.valid||this._onCanPlay(),this._setupAutoUpdate()});u(this,"_onPlayStop",()=>{this._setupAutoUpdate()});u(this,"_onCanPlay",()=>{const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this._nextTime=0,this._updateSize(),this.requestUpload(),this._nextTime=0,!t&&this._resolve&&(this._resolve(this),this._sourceLoad=void 0,this._resolve=void 0,this._reject=void 0),this.isPlaying?this._onPlayStart():this._autoPlay&&e.play()});u(this,"_onError",e=>{this.source.removeEventListener("error",this._onError,!0),this.emit("error",e),this._reject&&(this._reject(e),this._reject=void 0,this._resolve=void 0)});u(this,"_onSeeked",()=>{this.autoUpdate&&!this.isPlaying&&(this._nextTime=0,this.requestUpload(),this._nextTime=0)});u(this,"_videoFrameRequestCallback",()=>{this.requestUpload(),this._requestId=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback)});u(this,"requestUpload",()=>{const e=Math.floor(Se.elapsed*this.source.playbackRate);this._nextTime-=e,(!this._spf||this._nextTime<=0)&&(super.requestUpload(),this._nextTime=this._spf||0)});this.fps=i.fps,this._autoPlay=i.autoPlay,i.autoPlay&&this.load(),this._setupAutoUpdate()}get isReady(){return this.source.readyState>2}get isPlaying(){return!this.source.paused&&!this.source.ended&&this.isReady}get duration(){return this.source.duration}get seeking(){return this.source.seeking}get currentTime(){return this.source.currentTime}set currentTime(e){this.source.currentTime=e}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"fps":this._spf=t?Math.floor(1e3/t):0,this._setupAutoUpdate();break;case"autoUpdate":this._setupAutoUpdate();break}}_setupAutoUpdate(){this.autoUpdate&&this.isPlaying?!this.fps&&this.source.requestVideoFrameCallback?(this._connected&&(Se.off(this.requestUpload),this._connected=!1,this._nextTime=0),this._requestId===void 0&&(this._requestId=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._requestId!==void 0&&(this.source.cancelVideoFrameCallback(this._requestId),this._requestId=void 0),this._connected||(Se.on(this.requestUpload),this._connected=!0,this._nextTime=0)):(this._requestId!==void 0&&(this.source.cancelVideoFrameCallback(this._requestId),this._requestId=void 0),this._connected&&(Se.off(this.requestUpload),this._connected=!1,this._nextTime=0))}async load(){if(!this._sourceLoad){const e=this.source;(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this.isReady?this._onCanPlay():(e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlay),e.addEventListener("error",this._onError,!0)),this._sourceLoad=new Promise((t,i)=>{this.valid?(this._sourceLoad=void 0,t(this)):(this._resolve=t,this._reject=i,e.load())})}return this._sourceLoad}free(){this._setupAutoUpdate();const e=this.source;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load())}},u(NA,"mimeTypes",new Map(Object.entries({ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"}))),NA);ya([Be({default:!0})],qs.prototype,"autoUpdate"),ya([Be({default:0})],qs.prototype,"fps");let ma=qs;class Xs extends Ws{}class wa extends Array{constructor(...e){super();u(this,"front",[]);u(this,"back",[]);this.set(e)}get internal(){return[...this.front,...this,...this.back]}set(e){return this.front.length=0,this.length=0,this.back.length=0,e.forEach(t=>{switch(t.internalMode){case"front":this.front.push(t);break;case"default":this.push(t);break;case"back":this.back.push(t);break}}),this}getInternal(e){switch(e){case"front":return this.front;case"default":return this;case"back":return this.back;default:throw new Error(`Unknown internal mode: ${e}`)}}toJSON(){return[...this]}}var gg=Object.defineProperty,ug=Object.getOwnPropertyDescriptor,sA=(r,A,e,t)=>{for(var i=t>1?void 0:t?ug(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&gg(A,e,i),i};const va={};function fg(r){let A=va[r]??0;return A++,va[r]=A,A}g.Node=class extends iA{constructor(e,t=[]){super();u(this,"_readyed",!1);u(this,"_tree");u(this,"_parent");u(this,"_children",new wa);this._onTreeEnter=this._onTreeEnter.bind(this),this._onTreeExit=this._onTreeExit.bind(this),this._onParented=this._onParented.bind(this),this._onUnparented=this._onUnparented.bind(this),this._onReady=this._onReady.bind(this),this._onProcess=this._onProcess.bind(this),this.setProperties({name:`${this.tag}:${fg(this.tag)}`,...e}).append(t),this.on("treeEnter",this._onTreeEnter).on("treeExit",this._onTreeExit).on("parented",this._onParented).on("unparented",this._onUnparented).on("ready",this._onReady).on("process",this._onProcess)}setProperties(e){if(e){const{meta:t,...i}=e;if(t)for(const s in t)this.meta[s]=t[s];super.setProperties(i)}return this}getName(){return this.name}setName(e){return this.name=e,this}get tree(){return this.getTree()}set tree(e){this.setTree(e)}getTree(){return this._tree}getViewport(){var e;return(e=this._tree)==null?void 0:e.getCurrentViewport()}getWindow(){var e;return(e=this._tree)==null?void 0:e.root}isInsideTree(){return!!this._tree}setTree(e){const t=this._tree;if(!(e!=null&&e.is(t))){t&&this.emit("treeExit",t),this._tree=e,e&&this.emit("treeEnter",e);const i=this._children.internal;for(let s=i.length,n=0;n<s;n++){const o=i[n];!e&&this.emit("childExitingTree",o),o.setTree(e),e&&this.emit("childEnteredTree",o)}e&&(this.emit("treePostEnter",e),this._readyed||(this._readyed=!0,this.emit("ready")))}return this}get parent(){return this._parent}set parent(e){this.setParent(e)}hasParent(){return!!this._parent}getParent(){return this._parent}setParent(e){var t;if(!((t=this._parent)!=null&&t.is(e))){const i=this._parent;i&&this.emit("unparented",i),this._parent=e,e&&this.emit("parented",e),this.setTree(e==null?void 0:e._tree)}return this}get children(){return this._children}set children(e){e instanceof wa?this._children=e:this._children.set(e)}get siblingIndex(){return this.getIndex()}set siblingIndex(e){var t;(t=this._parent)==null||t.moveChild(this,e)}get previousSibling(){var e;return(e=this._parent)==null?void 0:e.children[this.getIndex()-1]}get nextSibling(){var e;return(e=this._parent)==null?void 0:e.children[this.getIndex()+1]}get firstSibling(){var e;return(e=this._parent)==null?void 0:e.children[0]}get lastSibling(){var t;const e=(t=this._parent)==null?void 0:t.children;return e?e[e.length-1]:void 0}canProcess(){var e;if(!this._tree)return!1;switch(this.processMode){case"inherit":return((e=this._parent)==null?void 0:e.canProcess())??!0;case"pausable":return!this._tree.processPaused;case"when_paused":return this._tree.processPaused;case"always":return!0;case"disabled":default:return!1}}canRender(){var e;if(!this._tree)return!1;switch(this.renderMode){case"inherit":return((e=this._parent)==null?void 0:e.canRender())??!0;case"always":return!0;case"disabled":default:return!1}}_update(e){super._update(e)}_updateProperty(e,t,i,s){super._updateProperty(e,t,i,s)}_onTreeEnter(e){this._treeEnter(e),this.emit("treeEntered",e)}_onTreeExit(e){this.emit("treeExiting",e),this._treeExit(e),this.emit("treeExited",e)}_onParented(e){this._parented(e)}_onUnparented(e){this._unparented(e)}_onReady(){this._ready()}_onProcess(e=0){const t=this._tree,i=this.canRender(),s=this.canProcess(),n=[],o=[];this._children.internal.forEach(l=>{switch(l.processSortMode){case"default":o.push(l);break;case"parent_before":n.push(l);break}}),n.forEach(l=>{l.emit("process",e)}),s&&(t==null||t.emit("nodeProcessing",this),this.emit("processing",e),this._process(e));let a;if(i){const l=t.renderStack.push(this);a=t.renderStack.currentCall,t.renderStack.currentCall=l}if(this.mask instanceof g.Node)this.getNode("__$mask")||(this.mask.processMode="disabled",this.appendChild(this.mask,"front"));else{const l=this.getNode("__$mask");l&&this.removeChild(l)}o.forEach(l=>{l.emit("process",e)}),i&&(t.renderStack.currentCall=a),s&&(this.emit("processed",e),t==null||t.emit("nodeProcessed",this))}render(e,t){const i=this.mask;i&&(e.flush(),e.mask.push(this,i)),this._render(e),t==null||t(),i&&(e.flush(),e.mask.pop(this))}input(e,t){this._children.internal.forEach(i=>i.input(e,t)),this._input(e,t)}getIndex(){var e;return((e=this._parent)==null?void 0:e.children.getInternal(this.internalMode).indexOf(this))??0}getNode(e){return this._children.internal.find(t=>t.name===e)}removeNode(e){var t;(t=this.getNode(e))==null||t.remove()}addSibling(e){return this.is(e)||!this.hasParent()||e.hasParent()?this:(e.internalMode=this.internalMode,this._parent.moveChild(e,this.getIndex()+1),this)}prepend(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{this.moveChild(i,0)})}append(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{this.appendChild(i)})}before(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{var s;(s=this._parent)==null||s.moveChild(i,this.getIndex())})}after(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{var s;(s=this._parent)==null||s.moveChild(i,this.getIndex()+1)})}insertBefore(e,t){return!t.hasParent()||!this.is(t.parent)||this.moveChild(e,t.getIndex()),e}appendChild(e,t=e.internalMode){if(this.is(e)||e.hasParent())return e;switch(t){case"front":this._children.front.push(e);break;case"default":this._children.push(e);break;case"back":this._children.back.push(e);break}return e.internalMode=t,e.setParent(this),this.emit("appendChild",e),e}moveChild(e,t,i=e.internalMode){if(this.is(e)||e.hasParent()&&!this.is(e.parent))return this;const s=this._children.getInternal(e.internalMode),n=s.indexOf(e),o=this._children.getInternal(i);return(e.internalMode!==i||t!==n)&&(n>-1&&s.splice(n,1),e.setParent(this),t>-1&&t<o.length?o.splice(t,0,e):o.push(e),n>-1?this.emit("moveChild",e,t,n):this.emit("appendChild",e)),e.internalMode=i,this}removeChild(e){const t=e.getIndex();return this.is(e.parent)&&t>-1&&(this._children.getInternal(e.internalMode).splice(t,1),e.setParent(void 0),this.emit("removeChild",e,t)),e}removeChildren(){this._children.forEach(e=>this.removeChild(e))}remove(){var e;(e=this._parent)==null||e.removeChild(this)}forEachChild(e){return this._children.forEach(e),this}forEachDescendant(e){return this._children.forEach(t=>{e(t),t.forEachDescendant(e)}),this}_ready(){}_treeEnter(e){}_treeExit(e){}_parented(e){}_unparented(e){}_process(e){}_input(e,t){}_render(e){}clone(){return new this.constructor(this.toJSON().props,this._children.internal)}toJSON(){return{tag:this.tag,props:super.toJSON(),children:[...this._children.map(e=>e.toJSON())]}}static parse(e){if(Array.isArray(e))return e.map(a=>this.parse(a));const{tag:t,props:i,children:s}=e,n=fr.get(t)??g.Node,o=new n(i);return s==null||s.forEach(a=>o.appendChild(this.parse(a))),o}},sA([M()],g.Node.prototype,"name",2),sA([M()],g.Node.prototype,"mask",2),sA([M({default:"inherit"})],g.Node.prototype,"processMode",2),sA([M({default:"default"})],g.Node.prototype,"processSortMode",2),sA([M({default:"inherit"})],g.Node.prototype,"renderMode",2),sA([M({default:"default"})],g.Node.prototype,"internalMode",2),sA([M({default:()=>({})})],g.Node.prototype,"meta",2),g.Node=sA([ne("Node")],g.Node);var dg=Object.defineProperty,Ig=Object.getOwnPropertyDescriptor,wi=(r,A,e,t)=>{for(var i=t>1?void 0:t?Ig(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&dg(A,e,i),i};g.TimelineNode=class extends g.Node{constructor(e,t=[]){super();u(this,"computedDuration",0);u(this,"_currentTime",0);u(this,"_startTime",0);this.setProperties(e).append(t)}get timeline(){var e;return(e=this._tree)==null?void 0:e.timeline}get timelineCurrentTime(){var e;return((e=this.timeline)==null?void 0:e.currentTime)??0}get parentStartTime(){var e;return((e=this._parent)==null?void 0:e.startTime)??0}get currentTime(){return zt(0,this._currentTime,this.computedDuration)}get startTime(){return this._startTime}set startTime(e){this.delay=e-this.parentStartTime,this._updateCurrentTime(!0)}get endTime(){return this._startTime+this.computedDuration}get currentTimeProgress(){return this.computedDuration?zt(0,this._currentTime/this.computedDuration,1):0}isInsideTimeRange(){const e=this._currentTime;return this.computedDuration?e>=0&&e<=this.computedDuration:e>=0}_updateCurrentTime(e=!1){if(e||!this.paused){const t=this._parent;this._startTime=this.delay+this.parentStartTime,this.computedDuration=t!=null&&t.computedDuration?Math.min(this._startTime+this.duration,t.endTime)-this._startTime:this.duration,this._currentTime=this.timelineCurrentTime-this._startTime,this.emit("updateCurrentTime",this._currentTime),this.insideTimeRange=this.isInsideTimeRange()}}_process(e){super._process(e),this._updateCurrentTime()}},wi([M({default:0})],g.TimelineNode.prototype,"delay",2),wi([M({default:0})],g.TimelineNode.prototype,"duration",2),wi([M({default:!1})],g.TimelineNode.prototype,"paused",2),wi([Be()],g.TimelineNode.prototype,"insideTimeRange",2),g.TimelineNode=wi([ne("TimelineNode")],g.TimelineNode);var pg=Object.defineProperty,Eg=Object.getOwnPropertyDescriptor,vi=(r,A,e,t)=>{for(var i=t>1?void 0:t?Eg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&pg(A,e,i),i};g.Viewport=class extends g.Node{constructor(e=!1){super();u(this,"_projection",new Zo);u(this,"_framebufferIndex",0);u(this,"_framebuffers",[{texture:new Xs,needsUpload:!1},{texture:new Xs,needsUpload:!1}]);this.flipY=e,this._projection.flipY(e)}get valid(){return!!(this.width&&this.height)}get framebuffer(){return this._framebuffers[this._framebufferIndex]}get texture(){return this.framebuffer.texture}_glFramebufferOptions(e){const{width:t,height:i}=this,{pixelRatio:s}=e;return this._framebuffers.forEach(n=>{const o=n.texture;o.width=t,o.height=i,o.pixelRatio=s,o.upload(e)}),{width:t,height:i,colorTextures:[this.texture._glTexture(e)]}}_glFramebuffer(e){return e.getRelated(this.framebuffer,()=>e.framebuffer.create(this._glFramebufferOptions(e)))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"x":case"y":this.requestUpload(),this._projection.translate(this.x,this.y),this.emit("updateRect");break;case"width":case"height":this.requestUpload(),this._projection.resize(this.width,this.height),this.emit("updateRect");break}}requestUpload(){this._framebuffers.forEach(e=>e.needsUpload=!0)}resize(e,t){this.width=e,this.height=t}upload(e){const t=this.framebuffer;return t.needsUpload&&this.valid?(t.needsUpload=!1,e.framebuffer.update(this._glFramebuffer(e),this._glFramebufferOptions(e)),!0):!1}activate(e){var t;return this.valid?(e.flush(),(t=this._tree)==null||t.setCurrentViewport(this),this.upload(e),e.framebuffer.bind(this._glFramebuffer(e)),!0):!1}redraw(e,t){if(this.valid){e.flush();const i=this.framebuffer.texture;return this._framebufferIndex=(this._framebufferIndex+1)%this._framebuffers.length,this.activate(e),e.clear(),i.activate(e,0),t(),!0}return!1}activateWithCopy(e,t){this.resize(t.width,t.height),this.activate(e)&&(e.clear(),t.texture.activate(e,0),fe.draw(e,JA.instance,{sampler:0}))}render(e,t){var s,n;const i=(s=this._tree)==null?void 0:s.getCurrentViewport();this.activate(e),e.clear(),super.render(e,t),e.flush(),i?i.activate(e):(e.framebuffer.bind(null),(n=this._tree)==null||n.setCurrentViewport(void 0))}getRect(){return new Ys(this.x,this.y,this.width,this.height)}toProjectionArray(e=!1){return this._projection.toArray(e)}},vi([M({default:0})],g.Viewport.prototype,"x",2),vi([M({default:0})],g.Viewport.prototype,"y",2),vi([M({default:0})],g.Viewport.prototype,"width",2),vi([M({default:0})],g.Viewport.prototype,"height",2),g.Viewport=vi([ne("Viewport")],g.Viewport);var Bg=Object.defineProperty,Cg=Object.getOwnPropertyDescriptor,_i=(r,A,e,t)=>{for(var i=t>1?void 0:t?Cg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Bg(A,e,i),i};g.Effect=class extends g.TimelineNode{constructor(e,t=[]){super();u(this,"viewport1",new g.Viewport);u(this,"viewport2",new g.Viewport);u(this,"_renderId",0);u(this,"_renderViewport");u(this,"_previousSibling");u(this,"_nextSibling");this._onProcessing=this._onProcessing.bind(this),this._onNodeProcessed=this._onNodeProcessed.bind(this),this.setProperties(e).append(t)}get _effectMode(){return this.effectMode??"parent"}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"glsl":{const n=new Br(t);!this.effectMode&&n.has.transition&&(this.effectMode="transition"),this.material=n;break}case"glslSrc":{t?Gt.text.load(t).then(n=>this.glsl=n):this.glsl="";break}}}_treeEnter(e){e.on("processing",this._onProcessing),e.on("nodeProcessed",this._onNodeProcessed),this.viewport1.setTree(e),this.viewport2.setTree(e)}_treeExit(e){e.off("processing",this._onProcessing),e.off("nodeProcessed",this._onNodeProcessed),this.viewport1.setTree(void 0),this.viewport2.setTree(void 0)}_onProcessing(){if(this.canProcess())switch(this._updateCurrentTime(),this._effectMode){case"transition":this._previousSibling=this.previousSibling,this._nextSibling=this.nextSibling;break;default:this._previousSibling=void 0,this._nextSibling=void 0;break}}_onNodeProcessed(e){var i;if(!this.canProcess()||!this.isInsideTimeRange())return;const t=(i=this._tree)==null?void 0:i.renderStack;if(t)switch(this._effectMode){case"transition":e.is(this._previousSibling)?(this._previousSibling=void 0,t.push(this)):e.is(this._nextSibling)&&(this._nextSibling=void 0,t.push(this));break}}_processParent(){var o,a;const e=(o=this._tree)==null?void 0:o.renderStack;if(!e)return;const t=(a=e.currentCall)==null?void 0:a.parentCall;if(!t)return;const i=t.calls;let s,n;i.forEach((l,h)=>{var c;(l.renderable.is(this._parent)||(c=l.renderable.parent)!=null&&c.is(this._parent))&&(s=s??h,n=h)}),!(s===void 0||n===void 0)&&(i.splice(n+1,0,e.createCall(this)),i.splice(s,0,e.createCall(this)))}_processChildren(){var e;this._children.length&&(super.emit("process"),(e=this._tree)==null||e.renderStack.push(this))}_onProcess(e=0){if(this.canProcess())switch(this._renderId=0,this._effectMode){case"before":super._onProcess(e);break;case"parent":this._processParent();break;case"children":this._processChildren();break}}_renderBefore(e){var i;const t=(i=this._tree)==null?void 0:i.getCurrentViewport();t&&this.apply(e,t,{redraw:!0})}_renderTransition(e){var t;if(this._renderId%2===0)this._renderViewport=(t=this._tree)==null?void 0:t.getCurrentViewport(),this._renderViewport&&(this.viewport1.activateWithCopy(e,this._renderViewport),this.viewport2.resize(this._renderViewport.width,this._renderViewport.height)),this.viewport2.activate(e),e.clear();else{const i=this._renderViewport;this._renderViewport=void 0,i&&(i.activate(e),e.clear(),this.viewport1.texture.activate(e,0),this.viewport2.texture.activate(e,1),this.apply(e,i,{from:this.viewport1,to:this.viewport2}),e.texture.unbind(0),e.texture.unbind(1))}}_renderParentOrChildren(e){var t;if(this._renderId%2===0)this._renderViewport=(t=this._tree)==null?void 0:t.getCurrentViewport(),this._renderViewport&&this.viewport1.resize(this._renderViewport.width,this._renderViewport.height),this.viewport1.activate(e),e.clear();else{const i=this._renderViewport;this._renderViewport=void 0,i&&(this.viewport1.activate(e),this.apply(e,this.viewport1,{redraw:!0,target:this._effectMode==="parent"?this._parent??void 0:void 0,targetArea:this._parseTargetArea()}),i.activate(e),this.viewport1.texture.activate(e,0),fe.draw(e))}}_parseTargetArea(){if(this._effectMode==="parent"&&this._parent&&"getRect"in this._parent){const e=this._parent.getRect();if(e)return[e.left/this.viewport1.width,e.top/this.viewport1.height,e.width/this.viewport1.width,e.height/this.viewport1.height]}}_render(e){switch(this._effectMode){case"before":this._renderBefore(e);break;case"transition":this._renderTransition(e);break;case"parent":case"children":default:this._renderParentOrChildren(e);break}this._renderId++}apply(e,t,i){this.material&&(i!=null&&i.redraw?t.redraw(e,()=>{fe.draw(e,this.material,{from:0,to:1,progress:this.currentTimeProgress,ratio:t.width/t.height})}):fe.draw(e,this.material,{from:0,to:1,progress:this.currentTimeProgress,ratio:i!=null&&i.from?i.from.width/i.from.height:0}))}},_i([Be()],g.Effect.prototype,"material",2),_i([M()],g.Effect.prototype,"effectMode",2),_i([M({default:""})],g.Effect.prototype,"glsl",2),_i([M({default:""})],g.Effect.prototype,"glslSrc",2),g.Effect=_i([ne("Effect")],g.Effect);var _a=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,yg=(r,A,e)=>A in r?_a(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,qt=(r,A,e,t)=>{for(var i=t>1?void 0:t?Qg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&_a(A,e,i),i},mg=(r,A,e)=>yg(r,A+"",e);g.ColorAdjustEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){e.redraw(A,()=>{fe.draw(A,g.ColorAdjustEffect.material,{sampler:0,saturation:this.saturation,contrast:this.contrast,brightness:this.brightness,red:this.red,green:this.green,blue:this.blue,alpha:this.alpha,gamma:Math.max(this.gamma??1,1e-4)})})}},mg(g.ColorAdjustEffect,"material",new Ce({vert:`precision mediump float;
114
+ }`,uniforms:{sampler:0,projectionMatrix:new Float32Array([1,0,0,0,1,0,0,0,1]),modelViewMatrix:new Float32Array([1,0,0,0,1,0,0,0,1]),tint:new Float32Array([1,1,1,1])}})}}u(JA,"_instance");class fe extends Er{static get instance(){return this._instance??(this._instance=new this)}static draw(A,e=JA.instance,t){this.instance.draw(A,e,t)}constructor(){super({vertexAttributes:{position:new ft({buffer:new Wt({data:new Float32Array([-1,-1,1,-1,1,1,-1,1]),dynamic:!1}),size:2,normalized:!1,type:"float"}),uv:new ft({buffer:new Wt({data:new Float32Array([0,0,1,0,1,1,0,1]),dynamic:!1}),size:2,normalized:!1,type:"float"})},indexBuffer:new HA({data:new Uint16Array([0,1,2,0,2,3]),dynamic:!1})})}}u(fe,"_instance");class sg extends Er{constructor(){const e=new Wt({data:new Float32Array,dynamic:!0}),t=new Wt({data:new Float32Array,dynamic:!0});super({vertexAttributes:{position:new ft({buffer:e,size:2,normalized:!1,type:"float"}),uv:new ft({buffer:t,size:2,normalized:!1,type:"float"})},indexBuffer:new HA({data:new Uint16Array,dynamic:!0})});u(this,"positionBuffer");u(this,"uvBuffer");this.positionBuffer=e,this.uvBuffer=t}}var ng=Object.defineProperty,KA=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&ng(A,e,i),i};class _e extends Yt{constructor(e){super();u(this,"_isPowerOfTwo",!1);u(this,"_needsUpload",!1);this.source=e,this._updateSize()}static get EMPTY(){return new this({width:1,height:1,pixels:null})}static get WHITE(){return new this({width:1,height:1,pixels:new Uint8Array([255,255,255,255])})}static get BLACK(){return new this({width:1,height:1,pixels:new Uint8Array([0,0,0,255])})}static get RED(){return new this({width:1,height:1,pixels:new Uint8Array([255,0,0,255])})}static get GREEN(){return new this({width:1,height:1,pixels:new Uint8Array([0,255,0,255])})}static get BLUE(){return new this({width:1,height:1,pixels:new Uint8Array([0,0,255,255])})}get valid(){return!!(this.width&&this.height)}get realWidth(){return Math.round(this.width*this.pixelRatio)}get realHeight(){return Math.round(this.height*this.pixelRatio)}_glTextureOptions(e,t){let i=this.wrapMode;return e.version===1&&!this._isPowerOfTwo&&(i="clamp_to_edge"),{value:this.source,target:"texture_2d",location:0,filterMode:this.filterMode,wrapMode:i,...t}}_glTexture(e,t){return e.getRelated(this,()=>e.texture.create(this._glTextureOptions(e,t)))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"width":case"height":this._updatePOT();break;case"source":this._updateSize();break;case"filterMode":case"wrapMode":case"pixelRatio":this.requestUpload();break}}_updatePOT(){this._isPowerOfTwo=Ps(this.realWidth)&&Ps(this.realHeight),this.requestUpload()}_updateSize(){const e=this.source;"pixels"in e?(this.width=e.width/this.pixelRatio,this.height=e.height/this.pixelRatio):(this.width=Number(e.naturalWidth||e.videoWidth||e.width||0)/this.pixelRatio,this.height=Number(e.naturalHeight||e.videoHeight||e.height||0)/this.pixelRatio),this.requestUpload()}requestUpload(){this._needsUpload=!0}upload(e,t){return this._needsUpload&&this.valid?(this._needsUpload=!1,e.texture.update(this._glTexture(e,t),this._glTextureOptions(e,t)),!0):!1}activate(e,t=0){return this.valid?(e.texture.bind({target:"texture_2d",value:this._glTexture(e,{location:t}),location:t}),this.upload(e,{location:t}),!0):!1}inactivate(e){e.texture.unbind(this._glTexture(e))}free(){No&&this.source instanceof ImageBitmap&&this.source.close()}}KA([Ie()],_e.prototype,"source"),KA([M({default:0})],_e.prototype,"width"),KA([M({default:0})],_e.prototype,"height"),KA([M({default:"linear"})],_e.prototype,"filterMode"),KA([M({default:"clamp_to_edge"})],_e.prototype,"wrapMode"),KA([M({default:1})],_e.prototype,"pixelRatio");class Cr extends Yt{constructor(e){super();u(this,"frames");let t;if(Array.isArray(e))t=e;else if(e instanceof _e)t=[{texture:e,duration:0}];else throw new TypeError("Failed new AnimatedTexture");this.frames=t,this.updateDuration()}updateDuration(){return this.duration=this.frames.reduce((e,t)=>t.duration+e,0),this}free(){this.frames.forEach(e=>{e.texture.free()})}}var og=Object.defineProperty,ag=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&og(A,e,i),i};class YA extends _e{constructor(A=document.createElement("canvas")){super(A)}_updateProperty(A,e,t,i){switch(A){case"width":this.source.width=Math.max(1,Math.ceil(e*this.pixelRatio));break;case"height":this.source.height=Math.max(1,Math.ceil(e*this.pixelRatio));break}super._updateProperty(A,e,t,i)}}ag([M({default:2})],YA.prototype,"pixelRatio");class ya extends _e{constructor(A){const e=new Vt(A);super({width:1,height:1,pixels:new Uint8Array([e.r8,e.g8,e.b8,e.a8])})}}class Qr extends _e{static test(A){return Bi(A)}static linearGradient(A,e,t){const i=document.createElement("canvas");i.width=e,i.height=t;const s=i.getContext("2d");if(!s)throw new Error("Failed to parse linear gradient, get canvas context is null.");let{angle:n=0,stops:o}=A;n-=Math.PI/2;const a=e/2,l=t/2,c=Math.sqrt(e*e+t*t)/2,h=a+c*Math.cos(n+Math.PI),f=l+c*Math.sin(n+Math.PI),I=a+c*Math.cos(n),d=l+c*Math.sin(n),C=s.createLinearGradient(h,f,I,d);o.forEach(x=>{C.addColorStop(x.offset,x.color)}),s.fillStyle=C,s.fillRect(0,0,i.width,i.height);const p=s.getImageData(0,0,i.width,i.height);return{width:p.width,height:p.height,pixels:new Uint8Array(p.data.buffer)}}constructor(A,e,t){super(Qr.linearGradient(A,e,t))}}function lg(r){return{autoLoad:!!((r==null?void 0:r.autoLoad)??!0),useBitmap:!!((r==null?void 0:r.useBitmap)??!0)&&Us,crossorigin:(r==null?void 0:r.crossorigin)??null}}class cg extends _e{constructor(e,t){const i=lg(t);super(e);u(this,"bitmap");u(this,"useBitmap");u(this,"preserveBitmap",!1);u(this,"_loadSource");u(this,"_loadBitmap");const s=e.src,n=s.includes(".svg")||s.startsWith("data:image/svg+xml");this.useBitmap=i.useBitmap&&!n,i.autoLoad&&this.load()}async load(){return this._loadSource||(this._loadSource=new Promise(e=>{this._loadSource=void 0;const t=this.source,i=()=>{t.onload=null,t.onerror=null},s=()=>{i(),this.requestUpload(),this.useBitmap?this.genBitmap().finally(()=>e(this)):e(this)},n=o=>{i(),console.warn(`Failed to load ImageTexture, src: ${t.src}`,o),this.emit("error",o),e(this)};t.complete&&t.src?s():(t.onload=s,t.onerror=n)})),this._loadSource}genBitmap(){if(this._loadBitmap)return this._loadBitmap;if(this.bitmap||!Us)return Promise.resolve(this);const e=this.source,t=!e.crossOrigin||e.crossOrigin==="anonymous";return this._loadBitmap=fetch(e.src,{mode:t?"cors":"no-cors"}).then(i=>i.blob()).then(i=>createImageBitmap(i,0,0,e.width,e.height,{premultiplyAlpha:"premultiply"})).then(i=>(this.bitmap=i,this.requestUpload(),this._loadBitmap=void 0,this)).catch(i=>(console.warn("Failed to genBitmap",i),this)),this._loadBitmap}_glTextureOptions(e){return{...super._glTextureOptions(e),value:this.bitmap??this.source}}upload(e){if(this.useBitmap){if(!this.bitmap)return this.genBitmap(),!1}else{const i=this.source;if(yi&&i instanceof HTMLImageElement&&(!i.complete||i.naturalWidth===0))return!1}const t=super.upload(e);return this.preserveBitmap&&this.bitmap&&(this.bitmap.close(),this.bitmap=void 0),t}}class Ws extends _e{constructor(A,e=1,t=1){const i={width:e,height:t,pixels:null};A&&(ArrayBuffer.isView(A)?i.pixels=new Uint8Array(A.buffer):i.pixels=new Uint8Array(A)),super(i)}_updateProperty(A,e,t,i){switch(A){case"width":this.source.width=Math.round(this.width*this.pixelRatio);break;case"height":this.source.height=Math.round(this.height*this.pixelRatio);break;case"pixelRatio":this.source.width=Math.round(this.width*this.pixelRatio),this.source.height=Math.round(this.height*this.pixelRatio);break}super._updateProperty(A,e,t,i)}}var hg=Object.defineProperty,ma=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&hg(A,e,i),i};function gg(r){return{autoLoad:!!((r==null?void 0:r.autoLoad)??!0),autoPlay:!!((r==null?void 0:r.autoPlay)??!1),fps:Number((r==null?void 0:r.fps)??0),crossorigin:(r==null?void 0:r.crossorigin)??null,loop:!!((r==null?void 0:r.loop)??!1),muted:!!((r==null?void 0:r.muted)??!1),playsinline:!!((r==null?void 0:r.playsinline)??!0)}}const qs=(NA=class extends _e{constructor(e,t){const i=gg(t);if(!Ho(e)){typeof e=="string"&&(e=[e]);const s=e[0].src||e[0],n=document.createElement("video");i.autoLoad&&n.setAttribute("preload","auto"),i.playsinline&&(n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline","")),i.muted&&(n.setAttribute("muted",""),n.muted=!0),i.loop&&n.setAttribute("loop",""),i.autoPlay&&n.setAttribute("autoplay",""),zo(n,s,i.crossorigin);for(let o=0;o<e.length;++o){let{src:a,mime:l}=e[o];if(a=a||e[o],a.startsWith("data:"))l=a.slice(5,a.indexOf(";"));else if(!a.startsWith("blob:")){const h=a.split("?").shift().toLowerCase(),f=h.slice(h.lastIndexOf(".")+1);l=l||NA.mimeTypes.get(f)||`video/${f}`}const c=document.createElement("source");c.src=a,l&&(c.type=l),n.appendChild(c)}e=n}super(e);u(this,"_spf",0);u(this,"_autoPlay",!1);u(this,"_sourceLoad");u(this,"_nextTime",0);u(this,"_connected",!1);u(this,"_requestId");u(this,"_resolve");u(this,"_reject");u(this,"_onPlayStart",()=>{this.valid||this._onCanPlay(),this._setupAutoUpdate()});u(this,"_onPlayStop",()=>{this._setupAutoUpdate()});u(this,"_onCanPlay",()=>{const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this._nextTime=0,this._updateSize(),this.requestUpload(),this._nextTime=0,!t&&this._resolve&&(this._resolve(this),this._sourceLoad=void 0,this._resolve=void 0,this._reject=void 0),this.isPlaying?this._onPlayStart():this._autoPlay&&e.play()});u(this,"_onError",e=>{this.source.removeEventListener("error",this._onError,!0),this.emit("error",e),this._reject&&(this._reject(e),this._reject=void 0,this._resolve=void 0)});u(this,"_onSeeked",()=>{this.autoUpdate&&!this.isPlaying&&(this._nextTime=0,this.requestUpload(),this._nextTime=0)});u(this,"_videoFrameRequestCallback",()=>{this.requestUpload(),this._requestId=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback)});u(this,"requestUpload",()=>{const e=Math.floor(Se.elapsed*this.source.playbackRate);this._nextTime-=e,(!this._spf||this._nextTime<=0)&&(super.requestUpload(),this._nextTime=this._spf||0)});this.fps=i.fps,this._autoPlay=i.autoPlay,i.autoPlay&&this.load(),this._setupAutoUpdate()}get isReady(){return this.source.readyState>2}get isPlaying(){return!this.source.paused&&!this.source.ended&&this.isReady}get duration(){return this.source.duration}get seeking(){return this.source.seeking}get currentTime(){return this.source.currentTime}set currentTime(e){this.source.currentTime=e}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"fps":this._spf=t?Math.floor(1e3/t):0,this._setupAutoUpdate();break;case"autoUpdate":this._setupAutoUpdate();break}}_setupAutoUpdate(){this.autoUpdate&&this.isPlaying?!this.fps&&this.source.requestVideoFrameCallback?(this._connected&&(Se.off(this.requestUpload),this._connected=!1,this._nextTime=0),this._requestId===void 0&&(this._requestId=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback))):(this._requestId!==void 0&&(this.source.cancelVideoFrameCallback(this._requestId),this._requestId=void 0),this._connected||(Se.on(this.requestUpload),this._connected=!0,this._nextTime=0)):(this._requestId!==void 0&&(this.source.cancelVideoFrameCallback(this._requestId),this._requestId=void 0),this._connected&&(Se.off(this.requestUpload),this._connected=!1,this._nextTime=0))}async load(){if(!this._sourceLoad){const e=this.source;(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0),e.addEventListener("play",this._onPlayStart),e.addEventListener("pause",this._onPlayStop),e.addEventListener("seeked",this._onSeeked),this.isReady?this._onCanPlay():(e.addEventListener("canplay",this._onCanPlay),e.addEventListener("canplaythrough",this._onCanPlay),e.addEventListener("error",this._onError,!0)),this._sourceLoad=new Promise((t,i)=>{this.valid?(this._sourceLoad=void 0,t(this)):(this._resolve=t,this._reject=i,e.load())})}return this._sourceLoad}free(){this._setupAutoUpdate();const e=this.source;e&&(e.removeEventListener("play",this._onPlayStart),e.removeEventListener("pause",this._onPlayStop),e.removeEventListener("seeked",this._onSeeked),e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay),e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load())}},u(NA,"mimeTypes",new Map(Object.entries({ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"}))),NA);ma([Ie({default:!0})],qs.prototype,"autoUpdate"),ma([Ie({default:0})],qs.prototype,"fps");let wa=qs;class Xs extends Ws{}class va extends Array{constructor(...e){super();u(this,"front",[]);u(this,"back",[]);this.set(e)}get internal(){return[...this.front,...this,...this.back]}set(e){return this.front.length=0,this.length=0,this.back.length=0,e.forEach(t=>{switch(t.internalMode){case"front":this.front.push(t);break;case"default":this.push(t);break;case"back":this.back.push(t);break}}),this}getInternal(e){switch(e){case"front":return this.front;case"default":return this;case"back":return this.back;default:throw new Error(`Unknown internal mode: ${e}`)}}toJSON(){return[...this]}}var ug=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,sA=(r,A,e,t)=>{for(var i=t>1?void 0:t?fg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ug(A,e,i),i};const _a={};function dg(r){let A=_a[r]??0;return A++,_a[r]=A,A}g.Node=class extends iA{constructor(e,t=[]){super();u(this,"_readyed",!1);u(this,"_tree");u(this,"_parent");u(this,"_children",new va);this._onTreeEnter=this._onTreeEnter.bind(this),this._onTreeExit=this._onTreeExit.bind(this),this._onParented=this._onParented.bind(this),this._onUnparented=this._onUnparented.bind(this),this._onReady=this._onReady.bind(this),this._onProcess=this._onProcess.bind(this),this.setProperties({name:`${this.tag}:${dg(this.tag)}`,...e}).append(t),this.on("treeEnter",this._onTreeEnter).on("treeExit",this._onTreeExit).on("parented",this._onParented).on("unparented",this._onUnparented).on("ready",this._onReady).on("process",this._onProcess)}setProperties(e){if(e){const{meta:t,...i}=e;if(t)for(const s in t)this.meta[s]=t[s];super.setProperties(i)}return this}getName(){return this.name}setName(e){return this.name=e,this}get tree(){return this.getTree()}set tree(e){this.setTree(e)}getTree(){return this._tree}getViewport(){var e;return(e=this._tree)==null?void 0:e.getCurrentViewport()}getWindow(){var e;return(e=this._tree)==null?void 0:e.root}isInsideTree(){return!!this._tree}setTree(e){const t=this._tree;if(!(e!=null&&e.is(t))){t&&this.emit("treeExit",t),this._tree=e,e&&this.emit("treeEnter",e);const i=this._children.internal;for(let s=i.length,n=0;n<s;n++){const o=i[n];!e&&this.emit("childExitingTree",o),o.setTree(e),e&&this.emit("childEnteredTree",o)}e&&(this.emit("treePostEnter",e),this._readyed||(this._readyed=!0,this.emit("ready")))}return this}get parent(){return this._parent}set parent(e){this.setParent(e)}hasParent(){return!!this._parent}getParent(){return this._parent}setParent(e){var t;if(!((t=this._parent)!=null&&t.is(e))){const i=this._parent;i&&this.emit("unparented",i),this._parent=e,e&&this.emit("parented",e),this.setTree(e==null?void 0:e._tree)}return this}get children(){return this._children}set children(e){e instanceof va?this._children=e:this._children.set(e)}getChild(e=0){return this._children[e]}get siblingIndex(){return this.getIndex()}set siblingIndex(e){var t;(t=this._parent)==null||t.moveChild(this,e)}get previousSibling(){var e;return(e=this._parent)==null?void 0:e.children[this.getIndex()-1]}get nextSibling(){var e;return(e=this._parent)==null?void 0:e.children[this.getIndex()+1]}get firstSibling(){var e;return(e=this._parent)==null?void 0:e.children[0]}get lastSibling(){var t;const e=(t=this._parent)==null?void 0:t.children;return e?e[e.length-1]:void 0}canProcess(){var e;if(!this._tree)return!1;switch(this.processMode){case"inherit":return((e=this._parent)==null?void 0:e.canProcess())??!0;case"pausable":return!this._tree.processPaused;case"when_paused":return this._tree.processPaused;case"always":return!0;case"disabled":default:return!1}}canRender(){var e;if(!this._tree)return!1;switch(this.renderMode){case"inherit":return((e=this._parent)==null?void 0:e.canRender())??!0;case"always":return!0;case"disabled":default:return!1}}_update(e){super._update(e)}_updateProperty(e,t,i,s){super._updateProperty(e,t,i,s)}_onTreeEnter(e){this._treeEnter(e),this.emit("treeEntered",e)}_onTreeExit(e){this.emit("treeExiting",e),this._treeExit(e),this.emit("treeExited",e)}_onParented(e){this._parented(e)}_onUnparented(e){this._unparented(e)}_onReady(){this._ready()}_onProcess(e=0){const t=this._tree,i=this.canRender(),s=this.canProcess(),n=[],o=[];this._children.internal.forEach(l=>{switch(l.processSortMode){case"default":o.push(l);break;case"parent_before":n.push(l);break}}),n.forEach(l=>{l.emit("process",e)}),s&&(t==null||t.emit("nodeProcessing",this),this.emit("processing",e),this._process(e));let a;if(i){const l=t.renderStack.push(this);a=t.renderStack.currentCall,t.renderStack.currentCall=l}if(this.mask instanceof g.Node)this.getNode("__$mask")||(this.mask.processMode="disabled",this.appendChild(this.mask,"front"));else{const l=this.getNode("__$mask");l&&this.removeChild(l)}o.forEach(l=>{l.emit("process",e)}),i&&(t.renderStack.currentCall=a),s&&(this.emit("processed",e),t==null||t.emit("nodeProcessed",this))}render(e,t){const i=this.mask;i&&(e.flush(),e.mask.push(this,i)),this._render(e),t==null||t(),i&&(e.flush(),e.mask.pop(this))}input(e,t){this._children.internal.forEach(i=>i.input(e,t)),this._input(e,t)}getIndex(){var e;return((e=this._parent)==null?void 0:e.children.getInternal(this.internalMode).indexOf(this))??0}getNode(e){return this._children.internal.find(t=>t.name===e)}removeNode(e){var t;(t=this.getNode(e))==null||t.remove()}addSibling(e){return this.is(e)||!this.hasParent()||e.hasParent()?this:(e.internalMode=this.internalMode,this._parent.moveChild(e,this.getIndex()+1),this)}prepend(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{this.moveChild(i,0)})}append(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{this.appendChild(i)})}before(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{var s;(s=this._parent)==null||s.moveChild(i,this.getIndex())})}after(...e){let t;Array.isArray(e[0])?t=e[0]:t=e,t.forEach(i=>{var s;(s=this._parent)==null||s.moveChild(i,this.getIndex()+1)})}insertBefore(e,t){return!t.hasParent()||!this.is(t.parent)||this.moveChild(e,t.getIndex()),e}appendChild(e,t=e.internalMode){if(this.is(e)||e.hasParent())return e;switch(t){case"front":this._children.front.push(e);break;case"default":this._children.push(e);break;case"back":this._children.back.push(e);break}return e.internalMode=t,e.setParent(this),this.emit("appendChild",e),e}moveChild(e,t,i=e.internalMode){if(this.is(e)||e.hasParent()&&!this.is(e.parent))return this;const s=this._children.getInternal(e.internalMode),n=s.indexOf(e),o=this._children.getInternal(i);return(e.internalMode!==i||t!==n)&&(n>-1&&s.splice(n,1),e.setParent(this),t>-1&&t<o.length?o.splice(t,0,e):o.push(e),n>-1?this.emit("moveChild",e,t,n):this.emit("appendChild",e)),e.internalMode=i,this}removeChild(e){const t=e.getIndex();return this.is(e.parent)&&t>-1&&(this._children.getInternal(e.internalMode).splice(t,1),e.setParent(void 0),this.emit("removeChild",e,t)),e}removeChildren(){this._children.forEach(e=>this.removeChild(e))}remove(){var e;(e=this._parent)==null||e.removeChild(this)}forEachChild(e){return this._children.forEach(e),this}forEachDescendant(e){return this._children.forEach(t=>{e(t),t.forEachDescendant(e)}),this}forEachAncestor(e){const t=this.parent;return t&&(e(t),t.forEachAncestor(e)),this}_ready(){}_treeEnter(e){}_treeExit(e){}_parented(e){}_unparented(e){}_process(e){}_input(e,t){}_render(e){}clone(){return new this.constructor(this.toJSON().props,this._children.internal)}toJSON(){return{tag:this.tag,props:super.toJSON(),children:[...this._children.map(e=>e.toJSON())]}}static parse(e){if(Array.isArray(e))return e.map(a=>this.parse(a));const{tag:t,props:i,children:s}=e,n=fr.get(t)??g.Node,o=new n(i);return s==null||s.forEach(a=>o.appendChild(this.parse(a))),o}},sA([M()],g.Node.prototype,"name",2),sA([M()],g.Node.prototype,"mask",2),sA([M({default:"inherit"})],g.Node.prototype,"processMode",2),sA([M({default:"default"})],g.Node.prototype,"processSortMode",2),sA([M({default:"inherit"})],g.Node.prototype,"renderMode",2),sA([M({default:"default"})],g.Node.prototype,"internalMode",2),sA([M({default:()=>({})})],g.Node.prototype,"meta",2),g.Node=sA([ne("Node")],g.Node);var Ig=Object.defineProperty,pg=Object.getOwnPropertyDescriptor,wi=(r,A,e,t)=>{for(var i=t>1?void 0:t?pg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ig(A,e,i),i};g.TimelineNode=class extends g.Node{constructor(e,t=[]){super();u(this,"computedDuration",0);u(this,"_currentTime",0);u(this,"_startTime",0);this.setProperties(e).append(t)}get timeline(){var e;return(e=this._tree)==null?void 0:e.timeline}get timelineCurrentTime(){var e;return((e=this.timeline)==null?void 0:e.currentTime)??0}get parentStartTime(){var e;return((e=this._parent)==null?void 0:e.startTime)??0}get currentTime(){return zt(0,this._currentTime,this.computedDuration)}get startTime(){return this._startTime}set startTime(e){this.delay=e-this.parentStartTime,this._updateCurrentTime(!0)}get endTime(){return this._startTime+this.computedDuration}get currentTimeProgress(){return this.computedDuration?zt(0,this._currentTime/this.computedDuration,1):0}isInsideTimeRange(){const e=this._currentTime;return this.computedDuration?e>=0&&e<=this.computedDuration:e>=0}_updateCurrentTime(e=!1){if(e||!this.paused){const t=this._parent;this._startTime=this.delay+this.parentStartTime,this.computedDuration=t!=null&&t.computedDuration?Math.min(this._startTime+this.duration,t.endTime)-this._startTime:this.duration,this._currentTime=this.timelineCurrentTime-this._startTime,this.emit("updateCurrentTime",this._currentTime),this.insideTimeRange=this.isInsideTimeRange()}}_process(e){super._process(e),this._updateCurrentTime()}},wi([M({default:0})],g.TimelineNode.prototype,"delay",2),wi([M({default:0})],g.TimelineNode.prototype,"duration",2),wi([M({default:!1})],g.TimelineNode.prototype,"paused",2),wi([Ie()],g.TimelineNode.prototype,"insideTimeRange",2),g.TimelineNode=wi([ne("TimelineNode")],g.TimelineNode);var Eg=Object.defineProperty,Bg=Object.getOwnPropertyDescriptor,vi=(r,A,e,t)=>{for(var i=t>1?void 0:t?Bg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Eg(A,e,i),i};g.Viewport=class extends g.Node{constructor(e=!1){super();u(this,"_projection",new $o);u(this,"_framebufferIndex",0);u(this,"_framebuffers",[{texture:new Xs,needsUpload:!1},{texture:new Xs,needsUpload:!1}]);this.flipY=e,this._projection.flipY(e)}get valid(){return!!(this.width&&this.height)}get framebuffer(){return this._framebuffers[this._framebufferIndex]}get texture(){return this.framebuffer.texture}_glFramebufferOptions(e){const{width:t,height:i}=this,{pixelRatio:s}=e;return this._framebuffers.forEach(n=>{const o=n.texture;o.width=t,o.height=i,o.pixelRatio=s,o.upload(e)}),{width:t,height:i,colorTextures:[this.texture._glTexture(e)]}}_glFramebuffer(e){return e.getRelated(this.framebuffer,()=>e.framebuffer.create(this._glFramebufferOptions(e)))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"x":case"y":this.requestUpload(),this._projection.translate(this.x,this.y),this.emit("updateRect");break;case"width":case"height":this.requestUpload(),this._projection.resize(this.width,this.height),this.emit("updateRect");break}}requestUpload(){this._framebuffers.forEach(e=>e.needsUpload=!0)}resize(e,t){this.width=e,this.height=t}upload(e){const t=this.framebuffer;return t.needsUpload&&this.valid?(t.needsUpload=!1,e.framebuffer.update(this._glFramebuffer(e),this._glFramebufferOptions(e)),!0):!1}activate(e){var t;return this.valid?(e.flush(),(t=this._tree)==null||t.setCurrentViewport(this),this.upload(e),e.framebuffer.bind(this._glFramebuffer(e)),!0):!1}redraw(e,t){if(this.valid){e.flush();const i=this.framebuffer.texture;return this._framebufferIndex=(this._framebufferIndex+1)%this._framebuffers.length,this.activate(e),e.clear(),i.activate(e,0),t(),!0}return!1}activateWithCopy(e,t){this.resize(t.width,t.height),this.activate(e)&&(e.clear(),t.texture.activate(e,0),fe.draw(e,JA.instance,{sampler:0}))}render(e,t){var s,n;const i=(s=this._tree)==null?void 0:s.getCurrentViewport();this.activate(e),e.clear(),super.render(e,t),e.flush(),i?i.activate(e):(e.framebuffer.bind(null),(n=this._tree)==null||n.setCurrentViewport(void 0))}getRect(){return new Ys(this.x,this.y,this.width,this.height)}toProjectionArray(e=!1){return this._projection.toArray(e)}},vi([M({default:0})],g.Viewport.prototype,"x",2),vi([M({default:0})],g.Viewport.prototype,"y",2),vi([M({default:0})],g.Viewport.prototype,"width",2),vi([M({default:0})],g.Viewport.prototype,"height",2),g.Viewport=vi([ne("Viewport")],g.Viewport);var Cg=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,_i=(r,A,e,t)=>{for(var i=t>1?void 0:t?Qg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Cg(A,e,i),i};g.Effect=class extends g.TimelineNode{constructor(e,t=[]){super();u(this,"viewport1",new g.Viewport);u(this,"viewport2",new g.Viewport);u(this,"_renderId",0);u(this,"_renderViewport");u(this,"_previousSibling");u(this,"_nextSibling");this._onProcessing=this._onProcessing.bind(this),this._onNodeProcessed=this._onNodeProcessed.bind(this),this.setProperties(e).append(t)}get _effectMode(){return this.effectMode??"parent"}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"glsl":{const n=new Br(t);!this.effectMode&&n.has.transition&&(this.effectMode="transition"),this.material=n;break}case"glslSrc":{t?Gt.text.load(t).then(n=>this.glsl=n):this.glsl="";break}}}_treeEnter(e){e.on("processing",this._onProcessing),e.on("nodeProcessed",this._onNodeProcessed),this.viewport1.setTree(e),this.viewport2.setTree(e)}_treeExit(e){e.off("processing",this._onProcessing),e.off("nodeProcessed",this._onNodeProcessed),this.viewport1.setTree(void 0),this.viewport2.setTree(void 0)}_onProcessing(){if(this.canProcess())switch(this._updateCurrentTime(),this._effectMode){case"transition":this._previousSibling=this.previousSibling,this._nextSibling=this.nextSibling;break;default:this._previousSibling=void 0,this._nextSibling=void 0;break}}_onNodeProcessed(e){var i;if(!this.canProcess()||!this.isInsideTimeRange())return;const t=(i=this._tree)==null?void 0:i.renderStack;if(t)switch(this._effectMode){case"transition":e.is(this._previousSibling)?(this._previousSibling=void 0,t.push(this)):e.is(this._nextSibling)&&(this._nextSibling=void 0,t.push(this));break}}_processParent(){var o,a;const e=(o=this._tree)==null?void 0:o.renderStack;if(!e)return;const t=(a=e.currentCall)==null?void 0:a.parentCall;if(!t)return;const i=t.calls;let s,n;i.forEach((l,c)=>{var h;(l.renderable.is(this._parent)||(h=l.renderable.parent)!=null&&h.is(this._parent))&&(s=s??c,n=c)}),!(s===void 0||n===void 0)&&(i.splice(n+1,0,e.createCall(this)),i.splice(s,0,e.createCall(this)))}_processChildren(){var e;this._children.length&&(super.emit("process"),(e=this._tree)==null||e.renderStack.push(this))}_onProcess(e=0){if(this.canProcess())switch(this._renderId=0,this._effectMode){case"before":super._onProcess(e);break;case"parent":this._processParent();break;case"children":this._processChildren();break}}_renderBefore(e){var i;const t=(i=this._tree)==null?void 0:i.getCurrentViewport();t&&this.apply(e,t,{redraw:!0})}_renderTransition(e){var t;if(this._renderId%2===0)this._renderViewport=(t=this._tree)==null?void 0:t.getCurrentViewport(),this._renderViewport&&(this.viewport1.activateWithCopy(e,this._renderViewport),this.viewport2.resize(this._renderViewport.width,this._renderViewport.height)),this.viewport2.activate(e),e.clear();else{const i=this._renderViewport;this._renderViewport=void 0,i&&(i.activate(e),e.clear(),this.viewport1.texture.activate(e,0),this.viewport2.texture.activate(e,1),this.apply(e,i,{from:this.viewport1,to:this.viewport2}),e.texture.unbind(0),e.texture.unbind(1))}}_renderParentOrChildren(e){var t;if(this._renderId%2===0)this._renderViewport=(t=this._tree)==null?void 0:t.getCurrentViewport(),this._renderViewport&&this.viewport1.resize(this._renderViewport.width,this._renderViewport.height),this.viewport1.activate(e),e.clear();else{const i=this._renderViewport;this._renderViewport=void 0,i&&(this.viewport1.activate(e),this.apply(e,this.viewport1,{redraw:!0,target:this._effectMode==="parent"?this._parent??void 0:void 0,targetArea:this._parseTargetArea()}),i.activate(e),this.viewport1.texture.activate(e,0),fe.draw(e))}}_parseTargetArea(){if(this._effectMode==="parent"&&this._parent&&"getRect"in this._parent){const e=this._parent.getRect();if(e)return[e.left/this.viewport1.width,e.top/this.viewport1.height,e.width/this.viewport1.width,e.height/this.viewport1.height]}}_render(e){switch(this._effectMode){case"before":this._renderBefore(e);break;case"transition":this._renderTransition(e);break;case"parent":case"children":default:this._renderParentOrChildren(e);break}this._renderId++}apply(e,t,i){this.material&&(i!=null&&i.redraw?t.redraw(e,()=>{fe.draw(e,this.material,{from:0,to:1,progress:this.currentTimeProgress,ratio:t.width/t.height})}):fe.draw(e,this.material,{from:0,to:1,progress:this.currentTimeProgress,ratio:i!=null&&i.from?i.from.width/i.from.height:0}))}},_i([Ie()],g.Effect.prototype,"material",2),_i([M()],g.Effect.prototype,"effectMode",2),_i([M({default:""})],g.Effect.prototype,"glsl",2),_i([M({default:""})],g.Effect.prototype,"glslSrc",2),g.Effect=_i([ne("Effect")],g.Effect);var ba=Object.defineProperty,yg=Object.getOwnPropertyDescriptor,mg=(r,A,e)=>A in r?ba(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,qt=(r,A,e,t)=>{for(var i=t>1?void 0:t?yg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ba(A,e,i),i},wg=(r,A,e)=>mg(r,A+"",e);g.ColorAdjustEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){e.redraw(A,()=>{fe.draw(A,g.ColorAdjustEffect.material,{sampler:0,saturation:this.saturation,contrast:this.contrast,brightness:this.brightness,red:this.red,green:this.green,blue:this.blue,alpha:this.alpha,gamma:Math.max(this.gamma??1,1e-4)})})}},wg(g.ColorAdjustEffect,"material",new Ce({vert:`precision mediump float;
115
115
  attribute vec2 position;
116
116
  attribute vec2 uv;
117
117
  varying vec2 vUv;
@@ -142,7 +142,7 @@ void main(void) {
142
142
  c.rgb *= c.a;
143
143
  }
144
144
  gl_FragColor = c * alpha;
145
- }`})),qt([M({default:1})],g.ColorAdjustEffect.prototype,"saturation",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"contrast",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"brightness",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"red",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"green",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"blue",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"alpha",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"gamma",2),g.ColorAdjustEffect=qt([ne("ColorAdjustEffect")],g.ColorAdjustEffect);var ba=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,vg=(r,A,e)=>A in r?ba(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Da=(r,A,e,t)=>{for(var i=t>1?void 0:t?wg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ba(A,e,i),i},_g=(r,A,e)=>vg(r,A+"",e);g.ColorFilterEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_colorMatrix",new Js);this.setProperties(e).append(t)}apply(e,t){if(!this.filter)return;const i=Qi(this.filter),s=this._colorMatrix.identity();i.forEach(({name:n,args:o})=>{const a=o.map(l=>l.normalizedIntValue);switch(n){case"hue-rotate":case"hueRotate":s.hueRotate(a[0]*it);break;case"saturate":s.saturate(a[0]);break;case"brightness":s.brightness(a[0]);break;case"contrast":s.contrast(a[0]);break;case"invert":s.invert(a[0]);break;case"sepia":s.sepia(a[0]);break;case"opacity":s.opacity(a[0]);break;case"grayscale":s.grayscale(a[0]);break}}),t.redraw(e,()=>{fe.draw(e,g.ColorFilterEffect.material,{sampler:0,m:s.toArray()})})}},_g(g.ColorFilterEffect,"material",new Ce({vert:`precision mediump float;
145
+ }`})),qt([M({default:1})],g.ColorAdjustEffect.prototype,"saturation",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"contrast",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"brightness",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"red",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"green",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"blue",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"alpha",2),qt([M({default:1})],g.ColorAdjustEffect.prototype,"gamma",2),g.ColorAdjustEffect=qt([ne("ColorAdjustEffect")],g.ColorAdjustEffect);var Da=Object.defineProperty,vg=Object.getOwnPropertyDescriptor,_g=(r,A,e)=>A in r?Da(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,xa=(r,A,e,t)=>{for(var i=t>1?void 0:t?vg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Da(A,e,i),i},bg=(r,A,e)=>_g(r,A+"",e);g.ColorFilterEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_colorMatrix",new Js);this.setProperties(e).append(t)}apply(e,t){if(!this.filter)return;const i=Qi(this.filter),s=this._colorMatrix.identity();i.forEach(({name:n,args:o})=>{const a=o.map(l=>l.normalizedIntValue);switch(n){case"hue-rotate":case"hueRotate":s.hueRotate(a[0]*it);break;case"saturate":s.saturate(a[0]);break;case"brightness":s.brightness(a[0]);break;case"contrast":s.contrast(a[0]);break;case"invert":s.invert(a[0]);break;case"sepia":s.sepia(a[0]);break;case"opacity":s.opacity(a[0]);break;case"grayscale":s.grayscale(a[0]);break}}),t.redraw(e,()=>{fe.draw(e,g.ColorFilterEffect.material,{sampler:0,m:s.toArray()})})}},bg(g.ColorFilterEffect,"material",new Ce({vert:`precision mediump float;
146
146
  attribute vec2 position;
147
147
  attribute vec2 uv;
148
148
  varying vec2 vUv;
@@ -165,7 +165,7 @@ void main(void) {
165
165
  m[10] * c.r + m[11] * c.g + m[12] * c.b + m[13] * c.a + m[14] / 255.0,
166
166
  m[15] * c.r + m[16] * c.g + m[17] * c.b + m[18] * c.a + m[19] / 255.0
167
167
  );
168
- }`})),Da([M()],g.ColorFilterEffect.prototype,"filter",2),g.ColorFilterEffect=Da([ne("ColorFilterEffect")],g.ColorFilterEffect);var xa=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,Dg=(r,A,e)=>A in r?xa(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,js=(r,A,e,t)=>{for(var i=t>1?void 0:t?bg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&xa(A,e,i),i},xg=(r,A,e)=>Dg(r,A+"",e);const bi=50;g.ColorOverlayEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){t.redraw(e,()=>{const i=this.colors.map(s=>{this._color.value=s;const n=this._color.toArray();return n[3]=this.alpha,n});for(;i.length<bi;)i.push([0,0,0,0]);fe.draw(e,g.ColorOverlayEffect.material,{sampler:0,colors:i.slice(0,bi).flatMap(s=>s)})})}},xg(g.ColorOverlayEffect,"material",new Ce({vert:`precision mediump float;
168
+ }`})),xa([M()],g.ColorFilterEffect.prototype,"filter",2),g.ColorFilterEffect=xa([ne("ColorFilterEffect")],g.ColorFilterEffect);var Sa=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,xg=(r,A,e)=>A in r?Sa(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,js=(r,A,e,t)=>{for(var i=t>1?void 0:t?Dg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Sa(A,e,i),i},Sg=(r,A,e)=>xg(r,A+"",e);const bi=50;g.ColorOverlayEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){t.redraw(e,()=>{const i=this.colors.map(s=>{this._color.value=s;const n=this._color.toArray();return n[3]=this.alpha,n});for(;i.length<bi;)i.push([0,0,0,0]);fe.draw(e,g.ColorOverlayEffect.material,{sampler:0,colors:i.slice(0,bi).flatMap(s=>s)})})}},Sg(g.ColorOverlayEffect,"material",new Ce({vert:`precision mediump float;
169
169
  attribute vec2 position;
170
170
  attribute vec2 uv;
171
171
  varying vec2 vUv;
@@ -208,7 +208,7 @@ void main(void) {
208
208
  vec4 color = texture2D(sampler, vUv);
209
209
  vec4 mask = calcColor(vUv.x);
210
210
  gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
211
- }`})),js([M({default:()=>[]})],g.ColorOverlayEffect.prototype,"colors",2),js([M({default:.5})],g.ColorOverlayEffect.prototype,"alpha",2),g.ColorOverlayEffect=js([ne("ColorOverlayEffect")],g.ColorOverlayEffect);var Sa=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,Mg=(r,A,e)=>A in r?Sa(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Zs=(r,A,e,t)=>{for(var i=t>1?void 0:t?Sg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Sa(A,e,i),i},Rg=(r,A,e)=>Mg(r,A+"",e);g.ColorRemoveEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){const s=new Float32Array(150),n=this.colors.map(o=>(this._color.value=o,this._color.toArray().slice(0,3)));for(;n.length<50;)n.push([-1,0,0]);n.slice(0,50).forEach((o,a)=>{s[a*3]=o[0],s[a*3+1]=o[1],s[a*3+2]=o[2]}),t.redraw(e,()=>{fe.draw(e,g.ColorRemoveEffect.material,{sampler:0,epsilon:this.epsilon,originalColors:s})})}},Rg(g.ColorRemoveEffect,"material",new Ce({vert:`precision mediump float;
211
+ }`})),js([M({default:()=>[]})],g.ColorOverlayEffect.prototype,"colors",2),js([M({default:.5})],g.ColorOverlayEffect.prototype,"alpha",2),g.ColorOverlayEffect=js([ne("ColorOverlayEffect")],g.ColorOverlayEffect);var Ma=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,Rg=(r,A,e)=>A in r?Ma(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Zs=(r,A,e,t)=>{for(var i=t>1?void 0:t?Mg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ma(A,e,i),i},Pg=(r,A,e)=>Rg(r,A+"",e);g.ColorRemoveEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){const s=new Float32Array(150),n=this.colors.map(o=>(this._color.value=o,this._color.toArray().slice(0,3)));for(;n.length<50;)n.push([-1,0,0]);n.slice(0,50).forEach((o,a)=>{s[a*3]=o[0],s[a*3+1]=o[1],s[a*3+2]=o[2]}),t.redraw(e,()=>{fe.draw(e,g.ColorRemoveEffect.material,{sampler:0,epsilon:this.epsilon,originalColors:s})})}},Pg(g.ColorRemoveEffect,"material",new Ce({vert:`precision mediump float;
212
212
  attribute vec2 position;
213
213
  attribute vec2 uv;
214
214
  varying vec2 vUv;
@@ -237,7 +237,7 @@ void main(void) {
237
237
  }
238
238
 
239
239
  gl_FragColor = color;
240
- }`})),Zs([M({default:()=>[]})],g.ColorRemoveEffect.prototype,"colors",2),Zs([M({default:.5})],g.ColorRemoveEffect.prototype,"epsilon",2),g.ColorRemoveEffect=Zs([ne("ColorRemoveEffect")],g.ColorRemoveEffect);var Ma=Object.defineProperty,Pg=Object.getOwnPropertyDescriptor,kg=(r,A,e)=>A in r?Ma(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,$s=(r,A,e,t)=>{for(var i=t>1?void 0:t?Pg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ma(A,e,i),i},Ug=(r,A,e)=>kg(r,A+"",e);const Di=50;g.ColorReplaceEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){const i=this.colors.map(a=>{this._color.value=a[0];const l=this._color.toArray().slice(0,3);this._color.value=a[1];const h=this._color.toArray().slice(0,3);return[l,h]}),s=this.epsilon,n=new Float32Array(Di*3),o=new Float32Array(Di*3);for(;i.length<Di;)i.push([[-1,0,0],[0,0,0,1]]);i.slice(0,Di).forEach(([a,l],h)=>{n[h*3]=a[0],n[h*3+1]=a[1],n[h*3+2]=a[2],o[h*3]=l[0],o[h*3+1]=l[1],o[h*3+2]=l[2]}),t.redraw(e,()=>{fe.draw(e,g.ColorReplaceEffect.material,{sampler:0,epsilon:s,originalColors:n,targetColors:o})})}},Ug(g.ColorReplaceEffect,"material",new Ce({vert:`precision mediump float;
240
+ }`})),Zs([M({default:()=>[]})],g.ColorRemoveEffect.prototype,"colors",2),Zs([M({default:.5})],g.ColorRemoveEffect.prototype,"epsilon",2),g.ColorRemoveEffect=Zs([ne("ColorRemoveEffect")],g.ColorRemoveEffect);var Ra=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Ug=(r,A,e)=>A in r?Ra(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,$s=(r,A,e,t)=>{for(var i=t>1?void 0:t?kg(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ra(A,e,i),i},Ng=(r,A,e)=>Ug(r,A+"",e);const Di=50;g.ColorReplaceEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){const i=this.colors.map(a=>{this._color.value=a[0];const l=this._color.toArray().slice(0,3);this._color.value=a[1];const c=this._color.toArray().slice(0,3);return[l,c]}),s=this.epsilon,n=new Float32Array(Di*3),o=new Float32Array(Di*3);for(;i.length<Di;)i.push([[-1,0,0],[0,0,0,1]]);i.slice(0,Di).forEach(([a,l],c)=>{n[c*3]=a[0],n[c*3+1]=a[1],n[c*3+2]=a[2],o[c*3]=l[0],o[c*3+1]=l[1],o[c*3+2]=l[2]}),t.redraw(e,()=>{fe.draw(e,g.ColorReplaceEffect.material,{sampler:0,epsilon:s,originalColors:n,targetColors:o})})}},Ng(g.ColorReplaceEffect,"material",new Ce({vert:`precision mediump float;
241
241
  attribute vec2 position;
242
242
  attribute vec2 uv;
243
243
  varying vec2 vUv;
@@ -273,8 +273,8 @@ void main(void) {
273
273
  return;
274
274
  }
275
275
  }
276
- }`})),$s([M({default:[]})],g.ColorReplaceEffect.prototype,"colors",2),$s([M({default:.05})],g.ColorReplaceEffect.prototype,"epsilon",2),g.ColorReplaceEffect=$s([ne("ColorReplaceEffect")],g.ColorReplaceEffect);function Ng(r,A,e=2){const t=A&&A.length,i=t?A[0]*e:r.length;let s=Ra(r,0,i,e,!0);const n=[];if(!s||s.next===s.prev)return n;let o,a,l;if(t&&(s=Og(r,A,s,e)),r.length>80*e){o=1/0,a=1/0;let h=-1/0,c=-1/0;for(let f=e;f<i;f+=e){const I=r[f],d=r[f+1];I<o&&(o=I),d<a&&(a=d),I>h&&(h=I),d>c&&(c=d)}l=Math.max(h-o,c-a),l=l!==0?32767/l:0}return xi(s,n,e,o,a,l,0),n}function Ra(r,A,e,t,i){let s;if(i===Zg(r,A,e,t)>0)for(let n=A;n<e;n+=t)s=Na(n/t|0,r[n],r[n+1],s);else for(let n=e-t;n>=A;n-=t)s=Na(n/t|0,r[n],r[n+1],s);return s&&VA(s,s.next)&&(Ri(s),s=s.next),s}function vA(r,A){if(!r)return r;A||(A=r);let e=r,t;do if(t=!1,!e.steiner&&(VA(e,e.next)||me(e.prev,e,e.next)===0)){if(Ri(e),e=A=e.prev,e===e.next)break;t=!0}else e=e.next;while(t||e!==A);return A}function xi(r,A,e,t,i,s,n){if(!r)return;!n&&s&&Vg(r,t,i,s);let o=r;for(;r.prev!==r.next;){const a=r.prev,l=r.next;if(s?Tg(r,t,i,s):Fg(r)){A.push(a.i,r.i,l.i),Ri(r),r=l.next,o=l.next;continue}if(r=l,r===o){n?n===1?(r=Gg(vA(r),A),xi(r,A,e,t,i,s,2)):n===2&&Lg(r,A,e,t,i,s):xi(vA(r),A,e,t,i,s,1);break}}}function Fg(r){const A=r.prev,e=r,t=r.next;if(me(A,e,t)>=0)return!1;const i=A.x,s=e.x,n=t.x,o=A.y,a=e.y,l=t.y,h=Math.min(i,s,n),c=Math.min(o,a,l),f=Math.max(i,s,n),I=Math.max(o,a,l);let d=t.next;for(;d!==A;){if(d.x>=h&&d.x<=f&&d.y>=c&&d.y<=I&&Si(i,o,s,a,n,l,d.x,d.y)&&me(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function Tg(r,A,e,t){const i=r.prev,s=r,n=r.next;if(me(i,s,n)>=0)return!1;const o=i.x,a=s.x,l=n.x,h=i.y,c=s.y,f=n.y,I=Math.min(o,a,l),d=Math.min(h,c,f),C=Math.max(o,a,l),p=Math.max(h,c,f),x=en(I,d,A,e,t),P=en(C,p,A,e,t);let w=r.prevZ,R=r.nextZ;for(;w&&w.z>=x&&R&&R.z<=P;){if(w.x>=I&&w.x<=C&&w.y>=d&&w.y<=p&&w!==i&&w!==n&&Si(o,h,a,c,l,f,w.x,w.y)&&me(w.prev,w,w.next)>=0||(w=w.prevZ,R.x>=I&&R.x<=C&&R.y>=d&&R.y<=p&&R!==i&&R!==n&&Si(o,h,a,c,l,f,R.x,R.y)&&me(R.prev,R,R.next)>=0))return!1;R=R.nextZ}for(;w&&w.z>=x;){if(w.x>=I&&w.x<=C&&w.y>=d&&w.y<=p&&w!==i&&w!==n&&Si(o,h,a,c,l,f,w.x,w.y)&&me(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;R&&R.z<=P;){if(R.x>=I&&R.x<=C&&R.y>=d&&R.y<=p&&R!==i&&R!==n&&Si(o,h,a,c,l,f,R.x,R.y)&&me(R.prev,R,R.next)>=0)return!1;R=R.nextZ}return!0}function Gg(r,A){let e=r;do{const t=e.prev,i=e.next.next;!VA(t,i)&&ka(t,e,e.next,i)&&Mi(t,i)&&Mi(i,t)&&(A.push(t.i,e.i,i.i),Ri(e),Ri(e.next),e=r=i),e=e.next}while(e!==r);return vA(e)}function Lg(r,A,e,t,i,s){let n=r;do{let o=n.next.next;for(;o!==n.prev;){if(n.i!==o.i&&qg(n,o)){let a=Ua(n,o);n=vA(n,n.next),a=vA(a,a.next),xi(n,A,e,t,i,s,0),xi(a,A,e,t,i,s,0);return}o=o.next}n=n.next}while(n!==r)}function Og(r,A,e,t){const i=[];for(let s=0,n=A.length;s<n;s++){const o=A[s]*t,a=s<n-1?A[s+1]*t:r.length,l=Ra(r,o,a,t,!1);l===l.next&&(l.steiner=!0),i.push(Wg(l))}i.sort(Hg);for(let s=0;s<i.length;s++)e=Jg(i[s],e);return e}function Hg(r,A){let e=r.x-A.x;if(e===0&&(e=r.y-A.y,e===0)){const t=(r.next.y-r.y)/(r.next.x-r.x),i=(A.next.y-A.y)/(A.next.x-A.x);e=t-i}return e}function Jg(r,A){const e=Kg(r,A);if(!e)return A;const t=Ua(e,r);return vA(t,t.next),vA(e,e.next)}function Kg(r,A){let e=A;const t=r.x,i=r.y;let s=-1/0,n;if(VA(r,e))return e;do{if(VA(r,e.next))return e.next;if(i<=e.y&&i>=e.next.y&&e.next.y!==e.y){const c=e.x+(i-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(c<=t&&c>s&&(s=c,n=e.x<e.next.x?e:e.next,c===t))return n}e=e.next}while(e!==A);if(!n)return null;const o=n,a=n.x,l=n.y;let h=1/0;e=n;do{if(t>=e.x&&e.x>=a&&t!==e.x&&Pa(i<l?t:s,i,a,l,i<l?s:t,i,e.x,e.y)){const c=Math.abs(i-e.y)/(t-e.x);Mi(e,r)&&(c<h||c===h&&(e.x>n.x||e.x===n.x&&Yg(n,e)))&&(n=e,h=c)}e=e.next}while(e!==o);return n}function Yg(r,A){return me(r.prev,r,A.prev)<0&&me(A.next,r,r.next)<0}function Vg(r,A,e,t){let i=r;do i.z===0&&(i.z=en(i.x,i.y,A,e,t)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==r);i.prevZ.nextZ=null,i.prevZ=null,zg(i)}function zg(r){let A,e=1;do{let t=r,i;r=null;let s=null;for(A=0;t;){A++;let n=t,o=0;for(let l=0;l<e&&(o++,n=n.nextZ,!!n);l++);let a=e;for(;o>0||a>0&&n;)o!==0&&(a===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,o--):(i=n,n=n.nextZ,a--),s?s.nextZ=i:r=i,i.prevZ=s,s=i;t=n}s.nextZ=null,e*=2}while(A>1);return r}function en(r,A,e,t,i){return r=(r-e)*i|0,A=(A-t)*i|0,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,r|A<<1}function Wg(r){let A=r,e=r;do(A.x<e.x||A.x===e.x&&A.y<e.y)&&(e=A),A=A.next;while(A!==r);return e}function Pa(r,A,e,t,i,s,n,o){return(i-n)*(A-o)>=(r-n)*(s-o)&&(r-n)*(t-o)>=(e-n)*(A-o)&&(e-n)*(s-o)>=(i-n)*(t-o)}function Si(r,A,e,t,i,s,n,o){return!(r===n&&A===o)&&Pa(r,A,e,t,i,s,n,o)}function qg(r,A){return r.next.i!==A.i&&r.prev.i!==A.i&&!Xg(r,A)&&(Mi(r,A)&&Mi(A,r)&&jg(r,A)&&(me(r.prev,r,A.prev)||me(r,A.prev,A))||VA(r,A)&&me(r.prev,r,r.next)>0&&me(A.prev,A,A.next)>0)}function me(r,A,e){return(A.y-r.y)*(e.x-A.x)-(A.x-r.x)*(e.y-A.y)}function VA(r,A){return r.x===A.x&&r.y===A.y}function ka(r,A,e,t){const i=mr(me(r,A,e)),s=mr(me(r,A,t)),n=mr(me(e,t,r)),o=mr(me(e,t,A));return!!(i!==s&&n!==o||i===0&&yr(r,e,A)||s===0&&yr(r,t,A)||n===0&&yr(e,r,t)||o===0&&yr(e,A,t))}function yr(r,A,e){return A.x<=Math.max(r.x,e.x)&&A.x>=Math.min(r.x,e.x)&&A.y<=Math.max(r.y,e.y)&&A.y>=Math.min(r.y,e.y)}function mr(r){return r>0?1:r<0?-1:0}function Xg(r,A){let e=r;do{if(e.i!==r.i&&e.next.i!==r.i&&e.i!==A.i&&e.next.i!==A.i&&ka(e,e.next,r,A))return!0;e=e.next}while(e!==r);return!1}function Mi(r,A){return me(r.prev,r,r.next)<0?me(r,A,r.next)>=0&&me(r,r.prev,A)>=0:me(r,A,r.prev)<0||me(r,r.next,A)<0}function jg(r,A){let e=r,t=!1;const i=(r.x+A.x)/2,s=(r.y+A.y)/2;do e.y>s!=e.next.y>s&&e.next.y!==e.y&&i<(e.next.x-e.x)*(s-e.y)/(e.next.y-e.y)+e.x&&(t=!t),e=e.next;while(e!==r);return t}function Ua(r,A){const e=tn(r.i,r.x,r.y),t=tn(A.i,A.x,A.y),i=r.next,s=A.prev;return r.next=A,A.prev=r,e.next=i,i.prev=e,t.next=e,e.prev=t,s.next=t,t.prev=s,t}function Na(r,A,e,t){const i=tn(r,A,e);return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function Ri(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function tn(r,A,e){return{i:r,x:A,y:e,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function Zg(r,A,e,t){let i=0;for(let s=A,n=e-t;s<e;s+=t)i+=(r[n]-r[s])*(r[s+1]+r[n+1]),n=s;return i}function $g(r,A,e,t={}){const{radius:i=1}=t;r.moveTo(A,e),r.arc(A,e,i,0,Math.PI*2)}const eu={arcs:"bevel",bevel:"bevel",miter:"miter","miter-clip":"miter",round:"round"};function An(r,A){const{fill:e="#000",stroke:t="none",strokeWidth:i=t==="none"?0:1,strokeLinecap:s="round",strokeLinejoin:n="miter",strokeMiterlimit:o=0,strokeDasharray:a=[],strokeDashoffset:l=0,shadowOffsetX:h=0,shadowOffsetY:c=0,shadowBlur:f=0,shadowColor:I="rgba(0, 0, 0, 0)"}=A;r.fillStyle=e,r.strokeStyle=t,r.lineWidth=i,r.lineCap=s,r.lineJoin=eu[n],r.miterLimit=o,r.setLineDash(a),r.lineDashOffset=l,r.shadowOffsetX=h,r.shadowOffsetY=c,r.shadowBlur=f,r.shadowColor=I}class G{constructor(A=0,e=0){this.x=A,this.y=e}static get MAX(){return new G(1/0,1/0)}static get MIN(){return new G(-1/0,-1/0)}get array(){return[this.x,this.y]}finite(){return this.x=Number.isFinite(this.x)?this.x:0,this.y=Number.isFinite(this.y)?this.y:0,this}set(A,e){return this.x=A,this.y=e,this}add(A){return this.x+=A.x,this.y+=A.y,this}sub(A){return this.x-=A.x,this.y-=A.y,this}multiply(A){return this.x*=A.x,this.y*=A.y,this}divide(A){return this.x/=A.x,this.y/=A.y,this}dot(A){return this.x*A.x+this.y*A.y}cross(A){return this.x*A.y-this.y*A.x}rotate(A,e={x:0,y:0}){const t=-A/180*Math.PI,i=this.x-e.x,s=-(this.y-e.y),n=Math.sin(t),o=Math.cos(t);return this.set(e.x+(i*o-s*n),e.y-(i*n+s*o)),this}distanceTo(A){return Math.sqrt(this.distanceToSquared(A))}distanceToSquared(A){const e=this.x-A.x,t=this.y-A.y;return e*e+t*t}lengthSquared(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.lengthSquared())}scale(A,e=A,t={x:0,y:0}){const i=A<0?t.x-this.x+t.x:this.x,s=e<0?t.y-this.y+t.y:this.y;return this.x=i*Math.abs(A),this.y=s*Math.abs(e),this}skew(A,e=0,t={x:0,y:0}){const i=this.x-t.x,s=this.y-t.y;return this.x=t.x+(i+Math.tan(A)*s),this.y=t.y+(s+Math.tan(e)*i),this}min(...A){return this.x=Math.min(this.x,...A.map(e=>e.x)),this.y=Math.min(this.y,...A.map(e=>e.y)),this}max(...A){return this.x=Math.max(this.x,...A.map(e=>e.x)),this.y=Math.max(this.y,...A.map(e=>e.y)),this}normalize(){return this.scale(1/(this.length()||1))}addVectors(A,e){return this.x=A.x+e.x,this.y=A.y+e.y,this}subVectors(A,e){return this.x=A.x-e.x,this.y=A.y-e.y,this}multiplyVectors(A,e){return this.x=A.x*e.x,this.y=A.y*e.y,this}divideVectors(A,e){return this.x=A.x/e.x,this.y=A.y/e.y,this}lerpVectors(A,e,t){return this.x=A.x+(e.x-A.x)*t,this.y=A.y+(e.y-A.y)*t,this}equals(A){return this.x===A.x&&this.y===A.y}applyMatrix3(A){const e=this.x,t=this.y,i=A.elements;return this.x=i[0]*e+i[3]*t+i[6],this.y=i[1]*e+i[4]*t+i[7],this}copy(A){return this.x=A.x,this.y=A.y,this}clone(){return new G(this.x,this.y)}}class ce{constructor(A=0,e=0,t=0,i=0){this.left=A,this.top=e,this.width=t,this.height=i}get x(){return this.left}set x(A){this.left=A}get y(){return this.top}set y(A){this.top=A}get right(){return this.left+this.width}get bottom(){return this.top+this.height}get center(){return new G((this.left+this.right)/2,(this.top+this.bottom)/2)}get array(){return[this.left,this.top,this.width,this.height]}static from(...A){if(A.length===0)return new ce;if(A.length===1)return A[0].clone();const e=A[0],t=A.slice(1).reduce((i,s)=>(i.left=Math.min(i.left,s.left),i.top=Math.min(i.top,s.top),i.right=Math.max(i.right,s.right),i.bottom=Math.max(i.bottom,s.bottom),i),{left:(e==null?void 0:e.left)??0,top:(e==null?void 0:e.top)??0,right:(e==null?void 0:e.right)??0,bottom:(e==null?void 0:e.bottom)??0});return new ce(t.left,t.top,t.right-t.left,t.bottom-t.top)}translate(A,e){return this.left+=A,this.top+=e,this}copy(A){return this.left=A.left,this.top=A.top,this.width=A.width,this.height=A.height,this}clone(){return new ce(this.left,this.top,this.width,this.height)}}class Ke{constructor(A=1,e=0,t=0,i=0,s=1,n=0,o=0,a=0,l=1){u(this,"elements",[]);this.set(A,e,t,i,s,n,o,a,l)}set(A,e,t,i,s,n,o,a,l){const h=this.elements;return h[0]=A,h[1]=i,h[2]=o,h[3]=e,h[4]=s,h[5]=a,h[6]=t,h[7]=n,h[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(A){const e=this.elements,t=A.elements;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this}multiply(A){return this.multiplyMatrices(this,A)}premultiply(A){return this.multiplyMatrices(A,this)}multiplyMatrices(A,e){const t=A.elements,i=e.elements,s=this.elements,n=t[0],o=t[3],a=t[6],l=t[1],h=t[4],c=t[7],f=t[2],I=t[5],d=t[8],C=i[0],p=i[3],x=i[6],P=i[1],w=i[4],R=i[7],v=i[2],m=i[5],b=i[8];return s[0]=n*C+o*P+a*v,s[3]=n*p+o*w+a*m,s[6]=n*x+o*R+a*b,s[1]=l*C+h*P+c*v,s[4]=l*p+h*w+c*m,s[7]=l*x+h*R+c*b,s[2]=f*C+I*P+d*v,s[5]=f*p+I*w+d*m,s[8]=f*x+I*R+d*b,this}invert(){const A=this.elements,e=A[0],t=A[1],i=A[2],s=A[3],n=A[4],o=A[5],a=A[6],l=A[7],h=A[8],c=h*n-o*l,f=o*a-h*s,I=l*s-n*a,d=e*c+t*f+i*I;if(d===0)return this.set(0,0,0,0,0,0,0,0,0);const C=1/d;return A[0]=c*C,A[1]=(i*l-h*t)*C,A[2]=(o*t-i*n)*C,A[3]=f*C,A[4]=(h*e-i*a)*C,A[5]=(i*s-o*e)*C,A[6]=I*C,A[7]=(t*a-l*e)*C,A[8]=(n*e-t*s)*C,this}transpose(){let A;const e=this.elements;return A=e[1],e[1]=e[3],e[3]=A,A=e[2],e[2]=e[6],e[6]=A,A=e[5],e[5]=e[7],e[7]=A,this}scale(A,e){return this.premultiply(rn.makeScale(A,e)),this}rotate(A){return this.premultiply(rn.makeRotation(-A)),this}translate(A,e){return this.premultiply(rn.makeTranslation(A,e)),this}makeTranslation(A,e){return this.set(1,0,A,0,1,e,0,0,1),this}makeRotation(A){const e=Math.cos(A),t=Math.sin(A);return this.set(e,-t,0,t,e,0,0,0,1),this}makeScale(A,e){return this.set(A,0,0,0,e,0,0,0,1),this}fromArray(A,e=0){for(let t=0;t<9;t++)this.elements[t]=A[t+e];return this}clone(){return new this.constructor().fromArray(this.elements)}}const rn=new Ke;function Fa(r,A,e,t){const i=r*e+A*t,s=Math.sqrt(r*r+A*A)*Math.sqrt(e*e+t*t);let n=Math.acos(Math.max(-1,Math.min(1,i/s)));return r*t-A*e<0&&(n=-n),n}function tu(r,A,e,t,i,s,n,o){if(A===0||e===0){r.lineTo(o.x,o.y);return}t=t*Math.PI/180,A=Math.abs(A),e=Math.abs(e);const a=(n.x-o.x)/2,l=(n.y-o.y)/2,h=Math.cos(t)*a+Math.sin(t)*l,c=-Math.sin(t)*a+Math.cos(t)*l;let f=A*A,I=e*e;const d=h*h,C=c*c,p=d/f+C/I;if(p>1){const Ae=Math.sqrt(p);A=Ae*A,e=Ae*e,f=A*A,I=e*e}const x=f*C+I*d,P=(f*I-x)/x;let w=Math.sqrt(Math.max(0,P));i===s&&(w=-w);const R=w*A*c/e,v=-w*e*h/A,m=Math.cos(t)*R-Math.sin(t)*v+(n.x+o.x)/2,b=Math.sin(t)*R+Math.cos(t)*v+(n.y+o.y)/2,D=Fa(1,0,(h-R)/A,(c-v)/e),z=Fa((h-R)/A,(c-v)/e,(-h-R)/A,(-c-v)/e)%(Math.PI*2);r.ellipse(m,b,A,e,t,D,D+z,s===0)}const be={WHITESPACE:/[ \t\r\n]/,DIGIT:/\d/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/};function Rt(r,A,e=0){let o=0,a=!0,l="",h="";const c=[];function f(p,x,P){const w=new SyntaxError(`Unexpected character "${p}" at index ${x}.`);throw w.partial=P,w}function I(){l!==""&&(h===""?c.push(Number(l)):c.push(Number(l)*10**Number(h))),l="",h=""}let d;const C=r.length;for(let p=0;p<C;p++){if(d=r[p],Array.isArray(A)&&A.includes(c.length%e)&&be.FLAGS.test(d)){o=1,l=d,I();continue}if(o===0){if(be.WHITESPACE.test(d))continue;if(be.DIGIT.test(d)||be.SIGN.test(d)){o=1,l=d;continue}if(be.POINT.test(d)){o=2,l=d;continue}be.COMMA.test(d)&&(a&&f(d,p,c),a=!0)}if(o===1){if(be.DIGIT.test(d)){l+=d;continue}if(be.POINT.test(d)){l+=d,o=2;continue}if(be.EXP.test(d)){o=3;continue}be.SIGN.test(d)&&l.length===1&&be.SIGN.test(l[0])&&f(d,p,c)}if(o===2){if(be.DIGIT.test(d)){l+=d;continue}if(be.EXP.test(d)){o=3;continue}be.POINT.test(d)&&l[l.length-1]==="."&&f(d,p,c)}if(o===3){if(be.DIGIT.test(d)){h+=d;continue}if(be.SIGN.test(d)){if(h===""){h+=d;continue}h.length===1&&be.SIGN.test(h)&&f(d,p,c)}}be.WHITESPACE.test(d)?(I(),o=0,a=!1):be.COMMA.test(d)?(I(),o=0,a=!0):be.SIGN.test(d)?(I(),o=1,l=d):be.POINT.test(d)?(I(),o=2,l=d):f(d,p,c)}return I(),c}function zA(r,A){return r-(A-r)}function Ta(r,A){const e=new G,t=new G;for(let i=0,s=r.length;i<s;i++){const n=r[i];if(n.type==="m"||n.type==="M")n.type==="m"?e.add(n):e.copy(n),A.moveTo(e.x,e.y),t.copy(e);else if(n.type==="h"||n.type==="H")n.type==="h"?e.x+=n.x:e.x=n.x,A.lineTo(e.x,e.y),t.copy(e);else if(n.type==="v"||n.type==="V")n.type==="v"?e.y+=n.y:e.y=n.y,A.lineTo(e.x,e.y),t.copy(e);else if(n.type==="l"||n.type==="L")n.type==="l"?e.add(n):e.copy(n),A.lineTo(e.x,e.y),t.copy(e);else if(n.type==="c"||n.type==="C")n.type==="c"?(A.bezierCurveTo(e.x+n.x1,e.y+n.y1,e.x+n.x2,e.y+n.y2,e.x+n.x,e.y+n.y),t.x=e.x+n.x2,t.y=e.y+n.y2,e.add(n)):(A.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y),t.x=n.x2,t.y=n.y2,e.copy(n));else if(n.type==="s"||n.type==="S")n.type==="s"?(A.bezierCurveTo(zA(e.x,t.x),zA(e.y,t.y),e.x+n.x2,e.y+n.y2,e.x+n.x,e.y+n.y),t.x=e.x+n.x2,t.y=e.y+n.y2,e.add(n)):(A.bezierCurveTo(zA(e.x,t.x),zA(e.y,t.y),n.x2,n.y2,n.x,n.y),t.x=n.x2,t.y=n.y2,e.copy(n));else if(n.type==="q"||n.type==="Q")n.type==="q"?(A.quadraticCurveTo(e.x+n.x1,e.y+n.y1,e.x+n.x,e.y+n.y),t.x=e.x+n.x1,t.y=e.y+n.y1,e.add(n)):(A.quadraticCurveTo(n.x1,n.y1,n.x,n.y),t.x=n.x1,t.y=n.y1,e.copy(n));else if(n.type==="t"||n.type==="T"){const o=zA(e.x,t.x),a=zA(e.y,t.y);t.x=o,t.y=a,n.type==="t"?(A.quadraticCurveTo(o,a,e.x+n.x,e.y+n.y),e.add(n)):(A.quadraticCurveTo(o,a,n.x,n.y),e.copy(n))}else if(n.type==="a"||n.type==="A"){const o=e.clone();if(n.type==="a"){if(n.x===0&&n.y===0)continue;e.add(n)}else{if(e.equals(n))continue;e.copy(n)}t.copy(e),tu(A,n.rx,n.ry,n.angle,n.largeArcFlag,n.sweepFlag,o,e)}else n.type==="z"||n.type==="Z"?(A.startPoint&&e.copy(A.startPoint),A.closePath()):console.warn("Unsupported commands",n)}}function Au(r){let A,e;const t=[];for(let i=0,s=r.length;i<s;i++){const n=r[i];switch(n.type){case"m":case"M":if(n.x.toFixed(4)===(e==null?void 0:e.x.toFixed(4))&&n.y.toFixed(4)===(e==null?void 0:e.y.toFixed(4)))continue;t.push(`${n.type} ${n.x} ${n.y}`),e={x:n.x,y:n.y},A={x:n.x,y:n.y};break;case"h":case"H":t.push(`${n.type} ${n.x}`),e={x:n.x,y:(e==null?void 0:e.y)??0};break;case"v":case"V":t.push(`${n.type} ${n.y}`),e={x:(e==null?void 0:e.x)??0,y:n.y};break;case"l":case"L":t.push(`${n.type} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"c":case"C":t.push(`${n.type} ${n.x1} ${n.y1} ${n.x2} ${n.y2} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"s":case"S":t.push(`${n.type} ${n.x2} ${n.y2} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"q":case"Q":t.push(`${n.type} ${n.x1} ${n.y1} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"t":case"T":t.push(`${n.type} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"a":case"A":t.push(`${n.type} ${n.rx} ${n.ry} ${n.angle} ${n.largeArcFlag} ${n.sweepFlag} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"z":case"Z":t.push(n.type),A&&(e={x:A.x,y:A.y});break}}return t.join(" ")}const iu=/[a-df-z][^a-df-z]*/gi;function Ga(r){const A=[],e=r.match(iu);if(!e)return A;for(let t=0,i=e.length;t<i;t++){const s=e[t],n=s.charAt(0),o=s.slice(1).trim();let a;switch(n){case"m":case"M":a=Rt(o);for(let l=0,h=a.length;l<h;l+=2)l===0?A.push({type:n,x:a[l],y:a[l+1]}):A.push({type:n==="m"?"l":"L",x:a[l],y:a[l+1]});break;case"h":case"H":a=Rt(o);for(let l=0,h=a.length;l<h;l++)A.push({type:n,x:a[l]});break;case"v":case"V":a=Rt(o);for(let l=0,h=a.length;l<h;l++)A.push({type:n,y:a[l]});break;case"l":case"L":a=Rt(o);for(let l=0,h=a.length;l<h;l+=2)A.push({type:n,x:a[l],y:a[l+1]});break;case"c":case"C":a=Rt(o);for(let l=0,h=a.length;l<h;l+=6)A.push({type:n,x1:a[l],y1:a[l+1],x2:a[l+2],y2:a[l+3],x:a[l+4],y:a[l+5]});break;case"s":case"S":a=Rt(o);for(let l=0,h=a.length;l<h;l+=4)A.push({type:n,x2:a[l],y2:a[l+1],x:a[l+2],y:a[l+3]});break;case"q":case"Q":a=Rt(o);for(let l=0,h=a.length;l<h;l+=4)A.push({type:n,x1:a[l],y1:a[l+1],x:a[l+2],y:a[l+3]});break;case"t":case"T":a=Rt(o);for(let l=0,h=a.length;l<h;l+=2)A.push({type:n,x:a[l],y:a[l+1]});break;case"a":case"A":a=Rt(o,[3,4],7);for(let l=0,h=a.length;l<h;l+=7)A.push({type:n,rx:a[l],ry:a[l+1],angle:a[l+2],largeArcFlag:a[l+3],sweepFlag:a[l+4],x:a[l+5],y:a[l+6]});break;case"z":case"Z":A.push({type:n});break;default:console.warn(s)}}return A}function La(r,A,e,t,i){const s=(t-A)*.5,n=(i-e)*.5,o=r*r,a=r*o;return(2*e-2*t+s+n)*a+(-3*e+3*t-2*s-n)*o+s*r+e}function ru(r,A){const e=1-r;return e*e*e*A}function su(r,A){const e=1-r;return 3*e*e*r*A}function nu(r,A){return 3*(1-r)*r*r*A}function ou(r,A){return r*r*r*A}function Oa(r,A,e,t,i){return ru(r,A)+su(r,e)+nu(r,t)+ou(r,i)}function Ha(r,A={}){let{vertices:e=[],indices:t=[],holes:i=[],verticesStride:s=2,verticesOffset:n=e.length/s,indicesOffset:o=t.length}=A;const a=Ng(r,i,2);if(a.length){for(let h=0;h<a.length;h+=3)t[o++]=a[h]+n,t[o++]=a[h+1]+n,t[o++]=a[h+2]+n;let l=n*s;for(let h=0;h<r.length;h+=2)e[l]=r[h],e[l+1]=r[h+1],l+=s}return{vertices:e,indices:t}}const au=8,wr=11920929e-14,lu=1;function hu(r,A,e,t,i,s,n,o,a=.5,l=[]){const c=Math.min(.99,Math.max(0,a));let f=(lu-c)/1;return f*=f,sn(r,A,e,t,i,s,n,o,l,f,0),l.push(n,o),l}function sn(r,A,e,t,i,s,n,o,a,l,h){if(h>au)return;const c=(r+e)/2,f=(A+t)/2,I=(e+i)/2,d=(t+s)/2,C=(i+n)/2,p=(s+o)/2,x=(c+I)/2,P=(f+d)/2,w=(I+C)/2,R=(d+p)/2,v=(x+w)/2,m=(P+R)/2;if(h>0){let b=n-r,D=o-A;const z=Math.abs((e-n)*D-(t-o)*b),Ae=Math.abs((i-n)*D-(s-o)*b);if(z>wr&&Ae>wr){if((z+Ae)*(z+Ae)<=l*(b*b+D*D)){a.push(v,m);return}}else if(z>wr){if(z*z<=l*(b*b+D*D)){a.push(v,m);return}}else if(Ae>wr){if(Ae*Ae<=l*(b*b+D*D)){a.push(v,m);return}}else if(b=v-(r+n)/2,D=m-(A+o)/2,b*b+D*D<=l){a.push(v,m);return}}sn(r,A,c,f,x,P,v,m,a,l,h+1),sn(v,m,w,R,C,p,n,o,a,l,h+1)}const cu=8,gu=11920929e-14,uu=1;function fu(r,A,e,t,i,s,n=.5,o=[]){const l=Math.min(.99,Math.max(0,n));let h=(uu-l)/1;return h*=h,nn(o,r,A,e,t,i,s,h,0),o.push(i,s),o}function nn(r,A,e,t,i,s,n,o,a){if(a>cu)return;const l=(A+t)/2,h=(e+i)/2,c=(t+s)/2,f=(i+n)/2,I=(l+c)/2,d=(h+f)/2;let C=s-A,p=n-e;const x=Math.abs((t-s)*p-(i-n)*C);if(x>gu){if(x*x<=o*(C*C+p*p)){r.push(I,d);return}}else if(C=I-(A+s)/2,p=d-(e+n)/2,C*C+p*p<=o){r.push(I,d);return}nn(r,A,e,l,h,I,d,o,a+1),nn(r,I,d,c,f,s,n,o,a+1)}function du(r,A){let e=!1;const[t,i]=r,s=A.length/2;for(let n=0,o=s-1;n<s;o=n++){const a=A[n*2],l=A[n*2+1],h=A[o*2],c=A[o*2+1];l>i!=c>i&&t<(h-a)*(i-l)/(c-l)+a&&(e=!e)}return e}function Iu(r,A){const e=1-r;return e*e*A}function pu(r,A){return 2*(1-r)*r*A}function Eu(r,A){return r*r*A}function Ja(r,A,e,t){return Iu(r,A)+pu(r,e)+Eu(r,t)}const Bu=1e-4,Ka=1e-4;function Cu(r,A={}){const{vertices:e=[],indices:t=[],lineStyle:i={alignment:.5,cap:"butt",join:"miter",width:1,miterLimit:10},flipAlignment:s=!1,closed:n=!0}=A,o=Bu;if(r.length===0)return{vertices:e,indices:t};const a=i;let l=a.alignment;if(i.alignment!==.5){let J=Qu(r);s&&(J*=-1),l=(l-.5)*J+.5}const h={x:r[0],y:r[1]},c={x:r[r.length-2],y:r[r.length-1]},f=n,I=Math.abs(h.x-c.x)<o&&Math.abs(h.y-c.y)<o;if(f){r=r.slice(),I&&(r.pop(),r.pop(),c.x=r[r.length-2],c.y=r[r.length-1]);const J=(h.x+c.x)*.5,$=(c.y+h.y)*.5;r.unshift(J,$),r.push(J,$)}const d=e,C=r.length/2;let p=r.length;const x=d.length/2,P=a.width/2,w=P*P,R=a.miterLimit*a.miterLimit;let v=r[0],m=r[1],b=r[2],D=r[3],z=0,Ae=0,W=-(m-D),K=v-b,te=0,Y=0,L=Math.sqrt(W*W+K*K);W/=L,K/=L,W*=P,K*=P;const se=l,H=(1-se)*2,q=se*2;f||(a.cap==="round"?p+=_A(v-W*(H-q)*.5,m-K*(H-q)*.5,v-W*H,m-K*H,v+W*q,m+K*q,d,!0)+2:a.cap==="square"&&(p+=Ya(v,m,W,K,H,q,!0,d))),d.push(v-W*H,m-K*H),d.push(v+W*q,m+K*q);for(let J=1;J<C-1;++J){v=r[(J-1)*2],m=r[(J-1)*2+1],b=r[J*2],D=r[J*2+1],z=r[(J+1)*2],Ae=r[(J+1)*2+1],W=-(m-D),K=v-b,L=Math.sqrt(W*W+K*K),W/=L,K/=L,W*=P,K*=P,te=-(D-Ae),Y=b-z,L=Math.sqrt(te*te+Y*Y),te/=L,Y/=L,te*=P,Y*=P;const $=b-v,N=m-D,U=b-z,X=Ae-D,ee=$*U+N*X,oe=N*U-X*$,j=oe<0;if(Math.abs(oe)<.001*Math.abs(ee)){d.push(b-W*H,D-K*H),d.push(b+W*q,D+K*q),ee>=0&&(a.join==="round"?p+=_A(b,D,b-W*H,D-K*H,b-te*H,D-Y*H,d,!1)+4:p+=2,d.push(b-te*q,D-Y*q),d.push(b+te*H,D+Y*H));continue}const pe=(-W+v)*(-K+D)-(-W+b)*(-K+m),at=(-te+z)*(-Y+D)-(-te+b)*(-Y+Ae),lt=($*at-U*pe)/oe,He=(X*pe-N*at)/oe,ge=(lt-b)*(lt-b)+(He-D)*(He-D),we=b+(lt-b)*H,Je=D+(He-D)*H,We=b-(lt-b)*q,xe=D-(He-D)*q,tt=Math.min($*$+N*N,U*U+X*X),Ot=j?H:q,cs=tt+Ot*Ot*w;ge<=cs?a.join==="bevel"||ge/w>R?(j?(d.push(we,Je),d.push(b+W*q,D+K*q),d.push(we,Je),d.push(b+te*q,D+Y*q)):(d.push(b-W*H,D-K*H),d.push(We,xe),d.push(b-te*H,D-Y*H),d.push(We,xe)),p+=2):a.join==="round"?j?(d.push(we,Je),d.push(b+W*q,D+K*q),p+=_A(b,D,b+W*q,D+K*q,b+te*q,D+Y*q,d,!0)+4,d.push(we,Je),d.push(b+te*q,D+Y*q)):(d.push(b-W*H,D-K*H),d.push(We,xe),p+=_A(b,D,b-W*H,D-K*H,b-te*H,D-Y*H,d,!1)+4,d.push(b-te*H,D-Y*H),d.push(We,xe)):(d.push(we,Je),d.push(We,xe)):(d.push(b-W*H,D-K*H),d.push(b+W*q,D+K*q),a.join==="round"?j?p+=_A(b,D,b+W*q,D+K*q,b+te*q,D+Y*q,d,!0)+2:p+=_A(b,D,b-W*H,D-K*H,b-te*H,D-Y*H,d,!1)+2:a.join==="miter"&&ge/w<=R&&(j?(d.push(We,xe),d.push(We,xe)):(d.push(we,Je),d.push(we,Je)),p+=2),d.push(b-te*H,D-Y*H),d.push(b+te*q,D+Y*q),p+=2)}v=r[(C-2)*2],m=r[(C-2)*2+1],b=r[(C-1)*2],D=r[(C-1)*2+1],W=-(m-D),K=v-b,L=Math.sqrt(W*W+K*K),W/=L,K/=L,W*=P,K*=P,d.push(b-W*H,D-K*H),d.push(b+W*q,D+K*q),f||(a.cap==="round"?p+=_A(b-W*(H-q)*.5,D-K*(H-q)*.5,b-W*H,D-K*H,b+W*q,D+K*q,d,!1)+2:a.cap==="square"&&(p+=Ya(b,D,W,K,H,q,!1,d)));const ie=Ka*Ka;for(let J=x;J<p+x-2;++J)v=d[J*2],m=d[J*2+1],b=d[(J+1)*2],D=d[(J+1)*2+1],z=d[(J+2)*2],Ae=d[(J+2)*2+1],!(Math.abs(v*(D-Ae)+b*(Ae-m)+z*(m-D))<ie)&&t.push(J,J+1,J+2);return{vertices:e,indices:t}}function Qu(r){const A=r.length;if(A<6)return 1;let e=0;for(let t=0,i=r[A-2],s=r[A-1];t<A;t+=2){const n=r[t],o=r[t+1];e+=(n-i)*(o+s),i=n,s=o}return e<0?-1:1}function Ya(r,A,e,t,i,s,n,o){const a=r-e*i,l=A-t*i,h=r+e*s,c=A+t*s;let f,I;n?(f=t,I=-e):(f=-t,I=e);const d=a+f,C=l+I,p=h+f,x=c+I;return o.push(d,C),o.push(p,x),2}function _A(r,A,e,t,i,s,n,o){const a=e-r,l=t-A;let h=Math.atan2(a,l),c=Math.atan2(i-r,s-A);o&&h<c?h+=Math.PI*2:!o&&h>c&&(c+=Math.PI*2);let f=h;const I=c-h,d=Math.abs(I),C=Math.sqrt(a*a+l*l),p=(15*d*Math.sqrt(C)/Math.PI>>0)+1,x=I/p;if(f+=x,o){n.push(r,A),n.push(e,t);for(let P=1,w=f;P<p;P++,w+=x)n.push(r,A),n.push(r+Math.sin(w)*C,A+Math.cos(w)*C);n.push(r,A),n.push(i,s)}else{n.push(e,t),n.push(r,A);for(let P=1,w=f;P<p;P++,w+=x)n.push(r+Math.sin(w)*C,A+Math.cos(w)*C),n.push(r,A);n.push(i,s),n.push(r,A)}return p*2}class WA{constructor(){u(this,"arcLengthDivision",200);u(this,"_arcLengths")}getPointAt(A,e=new G){return this.getPoint(this.getUToTMapping(A),e)}isClockwise(){const A=this.getPoint(1),e=this.getPoint(.5),t=this.getPoint(1);return(e.x-A.x)*(t.y-e.y)-(e.y-A.y)*(t.x-e.x)<0}getControlPointRefs(){return[]}applyTransform(A){const e=typeof A=="function";return this.getControlPointRefs().forEach(t=>{e?A(t):t.applyMatrix3(A)}),this}getUnevenVertices(A=5,e=[]){const t=new G;for(let i=0,s=Math.max(1,A)-1;i<=s;i++)this.getPoint(i/s,t),e.push(t.x,t.y);return e}getSpacedVertices(A=5,e=[]){const t=new G;for(let i=0,s=Math.max(1,A)-1;i<=s;i++)this.getPointAt(i/s,t),e.push(t.x,t.y);return e}getAdaptiveVertices(A=[]){return this.getUnevenVertices(5,A)}_verticesToPoints(A,e=[]){for(let t=0,i=A.length;t<i;t+=2){const s=A[t],n=A[t+1];e.push(new G(s,n))}return e}getSpacedPoints(A,e=[]){const t=this.getSpacedVertices(A);return this._verticesToPoints(t,e),e}getUnevenPoints(A,e=[]){const t=this.getUnevenVertices(A);return this._verticesToPoints(t,e),e}getAdaptivePoints(A=[]){const e=this.getAdaptiveVertices();return this._verticesToPoints(e,A),A}getPoints(A,e=[]){let t;return A?t=this.getUnevenVertices(A):t=this.getAdaptiveVertices(),this._verticesToPoints(t,e),e}getLength(){const A=this.getLengths();return A[A.length-1]}getLengths(){return(!this._arcLengths||this._arcLengths.length!==this.arcLengthDivision+1)&&this.updateLengths(),this._arcLengths}updateLengths(){const A=this.arcLengthDivision,e=[0];for(let t=0,i=this.getPoint(0),s=1;s<=A;s++){const n=this.getPoint(s/A);t+=n.distanceTo(i),e.push(t),i=n}this._arcLengths=e}getUToTMapping(A,e){const t=this.getLengths(),i=t.length,s=e??A*t[i-1];if(i<2)return s/t[0];let n=0,o=0,a=i-1,l;for(;o<=a;)if(n=Math.floor(o+(a-o)/2),l=t[n]-s,l<0)o=n+1;else if(l>0)a=n-1;else{a=n;break}if(n=a,t[n]===s)return n/(i-1);const h=t[n],f=t[n+1]-h,I=(s-h)/f;return(n+I)/(i-1)}getTangent(A,e=new G){const i=Math.max(0,A-1e-4),s=Math.min(1,A+1e-4);return e.copy(this.getPoint(s).sub(this.getPoint(i)).normalize())}getTangentAt(A,e){return this.getTangent(this.getUToTMapping(A),e)}getNormal(A,e=new G){return this.getTangent(A,e),e.set(-e.y,e.x).normalize()}getNormalAt(A,e){return this.getNormal(this.getUToTMapping(A),e)}getTForPoint(A,e=.001){let t=0,i=1,s=(t+i)/2;for(;i-t>e;){s=(t+i)/2;const n=this.getPoint(s);if(n.distanceTo(A)<e)return s;n.x<A.x?t=s:i=s}return s}getMinMax(A=G.MAX,e=G.MIN){const t=this.getPoints();for(let i=0,s=t.length;i<s;i++){const n=t[i];A.min(n),e.max(n)}return{min:A.finite(),max:e.finite()}}getBoundingBox(){const{min:A,max:e}=this.getMinMax();return new ce(A.x,A.y,e.x-A.x,e.y-A.y)}getFillVertices(A){return this.getAdaptiveVertices()}fillTriangulate(A){return Ha(this.getFillVertices(A),A)}strokeTriangulate(A){return Cu(this.getAdaptiveVertices(),A)}toCommands(){const A=[],e=this.getPoints();for(let t=0,i=e.length;t<i;t++){const s=e[t];t===0?A.push({type:"M",x:s.x,y:s.y}):A.push({type:"L",x:s.x,y:s.y})}return A}toData(){return Au(this.toCommands())}drawTo(A){return this.toCommands().forEach(e=>{switch(e.type){case"M":A.moveTo(e.x,e.y);break;case"L":A.lineTo(e.x,e.y);break}}),this}copy(A){return this.arcLengthDivision=A.arcLengthDivision,this}clone(){return new this.constructor().copy(this)}}const yu=new Ke,Va=new Ke,za=new Ke,vr=new G;class on extends WA{constructor(A=new G,e=new G,t=new G,i=0,s=0,n=Math.PI*2,o=!1){super(),this._center=A,this._radius=e,this._diff=t,this.rotate=i,this.startAngle=s,this.endAngle=n,this.clockwise=o}get cx(){return this._center.x}set cx(A){this._center.x=A}get cy(){return this._center.y}set cy(A){this._center.y=A}get rx(){return this._radius.x}set rx(A){this._radius.x=A}get ry(){return this._radius.y}set ry(A){this._radius.y=A}get dx(){return this._diff.x}set dx(A){this._diff.x=A}get dy(){return this._diff.y}set dy(A){this._diff.y=A}isClockwise(){return this.clockwise}_getDeltaAngle(){const A=Math.PI*2;let e=this.endAngle-this.startAngle;const t=Math.abs(e)<Number.EPSILON;return e=(e%A+A)%A,t?e=0:this.clockwise||(e=e===0?-A:e-A),e}getPoint(A,e=new G){const t=this._getDeltaAngle(),i=this.startAngle+A*t;let s=this.cx+this.rx*Math.cos(i),n=this.cy+this.ry*Math.sin(i);if(this.rotate!==0){const o=Math.cos(this.rotate),a=Math.sin(this.rotate),l=s-this.cx,h=n-this.cy;s=l*o-h*a+this.cx,n=l*a+h*o+this.cy}return e.set(s,n)}toCommands(){const{cx:A,cy:e,rx:t,ry:i,startAngle:s,endAngle:n,clockwise:o,rotate:a}=this,l=A+t*Math.cos(s)*Math.cos(a)-i*Math.sin(s)*Math.sin(a),h=e+t*Math.cos(s)*Math.sin(a)+i*Math.sin(s)*Math.cos(a),c=Math.abs(s-n),f=c>Math.PI?1:0,I=o?1:0,d=a*180/Math.PI;if(c>=2*Math.PI){const C=s+Math.PI,p=A+t*Math.cos(C)*Math.cos(a)-i*Math.sin(C)*Math.sin(a),x=e+t*Math.cos(C)*Math.sin(a)+i*Math.sin(C)*Math.cos(a);return[{type:"M",x:l,y:h},{type:"A",rx:t,ry:i,angle:d,largeArcFlag:0,sweepFlag:I,x:p,y:x},{type:"A",rx:t,ry:i,angle:d,largeArcFlag:0,sweepFlag:I,x:l,y:h}]}else{const C=A+t*Math.cos(n)*Math.cos(a)-i*Math.sin(n)*Math.sin(a),p=e+t*Math.cos(n)*Math.sin(a)+i*Math.sin(n)*Math.cos(a);return[{type:"M",x:l,y:h},{type:"A",rx:t,ry:i,angle:d,largeArcFlag:f,sweepFlag:I,x:C,y:p}]}}drawTo(A){const{cx:e,cy:t,rx:i,ry:s,rotate:n,startAngle:o,endAngle:a,clockwise:l}=this;return A.ellipse(e,t,i,s,n,o,a,!l),this}applyTransform(A){return vr.set(this.cx,this.cy),vr.applyMatrix3(A),this.cx=vr.x,this.cy=vr.y,vu(A)?mu(this,A):wu(this,A),this}getControlPointRefs(){return[this._center]}_getAdaptiveVerticesByArc(A=[]){const{cx:e,cy:t,rx:i,ry:s,dx:n,dy:o,startAngle:a,endAngle:l,clockwise:h}=this,c=!h,f=e,I=t,d=a,C=l;let p=Math.abs(d-C);(!c&&d>C||c&&C>d)&&(p=2*Math.PI-p);let x=Math.max(6,Math.floor(6*i**(1/3)*(p/Math.PI)));x=Math.max(x,3),x*=3;let P=p/x,w=d;P*=c?-1:1;for(let R=0;R<x+1;R++){const v=Math.cos(w),m=Math.sin(w),b=f+n+v*i,D=I+o+m*s;A.push(b,D),w+=P}return A}_getAdaptiveVerticesByCircle(A=[]){const{cx:e,cy:t,rx:i,ry:s,dx:n,dy:o}=this;if(!(i>=0&&s>=0&&n>=0&&o>=0))return A;const a=Math.ceil(2.3*Math.sqrt(i+s)),l=e,h=t,c=a*8+(n?4:0)+(o?4:0);if(c===0)return A;const f=A.length;if(a===0)return A[f]=A[f+6]=l+n,A[f+1]=A[f+3]=h+o,A[f+2]=A[f+4]=l-n,A[f+5]=A[f+7]=h-o,A;let I=f,d=f+a*4+(n?2:0)+2,C=d,p=c,x=n+i,P=o,w=l+x,R=l-x,v=h+P;if(A[I++]=w,A[I++]=v,A[--d]=v,A[--d]=R,o){const b=h-P;A[C++]=R,A[C++]=b,A[--p]=b,A[--p]=w}for(let b=1;b<a;b++){const D=Math.PI/2*(b/a),z=n+Math.cos(D)*i,Ae=o+Math.sin(D)*s,W=l+z,K=l-z,te=h+Ae,Y=h-Ae;A[I++]=W,A[I++]=te,A[--d]=te,A[--d]=K,A[C++]=K,A[C++]=Y,A[--p]=Y,A[--p]=W}x=n,P=o+s,w=l+x,R=l-x,v=h+P;const m=h-P;return A[I++]=w,A[I++]=v,A[--p]=m,A[--p]=w,n&&(A[I++]=R,A[I++]=v,A[--p]=m,A[--p]=R),A}getAdaptiveVertices(A=[]){return this.startAngle===0&&this.endAngle===Math.PI*2?this._getAdaptiveVerticesByCircle(A):this._getAdaptiveVerticesByArc(A)}getMinMax(A=G.MAX,e=G.MIN){const{cx:t,cy:i,rx:s,ry:n,rotate:o}=this,a=Math.cos(o),l=Math.sin(o),h=Math.sqrt(s*s*a*a+n*n*l*l),c=Math.sqrt(s*s*l*l+n*n*a*a);return A.x=Math.min(A.x,t-h),A.y=Math.min(A.y,i-c),e.x=Math.max(e.x,t+h),e.y=Math.max(e.y,i+c),{min:A.finite(),max:e.finite()}}copy(A){return super.copy(A),this.cx=A.cx,this.cy=A.cy,this.rx=A.rx,this.ry=A.ry,this.dx=A.dx,this.dy=A.dy,this.startAngle=A.startAngle,this.endAngle=A.endAngle,this.clockwise=A.clockwise,this.rotate=A.rotate,this}}function mu(r,A){const e=r.rx,t=r.ry,i=Math.cos(r.rotate),s=Math.sin(r.rotate),n=new G(e*i,e*s),o=new G(-t*s,t*i),a=n.applyMatrix3(A),l=o.applyMatrix3(A),h=yu.set(a.x,l.x,0,a.y,l.y,0,0,0,1),c=Va.copy(h).invert(),d=za.copy(c).transpose().multiply(c).elements,C=_u(d[0],d[1],d[4]),p=Math.sqrt(C.rt1),x=Math.sqrt(C.rt2);if(r.rx=1/p,r.ry=1/x,r.rotate=Math.atan2(C.sn,C.cs),!((r.endAngle-r.startAngle)%(2*Math.PI)<Number.EPSILON)){const w=Va.set(p,0,0,0,x,0,0,0,1),R=za.set(C.cs,C.sn,0,-C.sn,C.cs,0,0,0,1),v=w.multiply(R).multiply(h),m=b=>{const{x:D,y:z}=new G(Math.cos(b),Math.sin(b)).applyMatrix3(v);return Math.atan2(z,D)};r.startAngle=m(r.startAngle),r.endAngle=m(r.endAngle),Wa(A)&&(r.clockwise=!r.clockwise)}}function wu(r,A){const e=qa(A),t=Xa(A);r.rx*=e,r.ry*=t;const i=e>Number.EPSILON?Math.atan2(A.elements[1],A.elements[0]):Math.atan2(-A.elements[3],A.elements[4]);r.rotate+=i,Wa(A)&&(r.startAngle*=-1,r.endAngle*=-1,r.clockwise=!r.clockwise)}function Wa(r){const A=r.elements;return A[0]*A[4]-A[1]*A[3]<0}function vu(r){const A=r.elements,e=A[0]*A[3]+A[1]*A[4];if(e===0)return!1;const t=qa(r),i=Xa(r);return Math.abs(e/(t*i))>Number.EPSILON}function qa(r){const A=r.elements;return Math.sqrt(A[0]*A[0]+A[1]*A[1])}function Xa(r){const A=r.elements;return Math.sqrt(A[3]*A[3]+A[4]*A[4])}function _u(r,A,e){let t,i,s,n,o;const a=r+e,l=r-e,h=Math.sqrt(l*l+4*A*A);return a>0?(t=.5*(a+h),o=1/t,i=r*o*e-A*o*A):a<0?i=.5*(a-h):(t=.5*h,i=-.5*h),l>0?s=l+h:s=l-h,Math.abs(s)>2*Math.abs(A)?(o=-2*A/s,n=1/Math.sqrt(1+o*o),s=o*n):Math.abs(A)===0?(s=1,n=0):(o=-.5*s/A,s=1/Math.sqrt(1+o*o),n=o*s),l>0&&(o=s,s=-n,n=o),{rt1:t,rt2:i,cs:s,sn:n}}class bu extends on{constructor(A=0,e=0,t=1,i=0,s=Math.PI*2,n=!1){super(new G(A,e),new G(t,t),new G,0,i,s,n)}drawTo(A){const{cx:e,cy:t,rx:i,startAngle:s,endAngle:n,clockwise:o}=this;return A.arc(e,t,i,s,n,!o),this}getAdaptiveVertices(A=[]){const{cx:e,cy:t,rx:i,startAngle:s,endAngle:n,clockwise:o}=this;let a=Math.abs(s-n);(!o&&s>n||o&&n>s)&&(a=2*Math.PI-a);let l=Math.max(6,Math.floor(6*i**(1/3)*(a/Math.PI)));l=Math.max(l,3);let h=a/l,c=s;h*=o?1:-1;for(let f=0;f<l+1;f++){const I=Math.cos(c),d=Math.sin(c),C=e+I*i,p=t+d*i;A.push(C,p),c+=h}return A}}class Xt extends WA{constructor(A=new G,e=new G){super(),this.p1=A,this.p2=e}static from(A,e,t,i){return new Xt(new G(A,e),new G(t,i))}getPoint(A,e=new G){return A===1?e.copy(this.p2):e.copy(this.p2).sub(this.p1).scale(A).add(this.p1),e}getPointAt(A,e=new G){return this.getPoint(A,e)}getTangent(A,e=new G){return e.subVectors(this.p2,this.p1).normalize()}getTangentAt(A,e=new G){return this.getTangent(A,e)}getControlPointRefs(){return[this.p1,this.p2]}getAdaptiveVertices(A=[]){return A.push(this.p1.x,this.p1.y,this.p2.x,this.p2.y),A}getMinMax(A=G.MAX,e=G.MIN){const{p1:t,p2:i}=this;return A.x=Math.min(A.x,t.x,i.x),A.y=Math.min(A.y,t.y,i.y),e.x=Math.max(e.x,t.x,i.x),e.y=Math.max(e.y,t.y,i.y),{min:A.finite(),max:e.finite()}}toCommands(){const{p1:A,p2:e}=this;return[{type:"M",x:A.x,y:A.y},{type:"L",x:e.x,y:e.y}]}getFillVertices(A={}){var h,c;const e=Math.min(this.p1.x,this.p2.x),t=Math.max(this.p1.x,this.p2.x),i=Math.min(this.p1.y,this.p2.y),s=Math.max(this.p1.y,this.p2.y),n=e,o=i,a=t-e||((h=A.style)==null?void 0:h.strokeWidth)||0,l=s-i||((c=A.style)==null?void 0:c.strokeWidth)||0;return[n,o,n+a,o,n+a,o+l,n,o+l]}drawTo(A){const{p1:e,p2:t}=this;return A.lineTo(e.x,e.y),A.lineTo(t.x,t.y),this}copy(A){return super.copy(A),this.p1.copy(A.p1),this.p2.copy(A.p2),this}}class Pi extends WA{constructor(A=[]){super(),this.curves=A}getFlatCurves(){return this.curves.flatMap(A=>A instanceof Pi?A.getFlatCurves():A)}addCurve(A){return this.curves.push(A),this}getPoint(A,e=new G){const t=A*this.getLength(),i=this.getLengths();let s=0;for(;s<i.length;){if(i[s]>=t){const n=i[s]-t,o=this.curves[s],a=o.getLength();return o.getPointAt(a===0?0:1-n/a,e)}s++}return e}updateLengths(){const A=[];for(let e=0,t=0,i=this.curves.length;e<i;e++)t+=this.curves[e].getLength(),A.push(t);this._arcLengths=A}getControlPointRefs(){return this.curves.flatMap(A=>A.getControlPointRefs())}_removeNextPointIfEqualPrevPoint(A,e){const t=[A[e-1],A[e]],i=[A[e+1],A[e+2]];return t[0]===i[0]&&t[1]===i[1]&&A.splice(e+1,2),A}getSpacedVertices(A=5,e=[]){let t;return this.curves.forEach(i=>{i.getSpacedVertices(A,e),t&&this._removeNextPointIfEqualPrevPoint(e,t),t=e.length-1}),e}getAdaptiveVertices(A=[]){let e;return this.curves.forEach(t=>{t.getAdaptiveVertices(A),e&&this._removeNextPointIfEqualPrevPoint(A,e),e=A.length-1}),A}strokeTriangulate(A){return this.curves.length===1?this.curves[0].strokeTriangulate(A):super.strokeTriangulate(A)}getFillVertices(A){if(this.curves.length===1)return this.curves[0].getFillVertices(A);{const e=[];let t;return this.curves.forEach(i=>{let s;i instanceof Xt?s=i.getAdaptiveVertices():s=i.getFillVertices(A),e.push(...s),t&&this._removeNextPointIfEqualPrevPoint(e,t),t=e.length-1}),e}}applyTransform(A){return this.curves.forEach(e=>e.applyTransform(A)),this}getMinMax(A=G.MAX,e=G.MIN){return this.curves.forEach(t=>t.getMinMax(A,e)),{min:A.finite(),max:e.finite()}}getBoundingBox(){const{min:A,max:e}=this.getMinMax();return new ce(A.x,A.y,e.x-A.x,e.y-A.y)}toCommands(){return this.curves.flatMap(A=>A.toCommands())}drawTo(A){var t;const e=(t=this.curves[0])==null?void 0:t.getPoint(0);return e&&A.moveTo(e.x,e.y),this.curves.forEach(i=>i.drawTo(A)),this}copy(A){return super.copy(A),this.curves=A.curves.map(e=>e.clone()),this}}class an extends WA{constructor(A=new G,e=new G,t=new G,i=new G){super(),this.p1=A,this.cp1=e,this.cp2=t,this.p2=i}static from(A,e,t,i,s,n,o,a){return new an(new G(A,e),new G(t,i),new G(s,n),new G(o,a))}getPoint(A,e=new G){const{p1:t,cp1:i,cp2:s,p2:n}=this;return e.set(Oa(A,t.x,i.x,s.x,n.x),Oa(A,t.y,i.y,s.y,n.y))}getAdaptiveVertices(A=[]){return hu(this.p1.x,this.p1.y,this.cp1.x,this.cp1.y,this.cp2.x,this.cp2.y,this.p2.x,this.p2.y,.5,A)}getControlPointRefs(){return[this.p1,this.cp1,this.cp2,this.p2]}_solveQuadratic(A,e,t){const i=e*e-4*A*t;if(i<0)return[];const s=Math.sqrt(i),n=(-e+s)/(2*A),o=(-e-s)/(2*A);return[n,o].filter(a=>a>=0&&a<=1)}getMinMax(A=G.MAX,e=G.MIN){const{p1:t,cp1:i,cp2:s,p2:n}=this,o=this._solveQuadratic(3*(i.x-t.x),6*(s.x-i.x),3*(n.x-s.x)),a=this._solveQuadratic(3*(i.y-t.y),6*(s.y-i.y),3*(n.y-s.y)),l=[0,1,...o,...a];return((c,f)=>{for(const I of c)for(let d=0;d<=f;d++){const C=d/f-.5,p=Math.min(1,Math.max(0,I+C)),x=this.getPoint(p);A.x=Math.min(A.x,x.x),A.y=Math.min(A.y,x.y),e.x=Math.max(e.x,x.x),e.y=Math.max(e.y,x.y)}})(l,10),{min:A.finite(),max:e.finite()}}toCommands(){const{p1:A,cp1:e,cp2:t,p2:i}=this;return[{type:"M",x:A.x,y:A.y},{type:"C",x1:e.x,y1:e.y,x2:t.x,y2:t.y,x:i.x,y:i.y}]}drawTo(A){const{p1:e,cp1:t,cp2:i,p2:s}=this;return A.lineTo(e.x,e.y),A.bezierCurveTo(t.x,t.y,i.x,i.y,s.x,s.y),this}copy(A){return super.copy(A),this.p1.copy(A.p1),this.cp1.copy(A.cp1),this.cp2.copy(A.cp2),this.p2.copy(A.p2),this}}class Du extends on{constructor(A=0,e=0,t=1,i=1,s=0,n=0,o=Math.PI*2,a=!1){super(new G(A,e),new G(t,i),new G,s,n,o,a)}drawTo(A){return A.ellipse(this.cx,this.cy,this.rx,this.ry,this.rotate,this.startAngle,this.endAngle,!this.clockwise),this}}class xu extends Pi{}class ln extends WA{constructor(A=new G,e=new G,t=new G){super(),this.p1=A,this.cp=e,this.p2=t}static from(A,e,t,i,s,n){return new ln(new G(A,e),new G(t,i),new G(s,n))}getPoint(A,e=new G){const{p1:t,cp:i,p2:s}=this;return e.set(Ja(A,t.x,i.x,s.x),Ja(A,t.y,i.y,s.y)),e}getControlPointRefs(){return[this.p1,this.cp,this.p2]}getAdaptiveVertices(A=[]){return fu(this.p1.x,this.p1.y,this.cp.x,this.cp.y,this.p2.x,this.p2.y,.5,A)}getMinMax(A=G.MAX,e=G.MIN){const{p1:t,cp:i,p2:s}=this,n=.5*(t.x+i.x),o=.5*(t.y+i.y),a=.5*(t.x+s.x),l=.5*(t.y+s.y);return A.x=Math.min(A.x,t.x,s.x,n,a),A.y=Math.min(A.y,t.y,s.y,o,l),e.x=Math.max(e.x,t.x,s.x,n,a),e.y=Math.max(e.y,t.y,s.y,o,l),{min:A.finite(),max:e.finite()}}toCommands(){const{p1:A,cp:e,p2:t}=this;return[{type:"M",x:A.x,y:A.y},{type:"Q",x1:e.x,y1:e.y,x:t.x,y:t.y}]}drawTo(A){const{p1:e,cp:t,p2:i}=this;return A.lineTo(e.x,e.y),A.quadraticCurveTo(t.x,t.y,i.x,i.y),this}copy(A){return super.copy(A),this.p1.copy(A.p1),this.cp.copy(A.cp),this.p2.copy(A.p2),this}}class Su extends xu{constructor(A=0,e=0,t=0,i=0){super(),this.x=A,this.y=e,this.width=t,this.height=i,this.update()}update(){const{x:A,y:e,width:t,height:i}=this,s=[new G(A,e),new G(A+t,e),new G(A+t,e+i),new G(A,e+i)];return this.curves=[new Xt(s[0],s[1]),new Xt(s[1],s[2]),new Xt(s[2],s[3]),new Xt(s[3],s[0])],this}drawTo(A){return A.rect(this.x,this.y,this.width,this.height),this}getFillVertices(A={}){const{x:e,y:t,width:i,height:s}=this;return[e,t,e+i,t,e+i,t+s,e,t+s]}copy(A){return super.copy(A),this.x=A.x,this.y=A.y,this.width=A.width,this.height=A.height,this.update(),this}}class Mu extends on{constructor(A=0,e=0,t=1,i=1,s=1){super(),this.x=A,this.y=e,this.width=t,this.height=i,this.radius=s,this.update()}update(){const{x:A,y:e,width:t,height:i,radius:s}=this,n=t/2,o=i/2,a=A+n,l=e+o,h=Math.max(0,Math.min(s,Math.min(n,o))),c=h;return this._center=new G(a,l),this._radius=new G(h,c),this._diff=new G(n-h,o-c),this}drawTo(A){const{x:e,y:t,width:i,height:s,radius:n}=this;return A.roundRect(e,t,i,s,n),this}copy(A){return super.copy(A),this.x=A.x,this.y=A.y,this.width=A.width,this.height=A.height,this.radius=A.radius,this.update(),this}}class Ru extends WA{constructor(A=[]){super(),this.points=A}getPoint(A,e=new G){const{points:t}=this,i=(t.length-1)*A,s=Math.floor(i),n=i-s,o=t[s===0?s:s-1],a=t[s],l=t[s>t.length-2?t.length-1:s+1],h=t[s>t.length-3?t.length-1:s+2];return e.set(La(n,o.x,a.x,l.x,h.x),La(n,o.y,a.y,l.y,h.y)),e}getControlPointRefs(){return this.points}copy(A){super.copy(A),this.points=[];for(let e=0,t=A.points.length;e<t;e++)this.points.push(A.points[e].clone());return this}}class _r extends Pi{constructor(e){super();u(this,"startPoint");u(this,"currentPoint");u(this,"autoClose",!1);e&&this.addPoints(e)}addPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,i=e.length;t<i;t++){const{x:s,y:n}=e[t];this.lineTo(s,n)}return this}addCommands(e){return Ta(e,this),this}addData(e){return this.addCommands(Ga(e)),this}_closeVertices(e){return this.autoClose&&e.length>=4&&e[0]!==e[e.length-2]&&e[1]!==e[e.length-1]&&e.push(e[0],e[1]),e}getUnevenVertices(e=40,t=[]){return this._closeVertices(super.getUnevenVertices(e,t))}getSpacedVertices(e=40,t=[]){return this._closeVertices(super.getSpacedVertices(e,t))}getAdaptiveVertices(e=[]){return this._closeVertices(super.getAdaptiveVertices(e))}getFillVertices(e){return this._closeVertices(super.getFillVertices(e))}_setCurrentPoint(e){return this.currentPoint=new G(e.x,e.y),this.startPoint||(this.startPoint=this.currentPoint.clone()),this}_connetLineTo(e){if(this.curves.length>0){const t=e.getPoint(0);(!this.currentPoint||!t.equals(this.currentPoint))&&this.lineTo(t.x,t.y)}return this}closePath(){const e=this.startPoint;if(e){const t=this.currentPoint;t&&!e.equals(t)&&(this.curves.push(new Xt(t.clone(),e.clone())),t.copy(e)),this.startPoint=void 0}return this}moveTo(e,t){return this.currentPoint=new G(e,t),this.startPoint=this.currentPoint.clone(),this}lineTo(e,t){const i=this.currentPoint;return i!=null&&i.equals({x:e,y:t})||this.curves.push(Xt.from((i==null?void 0:i.x)??0,(i==null?void 0:i.y)??0,e,t)),this._setCurrentPoint({x:e,y:t}),this}bezierCurveTo(e,t,i,s,n,o){const a=this.currentPoint;return a!=null&&a.equals({x:n,y:o})||this.curves.push(an.from((a==null?void 0:a.x)??0,(a==null?void 0:a.y)??0,e,t,i,s,n,o)),this._setCurrentPoint({x:n,y:o}),this}quadraticCurveTo(e,t,i,s){const n=this.currentPoint;return n!=null&&n.equals({x:i,y:s})||this.curves.push(ln.from((n==null?void 0:n.x)??0,(n==null?void 0:n.y)??0,e,t,i,s)),this._setCurrentPoint({x:i,y:s}),this}arc(e,t,i,s,n,o){const a=new bu(e,t,i,s,n,!o);return this._connetLineTo(a),this.curves.push(a),this._setCurrentPoint(a.getPoint(1)),this}relativeArc(e,t,i,s,n,o){var a,l;return e+=((a=this.currentPoint)==null?void 0:a.x)??0,t+=((l=this.currentPoint)==null?void 0:l.y)??0,this.arc(e,t,i,s,n,o),this}arcTo(e,t,i,s,n){return console.warn("Method arcTo not supported yet"),this}ellipse(e,t,i,s,n,o,a,l=!0){const h=new Du(e,t,i,s,n,o,a,!l);return this._connetLineTo(h),this.curves.push(h),this._setCurrentPoint(h.getPoint(1)),this}relativeEllipse(e,t,i,s,n,o,a,l){var h,c;return e+=((h=this.currentPoint)==null?void 0:h.x)??0,t+=((c=this.currentPoint)==null?void 0:c.y)??0,this.ellipse(e,t,i,s,n,o,a,l),this}rect(e,t,i,s){const n=new Su(e,t,i,s);return this._connetLineTo(n),this.curves.push(n),this._setCurrentPoint({x:e,y:t}),this}roundRect(e,t,i,s,n){const o=new Mu(e,t,i,s,n);return this._connetLineTo(o),this.curves.push(o),this._setCurrentPoint({x:e,y:t}),this}splineThru(e){const t=this.currentPoint??new G;return this.curves.push(new Ru([t].concat(e))),this._setCurrentPoint(e[e.length-1]),this}drawTo(e){var i;const t=(i=this.curves[0])==null?void 0:i.getPoint(0);return t&&e.moveTo(t.x,t.y),this.curves.forEach(s=>s.drawTo(e)),this.autoClose&&e.closePath(),this}copy(e){var t;return super.copy(e),this.autoClose=e.autoClose,this.currentPoint=(t=e.currentPoint)==null?void 0:t.clone(),this}}function Pu(r){return r.replace(/[^a-z0-9]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase()}function ku(r,A,e,t){const i=A.clone().sub(r),s=t.clone().sub(e),n=e.clone().sub(r),o=i.cross(s);if(o===0)return new G((r.x+e.x)/2,(r.y+e.y)/2);const a=n.cross(s)/o;return Math.abs(a)>1?new G((r.x+e.x)/2,(r.y+e.y)/2):new G(r.x+a*i.x,r.y+a*i.y)}class Ne extends Pi{constructor(e,t={}){super();u(this,"currentCurve",new _r);u(this,"style");this.curves.push(this.currentCurve),this.style=t,e&&(e instanceof Ne?this.addPath(e):Array.isArray(e)?this.addCommands(e):this.addData(e))}get startPoint(){return this.currentCurve.startPoint}get currentPoint(){return this.currentCurve.currentPoint}get strokeWidth(){return this.style.strokeWidth??((this.style.stroke??"none")==="none"?0:1)}addPath(e){const t=this.curves.findIndex(i=>i===this.currentCurve);return t>-1&&this.curves.splice(t,1),e instanceof Ne?this.curves.push(...e.curves.filter(i=>i.curves.length).map(i=>i.clone())):e.curves.length&&this.curves.push(e),this.curves.push(this.currentCurve),this}closePath(){const e=this.startPoint;return e&&(this.currentCurve.closePath(),this.currentCurve.curves.length&&(this.currentCurve=new _r().moveTo(e.x,e.y),this.curves.push(this.currentCurve))),this}moveTo(e,t){var i;return(i=this.currentCurve.currentPoint)!=null&&i.equals({x:e,y:t})||(this.currentCurve.curves.length&&(this.currentCurve=new _r,this.curves.push(this.currentCurve)),this.currentCurve.moveTo(e,t)),this}lineTo(e,t){return this.currentCurve.lineTo(e,t),this}bezierCurveTo(e,t,i,s,n,o){return this.currentCurve.bezierCurveTo(e,t,i,s,n,o),this}quadraticCurveTo(e,t,i,s){return this.currentCurve.quadraticCurveTo(e,t,i,s),this}arc(e,t,i,s,n,o){return this.currentCurve.arc(e,t,i,s,n,o),this}arcTo(e,t,i,s,n){return this.currentCurve.arcTo(e,t,i,s,n),this}ellipse(e,t,i,s,n,o,a,l){return this.currentCurve.ellipse(e,t,i,s,n,o,a,l),this}rect(e,t,i,s){return this.currentCurve.rect(e,t,i,s),this}roundRect(e,t,i,s,n){return this.currentCurve.roundRect(e,t,i,s,n),this}reset(){return this.currentCurve=new _r,this.curves=[this.currentCurve],this.style={},this}addCommands(e){return Ta(e,this),this}addData(e){return this.addCommands(Ga(e)),this}splineThru(e){return this.currentCurve.splineThru(e),this}scale(e,t=e,i={x:0,y:0}){return this.getControlPointRefs().forEach(s=>{s.scale(e,t,i)}),this}skew(e,t=0,i={x:0,y:0}){return this.getControlPointRefs().forEach(s=>{s.skew(e,t,i)}),this}rotate(e,t={x:0,y:0}){return this.getControlPointRefs().forEach(i=>{i.rotate(e,t)}),this}bold(e){if(e===0)return this;const t=this.getFlatCurves(),i=[],s=[],n=[];t.forEach((a,l)=>{const h=a.getControlPointRefs(),c=a.isClockwise();n[l]=h,s[l]=c;const f=h[0],I=h[h.length-1]??f;i.push({start:c?I:f,end:c?f:I,index:l})});const o=[];return i.forEach((a,l)=>{o[l]=[],i.forEach((h,c)=>{var f;h.start&&a.end&&c!==l&&((f=h.start)!=null&&f.equals(a.end))&&o[l].push(h.index)})}),t.forEach((a,l)=>{const h=s[l];n[l].forEach(c=>{c.add(a.getNormal(a.getTForPoint(c)).scale(h?e:-e))})}),o.forEach((a,l)=>{const h=n[l];a.forEach(c=>{const f=n[c],I=ku(h[h.length-1],h[h.length-2]??h[h.length-1],f[0],f[1]??f[0]);I&&(h[h.length-1].copy(I),f[0].copy(I))})}),this}getMinMax(e=G.MAX,t=G.MIN,i=!0){const s=this.strokeWidth;return this.curves.forEach(n=>{if(n.getMinMax(e,t),i&&s>1){const o=s/2,a=n.isClockwise(),l=[];for(let h=0;h<=1;h+=1/n.arcLengthDivision){const c=n.getPoint(h),f=n.getNormal(h),I=f.clone().scale(a?o:-o),d=f.clone().scale(a?-o:o);l.push(c.clone().add(I),c.clone().add(d),c.clone().add({x:o,y:0}),c.clone().add({x:-o,y:0}),c.clone().add({x:0,y:o}),c.clone().add({x:0,y:-o}),c.clone().add({x:o,y:o}),c.clone().add({x:-o,y:-o}))}e.min(...l),t.max(...l)}}),{min:e.finite(),max:t.finite()}}strokeTriangulate(e){const t=(e==null?void 0:e.indices)??[],i=(e==null?void 0:e.vertices)??[];return this.curves.forEach(s=>{s.strokeTriangulate({...e,indices:t,vertices:i,style:{...this.style}})}),{indices:t,vertices:i}}fillTriangulate(e){const t={...e,style:{...this.style,...e==null?void 0:e.style}},i=t.indices??[],s=t.vertices??[];if((t.style.fillRule??"nonzero")==="nonzero"){const o=this.curves.map(h=>h.getFillVertices(t)),a=new Map,l=new Set;for(let h=0;h<o.length;h++){const c=[];for(let f=0;f<o.length;f++)h!==f&&du([o[h][0],o[h][1]],o[f])&&c.push(f);c.length&&(c.forEach(f=>{let I=a.get(f);I||(I=new Set,a.set(f,I)),I.add(h)}),l.add(h))}o.forEach((h,c)=>{var d;if(l.has(c)||!h.length)return;const f=h.slice(),I=[];(d=a.get(c))==null||d.forEach(C=>{I.push(f.length/2),f.push(...o[C])}),Ha(f,{...e,indices:i,vertices:s,holes:I,style:{...this.style}})})}else this.curves.forEach(o=>{o.fillTriangulate({...e,indices:i,vertices:s,style:{...this.style}})});return{indices:i,vertices:s}}getBoundingBox(e=!0){const{min:t,max:i}=this.getMinMax(void 0,void 0,e);return new ce(t.x,t.y,i.x-t.x,i.y-t.y)}drawTo(e,t={}){t={...this.style,...t};const{fill:i="#000",stroke:s="none"}=t;return e.beginPath(),e.save(),An(e,t),this.curves.forEach(n=>{n.drawTo(e)}),i!=="none"&&e.fill(),s!=="none"&&e.stroke(),e.restore(),this}drawControlPointsTo(e,t={}){t={...this.style,...t};const{fill:i="#000",stroke:s="none"}=t;return e.beginPath(),e.save(),An(e,t),this.getControlPointRefs().forEach(n=>{$g(e,n.x,n.y,{radius:4})}),i!=="none"&&e.fill(),s!=="none"&&e.stroke(),e.restore(),this}toCommands(){return this.curves.flatMap(e=>e.toCommands())}toData(){return this.curves.filter(e=>e.curves.length).map(e=>e.toData()).join(" ")}toSVGPathString(){const e={...this.style,fill:this.style.fill??"#000",stroke:this.style.stroke??"none"},t={};for(const s in e)e[s]!==void 0&&(t[Pu(s)]=e[s]);Object.assign(t,{"stroke-width":`${this.strokeWidth}px`});let i="";for(const s in t)t[s]!==void 0&&(i+=`${s}:${t[s]};`);return`<path d="${this.toData()}" style="${i}"></path>`}copy(e){return super.copy(e),this.currentCurve=e.currentCurve.clone(),this.style={...e.style},this}}class nA{constructor(A=[],e){this.paths=A,this.viewBox=e}getBoundingBox(A=!0){if(!this.paths.length)return;const e=G.MAX,t=G.MIN;return this.paths.forEach(i=>i.getMinMax(e,t,A)),new ce(e.x,e.y,t.x-e.x,t.y-e.y)}toTriangulatedSVGString(A=this.paths.map(t=>t.fillTriangulate()),e=0){let t="";const i={x:-e,y:-e},s={x:e,y:e};(Array.isArray(A)?A:[A]).forEach(({vertices:a,indices:l})=>{const h=c=>{const f=a[c*2],I=a[c*2+1];return i.x=Math.min(i.x,f+e),s.x=Math.max(s.x,f+e),i.y=Math.min(i.y,I+e),s.y=Math.max(s.y,I+e),[f,I]};for(let c=0,f=l.length;c<f;c+=3){const I=h(l[c]),d=h(l[c+1]),C=h(l[c+2]);t+=`<polygon points="${I.join(",")} ${d.join(",")} ${C.join(",")}" fill="black" />`}});const o=[i.x,i.y,s.x-i.x,s.y-i.y];return`<svg width="${o[2]}" height="${o[3]}" viewBox="${o.join(" ")}" xmlns="http://www.w3.org/2000/svg">${t}</svg>`}toTriangulatedSVG(A,e){return new DOMParser().parseFromString(this.toTriangulatedSVGString(A,e),"image/svg+xml").documentElement}toSVGString(){const{x:A,y:e,width:t,height:i}=this.getBoundingBox(),s=this.paths.map(n=>n.toSVGPathString()).join("");return`<svg viewBox="${A} ${e} ${t} ${i}" width="${t}px" height="${i}px" xmlns="http://www.w3.org/2000/svg">${s}</svg>`}toSVGUrl(){return`data:image/svg+xml;base64,${btoa(this.toSVGString())}`}toSVG(){return new DOMParser().parseFromString(this.toSVGString(),"image/svg+xml").documentElement}toCanvas(A={}){const{pixelRatio:e=2,...t}=A,{left:i,top:s,width:n,height:o}=this.getBoundingBox(),a=document.createElement("canvas");a.width=n*e,a.height=o*e,a.style.width=`${n}px`,a.style.height=`${o}px`;const l=a.getContext("2d");return l&&(l.scale(e,e),l.translate(-i,-s),this.paths.forEach(h=>{h.drawTo(l,t)})),a}}const ja="data:image/svg+xml;",Za=`${ja}base64,`,$a=`${ja}charset=utf8,`;function hn(r){if(typeof r=="string"){let A;r.startsWith(Za)?(r=r.substring(Za.length,r.length),A=atob(r)):r.startsWith($a)?(r=r.substring($a.length,r.length),A=decodeURIComponent(r)):A=r;const e=new DOMParser().parseFromString(A,"text/xml"),t=e.querySelector("parsererror");if(t)throw new Error(`${t.textContent??"parser error"}
277
- ${A}`);return e.documentElement}else return r}const Uu="px",Nu=90,el=["mm","cm","in","pt","pc","px"],tl={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:72/6,pc:1,px:-1},px:{px:1}};function Ee(r){let A="px";if(typeof r=="string")for(let t=0,i=el.length;t<i;t++){const s=el[t];if(r.endsWith(s)){A=s,r=r.substring(0,r.length-s.length);break}}let e;return e=tl[A][Uu],e<0&&(e=tl[A].in*Nu),e*Number.parseFloat(r)}const Fu=new Ke,br=new Ke,Al=new Ke,il=new Ke;function Tu(r,A,e){if(!(r.hasAttribute("transform")||r.nodeName==="use"&&(r.hasAttribute("x")||r.hasAttribute("y"))))return null;const t=Gu(r);return e.length>0&&t.premultiply(e[e.length-1]),A.copy(t),e.push(t),t}function Gu(r){const A=new Ke,e=Fu;if(r.nodeName==="use"&&(r.hasAttribute("x")||r.hasAttribute("y"))&&A.translate(Ee(r.getAttribute("x")),Ee(r.getAttribute("y"))),r.hasAttribute("transform")){const t=r.getAttribute("transform").split(")");for(let i=t.length-1;i>=0;i--){const s=t[i].trim();if(s==="")continue;const n=s.indexOf("("),o=s.length;if(n>0&&n<o){const a=s.slice(0,n),l=Rt(s.slice(n+1));switch(e.identity(),a){case"translate":if(l.length>=1){const h=l[0];let c=0;l.length>=2&&(c=l[1]),e.translate(h,c)}break;case"rotate":if(l.length>=1){let h=0,c=0,f=0;h=l[0]*Math.PI/180,l.length>=3&&(c=l[1],f=l[2]),br.makeTranslation(-c,-f),Al.makeRotation(h),il.multiplyMatrices(Al,br),br.makeTranslation(c,f),e.multiplyMatrices(br,il)}break;case"scale":l.length>=1&&e.scale(l[0],l[1]??l[0]);break;case"skewX":l.length===1&&e.set(1,Math.tan(l[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":l.length===1&&e.set(1,0,0,Math.tan(l[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":l.length===6&&e.set(l[0],l[2],l[4],l[1],l[3],l[5],0,0,1);break}}A.premultiply(e)}}return A}function Lu(r){return new Ne().arc(Ee(r.getAttribute("cx")||0),Ee(r.getAttribute("cy")||0),Ee(r.getAttribute("r")||0),0,Math.PI*2)}function Ou(r,A){if(!(!r.sheet||!r.sheet.cssRules||!r.sheet.cssRules.length))for(let e=0;e<r.sheet.cssRules.length;e++){const t=r.sheet.cssRules[e];if(t.type!==1)continue;const i=t.selectorText.split(/,/g).filter(Boolean).map(n=>n.trim()),s={};for(let n=t.style.length,o=0;o<n;o++){const a=t.style.item(o);s[a]=t.style.getPropertyValue(a)}for(let n=0;n<i.length;n++)A[i[n]]=Object.assign(A[i[n]]||{},{...s})}}function Hu(r){return new Ne().ellipse(Ee(r.getAttribute("cx")||0),Ee(r.getAttribute("cy")||0),Ee(r.getAttribute("rx")||0),Ee(r.getAttribute("ry")||0),0,0,Math.PI*2)}function Ju(r){return new Ne().moveTo(Ee(r.getAttribute("x1")||0),Ee(r.getAttribute("y1")||0)).lineTo(Ee(r.getAttribute("x2")||0),Ee(r.getAttribute("y2")||0))}function Ku(r){const A=new Ne,e=r.getAttribute("d");return!e||e==="none"?null:(A.addData(e),A)}const Yu=/([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g;function Vu(r){var t;const A=new Ne;let e=0;return(t=r.getAttribute("points"))==null||t.replace(Yu,(i,s,n)=>{const o=Ee(s),a=Ee(n);return e===0?A.moveTo(o,a):A.lineTo(o,a),e++,i}),A.currentCurve.autoClose=!0,A}const zu=/([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g;function Wu(r){var t;const A=new Ne;let e=0;return(t=r.getAttribute("points"))==null||t.replace(zu,(i,s,n)=>{const o=Ee(s),a=Ee(n);return e===0?A.moveTo(o,a):A.lineTo(o,a),e++,i}),A.currentCurve.autoClose=!1,A}function qu(r){const A=Ee(r.getAttribute("x")||0),e=Ee(r.getAttribute("y")||0),t=Ee(r.getAttribute("rx")||r.getAttribute("ry")||0),i=Ee(r.getAttribute("ry")||r.getAttribute("rx")||0),s=Ee(r.getAttribute("width")),n=Ee(r.getAttribute("height")),o=1-.551915024494,a=new Ne;return a.moveTo(A+t,e),a.lineTo(A+s-t,e),(t!==0||i!==0)&&a.bezierCurveTo(A+s-t*o,e,A+s,e+i*o,A+s,e+i),a.lineTo(A+s,e+n-i),(t!==0||i!==0)&&a.bezierCurveTo(A+s,e+n-i*o,A+s-t*o,e+n,A+s-t,e+n),a.lineTo(A+t,e+n),(t!==0||i!==0)&&a.bezierCurveTo(A+t*o,e+n,A,e+n-i*o,A,e+n-i),a.lineTo(A,e+i),(t!==0||i!==0)&&a.bezierCurveTo(A,e+i*o,A+t*o,e,A+t,e),a}function Pt(r,A,e){A=Object.assign({},A);let t={};if(r.hasAttribute("class")){const l=r.getAttribute("class").split(/\s/).filter(Boolean).map(h=>h.trim());for(let h=0;h<l.length;h++)t=Object.assign(t,e[`.${l[h]}`])}r.hasAttribute("id")&&(t=Object.assign(t,e[`#${r.getAttribute("id")}`]));for(let l=r.style.length,h=0;h<l;h++){const c=r.style.item(h),f=r.style.getPropertyValue(c);A[c]=f,t[c]=f}function i(l,h,c=s){r.hasAttribute(l)&&(A[h]=c(r.getAttribute(l))),t[l]&&(A[h]=c(t[l]))}function s(l){return l.startsWith("url")&&console.warn("url access in attributes is not implemented."),l}function n(l){return Math.max(0,Math.min(1,Ee(l)))}function o(l){return Math.max(0,Ee(l))}function a(l){return l.split(" ").filter(h=>h!=="").map(h=>Ee(h))}return i("fill","fill"),i("fill-opacity","fillOpacity",n),i("fill-rule","fillRule"),i("opacity","opacity",n),i("stroke","stroke"),i("stroke-opacity","strokeOpacity",n),i("stroke-width","strokeWidth",o),i("stroke-linecap","strokeLinecap"),i("stroke-linejoin","strokeLinejoin"),i("stroke-miterlimit","strokeMiterlimit",o),i("stroke-dasharray","strokeDasharray",a),i("stroke-dashoffset","strokeDashoffset",Ee),i("visibility","visibility"),A}function cn(r,A,e=[],t={}){var c;if(r.nodeType!==1)return e;let i=!1,s=null,n={...A};switch(r.nodeName){case"svg":n=Pt(r,n,t);break;case"style":Ou(r,t);break;case"g":n=Pt(r,n,t);break;case"path":n=Pt(r,n,t),r.hasAttribute("d")&&(s=Ku(r));break;case"rect":n=Pt(r,n,t),s=qu(r);break;case"polygon":n=Pt(r,n,t),s=Vu(r);break;case"polyline":n=Pt(r,n,t),s=Wu(r);break;case"circle":n=Pt(r,n,t),s=Lu(r);break;case"ellipse":n=Pt(r,n,t),s=Hu(r);break;case"line":n=Pt(r,n,t),s=Ju(r);break;case"defs":i=!0;break;case"use":{n=Pt(r,n,t);const I=(r.getAttributeNS("http://www.w3.org/1999/xlink","href")||r.getAttribute("href")||"").substring(1),d=(c=r.viewportElement)==null?void 0:c.getElementById(I);d?cn(d,n,e,t):console.warn(`'use node' references non-existent node id: ${I}`);break}default:console.warn(r);break}if(n.display==="none")return e;const o=new Ke,a=[],l=Tu(r,o,a);s&&(s.applyTransform(o),e.push(s),s.style={...n});const h=r.childNodes;for(let f=0,I=h.length;f<I;f++){const d=h[f];i&&d.nodeName!=="style"&&d.nodeName!=="defs"||cn(d,n,e,t)}return l&&(a.pop(),a.length>0?o.copy(a[a.length-1]):o.identity()),e}function gn(r){var e;const A=hn(r);return new nA(cn(A,{}),(e=A.getAttribute("viewBox"))==null?void 0:e.trim().split(" ").map(t=>Number(t)))}class rl extends Ne{constructor(){super(...arguments);u(this,"fillStyle");u(this,"strokeStyle");u(this,"lineCap");u(this,"lineJoin");u(this,"lineWidth");u(this,"miterLimit");u(this,"uvTransform");u(this,"vertTransform");u(this,"_defaultStyle",_e.EMPTY);u(this,"_draws",[])}_toTexture(e){return e instanceof _e?e:new Qa(e)}stroke(e){const t=new Ne(this);let i=this._defaultStyle;this.strokeStyle&&(i=this._toTexture(this.strokeStyle)),this.curves.length&&(this._draws.push({...e,type:"stroke",path:t,texture:i,uvTransform:this.uvTransform,vertTransform:this.vertTransform,style:{alignment:.5,cap:this.lineCap??"butt",join:this.lineJoin??"miter",width:this.lineWidth??1,miterLimit:this.miterLimit??10}}),super.reset())}fillRect(e,t,i,s){this.rect(e,t,i,s).fill()}strokeRect(e,t,i,s){this.rect(e,t,i,s).stroke()}fill(e){const t=new Ne(this);let i=this._defaultStyle;this.fillStyle&&(i=this._toTexture(this.fillStyle)),this._draws.push({...e,type:"fill",path:t,texture:i,uvTransform:this.uvTransform,vertTransform:this.vertTransform}),super.reset()}copy(e){return super.copy(e),this.strokeStyle=e.strokeStyle,this.fillStyle=e.fillStyle,this.uvTransform=e.uvTransform,this.vertTransform=e.vertTransform,this.lineCap=e.lineCap,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this._draws=e._draws.slice(),this}reset(){return super.reset(),this.strokeStyle=void 0,this.fillStyle=void 0,this.uvTransform=void 0,this.vertTransform=void 0,this.lineCap=void 0,this.lineJoin=void 0,this.lineWidth=void 0,this.miterLimit=void 0,this._draws.length=0,this}buildUvs(e,t,i,s,n){if(s){const o=n&&(typeof n=="function"?n:(h,c)=>n.applyToPoint(h,c)),a=s.width,l=s.height;for(let h=t.length,c=e;c<h;c+=2){const f=t[c],I=t[c+1];let d,C;o?[d,C]=o(f,I):[d,C]=[f/a,I/l],i.push(d,C)}}else for(let o=t.length,a=e;a<o;a+=2)i.push(0,0)}toBatchables(){const e=[];for(let t=this._draws.length,i=0;i<t;i++){const s=this._draws[i],n=[],o=[],a=[];s.type==="fill"?s.path.fillTriangulate({vertices:n,indices:o}):s.path.strokeTriangulate({vertices:n,indices:o,lineStyle:s.style,flipAlignment:!1,closed:!0}),this.buildUvs(0,n,a,s.texture,s.uvTransform),e.push({vertices:n,indices:o,uvs:a,texture:s.texture,type:s.type,disableWrapMode:s.disableWrapMode,vertTransform:s.vertTransform})}return e}}var Xu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,ki=(r,A,e,t)=>{for(var i=t>1?void 0:t?ju(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Xu(A,e,i),i};g.CanvasItem=class extends g.TimelineNode{constructor(e,t=[]){super();u(this,"_parentGlobalVisible");u(this,"_globalVisible");u(this,"_parentGlobalOpacity");u(this,"_globalOpacity");u(this,"_modulate",new Vt(4294967295));u(this,"context",new rl);u(this,"_resetContext",!0);u(this,"_redrawing",!1);u(this,"_relayouting",!1);u(this,"_repainting",!1);u(this,"_originalBatchables",[]);u(this,"_layoutedBatchables",[]);u(this,"_batchables",[]);this.setProperties(e).append(t)}get globalVisible(){return this._globalVisible??!0}get globalOpacity(){return this._globalOpacity??1}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"modulate":this._modulate.value=t,this.requestRepaint();break;case"blendMode":this.requestRepaint();break;case"opacity":this._updateGlobalOpacity();break;case"visible":case"insideTimeRange":this._updateGlobalVisible();break}}show(){this.visible=!0}hide(){this.visible=!1}isVisibleInTree(){return this.globalOpacity>0&&this.globalVisible}canRender(){return super.canRender()&&this.isVisibleInTree()}requestRedraw(){this._redrawing=!0,this.requestUpdate()}requestRelayout(){this._relayouting=!0,this.requestUpdate()}requestRepaint(){this._repainting=!0,this.requestUpdate()}_updateGlobalVisible(){var e;this._parentGlobalVisible=(e=this.getParent())==null?void 0:e.globalVisible,this._globalVisible=(this._parentGlobalVisible??!0)&&this.visible&&this.insideTimeRange}_updateGlobalOpacity(){var t;this._parentGlobalOpacity=(t=this.getParent())==null?void 0:t.opacity;const e=zt(0,this.opacity,1)*(this._parentGlobalOpacity??1);this._globalOpacity!==e&&(this._globalOpacity=e,this.requestRepaint())}_draw(){this.emit("draw")}_redraw(){var e;return(e=this._tree)==null||e.log(this.name,"redrawing"),this._draw(),this.context.toBatchables()}_relayout(e){var t;return(t=this._tree)==null||t.log(this.name,"relayouting"),e}_repaint(e){var t;return(t=this._tree)==null||t.log(this.name,"repainting"),e.map(i=>({...i,modulate:this._modulate.toArgb(this.globalOpacity,!0),blendMode:this.blendMode}))}_process(e){super._process(e);const t=this.getParent();this._parentGlobalVisible!==(t==null?void 0:t.globalVisible)&&this.requestUpdate(),this._parentGlobalOpacity!==(t==null?void 0:t.globalOpacity)&&this.requestUpdate()}_update(e){super._update(e);const t=this.getParent();this._parentGlobalVisible!==(t==null?void 0:t.globalVisible)&&this._updateGlobalVisible(),this._parentGlobalOpacity!==(t==null?void 0:t.globalOpacity)&&this._updateGlobalOpacity();const i=this._redrawing;let s=this._relayouting,n=this._repainting,o;i&&(this._originalBatchables=this._redraw(),s=!0),s&&(this._layoutedBatchables=this._relayout(this._originalBatchables),n=!0),n&&(o=this._repaint(this._layoutedBatchables)),i&&this._resetContext&&this.context.reset(),o&&(this._batchables=o,this._redrawing=!1,this._relayouting=!1,this._repainting=!1)}_render(e){this._batchables.forEach(t=>{var i,s;(i=t.texture)==null||i.upload(e),e.batch2D.render({...t,texture:(s=t.texture)==null?void 0:s._glTexture(e)})}),super._render(e)}},ki([M()],g.CanvasItem.prototype,"modulate",2),ki([M()],g.CanvasItem.prototype,"blendMode",2),ki([Be({default:!0})],g.CanvasItem.prototype,"visible",2),ki([Be({default:1})],g.CanvasItem.prototype,"opacity",2),g.CanvasItem=ki([ne("CanvasItem")],g.CanvasItem);class Zu{constructor(){u(this,"currentCall");u(this,"calls",[])}createCall(A){return{renderable:A,parentCall:this.currentCall,fn:A.render.bind(A),calls:[]}}push(A){var t;const e=this.createCall(A);return(((t=this.currentCall)==null?void 0:t.calls)??this.calls).push(e),e}render(A){this.calls.forEach(function e(t){t.fn(A,()=>{t.calls.forEach(e)})}),this.calls=[]}}var $u=Object.defineProperty,ef=Object.getOwnPropertyDescriptor,Ui=(r,A,e,t)=>{for(var i=t>1?void 0:t?ef(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&$u(A,e,i),i};g.Timeline=class extends g.Node{static from(A,e=!1){const[t,i]=A?Array.isArray(A)?A:[0,A]:[];return new g.Timeline({startTime:t,endTime:i,loop:e})}constructor(A){super(),this.setProperties(A)}_updateProperty(A,e,t){switch(super._updateProperty(A,e,t),A){case"startTime":this.startTime=Math.min(e,this.endTime);break;case"endTime":this.endTime=e||Number.MAX_SAFE_INTEGER;break}}addTime(A){const e=this.startTime,t=this.endTime;let i=this.currentTime;return i=i+A,this.loop&&i>t&&(i=e+i%t),i=zt(e,i,t),this.currentTime=i,this.emit("updateCurrentTime",i,A),this}_process(A){super._process(A),this.addTime(A)}},Ui([M({default:0})],g.Timeline.prototype,"startTime",2),Ui([M({default:0})],g.Timeline.prototype,"currentTime",2),Ui([M({default:Number.MAX_SAFE_INTEGER})],g.Timeline.prototype,"endTime",2),Ui([M({default:!1})],g.Timeline.prototype,"loop",2),g.Timeline=Ui([ne("Timeline")],g.Timeline);var tf=Object.defineProperty,un=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&tf(A,e,i),i};class Ni extends pr{constructor(e=new g.Timeline){super();u(this,"input",new Wo);u(this,"renderStack",new Zu);u(this,"root",new g.Viewport(!0).setTree(this));u(this,"timeline");u(this,"_backgroundColor",new Vt);u(this,"_currentViewport");this.timeline=e.setTree(this)}getCurrentViewport(){return this._currentViewport}setCurrentViewport(e){this._currentViewport=e}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"backgroundColor":this._backgroundColor.value=t;break}}log(...e){this.debug&&console.log("[modern-canvas]",...e)}_process(e=0){this.timeline.emit("process",e),this.emit("processing"),this.root.emit("process",e),this.emit("processed")}_render(e){this.emit("rendering"),e.program.uniforms.projectionMatrix=this.root.toProjectionArray(!0),this.renderStack.render(e),this._renderScreen(e),this.emit("rendered")}_renderScreen(e){e.state.reset(),e.framebuffer.bind(null),e.viewport.bind({x:0,y:0,width:this.root.width*e.pixelRatio,height:this.root.height*e.pixelRatio}),this.backgroundColor&&e.gl.clearColor(...this._backgroundColor.toArray()),e.clear(),this.backgroundColor&&e.gl.clearColor(0,0,0,0);const t=this.root.texture;t.activate(e,0),fe.draw(e),e.texture.unbind(t)}free(){super.free(),this.root.children.internal.forEach(e=>this.root.removeChild(e)),this.input.removeEventListeners()}}un([M({default:!1})],Ni.prototype,"processPaused"),un([M()],Ni.prototype,"backgroundColor"),un([Be({default:!1})],Ni.prototype,"debug");var Af=Object.getOwnPropertyDescriptor,rf=(r,A,e,t)=>{for(var i=t>1?void 0:t?Af(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Transition=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}},g.Transition=rf([ne("Transition",{effectMode:"transition",processMode:"pausable",duration:2e3})],g.Transition);var sl=Object.defineProperty,sf=Object.getOwnPropertyDescriptor,nf=(r,A,e)=>A in r?sl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,fn=(r,A,e,t)=>{for(var i=t>1?void 0:t?sf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&sl(A,e,i),i},nl=(r,A,e)=>nf(r,typeof A!="symbol"?A+"":A,e);const ol=`varying vec2 vUv[9];
276
+ }`})),$s([M({default:[]})],g.ColorReplaceEffect.prototype,"colors",2),$s([M({default:.05})],g.ColorReplaceEffect.prototype,"epsilon",2),g.ColorReplaceEffect=$s([ne("ColorReplaceEffect")],g.ColorReplaceEffect);function Fg(r,A,e=2){const t=A&&A.length,i=t?A[0]*e:r.length;let s=Pa(r,0,i,e,!0);const n=[];if(!s||s.next===s.prev)return n;let o,a,l;if(t&&(s=Hg(r,A,s,e)),r.length>80*e){o=1/0,a=1/0;let c=-1/0,h=-1/0;for(let f=e;f<i;f+=e){const I=r[f],d=r[f+1];I<o&&(o=I),d<a&&(a=d),I>c&&(c=I),d>h&&(h=d)}l=Math.max(c-o,h-a),l=l!==0?32767/l:0}return xi(s,n,e,o,a,l,0),n}function Pa(r,A,e,t,i){let s;if(i===$g(r,A,e,t)>0)for(let n=A;n<e;n+=t)s=Fa(n/t|0,r[n],r[n+1],s);else for(let n=e-t;n>=A;n-=t)s=Fa(n/t|0,r[n],r[n+1],s);return s&&VA(s,s.next)&&(Ri(s),s=s.next),s}function vA(r,A){if(!r)return r;A||(A=r);let e=r,t;do if(t=!1,!e.steiner&&(VA(e,e.next)||me(e.prev,e,e.next)===0)){if(Ri(e),e=A=e.prev,e===e.next)break;t=!0}else e=e.next;while(t||e!==A);return A}function xi(r,A,e,t,i,s,n){if(!r)return;!n&&s&&zg(r,t,i,s);let o=r;for(;r.prev!==r.next;){const a=r.prev,l=r.next;if(s?Gg(r,t,i,s):Tg(r)){A.push(a.i,r.i,l.i),Ri(r),r=l.next,o=l.next;continue}if(r=l,r===o){n?n===1?(r=Lg(vA(r),A),xi(r,A,e,t,i,s,2)):n===2&&Og(r,A,e,t,i,s):xi(vA(r),A,e,t,i,s,1);break}}}function Tg(r){const A=r.prev,e=r,t=r.next;if(me(A,e,t)>=0)return!1;const i=A.x,s=e.x,n=t.x,o=A.y,a=e.y,l=t.y,c=Math.min(i,s,n),h=Math.min(o,a,l),f=Math.max(i,s,n),I=Math.max(o,a,l);let d=t.next;for(;d!==A;){if(d.x>=c&&d.x<=f&&d.y>=h&&d.y<=I&&Si(i,o,s,a,n,l,d.x,d.y)&&me(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function Gg(r,A,e,t){const i=r.prev,s=r,n=r.next;if(me(i,s,n)>=0)return!1;const o=i.x,a=s.x,l=n.x,c=i.y,h=s.y,f=n.y,I=Math.min(o,a,l),d=Math.min(c,h,f),C=Math.max(o,a,l),p=Math.max(c,h,f),x=en(I,d,A,e,t),P=en(C,p,A,e,t);let w=r.prevZ,R=r.nextZ;for(;w&&w.z>=x&&R&&R.z<=P;){if(w.x>=I&&w.x<=C&&w.y>=d&&w.y<=p&&w!==i&&w!==n&&Si(o,c,a,h,l,f,w.x,w.y)&&me(w.prev,w,w.next)>=0||(w=w.prevZ,R.x>=I&&R.x<=C&&R.y>=d&&R.y<=p&&R!==i&&R!==n&&Si(o,c,a,h,l,f,R.x,R.y)&&me(R.prev,R,R.next)>=0))return!1;R=R.nextZ}for(;w&&w.z>=x;){if(w.x>=I&&w.x<=C&&w.y>=d&&w.y<=p&&w!==i&&w!==n&&Si(o,c,a,h,l,f,w.x,w.y)&&me(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;R&&R.z<=P;){if(R.x>=I&&R.x<=C&&R.y>=d&&R.y<=p&&R!==i&&R!==n&&Si(o,c,a,h,l,f,R.x,R.y)&&me(R.prev,R,R.next)>=0)return!1;R=R.nextZ}return!0}function Lg(r,A){let e=r;do{const t=e.prev,i=e.next.next;!VA(t,i)&&Ua(t,e,e.next,i)&&Mi(t,i)&&Mi(i,t)&&(A.push(t.i,e.i,i.i),Ri(e),Ri(e.next),e=r=i),e=e.next}while(e!==r);return vA(e)}function Og(r,A,e,t,i,s){let n=r;do{let o=n.next.next;for(;o!==n.prev;){if(n.i!==o.i&&Xg(n,o)){let a=Na(n,o);n=vA(n,n.next),a=vA(a,a.next),xi(n,A,e,t,i,s,0),xi(a,A,e,t,i,s,0);return}o=o.next}n=n.next}while(n!==r)}function Hg(r,A,e,t){const i=[];for(let s=0,n=A.length;s<n;s++){const o=A[s]*t,a=s<n-1?A[s+1]*t:r.length,l=Pa(r,o,a,t,!1);l===l.next&&(l.steiner=!0),i.push(qg(l))}i.sort(Jg);for(let s=0;s<i.length;s++)e=Kg(i[s],e);return e}function Jg(r,A){let e=r.x-A.x;if(e===0&&(e=r.y-A.y,e===0)){const t=(r.next.y-r.y)/(r.next.x-r.x),i=(A.next.y-A.y)/(A.next.x-A.x);e=t-i}return e}function Kg(r,A){const e=Yg(r,A);if(!e)return A;const t=Na(e,r);return vA(t,t.next),vA(e,e.next)}function Yg(r,A){let e=A;const t=r.x,i=r.y;let s=-1/0,n;if(VA(r,e))return e;do{if(VA(r,e.next))return e.next;if(i<=e.y&&i>=e.next.y&&e.next.y!==e.y){const h=e.x+(i-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(h<=t&&h>s&&(s=h,n=e.x<e.next.x?e:e.next,h===t))return n}e=e.next}while(e!==A);if(!n)return null;const o=n,a=n.x,l=n.y;let c=1/0;e=n;do{if(t>=e.x&&e.x>=a&&t!==e.x&&ka(i<l?t:s,i,a,l,i<l?s:t,i,e.x,e.y)){const h=Math.abs(i-e.y)/(t-e.x);Mi(e,r)&&(h<c||h===c&&(e.x>n.x||e.x===n.x&&Vg(n,e)))&&(n=e,c=h)}e=e.next}while(e!==o);return n}function Vg(r,A){return me(r.prev,r,A.prev)<0&&me(A.next,r,r.next)<0}function zg(r,A,e,t){let i=r;do i.z===0&&(i.z=en(i.x,i.y,A,e,t)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==r);i.prevZ.nextZ=null,i.prevZ=null,Wg(i)}function Wg(r){let A,e=1;do{let t=r,i;r=null;let s=null;for(A=0;t;){A++;let n=t,o=0;for(let l=0;l<e&&(o++,n=n.nextZ,!!n);l++);let a=e;for(;o>0||a>0&&n;)o!==0&&(a===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,o--):(i=n,n=n.nextZ,a--),s?s.nextZ=i:r=i,i.prevZ=s,s=i;t=n}s.nextZ=null,e*=2}while(A>1);return r}function en(r,A,e,t,i){return r=(r-e)*i|0,A=(A-t)*i|0,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,r|A<<1}function qg(r){let A=r,e=r;do(A.x<e.x||A.x===e.x&&A.y<e.y)&&(e=A),A=A.next;while(A!==r);return e}function ka(r,A,e,t,i,s,n,o){return(i-n)*(A-o)>=(r-n)*(s-o)&&(r-n)*(t-o)>=(e-n)*(A-o)&&(e-n)*(s-o)>=(i-n)*(t-o)}function Si(r,A,e,t,i,s,n,o){return!(r===n&&A===o)&&ka(r,A,e,t,i,s,n,o)}function Xg(r,A){return r.next.i!==A.i&&r.prev.i!==A.i&&!jg(r,A)&&(Mi(r,A)&&Mi(A,r)&&Zg(r,A)&&(me(r.prev,r,A.prev)||me(r,A.prev,A))||VA(r,A)&&me(r.prev,r,r.next)>0&&me(A.prev,A,A.next)>0)}function me(r,A,e){return(A.y-r.y)*(e.x-A.x)-(A.x-r.x)*(e.y-A.y)}function VA(r,A){return r.x===A.x&&r.y===A.y}function Ua(r,A,e,t){const i=mr(me(r,A,e)),s=mr(me(r,A,t)),n=mr(me(e,t,r)),o=mr(me(e,t,A));return!!(i!==s&&n!==o||i===0&&yr(r,e,A)||s===0&&yr(r,t,A)||n===0&&yr(e,r,t)||o===0&&yr(e,A,t))}function yr(r,A,e){return A.x<=Math.max(r.x,e.x)&&A.x>=Math.min(r.x,e.x)&&A.y<=Math.max(r.y,e.y)&&A.y>=Math.min(r.y,e.y)}function mr(r){return r>0?1:r<0?-1:0}function jg(r,A){let e=r;do{if(e.i!==r.i&&e.next.i!==r.i&&e.i!==A.i&&e.next.i!==A.i&&Ua(e,e.next,r,A))return!0;e=e.next}while(e!==r);return!1}function Mi(r,A){return me(r.prev,r,r.next)<0?me(r,A,r.next)>=0&&me(r,r.prev,A)>=0:me(r,A,r.prev)<0||me(r,r.next,A)<0}function Zg(r,A){let e=r,t=!1;const i=(r.x+A.x)/2,s=(r.y+A.y)/2;do e.y>s!=e.next.y>s&&e.next.y!==e.y&&i<(e.next.x-e.x)*(s-e.y)/(e.next.y-e.y)+e.x&&(t=!t),e=e.next;while(e!==r);return t}function Na(r,A){const e=tn(r.i,r.x,r.y),t=tn(A.i,A.x,A.y),i=r.next,s=A.prev;return r.next=A,A.prev=r,e.next=i,i.prev=e,t.next=e,e.prev=t,s.next=t,t.prev=s,t}function Fa(r,A,e,t){const i=tn(r,A,e);return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function Ri(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function tn(r,A,e){return{i:r,x:A,y:e,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function $g(r,A,e,t){let i=0;for(let s=A,n=e-t;s<e;s+=t)i+=(r[n]-r[s])*(r[s+1]+r[n+1]),n=s;return i}function eu(r,A,e,t={}){const{radius:i=1}=t;r.moveTo(A,e),r.arc(A,e,i,0,Math.PI*2)}const tu={arcs:"bevel",bevel:"bevel",miter:"miter","miter-clip":"miter",round:"round"};function An(r,A){const{fill:e="#000",stroke:t="none",strokeWidth:i=t==="none"?0:1,strokeLinecap:s="round",strokeLinejoin:n="miter",strokeMiterlimit:o=0,strokeDasharray:a=[],strokeDashoffset:l=0,shadowOffsetX:c=0,shadowOffsetY:h=0,shadowBlur:f=0,shadowColor:I="rgba(0, 0, 0, 0)"}=A;r.fillStyle=e,r.strokeStyle=t,r.lineWidth=i,r.lineCap=s,r.lineJoin=tu[n],r.miterLimit=o,r.setLineDash(a),r.lineDashOffset=l,r.shadowOffsetX=c,r.shadowOffsetY=h,r.shadowBlur=f,r.shadowColor=I}class G{constructor(A=0,e=0){this.x=A,this.y=e}static get MAX(){return new G(1/0,1/0)}static get MIN(){return new G(-1/0,-1/0)}get array(){return[this.x,this.y]}finite(){return this.x=Number.isFinite(this.x)?this.x:0,this.y=Number.isFinite(this.y)?this.y:0,this}set(A,e){return this.x=A,this.y=e,this}add(A){return this.x+=A.x,this.y+=A.y,this}sub(A){return this.x-=A.x,this.y-=A.y,this}multiply(A){return this.x*=A.x,this.y*=A.y,this}divide(A){return this.x/=A.x,this.y/=A.y,this}dot(A){return this.x*A.x+this.y*A.y}cross(A){return this.x*A.y-this.y*A.x}rotate(A,e={x:0,y:0}){const t=-A/180*Math.PI,i=this.x-e.x,s=-(this.y-e.y),n=Math.sin(t),o=Math.cos(t);return this.set(e.x+(i*o-s*n),e.y-(i*n+s*o)),this}distanceTo(A){return Math.sqrt(this.distanceToSquared(A))}distanceToSquared(A){const e=this.x-A.x,t=this.y-A.y;return e*e+t*t}lengthSquared(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.lengthSquared())}scale(A,e=A,t={x:0,y:0}){const i=A<0?t.x-this.x+t.x:this.x,s=e<0?t.y-this.y+t.y:this.y;return this.x=i*Math.abs(A),this.y=s*Math.abs(e),this}skew(A,e=0,t={x:0,y:0}){const i=this.x-t.x,s=this.y-t.y;return this.x=t.x+(i+Math.tan(A)*s),this.y=t.y+(s+Math.tan(e)*i),this}min(...A){return this.x=Math.min(this.x,...A.map(e=>e.x)),this.y=Math.min(this.y,...A.map(e=>e.y)),this}max(...A){return this.x=Math.max(this.x,...A.map(e=>e.x)),this.y=Math.max(this.y,...A.map(e=>e.y)),this}normalize(){return this.scale(1/(this.length()||1))}addVectors(A,e){return this.x=A.x+e.x,this.y=A.y+e.y,this}subVectors(A,e){return this.x=A.x-e.x,this.y=A.y-e.y,this}multiplyVectors(A,e){return this.x=A.x*e.x,this.y=A.y*e.y,this}divideVectors(A,e){return this.x=A.x/e.x,this.y=A.y/e.y,this}lerpVectors(A,e,t){return this.x=A.x+(e.x-A.x)*t,this.y=A.y+(e.y-A.y)*t,this}equals(A){return this.x===A.x&&this.y===A.y}applyMatrix3(A){const e=this.x,t=this.y,i=A.elements;return this.x=i[0]*e+i[3]*t+i[6],this.y=i[1]*e+i[4]*t+i[7],this}copy(A){return this.x=A.x,this.y=A.y,this}clone(){return new G(this.x,this.y)}}class he{constructor(A=0,e=0,t=0,i=0){this.left=A,this.top=e,this.width=t,this.height=i}get x(){return this.left}set x(A){this.left=A}get y(){return this.top}set y(A){this.top=A}get right(){return this.left+this.width}get bottom(){return this.top+this.height}get center(){return new G((this.left+this.right)/2,(this.top+this.bottom)/2)}get array(){return[this.left,this.top,this.width,this.height]}static from(...A){if(A.length===0)return new he;if(A.length===1)return A[0].clone();const e=A[0],t=A.slice(1).reduce((i,s)=>(i.left=Math.min(i.left,s.left),i.top=Math.min(i.top,s.top),i.right=Math.max(i.right,s.right),i.bottom=Math.max(i.bottom,s.bottom),i),{left:(e==null?void 0:e.left)??0,top:(e==null?void 0:e.top)??0,right:(e==null?void 0:e.right)??0,bottom:(e==null?void 0:e.bottom)??0});return new he(t.left,t.top,t.right-t.left,t.bottom-t.top)}translate(A,e){return this.left+=A,this.top+=e,this}copy(A){return this.left=A.left,this.top=A.top,this.width=A.width,this.height=A.height,this}clone(){return new he(this.left,this.top,this.width,this.height)}}class Ke{constructor(A=1,e=0,t=0,i=0,s=1,n=0,o=0,a=0,l=1){u(this,"elements",[]);this.set(A,e,t,i,s,n,o,a,l)}set(A,e,t,i,s,n,o,a,l){const c=this.elements;return c[0]=A,c[1]=i,c[2]=o,c[3]=e,c[4]=s,c[5]=a,c[6]=t,c[7]=n,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(A){const e=this.elements,t=A.elements;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this}multiply(A){return this.multiplyMatrices(this,A)}premultiply(A){return this.multiplyMatrices(A,this)}multiplyMatrices(A,e){const t=A.elements,i=e.elements,s=this.elements,n=t[0],o=t[3],a=t[6],l=t[1],c=t[4],h=t[7],f=t[2],I=t[5],d=t[8],C=i[0],p=i[3],x=i[6],P=i[1],w=i[4],R=i[7],v=i[2],m=i[5],b=i[8];return s[0]=n*C+o*P+a*v,s[3]=n*p+o*w+a*m,s[6]=n*x+o*R+a*b,s[1]=l*C+c*P+h*v,s[4]=l*p+c*w+h*m,s[7]=l*x+c*R+h*b,s[2]=f*C+I*P+d*v,s[5]=f*p+I*w+d*m,s[8]=f*x+I*R+d*b,this}invert(){const A=this.elements,e=A[0],t=A[1],i=A[2],s=A[3],n=A[4],o=A[5],a=A[6],l=A[7],c=A[8],h=c*n-o*l,f=o*a-c*s,I=l*s-n*a,d=e*h+t*f+i*I;if(d===0)return this.set(0,0,0,0,0,0,0,0,0);const C=1/d;return A[0]=h*C,A[1]=(i*l-c*t)*C,A[2]=(o*t-i*n)*C,A[3]=f*C,A[4]=(c*e-i*a)*C,A[5]=(i*s-o*e)*C,A[6]=I*C,A[7]=(t*a-l*e)*C,A[8]=(n*e-t*s)*C,this}transpose(){let A;const e=this.elements;return A=e[1],e[1]=e[3],e[3]=A,A=e[2],e[2]=e[6],e[6]=A,A=e[5],e[5]=e[7],e[7]=A,this}scale(A,e){return this.premultiply(rn.makeScale(A,e)),this}rotate(A){return this.premultiply(rn.makeRotation(-A)),this}translate(A,e){return this.premultiply(rn.makeTranslation(A,e)),this}makeTranslation(A,e){return this.set(1,0,A,0,1,e,0,0,1),this}makeRotation(A){const e=Math.cos(A),t=Math.sin(A);return this.set(e,-t,0,t,e,0,0,0,1),this}makeScale(A,e){return this.set(A,0,0,0,e,0,0,0,1),this}fromArray(A,e=0){for(let t=0;t<9;t++)this.elements[t]=A[t+e];return this}clone(){return new this.constructor().fromArray(this.elements)}}const rn=new Ke;function Ta(r,A,e,t){const i=r*e+A*t,s=Math.sqrt(r*r+A*A)*Math.sqrt(e*e+t*t);let n=Math.acos(Math.max(-1,Math.min(1,i/s)));return r*t-A*e<0&&(n=-n),n}function Au(r,A,e,t,i,s,n,o){if(A===0||e===0){r.lineTo(o.x,o.y);return}t=t*Math.PI/180,A=Math.abs(A),e=Math.abs(e);const a=(n.x-o.x)/2,l=(n.y-o.y)/2,c=Math.cos(t)*a+Math.sin(t)*l,h=-Math.sin(t)*a+Math.cos(t)*l;let f=A*A,I=e*e;const d=c*c,C=h*h,p=d/f+C/I;if(p>1){const Ae=Math.sqrt(p);A=Ae*A,e=Ae*e,f=A*A,I=e*e}const x=f*C+I*d,P=(f*I-x)/x;let w=Math.sqrt(Math.max(0,P));i===s&&(w=-w);const R=w*A*h/e,v=-w*e*c/A,m=Math.cos(t)*R-Math.sin(t)*v+(n.x+o.x)/2,b=Math.sin(t)*R+Math.cos(t)*v+(n.y+o.y)/2,D=Ta(1,0,(c-R)/A,(h-v)/e),z=Ta((c-R)/A,(h-v)/e,(-c-R)/A,(-h-v)/e)%(Math.PI*2);r.ellipse(m,b,A,e,t,D,D+z,s===0)}const be={WHITESPACE:/[ \t\r\n]/,DIGIT:/\d/,SIGN:/[-+]/,POINT:/\./,COMMA:/,/,EXP:/e/i,FLAGS:/[01]/};function Rt(r,A,e=0){let o=0,a=!0,l="",c="";const h=[];function f(p,x,P){const w=new SyntaxError(`Unexpected character "${p}" at index ${x}.`);throw w.partial=P,w}function I(){l!==""&&(c===""?h.push(Number(l)):h.push(Number(l)*10**Number(c))),l="",c=""}let d;const C=r.length;for(let p=0;p<C;p++){if(d=r[p],Array.isArray(A)&&A.includes(h.length%e)&&be.FLAGS.test(d)){o=1,l=d,I();continue}if(o===0){if(be.WHITESPACE.test(d))continue;if(be.DIGIT.test(d)||be.SIGN.test(d)){o=1,l=d;continue}if(be.POINT.test(d)){o=2,l=d;continue}be.COMMA.test(d)&&(a&&f(d,p,h),a=!0)}if(o===1){if(be.DIGIT.test(d)){l+=d;continue}if(be.POINT.test(d)){l+=d,o=2;continue}if(be.EXP.test(d)){o=3;continue}be.SIGN.test(d)&&l.length===1&&be.SIGN.test(l[0])&&f(d,p,h)}if(o===2){if(be.DIGIT.test(d)){l+=d;continue}if(be.EXP.test(d)){o=3;continue}be.POINT.test(d)&&l[l.length-1]==="."&&f(d,p,h)}if(o===3){if(be.DIGIT.test(d)){c+=d;continue}if(be.SIGN.test(d)){if(c===""){c+=d;continue}c.length===1&&be.SIGN.test(c)&&f(d,p,h)}}be.WHITESPACE.test(d)?(I(),o=0,a=!1):be.COMMA.test(d)?(I(),o=0,a=!0):be.SIGN.test(d)?(I(),o=1,l=d):be.POINT.test(d)?(I(),o=2,l=d):f(d,p,h)}return I(),h}function zA(r,A){return r-(A-r)}function Ga(r,A){const e=new G,t=new G;for(let i=0,s=r.length;i<s;i++){const n=r[i];if(n.type==="m"||n.type==="M")n.type==="m"?e.add(n):e.copy(n),A.moveTo(e.x,e.y),t.copy(e);else if(n.type==="h"||n.type==="H")n.type==="h"?e.x+=n.x:e.x=n.x,A.lineTo(e.x,e.y),t.copy(e);else if(n.type==="v"||n.type==="V")n.type==="v"?e.y+=n.y:e.y=n.y,A.lineTo(e.x,e.y),t.copy(e);else if(n.type==="l"||n.type==="L")n.type==="l"?e.add(n):e.copy(n),A.lineTo(e.x,e.y),t.copy(e);else if(n.type==="c"||n.type==="C")n.type==="c"?(A.bezierCurveTo(e.x+n.x1,e.y+n.y1,e.x+n.x2,e.y+n.y2,e.x+n.x,e.y+n.y),t.x=e.x+n.x2,t.y=e.y+n.y2,e.add(n)):(A.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y),t.x=n.x2,t.y=n.y2,e.copy(n));else if(n.type==="s"||n.type==="S")n.type==="s"?(A.bezierCurveTo(zA(e.x,t.x),zA(e.y,t.y),e.x+n.x2,e.y+n.y2,e.x+n.x,e.y+n.y),t.x=e.x+n.x2,t.y=e.y+n.y2,e.add(n)):(A.bezierCurveTo(zA(e.x,t.x),zA(e.y,t.y),n.x2,n.y2,n.x,n.y),t.x=n.x2,t.y=n.y2,e.copy(n));else if(n.type==="q"||n.type==="Q")n.type==="q"?(A.quadraticCurveTo(e.x+n.x1,e.y+n.y1,e.x+n.x,e.y+n.y),t.x=e.x+n.x1,t.y=e.y+n.y1,e.add(n)):(A.quadraticCurveTo(n.x1,n.y1,n.x,n.y),t.x=n.x1,t.y=n.y1,e.copy(n));else if(n.type==="t"||n.type==="T"){const o=zA(e.x,t.x),a=zA(e.y,t.y);t.x=o,t.y=a,n.type==="t"?(A.quadraticCurveTo(o,a,e.x+n.x,e.y+n.y),e.add(n)):(A.quadraticCurveTo(o,a,n.x,n.y),e.copy(n))}else if(n.type==="a"||n.type==="A"){const o=e.clone();if(n.type==="a"){if(n.x===0&&n.y===0)continue;e.add(n)}else{if(e.equals(n))continue;e.copy(n)}t.copy(e),Au(A,n.rx,n.ry,n.angle,n.largeArcFlag,n.sweepFlag,o,e)}else n.type==="z"||n.type==="Z"?(A.startPoint&&e.copy(A.startPoint),A.closePath()):console.warn("Unsupported commands",n)}}function iu(r){let A,e;const t=[];for(let i=0,s=r.length;i<s;i++){const n=r[i];switch(n.type){case"m":case"M":if(n.x.toFixed(4)===(e==null?void 0:e.x.toFixed(4))&&n.y.toFixed(4)===(e==null?void 0:e.y.toFixed(4)))continue;t.push(`${n.type} ${n.x} ${n.y}`),e={x:n.x,y:n.y},A={x:n.x,y:n.y};break;case"h":case"H":t.push(`${n.type} ${n.x}`),e={x:n.x,y:(e==null?void 0:e.y)??0};break;case"v":case"V":t.push(`${n.type} ${n.y}`),e={x:(e==null?void 0:e.x)??0,y:n.y};break;case"l":case"L":t.push(`${n.type} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"c":case"C":t.push(`${n.type} ${n.x1} ${n.y1} ${n.x2} ${n.y2} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"s":case"S":t.push(`${n.type} ${n.x2} ${n.y2} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"q":case"Q":t.push(`${n.type} ${n.x1} ${n.y1} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"t":case"T":t.push(`${n.type} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"a":case"A":t.push(`${n.type} ${n.rx} ${n.ry} ${n.angle} ${n.largeArcFlag} ${n.sweepFlag} ${n.x} ${n.y}`),e={x:n.x,y:n.y};break;case"z":case"Z":t.push(n.type),A&&(e={x:A.x,y:A.y});break}}return t.join(" ")}const ru=/[a-df-z][^a-df-z]*/gi;function La(r){const A=[],e=r.match(ru);if(!e)return A;for(let t=0,i=e.length;t<i;t++){const s=e[t],n=s.charAt(0),o=s.slice(1).trim();let a;switch(n){case"m":case"M":a=Rt(o);for(let l=0,c=a.length;l<c;l+=2)l===0?A.push({type:n,x:a[l],y:a[l+1]}):A.push({type:n==="m"?"l":"L",x:a[l],y:a[l+1]});break;case"h":case"H":a=Rt(o);for(let l=0,c=a.length;l<c;l++)A.push({type:n,x:a[l]});break;case"v":case"V":a=Rt(o);for(let l=0,c=a.length;l<c;l++)A.push({type:n,y:a[l]});break;case"l":case"L":a=Rt(o);for(let l=0,c=a.length;l<c;l+=2)A.push({type:n,x:a[l],y:a[l+1]});break;case"c":case"C":a=Rt(o);for(let l=0,c=a.length;l<c;l+=6)A.push({type:n,x1:a[l],y1:a[l+1],x2:a[l+2],y2:a[l+3],x:a[l+4],y:a[l+5]});break;case"s":case"S":a=Rt(o);for(let l=0,c=a.length;l<c;l+=4)A.push({type:n,x2:a[l],y2:a[l+1],x:a[l+2],y:a[l+3]});break;case"q":case"Q":a=Rt(o);for(let l=0,c=a.length;l<c;l+=4)A.push({type:n,x1:a[l],y1:a[l+1],x:a[l+2],y:a[l+3]});break;case"t":case"T":a=Rt(o);for(let l=0,c=a.length;l<c;l+=2)A.push({type:n,x:a[l],y:a[l+1]});break;case"a":case"A":a=Rt(o,[3,4],7);for(let l=0,c=a.length;l<c;l+=7)A.push({type:n,rx:a[l],ry:a[l+1],angle:a[l+2],largeArcFlag:a[l+3],sweepFlag:a[l+4],x:a[l+5],y:a[l+6]});break;case"z":case"Z":A.push({type:n});break;default:console.warn(s)}}return A}function Oa(r,A,e,t,i){const s=(t-A)*.5,n=(i-e)*.5,o=r*r,a=r*o;return(2*e-2*t+s+n)*a+(-3*e+3*t-2*s-n)*o+s*r+e}function su(r,A){const e=1-r;return e*e*e*A}function nu(r,A){const e=1-r;return 3*e*e*r*A}function ou(r,A){return 3*(1-r)*r*r*A}function au(r,A){return r*r*r*A}function Ha(r,A,e,t,i){return su(r,A)+nu(r,e)+ou(r,t)+au(r,i)}function Ja(r,A={}){let{vertices:e=[],indices:t=[],holes:i=[],verticesStride:s=2,verticesOffset:n=e.length/s,indicesOffset:o=t.length}=A;const a=Fg(r,i,2);if(a.length){for(let c=0;c<a.length;c+=3)t[o++]=a[c]+n,t[o++]=a[c+1]+n,t[o++]=a[c+2]+n;let l=n*s;for(let c=0;c<r.length;c+=2)e[l]=r[c],e[l+1]=r[c+1],l+=s}return{vertices:e,indices:t}}const lu=8,wr=11920929e-14,cu=1;function hu(r,A,e,t,i,s,n,o,a=.5,l=[]){const h=Math.min(.99,Math.max(0,a));let f=(cu-h)/1;return f*=f,sn(r,A,e,t,i,s,n,o,l,f,0),l.push(n,o),l}function sn(r,A,e,t,i,s,n,o,a,l,c){if(c>lu)return;const h=(r+e)/2,f=(A+t)/2,I=(e+i)/2,d=(t+s)/2,C=(i+n)/2,p=(s+o)/2,x=(h+I)/2,P=(f+d)/2,w=(I+C)/2,R=(d+p)/2,v=(x+w)/2,m=(P+R)/2;if(c>0){let b=n-r,D=o-A;const z=Math.abs((e-n)*D-(t-o)*b),Ae=Math.abs((i-n)*D-(s-o)*b);if(z>wr&&Ae>wr){if((z+Ae)*(z+Ae)<=l*(b*b+D*D)){a.push(v,m);return}}else if(z>wr){if(z*z<=l*(b*b+D*D)){a.push(v,m);return}}else if(Ae>wr){if(Ae*Ae<=l*(b*b+D*D)){a.push(v,m);return}}else if(b=v-(r+n)/2,D=m-(A+o)/2,b*b+D*D<=l){a.push(v,m);return}}sn(r,A,h,f,x,P,v,m,a,l,c+1),sn(v,m,w,R,C,p,n,o,a,l,c+1)}const gu=8,uu=11920929e-14,fu=1;function du(r,A,e,t,i,s,n=.5,o=[]){const l=Math.min(.99,Math.max(0,n));let c=(fu-l)/1;return c*=c,nn(o,r,A,e,t,i,s,c,0),o.push(i,s),o}function nn(r,A,e,t,i,s,n,o,a){if(a>gu)return;const l=(A+t)/2,c=(e+i)/2,h=(t+s)/2,f=(i+n)/2,I=(l+h)/2,d=(c+f)/2;let C=s-A,p=n-e;const x=Math.abs((t-s)*p-(i-n)*C);if(x>uu){if(x*x<=o*(C*C+p*p)){r.push(I,d);return}}else if(C=I-(A+s)/2,p=d-(e+n)/2,C*C+p*p<=o){r.push(I,d);return}nn(r,A,e,l,c,I,d,o,a+1),nn(r,I,d,h,f,s,n,o,a+1)}function Iu(r,A){let e=!1;const[t,i]=r,s=A.length/2;for(let n=0,o=s-1;n<s;o=n++){const a=A[n*2],l=A[n*2+1],c=A[o*2],h=A[o*2+1];l>i!=h>i&&t<(c-a)*(i-l)/(h-l)+a&&(e=!e)}return e}function pu(r,A){const e=1-r;return e*e*A}function Eu(r,A){return 2*(1-r)*r*A}function Bu(r,A){return r*r*A}function Ka(r,A,e,t){return pu(r,A)+Eu(r,e)+Bu(r,t)}const Cu=1e-4,Ya=1e-4;function Qu(r,A={}){const{vertices:e=[],indices:t=[],lineStyle:i={alignment:.5,cap:"butt",join:"miter",width:1,miterLimit:10},flipAlignment:s=!1,closed:n=!0}=A,o=Cu;if(r.length===0)return{vertices:e,indices:t};const a=i;let l=a.alignment;if(i.alignment!==.5){let J=yu(r);s&&(J*=-1),l=(l-.5)*J+.5}const c={x:r[0],y:r[1]},h={x:r[r.length-2],y:r[r.length-1]},f=n,I=Math.abs(c.x-h.x)<o&&Math.abs(c.y-h.y)<o;if(f){r=r.slice(),I&&(r.pop(),r.pop(),h.x=r[r.length-2],h.y=r[r.length-1]);const J=(c.x+h.x)*.5,$=(h.y+c.y)*.5;r.unshift(J,$),r.push(J,$)}const d=e,C=r.length/2;let p=r.length;const x=d.length/2,P=a.width/2,w=P*P,R=a.miterLimit*a.miterLimit;let v=r[0],m=r[1],b=r[2],D=r[3],z=0,Ae=0,W=-(m-D),K=v-b,te=0,Y=0,L=Math.sqrt(W*W+K*K);W/=L,K/=L,W*=P,K*=P;const se=l,H=(1-se)*2,q=se*2;f||(a.cap==="round"?p+=_A(v-W*(H-q)*.5,m-K*(H-q)*.5,v-W*H,m-K*H,v+W*q,m+K*q,d,!0)+2:a.cap==="square"&&(p+=Va(v,m,W,K,H,q,!0,d))),d.push(v-W*H,m-K*H),d.push(v+W*q,m+K*q);for(let J=1;J<C-1;++J){v=r[(J-1)*2],m=r[(J-1)*2+1],b=r[J*2],D=r[J*2+1],z=r[(J+1)*2],Ae=r[(J+1)*2+1],W=-(m-D),K=v-b,L=Math.sqrt(W*W+K*K),W/=L,K/=L,W*=P,K*=P,te=-(D-Ae),Y=b-z,L=Math.sqrt(te*te+Y*Y),te/=L,Y/=L,te*=P,Y*=P;const $=b-v,N=m-D,U=b-z,X=Ae-D,ee=$*U+N*X,oe=N*U-X*$,j=oe<0;if(Math.abs(oe)<.001*Math.abs(ee)){d.push(b-W*H,D-K*H),d.push(b+W*q,D+K*q),ee>=0&&(a.join==="round"?p+=_A(b,D,b-W*H,D-K*H,b-te*H,D-Y*H,d,!1)+4:p+=2,d.push(b-te*q,D-Y*q),d.push(b+te*H,D+Y*H));continue}const Ee=(-W+v)*(-K+D)-(-W+b)*(-K+m),at=(-te+z)*(-Y+D)-(-te+b)*(-Y+Ae),lt=($*at-U*Ee)/oe,He=(X*Ee-N*at)/oe,ge=(lt-b)*(lt-b)+(He-D)*(He-D),we=b+(lt-b)*H,Je=D+(He-D)*H,We=b-(lt-b)*q,xe=D-(He-D)*q,tt=Math.min($*$+N*N,U*U+X*X),Ot=j?H:q,hs=tt+Ot*Ot*w;ge<=hs?a.join==="bevel"||ge/w>R?(j?(d.push(we,Je),d.push(b+W*q,D+K*q),d.push(we,Je),d.push(b+te*q,D+Y*q)):(d.push(b-W*H,D-K*H),d.push(We,xe),d.push(b-te*H,D-Y*H),d.push(We,xe)),p+=2):a.join==="round"?j?(d.push(we,Je),d.push(b+W*q,D+K*q),p+=_A(b,D,b+W*q,D+K*q,b+te*q,D+Y*q,d,!0)+4,d.push(we,Je),d.push(b+te*q,D+Y*q)):(d.push(b-W*H,D-K*H),d.push(We,xe),p+=_A(b,D,b-W*H,D-K*H,b-te*H,D-Y*H,d,!1)+4,d.push(b-te*H,D-Y*H),d.push(We,xe)):(d.push(we,Je),d.push(We,xe)):(d.push(b-W*H,D-K*H),d.push(b+W*q,D+K*q),a.join==="round"?j?p+=_A(b,D,b+W*q,D+K*q,b+te*q,D+Y*q,d,!0)+2:p+=_A(b,D,b-W*H,D-K*H,b-te*H,D-Y*H,d,!1)+2:a.join==="miter"&&ge/w<=R&&(j?(d.push(We,xe),d.push(We,xe)):(d.push(we,Je),d.push(we,Je)),p+=2),d.push(b-te*H,D-Y*H),d.push(b+te*q,D+Y*q),p+=2)}v=r[(C-2)*2],m=r[(C-2)*2+1],b=r[(C-1)*2],D=r[(C-1)*2+1],W=-(m-D),K=v-b,L=Math.sqrt(W*W+K*K),W/=L,K/=L,W*=P,K*=P,d.push(b-W*H,D-K*H),d.push(b+W*q,D+K*q),f||(a.cap==="round"?p+=_A(b-W*(H-q)*.5,D-K*(H-q)*.5,b-W*H,D-K*H,b+W*q,D+K*q,d,!1)+2:a.cap==="square"&&(p+=Va(b,D,W,K,H,q,!1,d)));const ie=Ya*Ya;for(let J=x;J<p+x-2;++J)v=d[J*2],m=d[J*2+1],b=d[(J+1)*2],D=d[(J+1)*2+1],z=d[(J+2)*2],Ae=d[(J+2)*2+1],!(Math.abs(v*(D-Ae)+b*(Ae-m)+z*(m-D))<ie)&&t.push(J,J+1,J+2);return{vertices:e,indices:t}}function yu(r){const A=r.length;if(A<6)return 1;let e=0;for(let t=0,i=r[A-2],s=r[A-1];t<A;t+=2){const n=r[t],o=r[t+1];e+=(n-i)*(o+s),i=n,s=o}return e<0?-1:1}function Va(r,A,e,t,i,s,n,o){const a=r-e*i,l=A-t*i,c=r+e*s,h=A+t*s;let f,I;n?(f=t,I=-e):(f=-t,I=e);const d=a+f,C=l+I,p=c+f,x=h+I;return o.push(d,C),o.push(p,x),2}function _A(r,A,e,t,i,s,n,o){const a=e-r,l=t-A;let c=Math.atan2(a,l),h=Math.atan2(i-r,s-A);o&&c<h?c+=Math.PI*2:!o&&c>h&&(h+=Math.PI*2);let f=c;const I=h-c,d=Math.abs(I),C=Math.sqrt(a*a+l*l),p=(15*d*Math.sqrt(C)/Math.PI>>0)+1,x=I/p;if(f+=x,o){n.push(r,A),n.push(e,t);for(let P=1,w=f;P<p;P++,w+=x)n.push(r,A),n.push(r+Math.sin(w)*C,A+Math.cos(w)*C);n.push(r,A),n.push(i,s)}else{n.push(e,t),n.push(r,A);for(let P=1,w=f;P<p;P++,w+=x)n.push(r+Math.sin(w)*C,A+Math.cos(w)*C),n.push(r,A);n.push(i,s),n.push(r,A)}return p*2}class WA{constructor(){u(this,"arcLengthDivision",200);u(this,"_arcLengths")}getPointAt(A,e=new G){return this.getPoint(this.getUToTMapping(A),e)}isClockwise(){const A=this.getPoint(1),e=this.getPoint(.5),t=this.getPoint(1);return(e.x-A.x)*(t.y-e.y)-(e.y-A.y)*(t.x-e.x)<0}getControlPointRefs(){return[]}applyTransform(A){const e=typeof A=="function";return this.getControlPointRefs().forEach(t=>{e?A(t):t.applyMatrix3(A)}),this}getUnevenVertices(A=5,e=[]){const t=new G;for(let i=0,s=Math.max(1,A)-1;i<=s;i++)this.getPoint(i/s,t),e.push(t.x,t.y);return e}getSpacedVertices(A=5,e=[]){const t=new G;for(let i=0,s=Math.max(1,A)-1;i<=s;i++)this.getPointAt(i/s,t),e.push(t.x,t.y);return e}getAdaptiveVertices(A=[]){return this.getUnevenVertices(5,A)}_verticesToPoints(A,e=[]){for(let t=0,i=A.length;t<i;t+=2){const s=A[t],n=A[t+1];e.push(new G(s,n))}return e}getSpacedPoints(A,e=[]){const t=this.getSpacedVertices(A);return this._verticesToPoints(t,e),e}getUnevenPoints(A,e=[]){const t=this.getUnevenVertices(A);return this._verticesToPoints(t,e),e}getAdaptivePoints(A=[]){const e=this.getAdaptiveVertices();return this._verticesToPoints(e,A),A}getPoints(A,e=[]){let t;return A?t=this.getUnevenVertices(A):t=this.getAdaptiveVertices(),this._verticesToPoints(t,e),e}getLength(){const A=this.getLengths();return A[A.length-1]}getLengths(){return(!this._arcLengths||this._arcLengths.length!==this.arcLengthDivision+1)&&this.updateLengths(),this._arcLengths}updateLengths(){const A=this.arcLengthDivision,e=[0];for(let t=0,i=this.getPoint(0),s=1;s<=A;s++){const n=this.getPoint(s/A);t+=n.distanceTo(i),e.push(t),i=n}this._arcLengths=e}getUToTMapping(A,e){const t=this.getLengths(),i=t.length,s=e??A*t[i-1];if(i<2)return s/t[0];let n=0,o=0,a=i-1,l;for(;o<=a;)if(n=Math.floor(o+(a-o)/2),l=t[n]-s,l<0)o=n+1;else if(l>0)a=n-1;else{a=n;break}if(n=a,t[n]===s)return n/(i-1);const c=t[n],f=t[n+1]-c,I=(s-c)/f;return(n+I)/(i-1)}getTangent(A,e=new G){const i=Math.max(0,A-1e-4),s=Math.min(1,A+1e-4);return e.copy(this.getPoint(s).sub(this.getPoint(i)).normalize())}getTangentAt(A,e){return this.getTangent(this.getUToTMapping(A),e)}getNormal(A,e=new G){return this.getTangent(A,e),e.set(-e.y,e.x).normalize()}getNormalAt(A,e){return this.getNormal(this.getUToTMapping(A),e)}getTForPoint(A,e=.001){let t=0,i=1,s=(t+i)/2;for(;i-t>e;){s=(t+i)/2;const n=this.getPoint(s);if(n.distanceTo(A)<e)return s;n.x<A.x?t=s:i=s}return s}getMinMax(A=G.MAX,e=G.MIN){const t=this.getPoints();for(let i=0,s=t.length;i<s;i++){const n=t[i];A.min(n),e.max(n)}return{min:A.finite(),max:e.finite()}}getBoundingBox(){const{min:A,max:e}=this.getMinMax();return new he(A.x,A.y,e.x-A.x,e.y-A.y)}getFillVertices(A){return this.getAdaptiveVertices()}fillTriangulate(A){return Ja(this.getFillVertices(A),A)}strokeTriangulate(A){return Qu(this.getAdaptiveVertices(),A)}toCommands(){const A=[],e=this.getPoints();for(let t=0,i=e.length;t<i;t++){const s=e[t];t===0?A.push({type:"M",x:s.x,y:s.y}):A.push({type:"L",x:s.x,y:s.y})}return A}toData(){return iu(this.toCommands())}drawTo(A){return this.toCommands().forEach(e=>{switch(e.type){case"M":A.moveTo(e.x,e.y);break;case"L":A.lineTo(e.x,e.y);break}}),this}copy(A){return this.arcLengthDivision=A.arcLengthDivision,this}clone(){return new this.constructor().copy(this)}}const mu=new Ke,za=new Ke,Wa=new Ke,vr=new G;class on extends WA{constructor(A=new G,e=new G,t=new G,i=0,s=0,n=Math.PI*2,o=!1){super(),this._center=A,this._radius=e,this._diff=t,this.rotate=i,this.startAngle=s,this.endAngle=n,this.clockwise=o}get cx(){return this._center.x}set cx(A){this._center.x=A}get cy(){return this._center.y}set cy(A){this._center.y=A}get rx(){return this._radius.x}set rx(A){this._radius.x=A}get ry(){return this._radius.y}set ry(A){this._radius.y=A}get dx(){return this._diff.x}set dx(A){this._diff.x=A}get dy(){return this._diff.y}set dy(A){this._diff.y=A}isClockwise(){return this.clockwise}_getDeltaAngle(){const A=Math.PI*2;let e=this.endAngle-this.startAngle;const t=Math.abs(e)<Number.EPSILON;return e=(e%A+A)%A,t?e=0:this.clockwise||(e=e===0?-A:e-A),e}getPoint(A,e=new G){const t=this._getDeltaAngle(),i=this.startAngle+A*t;let s=this.cx+this.rx*Math.cos(i),n=this.cy+this.ry*Math.sin(i);if(this.rotate!==0){const o=Math.cos(this.rotate),a=Math.sin(this.rotate),l=s-this.cx,c=n-this.cy;s=l*o-c*a+this.cx,n=l*a+c*o+this.cy}return e.set(s,n)}toCommands(){const{cx:A,cy:e,rx:t,ry:i,startAngle:s,endAngle:n,clockwise:o,rotate:a}=this,l=A+t*Math.cos(s)*Math.cos(a)-i*Math.sin(s)*Math.sin(a),c=e+t*Math.cos(s)*Math.sin(a)+i*Math.sin(s)*Math.cos(a),h=Math.abs(s-n),f=h>Math.PI?1:0,I=o?1:0,d=a*180/Math.PI;if(h>=2*Math.PI){const C=s+Math.PI,p=A+t*Math.cos(C)*Math.cos(a)-i*Math.sin(C)*Math.sin(a),x=e+t*Math.cos(C)*Math.sin(a)+i*Math.sin(C)*Math.cos(a);return[{type:"M",x:l,y:c},{type:"A",rx:t,ry:i,angle:d,largeArcFlag:0,sweepFlag:I,x:p,y:x},{type:"A",rx:t,ry:i,angle:d,largeArcFlag:0,sweepFlag:I,x:l,y:c}]}else{const C=A+t*Math.cos(n)*Math.cos(a)-i*Math.sin(n)*Math.sin(a),p=e+t*Math.cos(n)*Math.sin(a)+i*Math.sin(n)*Math.cos(a);return[{type:"M",x:l,y:c},{type:"A",rx:t,ry:i,angle:d,largeArcFlag:f,sweepFlag:I,x:C,y:p}]}}drawTo(A){const{cx:e,cy:t,rx:i,ry:s,rotate:n,startAngle:o,endAngle:a,clockwise:l}=this;return A.ellipse(e,t,i,s,n,o,a,!l),this}applyTransform(A){return vr.set(this.cx,this.cy),vr.applyMatrix3(A),this.cx=vr.x,this.cy=vr.y,_u(A)?wu(this,A):vu(this,A),this}getControlPointRefs(){return[this._center]}_getAdaptiveVerticesByArc(A=[]){const{cx:e,cy:t,rx:i,ry:s,dx:n,dy:o,startAngle:a,endAngle:l,clockwise:c}=this,h=!c,f=e,I=t,d=a,C=l;let p=Math.abs(d-C);(!h&&d>C||h&&C>d)&&(p=2*Math.PI-p);let x=Math.max(6,Math.floor(6*i**(1/3)*(p/Math.PI)));x=Math.max(x,3),x*=3;let P=p/x,w=d;P*=h?-1:1;for(let R=0;R<x+1;R++){const v=Math.cos(w),m=Math.sin(w),b=f+n+v*i,D=I+o+m*s;A.push(b,D),w+=P}return A}_getAdaptiveVerticesByCircle(A=[]){const{cx:e,cy:t,rx:i,ry:s,dx:n,dy:o}=this;if(!(i>=0&&s>=0&&n>=0&&o>=0))return A;const a=Math.ceil(2.3*Math.sqrt(i+s)),l=e,c=t,h=a*8+(n?4:0)+(o?4:0);if(h===0)return A;const f=A.length;if(a===0)return A[f]=A[f+6]=l+n,A[f+1]=A[f+3]=c+o,A[f+2]=A[f+4]=l-n,A[f+5]=A[f+7]=c-o,A;let I=f,d=f+a*4+(n?2:0)+2,C=d,p=h,x=n+i,P=o,w=l+x,R=l-x,v=c+P;if(A[I++]=w,A[I++]=v,A[--d]=v,A[--d]=R,o){const b=c-P;A[C++]=R,A[C++]=b,A[--p]=b,A[--p]=w}for(let b=1;b<a;b++){const D=Math.PI/2*(b/a),z=n+Math.cos(D)*i,Ae=o+Math.sin(D)*s,W=l+z,K=l-z,te=c+Ae,Y=c-Ae;A[I++]=W,A[I++]=te,A[--d]=te,A[--d]=K,A[C++]=K,A[C++]=Y,A[--p]=Y,A[--p]=W}x=n,P=o+s,w=l+x,R=l-x,v=c+P;const m=c-P;return A[I++]=w,A[I++]=v,A[--p]=m,A[--p]=w,n&&(A[I++]=R,A[I++]=v,A[--p]=m,A[--p]=R),A}getAdaptiveVertices(A=[]){return this.startAngle===0&&this.endAngle===Math.PI*2?this._getAdaptiveVerticesByCircle(A):this._getAdaptiveVerticesByArc(A)}getMinMax(A=G.MAX,e=G.MIN){const{cx:t,cy:i,rx:s,ry:n,rotate:o}=this,a=Math.cos(o),l=Math.sin(o),c=Math.sqrt(s*s*a*a+n*n*l*l),h=Math.sqrt(s*s*l*l+n*n*a*a);return A.x=Math.min(A.x,t-c),A.y=Math.min(A.y,i-h),e.x=Math.max(e.x,t+c),e.y=Math.max(e.y,i+h),{min:A.finite(),max:e.finite()}}copy(A){return super.copy(A),this.cx=A.cx,this.cy=A.cy,this.rx=A.rx,this.ry=A.ry,this.dx=A.dx,this.dy=A.dy,this.startAngle=A.startAngle,this.endAngle=A.endAngle,this.clockwise=A.clockwise,this.rotate=A.rotate,this}}function wu(r,A){const e=r.rx,t=r.ry,i=Math.cos(r.rotate),s=Math.sin(r.rotate),n=new G(e*i,e*s),o=new G(-t*s,t*i),a=n.applyMatrix3(A),l=o.applyMatrix3(A),c=mu.set(a.x,l.x,0,a.y,l.y,0,0,0,1),h=za.copy(c).invert(),d=Wa.copy(h).transpose().multiply(h).elements,C=bu(d[0],d[1],d[4]),p=Math.sqrt(C.rt1),x=Math.sqrt(C.rt2);if(r.rx=1/p,r.ry=1/x,r.rotate=Math.atan2(C.sn,C.cs),!((r.endAngle-r.startAngle)%(2*Math.PI)<Number.EPSILON)){const w=za.set(p,0,0,0,x,0,0,0,1),R=Wa.set(C.cs,C.sn,0,-C.sn,C.cs,0,0,0,1),v=w.multiply(R).multiply(c),m=b=>{const{x:D,y:z}=new G(Math.cos(b),Math.sin(b)).applyMatrix3(v);return Math.atan2(z,D)};r.startAngle=m(r.startAngle),r.endAngle=m(r.endAngle),qa(A)&&(r.clockwise=!r.clockwise)}}function vu(r,A){const e=Xa(A),t=ja(A);r.rx*=e,r.ry*=t;const i=e>Number.EPSILON?Math.atan2(A.elements[1],A.elements[0]):Math.atan2(-A.elements[3],A.elements[4]);r.rotate+=i,qa(A)&&(r.startAngle*=-1,r.endAngle*=-1,r.clockwise=!r.clockwise)}function qa(r){const A=r.elements;return A[0]*A[4]-A[1]*A[3]<0}function _u(r){const A=r.elements,e=A[0]*A[3]+A[1]*A[4];if(e===0)return!1;const t=Xa(r),i=ja(r);return Math.abs(e/(t*i))>Number.EPSILON}function Xa(r){const A=r.elements;return Math.sqrt(A[0]*A[0]+A[1]*A[1])}function ja(r){const A=r.elements;return Math.sqrt(A[3]*A[3]+A[4]*A[4])}function bu(r,A,e){let t,i,s,n,o;const a=r+e,l=r-e,c=Math.sqrt(l*l+4*A*A);return a>0?(t=.5*(a+c),o=1/t,i=r*o*e-A*o*A):a<0?i=.5*(a-c):(t=.5*c,i=-.5*c),l>0?s=l+c:s=l-c,Math.abs(s)>2*Math.abs(A)?(o=-2*A/s,n=1/Math.sqrt(1+o*o),s=o*n):Math.abs(A)===0?(s=1,n=0):(o=-.5*s/A,s=1/Math.sqrt(1+o*o),n=o*s),l>0&&(o=s,s=-n,n=o),{rt1:t,rt2:i,cs:s,sn:n}}class Du extends on{constructor(A=0,e=0,t=1,i=0,s=Math.PI*2,n=!1){super(new G(A,e),new G(t,t),new G,0,i,s,n)}drawTo(A){const{cx:e,cy:t,rx:i,startAngle:s,endAngle:n,clockwise:o}=this;return A.arc(e,t,i,s,n,!o),this}getAdaptiveVertices(A=[]){const{cx:e,cy:t,rx:i,startAngle:s,endAngle:n,clockwise:o}=this;let a=Math.abs(s-n);(!o&&s>n||o&&n>s)&&(a=2*Math.PI-a);let l=Math.max(6,Math.floor(6*i**(1/3)*(a/Math.PI)));l=Math.max(l,3);let c=a/l,h=s;c*=o?1:-1;for(let f=0;f<l+1;f++){const I=Math.cos(h),d=Math.sin(h),C=e+I*i,p=t+d*i;A.push(C,p),h+=c}return A}}class Xt extends WA{constructor(A=new G,e=new G){super(),this.p1=A,this.p2=e}static from(A,e,t,i){return new Xt(new G(A,e),new G(t,i))}getPoint(A,e=new G){return A===1?e.copy(this.p2):e.copy(this.p2).sub(this.p1).scale(A).add(this.p1),e}getPointAt(A,e=new G){return this.getPoint(A,e)}getTangent(A,e=new G){return e.subVectors(this.p2,this.p1).normalize()}getTangentAt(A,e=new G){return this.getTangent(A,e)}getControlPointRefs(){return[this.p1,this.p2]}getAdaptiveVertices(A=[]){return A.push(this.p1.x,this.p1.y,this.p2.x,this.p2.y),A}getMinMax(A=G.MAX,e=G.MIN){const{p1:t,p2:i}=this;return A.x=Math.min(A.x,t.x,i.x),A.y=Math.min(A.y,t.y,i.y),e.x=Math.max(e.x,t.x,i.x),e.y=Math.max(e.y,t.y,i.y),{min:A.finite(),max:e.finite()}}toCommands(){const{p1:A,p2:e}=this;return[{type:"M",x:A.x,y:A.y},{type:"L",x:e.x,y:e.y}]}getFillVertices(A={}){var c,h;const e=Math.min(this.p1.x,this.p2.x),t=Math.max(this.p1.x,this.p2.x),i=Math.min(this.p1.y,this.p2.y),s=Math.max(this.p1.y,this.p2.y),n=e,o=i,a=t-e||((c=A.style)==null?void 0:c.strokeWidth)||0,l=s-i||((h=A.style)==null?void 0:h.strokeWidth)||0;return[n,o,n+a,o,n+a,o+l,n,o+l]}drawTo(A){const{p1:e,p2:t}=this;return A.lineTo(e.x,e.y),A.lineTo(t.x,t.y),this}copy(A){return super.copy(A),this.p1.copy(A.p1),this.p2.copy(A.p2),this}}class Pi extends WA{constructor(A=[]){super(),this.curves=A}getFlatCurves(){return this.curves.flatMap(A=>A instanceof Pi?A.getFlatCurves():A)}addCurve(A){return this.curves.push(A),this}getPoint(A,e=new G){const t=A*this.getLength(),i=this.getLengths();let s=0;for(;s<i.length;){if(i[s]>=t){const n=i[s]-t,o=this.curves[s],a=o.getLength();return o.getPointAt(a===0?0:1-n/a,e)}s++}return e}updateLengths(){const A=[];for(let e=0,t=0,i=this.curves.length;e<i;e++)t+=this.curves[e].getLength(),A.push(t);this._arcLengths=A}getControlPointRefs(){return this.curves.flatMap(A=>A.getControlPointRefs())}_removeNextPointIfEqualPrevPoint(A,e){const t=[A[e-1],A[e]],i=[A[e+1],A[e+2]];return t[0]===i[0]&&t[1]===i[1]&&A.splice(e+1,2),A}getSpacedVertices(A=5,e=[]){let t;return this.curves.forEach(i=>{i.getSpacedVertices(A,e),t&&this._removeNextPointIfEqualPrevPoint(e,t),t=e.length-1}),e}getAdaptiveVertices(A=[]){let e;return this.curves.forEach(t=>{t.getAdaptiveVertices(A),e&&this._removeNextPointIfEqualPrevPoint(A,e),e=A.length-1}),A}strokeTriangulate(A){return this.curves.length===1?this.curves[0].strokeTriangulate(A):super.strokeTriangulate(A)}getFillVertices(A){if(this.curves.length===1)return this.curves[0].getFillVertices(A);{const e=[];let t;return this.curves.forEach(i=>{let s;i instanceof Xt?s=i.getAdaptiveVertices():s=i.getFillVertices(A),e.push(...s),t&&this._removeNextPointIfEqualPrevPoint(e,t),t=e.length-1}),e}}applyTransform(A){return this.curves.forEach(e=>e.applyTransform(A)),this}getMinMax(A=G.MAX,e=G.MIN){return this.curves.forEach(t=>t.getMinMax(A,e)),{min:A.finite(),max:e.finite()}}getBoundingBox(){const{min:A,max:e}=this.getMinMax();return new he(A.x,A.y,e.x-A.x,e.y-A.y)}toCommands(){return this.curves.flatMap(A=>A.toCommands())}drawTo(A){var t;const e=(t=this.curves[0])==null?void 0:t.getPoint(0);return e&&A.moveTo(e.x,e.y),this.curves.forEach(i=>i.drawTo(A)),this}copy(A){return super.copy(A),this.curves=A.curves.map(e=>e.clone()),this}}class an extends WA{constructor(A=new G,e=new G,t=new G,i=new G){super(),this.p1=A,this.cp1=e,this.cp2=t,this.p2=i}static from(A,e,t,i,s,n,o,a){return new an(new G(A,e),new G(t,i),new G(s,n),new G(o,a))}getPoint(A,e=new G){const{p1:t,cp1:i,cp2:s,p2:n}=this;return e.set(Ha(A,t.x,i.x,s.x,n.x),Ha(A,t.y,i.y,s.y,n.y))}getAdaptiveVertices(A=[]){return hu(this.p1.x,this.p1.y,this.cp1.x,this.cp1.y,this.cp2.x,this.cp2.y,this.p2.x,this.p2.y,.5,A)}getControlPointRefs(){return[this.p1,this.cp1,this.cp2,this.p2]}_solveQuadratic(A,e,t){const i=e*e-4*A*t;if(i<0)return[];const s=Math.sqrt(i),n=(-e+s)/(2*A),o=(-e-s)/(2*A);return[n,o].filter(a=>a>=0&&a<=1)}getMinMax(A=G.MAX,e=G.MIN){const{p1:t,cp1:i,cp2:s,p2:n}=this,o=this._solveQuadratic(3*(i.x-t.x),6*(s.x-i.x),3*(n.x-s.x)),a=this._solveQuadratic(3*(i.y-t.y),6*(s.y-i.y),3*(n.y-s.y)),l=[0,1,...o,...a];return((h,f)=>{for(const I of h)for(let d=0;d<=f;d++){const C=d/f-.5,p=Math.min(1,Math.max(0,I+C)),x=this.getPoint(p);A.x=Math.min(A.x,x.x),A.y=Math.min(A.y,x.y),e.x=Math.max(e.x,x.x),e.y=Math.max(e.y,x.y)}})(l,10),{min:A.finite(),max:e.finite()}}toCommands(){const{p1:A,cp1:e,cp2:t,p2:i}=this;return[{type:"M",x:A.x,y:A.y},{type:"C",x1:e.x,y1:e.y,x2:t.x,y2:t.y,x:i.x,y:i.y}]}drawTo(A){const{p1:e,cp1:t,cp2:i,p2:s}=this;return A.lineTo(e.x,e.y),A.bezierCurveTo(t.x,t.y,i.x,i.y,s.x,s.y),this}copy(A){return super.copy(A),this.p1.copy(A.p1),this.cp1.copy(A.cp1),this.cp2.copy(A.cp2),this.p2.copy(A.p2),this}}class xu extends on{constructor(A=0,e=0,t=1,i=1,s=0,n=0,o=Math.PI*2,a=!1){super(new G(A,e),new G(t,i),new G,s,n,o,a)}drawTo(A){return A.ellipse(this.cx,this.cy,this.rx,this.ry,this.rotate,this.startAngle,this.endAngle,!this.clockwise),this}}class Su extends Pi{}class ln extends WA{constructor(A=new G,e=new G,t=new G){super(),this.p1=A,this.cp=e,this.p2=t}static from(A,e,t,i,s,n){return new ln(new G(A,e),new G(t,i),new G(s,n))}getPoint(A,e=new G){const{p1:t,cp:i,p2:s}=this;return e.set(Ka(A,t.x,i.x,s.x),Ka(A,t.y,i.y,s.y)),e}getControlPointRefs(){return[this.p1,this.cp,this.p2]}getAdaptiveVertices(A=[]){return du(this.p1.x,this.p1.y,this.cp.x,this.cp.y,this.p2.x,this.p2.y,.5,A)}getMinMax(A=G.MAX,e=G.MIN){const{p1:t,cp:i,p2:s}=this,n=.5*(t.x+i.x),o=.5*(t.y+i.y),a=.5*(t.x+s.x),l=.5*(t.y+s.y);return A.x=Math.min(A.x,t.x,s.x,n,a),A.y=Math.min(A.y,t.y,s.y,o,l),e.x=Math.max(e.x,t.x,s.x,n,a),e.y=Math.max(e.y,t.y,s.y,o,l),{min:A.finite(),max:e.finite()}}toCommands(){const{p1:A,cp:e,p2:t}=this;return[{type:"M",x:A.x,y:A.y},{type:"Q",x1:e.x,y1:e.y,x:t.x,y:t.y}]}drawTo(A){const{p1:e,cp:t,p2:i}=this;return A.lineTo(e.x,e.y),A.quadraticCurveTo(t.x,t.y,i.x,i.y),this}copy(A){return super.copy(A),this.p1.copy(A.p1),this.cp.copy(A.cp),this.p2.copy(A.p2),this}}class Mu extends Su{constructor(A=0,e=0,t=0,i=0){super(),this.x=A,this.y=e,this.width=t,this.height=i,this.update()}update(){const{x:A,y:e,width:t,height:i}=this,s=[new G(A,e),new G(A+t,e),new G(A+t,e+i),new G(A,e+i)];return this.curves=[new Xt(s[0],s[1]),new Xt(s[1],s[2]),new Xt(s[2],s[3]),new Xt(s[3],s[0])],this}drawTo(A){return A.rect(this.x,this.y,this.width,this.height),this}getFillVertices(A={}){const{x:e,y:t,width:i,height:s}=this;return[e,t,e+i,t,e+i,t+s,e,t+s]}copy(A){return super.copy(A),this.x=A.x,this.y=A.y,this.width=A.width,this.height=A.height,this.update(),this}}class Ru extends on{constructor(A=0,e=0,t=1,i=1,s=1){super(),this.x=A,this.y=e,this.width=t,this.height=i,this.radius=s,this.update()}update(){const{x:A,y:e,width:t,height:i,radius:s}=this,n=t/2,o=i/2,a=A+n,l=e+o,c=Math.max(0,Math.min(s,Math.min(n,o))),h=c;return this._center=new G(a,l),this._radius=new G(c,h),this._diff=new G(n-c,o-h),this}drawTo(A){const{x:e,y:t,width:i,height:s,radius:n}=this;return A.roundRect(e,t,i,s,n),this}copy(A){return super.copy(A),this.x=A.x,this.y=A.y,this.width=A.width,this.height=A.height,this.radius=A.radius,this.update(),this}}class Pu extends WA{constructor(A=[]){super(),this.points=A}getPoint(A,e=new G){const{points:t}=this,i=(t.length-1)*A,s=Math.floor(i),n=i-s,o=t[s===0?s:s-1],a=t[s],l=t[s>t.length-2?t.length-1:s+1],c=t[s>t.length-3?t.length-1:s+2];return e.set(Oa(n,o.x,a.x,l.x,c.x),Oa(n,o.y,a.y,l.y,c.y)),e}getControlPointRefs(){return this.points}copy(A){super.copy(A),this.points=[];for(let e=0,t=A.points.length;e<t;e++)this.points.push(A.points[e].clone());return this}}class _r extends Pi{constructor(e){super();u(this,"startPoint");u(this,"currentPoint");u(this,"autoClose",!1);e&&this.addPoints(e)}addPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,i=e.length;t<i;t++){const{x:s,y:n}=e[t];this.lineTo(s,n)}return this}addCommands(e){return Ga(e,this),this}addData(e){return this.addCommands(La(e)),this}_closeVertices(e){return this.autoClose&&e.length>=4&&e[0]!==e[e.length-2]&&e[1]!==e[e.length-1]&&e.push(e[0],e[1]),e}getUnevenVertices(e=40,t=[]){return this._closeVertices(super.getUnevenVertices(e,t))}getSpacedVertices(e=40,t=[]){return this._closeVertices(super.getSpacedVertices(e,t))}getAdaptiveVertices(e=[]){return this._closeVertices(super.getAdaptiveVertices(e))}getFillVertices(e){return this._closeVertices(super.getFillVertices(e))}_setCurrentPoint(e){return this.currentPoint=new G(e.x,e.y),this.startPoint||(this.startPoint=this.currentPoint.clone()),this}_connetLineTo(e){if(this.curves.length>0){const t=e.getPoint(0);(!this.currentPoint||!t.equals(this.currentPoint))&&this.lineTo(t.x,t.y)}return this}closePath(){const e=this.startPoint;if(e){const t=this.currentPoint;t&&!e.equals(t)&&(this.curves.push(new Xt(t.clone(),e.clone())),t.copy(e)),this.startPoint=void 0}return this}moveTo(e,t){return this.currentPoint=new G(e,t),this.startPoint=this.currentPoint.clone(),this}lineTo(e,t){const i=this.currentPoint;return i!=null&&i.equals({x:e,y:t})||this.curves.push(Xt.from((i==null?void 0:i.x)??0,(i==null?void 0:i.y)??0,e,t)),this._setCurrentPoint({x:e,y:t}),this}bezierCurveTo(e,t,i,s,n,o){const a=this.currentPoint;return a!=null&&a.equals({x:n,y:o})||this.curves.push(an.from((a==null?void 0:a.x)??0,(a==null?void 0:a.y)??0,e,t,i,s,n,o)),this._setCurrentPoint({x:n,y:o}),this}quadraticCurveTo(e,t,i,s){const n=this.currentPoint;return n!=null&&n.equals({x:i,y:s})||this.curves.push(ln.from((n==null?void 0:n.x)??0,(n==null?void 0:n.y)??0,e,t,i,s)),this._setCurrentPoint({x:i,y:s}),this}arc(e,t,i,s,n,o){const a=new Du(e,t,i,s,n,!o);return this._connetLineTo(a),this.curves.push(a),this._setCurrentPoint(a.getPoint(1)),this}relativeArc(e,t,i,s,n,o){var a,l;return e+=((a=this.currentPoint)==null?void 0:a.x)??0,t+=((l=this.currentPoint)==null?void 0:l.y)??0,this.arc(e,t,i,s,n,o),this}arcTo(e,t,i,s,n){return console.warn("Method arcTo not supported yet"),this}ellipse(e,t,i,s,n,o,a,l=!0){const c=new xu(e,t,i,s,n,o,a,!l);return this._connetLineTo(c),this.curves.push(c),this._setCurrentPoint(c.getPoint(1)),this}relativeEllipse(e,t,i,s,n,o,a,l){var c,h;return e+=((c=this.currentPoint)==null?void 0:c.x)??0,t+=((h=this.currentPoint)==null?void 0:h.y)??0,this.ellipse(e,t,i,s,n,o,a,l),this}rect(e,t,i,s){const n=new Mu(e,t,i,s);return this._connetLineTo(n),this.curves.push(n),this._setCurrentPoint({x:e,y:t}),this}roundRect(e,t,i,s,n){const o=new Ru(e,t,i,s,n);return this._connetLineTo(o),this.curves.push(o),this._setCurrentPoint({x:e,y:t}),this}splineThru(e){const t=this.currentPoint??new G;return this.curves.push(new Pu([t].concat(e))),this._setCurrentPoint(e[e.length-1]),this}drawTo(e){var i;const t=(i=this.curves[0])==null?void 0:i.getPoint(0);return t&&e.moveTo(t.x,t.y),this.curves.forEach(s=>s.drawTo(e)),this.autoClose&&e.closePath(),this}copy(e){var t;return super.copy(e),this.autoClose=e.autoClose,this.currentPoint=(t=e.currentPoint)==null?void 0:t.clone(),this}}function ku(r){return r.replace(/[^a-z0-9]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase()}function Uu(r,A,e,t){const i=A.clone().sub(r),s=t.clone().sub(e),n=e.clone().sub(r),o=i.cross(s);if(o===0)return new G((r.x+e.x)/2,(r.y+e.y)/2);const a=n.cross(s)/o;return Math.abs(a)>1?new G((r.x+e.x)/2,(r.y+e.y)/2):new G(r.x+a*i.x,r.y+a*i.y)}class Ne extends Pi{constructor(e,t={}){super();u(this,"currentCurve",new _r);u(this,"style");this.curves.push(this.currentCurve),this.style=t,e&&(e instanceof Ne?this.addPath(e):Array.isArray(e)?this.addCommands(e):this.addData(e))}get startPoint(){return this.currentCurve.startPoint}get currentPoint(){return this.currentCurve.currentPoint}get strokeWidth(){return this.style.strokeWidth??((this.style.stroke??"none")==="none"?0:1)}addPath(e){const t=this.curves.findIndex(i=>i===this.currentCurve);return t>-1&&this.curves.splice(t,1),e instanceof Ne?this.curves.push(...e.curves.filter(i=>i.curves.length).map(i=>i.clone())):e.curves.length&&this.curves.push(e),this.curves.push(this.currentCurve),this}closePath(){const e=this.startPoint;return e&&(this.currentCurve.closePath(),this.currentCurve.curves.length&&(this.currentCurve=new _r().moveTo(e.x,e.y),this.curves.push(this.currentCurve))),this}moveTo(e,t){var i;return(i=this.currentCurve.currentPoint)!=null&&i.equals({x:e,y:t})||(this.currentCurve.curves.length&&(this.currentCurve=new _r,this.curves.push(this.currentCurve)),this.currentCurve.moveTo(e,t)),this}lineTo(e,t){return this.currentCurve.lineTo(e,t),this}bezierCurveTo(e,t,i,s,n,o){return this.currentCurve.bezierCurveTo(e,t,i,s,n,o),this}quadraticCurveTo(e,t,i,s){return this.currentCurve.quadraticCurveTo(e,t,i,s),this}arc(e,t,i,s,n,o){return this.currentCurve.arc(e,t,i,s,n,o),this}arcTo(e,t,i,s,n){return this.currentCurve.arcTo(e,t,i,s,n),this}ellipse(e,t,i,s,n,o,a,l){return this.currentCurve.ellipse(e,t,i,s,n,o,a,l),this}rect(e,t,i,s){return this.currentCurve.rect(e,t,i,s),this}roundRect(e,t,i,s,n){return this.currentCurve.roundRect(e,t,i,s,n),this}reset(){return this.currentCurve=new _r,this.curves=[this.currentCurve],this.style={},this}addCommands(e){return Ga(e,this),this}addData(e){return this.addCommands(La(e)),this}splineThru(e){return this.currentCurve.splineThru(e),this}scale(e,t=e,i={x:0,y:0}){return this.getControlPointRefs().forEach(s=>{s.scale(e,t,i)}),this}skew(e,t=0,i={x:0,y:0}){return this.getControlPointRefs().forEach(s=>{s.skew(e,t,i)}),this}rotate(e,t={x:0,y:0}){return this.getControlPointRefs().forEach(i=>{i.rotate(e,t)}),this}bold(e){if(e===0)return this;const t=this.getFlatCurves(),i=[],s=[],n=[];t.forEach((a,l)=>{const c=a.getControlPointRefs(),h=a.isClockwise();n[l]=c,s[l]=h;const f=c[0],I=c[c.length-1]??f;i.push({start:h?I:f,end:h?f:I,index:l})});const o=[];return i.forEach((a,l)=>{o[l]=[],i.forEach((c,h)=>{var f;c.start&&a.end&&h!==l&&((f=c.start)!=null&&f.equals(a.end))&&o[l].push(c.index)})}),t.forEach((a,l)=>{const c=s[l];n[l].forEach(h=>{h.add(a.getNormal(a.getTForPoint(h)).scale(c?e:-e))})}),o.forEach((a,l)=>{const c=n[l];a.forEach(h=>{const f=n[h],I=Uu(c[c.length-1],c[c.length-2]??c[c.length-1],f[0],f[1]??f[0]);I&&(c[c.length-1].copy(I),f[0].copy(I))})}),this}getMinMax(e=G.MAX,t=G.MIN,i=!0){const s=this.strokeWidth;return this.curves.forEach(n=>{if(n.getMinMax(e,t),i&&s>1){const o=s/2,a=n.isClockwise(),l=[];for(let c=0;c<=1;c+=1/n.arcLengthDivision){const h=n.getPoint(c),f=n.getNormal(c),I=f.clone().scale(a?o:-o),d=f.clone().scale(a?-o:o);l.push(h.clone().add(I),h.clone().add(d),h.clone().add({x:o,y:0}),h.clone().add({x:-o,y:0}),h.clone().add({x:0,y:o}),h.clone().add({x:0,y:-o}),h.clone().add({x:o,y:o}),h.clone().add({x:-o,y:-o}))}e.min(...l),t.max(...l)}}),{min:e.finite(),max:t.finite()}}strokeTriangulate(e){const t=(e==null?void 0:e.indices)??[],i=(e==null?void 0:e.vertices)??[];return this.curves.forEach(s=>{s.strokeTriangulate({...e,indices:t,vertices:i,style:{...this.style}})}),{indices:t,vertices:i}}fillTriangulate(e){const t={...e,style:{...this.style,...e==null?void 0:e.style}},i=t.indices??[],s=t.vertices??[];if((t.style.fillRule??"nonzero")==="nonzero"){const o=this.curves.map(c=>c.getFillVertices(t)),a=new Map,l=new Set;for(let c=0;c<o.length;c++){const h=[];for(let f=0;f<o.length;f++)c!==f&&Iu([o[c][0],o[c][1]],o[f])&&h.push(f);h.length&&(h.forEach(f=>{let I=a.get(f);I||(I=new Set,a.set(f,I)),I.add(c)}),l.add(c))}o.forEach((c,h)=>{var d;if(l.has(h)||!c.length)return;const f=c.slice(),I=[];(d=a.get(h))==null||d.forEach(C=>{I.push(f.length/2),f.push(...o[C])}),Ja(f,{...e,indices:i,vertices:s,holes:I,style:{...this.style}})})}else this.curves.forEach(o=>{o.fillTriangulate({...e,indices:i,vertices:s,style:{...this.style}})});return{indices:i,vertices:s}}getBoundingBox(e=!0){const{min:t,max:i}=this.getMinMax(void 0,void 0,e);return new he(t.x,t.y,i.x-t.x,i.y-t.y)}drawTo(e,t={}){t={...this.style,...t};const{fill:i="#000",stroke:s="none"}=t;return e.beginPath(),e.save(),An(e,t),this.curves.forEach(n=>{n.drawTo(e)}),i!=="none"&&e.fill(),s!=="none"&&e.stroke(),e.restore(),this}drawControlPointsTo(e,t={}){t={...this.style,...t};const{fill:i="#000",stroke:s="none"}=t;return e.beginPath(),e.save(),An(e,t),this.getControlPointRefs().forEach(n=>{eu(e,n.x,n.y,{radius:4})}),i!=="none"&&e.fill(),s!=="none"&&e.stroke(),e.restore(),this}toCommands(){return this.curves.flatMap(e=>e.toCommands())}toData(){return this.curves.filter(e=>e.curves.length).map(e=>e.toData()).join(" ")}toSVGPathString(){const e={...this.style,fill:this.style.fill??"#000",stroke:this.style.stroke??"none"},t={};for(const s in e)e[s]!==void 0&&(t[ku(s)]=e[s]);Object.assign(t,{"stroke-width":`${this.strokeWidth}px`});let i="";for(const s in t)t[s]!==void 0&&(i+=`${s}:${t[s]};`);return`<path d="${this.toData()}" style="${i}"></path>`}copy(e){return super.copy(e),this.currentCurve=e.currentCurve.clone(),this.style={...e.style},this}}class nA{constructor(A=[],e){this.paths=A,this.viewBox=e}getBoundingBox(A=!0){if(!this.paths.length)return;const e=G.MAX,t=G.MIN;return this.paths.forEach(i=>i.getMinMax(e,t,A)),new he(e.x,e.y,t.x-e.x,t.y-e.y)}toTriangulatedSVGString(A=this.paths.map(t=>t.fillTriangulate()),e=0){let t="";const i={x:-e,y:-e},s={x:e,y:e};(Array.isArray(A)?A:[A]).forEach(({vertices:a,indices:l})=>{const c=h=>{const f=a[h*2],I=a[h*2+1];return i.x=Math.min(i.x,f+e),s.x=Math.max(s.x,f+e),i.y=Math.min(i.y,I+e),s.y=Math.max(s.y,I+e),[f,I]};for(let h=0,f=l.length;h<f;h+=3){const I=c(l[h]),d=c(l[h+1]),C=c(l[h+2]);t+=`<polygon points="${I.join(",")} ${d.join(",")} ${C.join(",")}" fill="black" />`}});const o=[i.x,i.y,s.x-i.x,s.y-i.y];return`<svg width="${o[2]}" height="${o[3]}" viewBox="${o.join(" ")}" xmlns="http://www.w3.org/2000/svg">${t}</svg>`}toTriangulatedSVG(A,e){return new DOMParser().parseFromString(this.toTriangulatedSVGString(A,e),"image/svg+xml").documentElement}toSVGString(){const{x:A,y:e,width:t,height:i}=this.getBoundingBox(),s=this.paths.map(n=>n.toSVGPathString()).join("");return`<svg viewBox="${A} ${e} ${t} ${i}" width="${t}px" height="${i}px" xmlns="http://www.w3.org/2000/svg">${s}</svg>`}toSVGUrl(){return`data:image/svg+xml;base64,${btoa(this.toSVGString())}`}toSVG(){return new DOMParser().parseFromString(this.toSVGString(),"image/svg+xml").documentElement}toCanvas(A={}){const{pixelRatio:e=2,...t}=A,{left:i,top:s,width:n,height:o}=this.getBoundingBox(),a=document.createElement("canvas");a.width=n*e,a.height=o*e,a.style.width=`${n}px`,a.style.height=`${o}px`;const l=a.getContext("2d");return l&&(l.scale(e,e),l.translate(-i,-s),this.paths.forEach(c=>{c.drawTo(l,t)})),a}}const Za="data:image/svg+xml;",$a=`${Za}base64,`,el=`${Za}charset=utf8,`;function cn(r){if(typeof r=="string"){let A;r.startsWith($a)?(r=r.substring($a.length,r.length),A=atob(r)):r.startsWith(el)?(r=r.substring(el.length,r.length),A=decodeURIComponent(r)):A=r;const e=new DOMParser().parseFromString(A,"text/xml"),t=e.querySelector("parsererror");if(t)throw new Error(`${t.textContent??"parser error"}
277
+ ${A}`);return e.documentElement}else return r}const Nu="px",Fu=90,tl=["mm","cm","in","pt","pc","px"],Al={mm:{mm:1,cm:.1,in:1/25.4,pt:72/25.4,pc:6/25.4,px:-1},cm:{mm:10,cm:1,in:1/2.54,pt:72/2.54,pc:6/2.54,px:-1},in:{mm:25.4,cm:2.54,in:1,pt:72,pc:6,px:-1},pt:{mm:25.4/72,cm:2.54/72,in:1/72,pt:1,pc:6/72,px:-1},pc:{mm:25.4/6,cm:2.54/6,in:1/6,pt:72/6,pc:1,px:-1},px:{px:1}};function Be(r){let A="px";if(typeof r=="string")for(let t=0,i=tl.length;t<i;t++){const s=tl[t];if(r.endsWith(s)){A=s,r=r.substring(0,r.length-s.length);break}}let e;return e=Al[A][Nu],e<0&&(e=Al[A].in*Fu),e*Number.parseFloat(r)}const Tu=new Ke,br=new Ke,il=new Ke,rl=new Ke;function Gu(r,A,e){if(!(r.hasAttribute("transform")||r.nodeName==="use"&&(r.hasAttribute("x")||r.hasAttribute("y"))))return null;const t=Lu(r);return e.length>0&&t.premultiply(e[e.length-1]),A.copy(t),e.push(t),t}function Lu(r){const A=new Ke,e=Tu;if(r.nodeName==="use"&&(r.hasAttribute("x")||r.hasAttribute("y"))&&A.translate(Be(r.getAttribute("x")),Be(r.getAttribute("y"))),r.hasAttribute("transform")){const t=r.getAttribute("transform").split(")");for(let i=t.length-1;i>=0;i--){const s=t[i].trim();if(s==="")continue;const n=s.indexOf("("),o=s.length;if(n>0&&n<o){const a=s.slice(0,n),l=Rt(s.slice(n+1));switch(e.identity(),a){case"translate":if(l.length>=1){const c=l[0];let h=0;l.length>=2&&(h=l[1]),e.translate(c,h)}break;case"rotate":if(l.length>=1){let c=0,h=0,f=0;c=l[0]*Math.PI/180,l.length>=3&&(h=l[1],f=l[2]),br.makeTranslation(-h,-f),il.makeRotation(c),rl.multiplyMatrices(il,br),br.makeTranslation(h,f),e.multiplyMatrices(br,rl)}break;case"scale":l.length>=1&&e.scale(l[0],l[1]??l[0]);break;case"skewX":l.length===1&&e.set(1,Math.tan(l[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":l.length===1&&e.set(1,0,0,Math.tan(l[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":l.length===6&&e.set(l[0],l[2],l[4],l[1],l[3],l[5],0,0,1);break}}A.premultiply(e)}}return A}function Ou(r){return new Ne().arc(Be(r.getAttribute("cx")||0),Be(r.getAttribute("cy")||0),Be(r.getAttribute("r")||0),0,Math.PI*2)}function Hu(r,A){if(!(!r.sheet||!r.sheet.cssRules||!r.sheet.cssRules.length))for(let e=0;e<r.sheet.cssRules.length;e++){const t=r.sheet.cssRules[e];if(t.type!==1)continue;const i=t.selectorText.split(/,/g).filter(Boolean).map(n=>n.trim()),s={};for(let n=t.style.length,o=0;o<n;o++){const a=t.style.item(o);s[a]=t.style.getPropertyValue(a)}for(let n=0;n<i.length;n++)A[i[n]]=Object.assign(A[i[n]]||{},{...s})}}function Ju(r){return new Ne().ellipse(Be(r.getAttribute("cx")||0),Be(r.getAttribute("cy")||0),Be(r.getAttribute("rx")||0),Be(r.getAttribute("ry")||0),0,0,Math.PI*2)}function Ku(r){return new Ne().moveTo(Be(r.getAttribute("x1")||0),Be(r.getAttribute("y1")||0)).lineTo(Be(r.getAttribute("x2")||0),Be(r.getAttribute("y2")||0))}function Yu(r){const A=new Ne,e=r.getAttribute("d");return!e||e==="none"?null:(A.addData(e),A)}const Vu=/([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g;function zu(r){var t;const A=new Ne;let e=0;return(t=r.getAttribute("points"))==null||t.replace(Vu,(i,s,n)=>{const o=Be(s),a=Be(n);return e===0?A.moveTo(o,a):A.lineTo(o,a),e++,i}),A.currentCurve.autoClose=!0,A}const Wu=/([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g;function qu(r){var t;const A=new Ne;let e=0;return(t=r.getAttribute("points"))==null||t.replace(Wu,(i,s,n)=>{const o=Be(s),a=Be(n);return e===0?A.moveTo(o,a):A.lineTo(o,a),e++,i}),A.currentCurve.autoClose=!1,A}function Xu(r){const A=Be(r.getAttribute("x")||0),e=Be(r.getAttribute("y")||0),t=Be(r.getAttribute("rx")||r.getAttribute("ry")||0),i=Be(r.getAttribute("ry")||r.getAttribute("rx")||0),s=Be(r.getAttribute("width")),n=Be(r.getAttribute("height")),o=1-.551915024494,a=new Ne;return a.moveTo(A+t,e),a.lineTo(A+s-t,e),(t!==0||i!==0)&&a.bezierCurveTo(A+s-t*o,e,A+s,e+i*o,A+s,e+i),a.lineTo(A+s,e+n-i),(t!==0||i!==0)&&a.bezierCurveTo(A+s,e+n-i*o,A+s-t*o,e+n,A+s-t,e+n),a.lineTo(A+t,e+n),(t!==0||i!==0)&&a.bezierCurveTo(A+t*o,e+n,A,e+n-i*o,A,e+n-i),a.lineTo(A,e+i),(t!==0||i!==0)&&a.bezierCurveTo(A,e+i*o,A+t*o,e,A+t,e),a}function Pt(r,A,e){A=Object.assign({},A);let t={};if(r.hasAttribute("class")){const l=r.getAttribute("class").split(/\s/).filter(Boolean).map(c=>c.trim());for(let c=0;c<l.length;c++)t=Object.assign(t,e[`.${l[c]}`])}r.hasAttribute("id")&&(t=Object.assign(t,e[`#${r.getAttribute("id")}`]));for(let l=r.style.length,c=0;c<l;c++){const h=r.style.item(c),f=r.style.getPropertyValue(h);A[h]=f,t[h]=f}function i(l,c,h=s){r.hasAttribute(l)&&(A[c]=h(r.getAttribute(l))),t[l]&&(A[c]=h(t[l]))}function s(l){return l.startsWith("url")&&console.warn("url access in attributes is not implemented."),l}function n(l){return Math.max(0,Math.min(1,Be(l)))}function o(l){return Math.max(0,Be(l))}function a(l){return l.split(" ").filter(c=>c!=="").map(c=>Be(c))}return i("fill","fill"),i("fill-opacity","fillOpacity",n),i("fill-rule","fillRule"),i("opacity","opacity",n),i("stroke","stroke"),i("stroke-opacity","strokeOpacity",n),i("stroke-width","strokeWidth",o),i("stroke-linecap","strokeLinecap"),i("stroke-linejoin","strokeLinejoin"),i("stroke-miterlimit","strokeMiterlimit",o),i("stroke-dasharray","strokeDasharray",a),i("stroke-dashoffset","strokeDashoffset",Be),i("visibility","visibility"),A}function hn(r,A,e=[],t={}){var h;if(r.nodeType!==1)return e;let i=!1,s=null,n={...A};switch(r.nodeName){case"svg":n=Pt(r,n,t);break;case"style":Hu(r,t);break;case"g":n=Pt(r,n,t);break;case"path":n=Pt(r,n,t),r.hasAttribute("d")&&(s=Yu(r));break;case"rect":n=Pt(r,n,t),s=Xu(r);break;case"polygon":n=Pt(r,n,t),s=zu(r);break;case"polyline":n=Pt(r,n,t),s=qu(r);break;case"circle":n=Pt(r,n,t),s=Ou(r);break;case"ellipse":n=Pt(r,n,t),s=Ju(r);break;case"line":n=Pt(r,n,t),s=Ku(r);break;case"defs":i=!0;break;case"use":{n=Pt(r,n,t);const I=(r.getAttributeNS("http://www.w3.org/1999/xlink","href")||r.getAttribute("href")||"").substring(1),d=(h=r.viewportElement)==null?void 0:h.getElementById(I);d?hn(d,n,e,t):console.warn(`'use node' references non-existent node id: ${I}`);break}default:console.warn(r);break}if(n.display==="none")return e;const o=new Ke,a=[],l=Gu(r,o,a);s&&(s.applyTransform(o),e.push(s),s.style={...n});const c=r.childNodes;for(let f=0,I=c.length;f<I;f++){const d=c[f];i&&d.nodeName!=="style"&&d.nodeName!=="defs"||hn(d,n,e,t)}return l&&(a.pop(),a.length>0?o.copy(a[a.length-1]):o.identity()),e}function gn(r){var e;const A=cn(r);return new nA(hn(A,{}),(e=A.getAttribute("viewBox"))==null?void 0:e.trim().split(" ").map(t=>Number(t)))}class sl extends Ne{constructor(){super(...arguments);u(this,"fillStyle");u(this,"strokeStyle");u(this,"lineCap");u(this,"lineJoin");u(this,"lineWidth");u(this,"miterLimit");u(this,"uvTransform");u(this,"vertTransform");u(this,"_defaultStyle",_e.EMPTY);u(this,"_draws",[])}_toTexture(e){return e instanceof _e?e:new ya(e)}stroke(e){const t=new Ne(this);let i=this._defaultStyle;this.strokeStyle&&(i=this._toTexture(this.strokeStyle)),this.curves.length&&(this._draws.push({...e,type:"stroke",path:t,texture:i,uvTransform:this.uvTransform,vertTransform:this.vertTransform,style:{alignment:.5,cap:this.lineCap??"butt",join:this.lineJoin??"miter",width:this.lineWidth??1,miterLimit:this.miterLimit??10}}),super.reset())}fillRect(e,t,i,s){this.rect(e,t,i,s).fill()}strokeRect(e,t,i,s){this.rect(e,t,i,s).stroke()}fill(e){const t=new Ne(this);let i=this._defaultStyle;this.fillStyle&&(i=this._toTexture(this.fillStyle)),this._draws.push({...e,type:"fill",path:t,texture:i,uvTransform:this.uvTransform,vertTransform:this.vertTransform}),super.reset()}copy(e){return super.copy(e),this.strokeStyle=e.strokeStyle,this.fillStyle=e.fillStyle,this.uvTransform=e.uvTransform,this.vertTransform=e.vertTransform,this.lineCap=e.lineCap,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this._draws=e._draws.slice(),this}reset(){return super.reset(),this.strokeStyle=void 0,this.fillStyle=void 0,this.uvTransform=void 0,this.vertTransform=void 0,this.lineCap=void 0,this.lineJoin=void 0,this.lineWidth=void 0,this.miterLimit=void 0,this._draws.length=0,this}buildUvs(e,t,i,s,n){if(s){const o=n&&(typeof n=="function"?n:(c,h)=>n.applyToPoint(c,h)),a=s.width,l=s.height;for(let c=t.length,h=e;h<c;h+=2){const f=t[h],I=t[h+1];let d,C;o?[d,C]=o(f,I):[d,C]=[f/a,I/l],i.push(d,C)}}else for(let o=t.length,a=e;a<o;a+=2)i.push(0,0)}toBatchables(){const e=[];for(let t=this._draws.length,i=0;i<t;i++){const s=this._draws[i],n=[],o=[],a=[];s.type==="fill"?s.path.fillTriangulate({vertices:n,indices:o}):s.path.strokeTriangulate({vertices:n,indices:o,lineStyle:s.style,flipAlignment:!1,closed:!0}),this.buildUvs(0,n,a,s.texture,s.uvTransform),e.push({vertices:n,indices:o,uvs:a,texture:s.texture,type:s.type,disableWrapMode:s.disableWrapMode,vertTransform:s.vertTransform})}return e}}var ju=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,ki=(r,A,e,t)=>{for(var i=t>1?void 0:t?Zu(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ju(A,e,i),i};g.CanvasItem=class extends g.TimelineNode{constructor(e,t=[]){super();u(this,"_parentGlobalVisible");u(this,"_globalVisible");u(this,"_parentGlobalOpacity");u(this,"_globalOpacity");u(this,"_modulate",new Vt(4294967295));u(this,"context",new sl);u(this,"_resetContext",!0);u(this,"_redrawing",!1);u(this,"_relayouting",!1);u(this,"_repainting",!1);u(this,"_originalBatchables",[]);u(this,"_layoutedBatchables",[]);u(this,"_batchables",[]);this.setProperties(e).append(t)}get globalVisible(){return this._globalVisible??!0}get globalOpacity(){return this._globalOpacity??1}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"modulate":this._modulate.value=t,this.requestRepaint();break;case"blendMode":this.requestRepaint();break;case"opacity":this._updateGlobalOpacity();break;case"visible":case"insideTimeRange":this._updateGlobalVisible();break}}show(){this.visible=!0}hide(){this.visible=!1}isVisibleInTree(){return this.globalOpacity>0&&this.globalVisible}canRender(){return super.canRender()&&this.isVisibleInTree()}requestRedraw(){this._redrawing=!0,this.requestUpdate()}requestRelayout(){this._relayouting=!0,this.requestUpdate()}requestRepaint(){this._repainting=!0,this.requestUpdate()}_updateGlobalVisible(){var e;this._parentGlobalVisible=(e=this.getParent())==null?void 0:e.globalVisible,this._globalVisible=(this._parentGlobalVisible??!0)&&this.visible&&this.insideTimeRange}_updateGlobalOpacity(){var t;this._parentGlobalOpacity=(t=this.getParent())==null?void 0:t.opacity;const e=zt(0,this.opacity,1)*(this._parentGlobalOpacity??1);this._globalOpacity!==e&&(this._globalOpacity=e,this.requestRepaint())}_draw(){this.emit("draw")}_redraw(){var e;return(e=this._tree)==null||e.log(this.name,"redrawing"),this._draw(),this.context.toBatchables()}_relayout(e){var t;return(t=this._tree)==null||t.log(this.name,"relayouting"),e}_repaint(e){var t;return(t=this._tree)==null||t.log(this.name,"repainting"),e.map(i=>({...i,modulate:this._modulate.toArgb(this.globalOpacity,!0),blendMode:this.blendMode}))}_process(e){super._process(e);const t=this.getParent();this._parentGlobalVisible!==(t==null?void 0:t.globalVisible)&&this.requestUpdate(),this._parentGlobalOpacity!==(t==null?void 0:t.globalOpacity)&&this.requestUpdate()}_update(e){super._update(e);const t=this.getParent();this._parentGlobalVisible!==(t==null?void 0:t.globalVisible)&&this._updateGlobalVisible(),this._parentGlobalOpacity!==(t==null?void 0:t.globalOpacity)&&this._updateGlobalOpacity();const i=this._redrawing;let s=this._relayouting,n=this._repainting,o;i&&(this._originalBatchables=this._redraw(),s=!0),s&&(this._layoutedBatchables=this._relayout(this._originalBatchables),n=!0),n&&(o=this._repaint(this._layoutedBatchables)),i&&this._resetContext&&this.context.reset(),o&&(this._batchables=o,this._redrawing=!1,this._relayouting=!1,this._repainting=!1)}_render(e){this._batchables.forEach(t=>{var i,s;(i=t.texture)==null||i.upload(e),e.batch2D.render({...t,texture:(s=t.texture)==null?void 0:s._glTexture(e)})}),super._render(e)}},ki([M()],g.CanvasItem.prototype,"modulate",2),ki([M()],g.CanvasItem.prototype,"blendMode",2),ki([Ie({default:!0})],g.CanvasItem.prototype,"visible",2),ki([Ie({default:1})],g.CanvasItem.prototype,"opacity",2),g.CanvasItem=ki([ne("CanvasItem")],g.CanvasItem);class $u{constructor(){u(this,"currentCall");u(this,"calls",[])}createCall(A){return{renderable:A,parentCall:this.currentCall,fn:A.render.bind(A),calls:[]}}push(A){var t;const e=this.createCall(A);return(((t=this.currentCall)==null?void 0:t.calls)??this.calls).push(e),e}render(A){this.calls.forEach(function e(t){t.fn(A,()=>{t.calls.forEach(e)})}),this.calls=[]}}var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,Ui=(r,A,e,t)=>{for(var i=t>1?void 0:t?tf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ef(A,e,i),i};g.Timeline=class extends g.Node{static from(A,e=!1){const[t,i]=A?Array.isArray(A)?A:[0,A]:[];return new g.Timeline({startTime:t,endTime:i,loop:e})}constructor(A){super(),this.setProperties(A)}_updateProperty(A,e,t){switch(super._updateProperty(A,e,t),A){case"startTime":this.startTime=Math.min(e,this.endTime);break;case"endTime":this.endTime=e||Number.MAX_SAFE_INTEGER;break}}addTime(A){const e=this.startTime,t=this.endTime;let i=this.currentTime;return i=i+A,this.loop&&i>t&&(i=e+i%t),i=zt(e,i,t),this.currentTime=i,this.emit("updateCurrentTime",i,A),this}_process(A){super._process(A),this.addTime(A)}},Ui([M({default:0})],g.Timeline.prototype,"startTime",2),Ui([M({default:0})],g.Timeline.prototype,"currentTime",2),Ui([M({default:Number.MAX_SAFE_INTEGER})],g.Timeline.prototype,"endTime",2),Ui([M({default:!1})],g.Timeline.prototype,"loop",2),g.Timeline=Ui([ne("Timeline")],g.Timeline);var Af=Object.defineProperty,un=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Af(A,e,i),i};class Ni extends pr{constructor(e=new g.Timeline){super();u(this,"input",new qo);u(this,"renderStack",new $u);u(this,"root",new g.Viewport(!0).setTree(this));u(this,"timeline");u(this,"_backgroundColor",new Vt);u(this,"_currentViewport");this.timeline=e.setTree(this)}getCurrentViewport(){return this._currentViewport}setCurrentViewport(e){this._currentViewport=e}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"backgroundColor":this._backgroundColor.value=t;break}}log(...e){this.debug&&console.log("[modern-canvas]",...e)}_process(e=0){this.timeline.emit("process",e),this.emit("processing"),this.root.emit("process",e),this.emit("processed")}_render(e){this.emit("rendering"),e.program.uniforms.projectionMatrix=this.root.toProjectionArray(!0),this.renderStack.render(e),this._renderScreen(e),this.emit("rendered")}_renderScreen(e){e.state.reset(),e.framebuffer.bind(null),e.viewport.bind({x:0,y:0,width:this.root.width*e.pixelRatio,height:this.root.height*e.pixelRatio}),this.backgroundColor&&e.gl.clearColor(...this._backgroundColor.toArray()),e.clear(),this.backgroundColor&&e.gl.clearColor(0,0,0,0);const t=this.root.texture;t.activate(e,0),fe.draw(e),e.texture.unbind(t)}free(){super.free(),this.root.children.internal.forEach(e=>this.root.removeChild(e)),this.input.removeEventListeners()}}un([M({default:!1})],Ni.prototype,"processPaused"),un([M()],Ni.prototype,"backgroundColor"),un([Ie({default:!1})],Ni.prototype,"debug");var rf=Object.getOwnPropertyDescriptor,sf=(r,A,e,t)=>{for(var i=t>1?void 0:t?rf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Transition=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}},g.Transition=sf([ne("Transition",{effectMode:"transition",processMode:"pausable",duration:2e3})],g.Transition);var nl=Object.defineProperty,nf=Object.getOwnPropertyDescriptor,of=(r,A,e)=>A in r?nl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,fn=(r,A,e,t)=>{for(var i=t>1?void 0:t?nf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&nl(A,e,i),i},ol=(r,A,e)=>of(r,typeof A!="symbol"?A+"":A,e);const al=`varying vec2 vUv[9];
278
278
  uniform sampler2D sampler;
279
279
 
280
280
  void main(void) {
@@ -308,7 +308,7 @@ void main(void) {
308
308
  gl_FragColor += texture2D(sampler, vUv[7]) * 0.067234;
309
309
  gl_FragColor += texture2D(sampler, vUv[8]) * 0.028532;
310
310
  }
311
- }`;g.GaussianBlurEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){const t=1/e.width,i=1/e.height,s=Math.max(this.quality,1);for(let n=0;n<s;n++)e.redraw(A,()=>{fe.draw(A,g.GaussianBlurEffect.materialX,{sampler:0,uStrength:t*(this.strength/s)})});for(let n=0;n<s;n++)e.redraw(A,()=>{fe.draw(A,g.GaussianBlurEffect.materialY,{sampler:0,uStrength:i*(this.strength/s)})})}},nl(g.GaussianBlurEffect,"materialX",new Ce({vert:`attribute vec2 position;
311
+ }`;g.GaussianBlurEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){const t=1/e.width,i=1/e.height,s=Math.max(this.quality,1);for(let n=0;n<s;n++)e.redraw(A,()=>{fe.draw(A,g.GaussianBlurEffect.materialX,{sampler:0,uStrength:t*(this.strength/s)})});for(let n=0;n<s;n++)e.redraw(A,()=>{fe.draw(A,g.GaussianBlurEffect.materialY,{sampler:0,uStrength:i*(this.strength/s)})})}},ol(g.GaussianBlurEffect,"materialX",new Ce({vert:`attribute vec2 position;
312
312
  attribute vec2 uv;
313
313
  uniform float uStrength;
314
314
  varying vec2 vUv[9];
@@ -324,7 +324,7 @@ void main(void) {
324
324
  vUv[6] = uv + vec2(2.0 * uStrength, 0.0);
325
325
  vUv[7] = uv + vec2(3.0 * uStrength, 0.0);
326
326
  vUv[8] = uv + vec2(4.0 * uStrength, 0.0);
327
- }`,frag:ol})),nl(g.GaussianBlurEffect,"materialY",new Ce({vert:`attribute vec2 position;
327
+ }`,frag:al})),ol(g.GaussianBlurEffect,"materialY",new Ce({vert:`attribute vec2 position;
328
328
  attribute vec2 uv;
329
329
  uniform float uStrength;
330
330
  varying vec2 vUv[9];
@@ -340,7 +340,7 @@ void main(void) {
340
340
  vUv[6] = uv + vec2(0.0, 2.0 * uStrength);
341
341
  vUv[7] = uv + vec2(0.0, 3.0 * uStrength);
342
342
  vUv[8] = uv + vec2(0.0, 4.0 * uStrength);
343
- }`,frag:ol})),fn([M({default:4})],g.GaussianBlurEffect.prototype,"strength",2),fn([M({default:3})],g.GaussianBlurEffect.prototype,"quality",2),g.GaussianBlurEffect=fn([ne("GaussianBlurEffect")],g.GaussianBlurEffect);var al=Object.defineProperty,of=Object.getOwnPropertyDescriptor,af=(r,A,e)=>A in r?al(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,qA=(r,A,e,t)=>{for(var i=t>1?void 0:t?of(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&al(A,e,i),i},lf=(r,A,e)=>af(r,A+"",e);g.DropShadowEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"blurEffect",new g.GaussianBlurEffect);u(this,"viewport3",new g.Viewport);u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){this.viewport3.activateWithCopy(e,t),this.viewport3.redraw(e,()=>{this._color.value=this.color,fe.draw(e,g.DropShadowEffect.material,{sampler:0,uAlpha:this._color.a,uColor:this._color.toArray().slice(0,3),uOffset:[-this.offsetX,this.offsetY],uInputSize:[t.width,t.height,1/t.width,1/t.height]})}),this.blurEffect.strength=this.blur,this.blurEffect.apply(e,this.viewport3),t.redraw(e,()=>{this.viewport3.texture.activate(e,1),fe.draw(e,JA.instance,{sampler:1}),this.shadowOnly||fe.draw(e,JA.instance,{sampler:0}),e.texture.unbind(1)})}},lf(g.DropShadowEffect,"material",new Ce({vert:`precision mediump float;
343
+ }`,frag:al})),fn([M({default:4})],g.GaussianBlurEffect.prototype,"strength",2),fn([M({default:3})],g.GaussianBlurEffect.prototype,"quality",2),g.GaussianBlurEffect=fn([ne("GaussianBlurEffect")],g.GaussianBlurEffect);var ll=Object.defineProperty,af=Object.getOwnPropertyDescriptor,lf=(r,A,e)=>A in r?ll(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,qA=(r,A,e,t)=>{for(var i=t>1?void 0:t?af(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ll(A,e,i),i},cf=(r,A,e)=>lf(r,A+"",e);g.DropShadowEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"blurEffect",new g.GaussianBlurEffect);u(this,"viewport3",new g.Viewport);u(this,"_color",new Vt);this.setProperties(e).append(t)}apply(e,t){this.viewport3.activateWithCopy(e,t),this.viewport3.redraw(e,()=>{this._color.value=this.color,fe.draw(e,g.DropShadowEffect.material,{sampler:0,uAlpha:this._color.a,uColor:this._color.toArray().slice(0,3),uOffset:[-this.offsetX,this.offsetY],uInputSize:[t.width,t.height,1/t.width,1/t.height]})}),this.blurEffect.strength=this.blur,this.blurEffect.apply(e,this.viewport3),t.redraw(e,()=>{this.viewport3.texture.activate(e,1),fe.draw(e,JA.instance,{sampler:1}),this.shadowOnly||fe.draw(e,JA.instance,{sampler:0}),e.texture.unbind(1)})}},cf(g.DropShadowEffect,"material",new Ce({vert:`precision mediump float;
344
344
  attribute vec2 position;
345
345
  attribute vec2 uv;
346
346
  varying vec2 vUv;
@@ -360,7 +360,7 @@ void main(void) {
360
360
  sample.rgb = uColor.rgb * sample.a;
361
361
  sample *= uAlpha;
362
362
  gl_FragColor = sample;
363
- }`})),qA([M({default:0})],g.DropShadowEffect.prototype,"color",2),qA([M({default:4})],g.DropShadowEffect.prototype,"blur",2),qA([M({default:4})],g.DropShadowEffect.prototype,"offsetX",2),qA([M({default:4})],g.DropShadowEffect.prototype,"offsetY",2),qA([M({default:!1})],g.DropShadowEffect.prototype,"shadowOnly",2),g.DropShadowEffect=qA([ne("DropShadowEffect")],g.DropShadowEffect);var ll=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,cf=(r,A,e)=>A in r?ll(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,hl=(r,A,e,t)=>{for(var i=t>1?void 0:t?hf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ll(A,e,i),i},gf=(r,A,e)=>cf(r,A+"",e);g.EmbossEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){e.redraw(A,()=>{fe.draw(A,g.EmbossEffect.material,{sampler:0,strength:this.strength,inputSize:[e.width,e.height,1/e.width,1/e.height]})})}},gf(g.EmbossEffect,"material",new Ce({vert:`precision mediump float;
363
+ }`})),qA([M({default:0})],g.DropShadowEffect.prototype,"color",2),qA([M({default:4})],g.DropShadowEffect.prototype,"blur",2),qA([M({default:4})],g.DropShadowEffect.prototype,"offsetX",2),qA([M({default:4})],g.DropShadowEffect.prototype,"offsetY",2),qA([M({default:!1})],g.DropShadowEffect.prototype,"shadowOnly",2),g.DropShadowEffect=qA([ne("DropShadowEffect")],g.DropShadowEffect);var cl=Object.defineProperty,hf=Object.getOwnPropertyDescriptor,gf=(r,A,e)=>A in r?cl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,hl=(r,A,e,t)=>{for(var i=t>1?void 0:t?hf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&cl(A,e,i),i},uf=(r,A,e)=>gf(r,A+"",e);g.EmbossEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){e.redraw(A,()=>{fe.draw(A,g.EmbossEffect.material,{sampler:0,strength:this.strength,inputSize:[e.width,e.height,1/e.width,1/e.height]})})}},uf(g.EmbossEffect,"material",new Ce({vert:`precision mediump float;
364
364
  attribute vec2 position;
365
365
  attribute vec2 uv;
366
366
  varying vec2 vUv;
@@ -382,7 +382,7 @@ void main(void) {
382
382
  color.rgb = vec3((color.r + color.g + color.b) / 3.0);
383
383
  float alpha = texture2D(sampler, vUv).a;
384
384
  gl_FragColor = vec4(color.rgb * alpha, alpha);
385
- }`})),hl([M({default:5})],g.EmbossEffect.prototype,"strength",2),g.EmbossEffect=hl([ne("EmbossEffect")],g.EmbossEffect);var cl=Object.defineProperty,uf=Object.getOwnPropertyDescriptor,ff=(r,A,e)=>A in r?cl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,kt=(r,A,e,t)=>{for(var i=t>1?void 0:t?uf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&cl(A,e,i),i},df=(r,A,e)=>ff(r,A+"",e);g.GlitchEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_canvas");u(this,"_texture");u(this,"_sizes");u(this,"_offsets");u(this,"_needsRedraw",!1);this.setProperties(e).append(t),this._canvas=document.createElement("canvas"),this._canvas.width=4,this._canvas.height=this.sampleSize,this._texture=new _e(this._canvas),this._sizes=new Float32Array(this.slices),this._offsets=new Float32Array(this.slices)}redraw(){const e=this.sampleSize,t=this._texture,i=this._canvas.getContext("2d");i.clearRect(0,0,8,e);let s,n=0;for(let o=0;o<this.slices;o++){s=Math.floor(this._offsets[o]*256);const a=this._sizes[o]*e,l=s>0?s:0,h=s<0?-s:0;i.fillStyle=`rgba(${l}, ${h}, 0, 1)`,i.fillRect(0,n>>0,e,a+1>>0),n+=a}t.requestUpload()}apply(e,t){this._needsRedraw||(this._needsRedraw=!0,this.redraw());const i=t.width,s=t.height,n=this.direction*(Math.PI/180),o=Math.sin(n),a=Math.cos(n);t.redraw(e,()=>{this._texture.activate(e,1),fe.draw(e,g.GlitchEffect.material,{sampler:0,filterClamp:[0,0,1,1],filterArea:[i,s,0,0],dimensions:[i,s],aspect:s/i,displacementMap:1,offset:this.offset,sinDir:o,cosDir:a,fillMode:this.fillMode,seed:this.seed,red:this.red,green:this.green,blue:this.blue})})}},df(g.GlitchEffect,"material",new Ce({vert:`precision mediump float;
385
+ }`})),hl([M({default:5})],g.EmbossEffect.prototype,"strength",2),g.EmbossEffect=hl([ne("EmbossEffect")],g.EmbossEffect);var gl=Object.defineProperty,ff=Object.getOwnPropertyDescriptor,df=(r,A,e)=>A in r?gl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,kt=(r,A,e,t)=>{for(var i=t>1?void 0:t?ff(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&gl(A,e,i),i},If=(r,A,e)=>df(r,A+"",e);g.GlitchEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"_canvas");u(this,"_texture");u(this,"_sizes");u(this,"_offsets");u(this,"_needsRedraw",!1);this.setProperties(e).append(t),this._canvas=document.createElement("canvas"),this._canvas.width=4,this._canvas.height=this.sampleSize,this._texture=new _e(this._canvas),this._sizes=new Float32Array(this.slices),this._offsets=new Float32Array(this.slices)}redraw(){const e=this.sampleSize,t=this._texture,i=this._canvas.getContext("2d");i.clearRect(0,0,8,e);let s,n=0;for(let o=0;o<this.slices;o++){s=Math.floor(this._offsets[o]*256);const a=this._sizes[o]*e,l=s>0?s:0,c=s<0?-s:0;i.fillStyle=`rgba(${l}, ${c}, 0, 1)`,i.fillRect(0,n>>0,e,a+1>>0),n+=a}t.requestUpload()}apply(e,t){this._needsRedraw||(this._needsRedraw=!0,this.redraw());const i=t.width,s=t.height,n=this.direction*(Math.PI/180),o=Math.sin(n),a=Math.cos(n);t.redraw(e,()=>{this._texture.activate(e,1),fe.draw(e,g.GlitchEffect.material,{sampler:0,filterClamp:[0,0,1,1],filterArea:[i,s,0,0],dimensions:[i,s],aspect:s/i,displacementMap:1,offset:this.offset,sinDir:o,cosDir:a,fillMode:this.fillMode,seed:this.seed,red:this.red,green:this.green,blue:this.blue})})}},If(g.GlitchEffect,"material",new Ce({vert:`precision mediump float;
386
386
  attribute vec2 position;
387
387
  attribute vec2 uv;
388
388
  varying vec2 vUv;
@@ -483,7 +483,7 @@ void main(void) {
483
483
  gl_FragColor.g = texture2D(sampler, coord + green * (1.0 - seed * 0.3) / filterArea.xy).g;
484
484
  gl_FragColor.b = texture2D(sampler, coord + blue * (1.0 - seed * 0.2) / filterArea.xy).b;
485
485
  gl_FragColor.a = texture2D(sampler, coord).a;
486
- }`})),kt([M({default:10})],g.GlitchEffect.prototype,"slices",2),kt([M({default:512})],g.GlitchEffect.prototype,"sampleSize",2),kt([M({default:100})],g.GlitchEffect.prototype,"offset",2),kt([M({default:0})],g.GlitchEffect.prototype,"direction",2),kt([M({default:2})],g.GlitchEffect.prototype,"fillMode",2),kt([M({default:0})],g.GlitchEffect.prototype,"seed",2),kt([M({default:[2,2]})],g.GlitchEffect.prototype,"red",2),kt([M({default:[-10,4]})],g.GlitchEffect.prototype,"green",2),kt([M({default:[10,-4]})],g.GlitchEffect.prototype,"blue",2),g.GlitchEffect=kt([ne("GlitchEffect")],g.GlitchEffect);var gl=Object.defineProperty,If=Object.getOwnPropertyDescriptor,pf=(r,A,e)=>A in r?gl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,oA=(r,A,e,t)=>{for(var i=t>1?void 0:t?If(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&gl(A,e,i),i},Ef=(r,A,e)=>pf(r,A+"",e);const Bf=`vec3 mod289(vec3 x)
486
+ }`})),kt([M({default:10})],g.GlitchEffect.prototype,"slices",2),kt([M({default:512})],g.GlitchEffect.prototype,"sampleSize",2),kt([M({default:100})],g.GlitchEffect.prototype,"offset",2),kt([M({default:0})],g.GlitchEffect.prototype,"direction",2),kt([M({default:2})],g.GlitchEffect.prototype,"fillMode",2),kt([M({default:0})],g.GlitchEffect.prototype,"seed",2),kt([M({default:[2,2]})],g.GlitchEffect.prototype,"red",2),kt([M({default:[-10,4]})],g.GlitchEffect.prototype,"green",2),kt([M({default:[10,-4]})],g.GlitchEffect.prototype,"blue",2),g.GlitchEffect=kt([ne("GlitchEffect")],g.GlitchEffect);var ul=Object.defineProperty,pf=Object.getOwnPropertyDescriptor,Ef=(r,A,e)=>A in r?ul(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,oA=(r,A,e,t)=>{for(var i=t>1?void 0:t?pf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ul(A,e,i),i},Bf=(r,A,e)=>Ef(r,A+"",e);const Cf=`vec3 mod289(vec3 x)
487
487
  {
488
488
  return x - floor(x * (1.0 / 289.0)) * 289.0;
489
489
  }
@@ -577,7 +577,7 @@ float turb(vec3 P, vec3 rep, float lacunarity, float gain)
577
577
  totalgain *= gain;
578
578
  }
579
579
  return abs(sum);
580
- }`;g.GodrayEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){const t=this.angle*(Math.PI/180),i=this.parallel?[Math.cos(t),Math.sin(t)]:this.center;e.redraw(A,()=>{fe.draw(A,g.GodrayEffect.material,{sampler:0,uDimensions:[e.width,e.height],uParallel:this.parallel?1:0,uLight:i,uAspect:e.height/e.width,uTime:this.time,uRay:[this.gain,this.lacunarity,this.alpha],uInputSize:[e.width,e.height,0,0]})})}},Ef(g.GodrayEffect,"material",new Ce({vert:`precision mediump float;
580
+ }`;g.GodrayEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){const t=this.angle*(Math.PI/180),i=this.parallel?[Math.cos(t),Math.sin(t)]:this.center;e.redraw(A,()=>{fe.draw(A,g.GodrayEffect.material,{sampler:0,uDimensions:[e.width,e.height],uParallel:this.parallel?1:0,uLight:i,uAspect:e.height/e.width,uTime:this.time,uRay:[this.gain,this.lacunarity,this.alpha],uInputSize:[e.width,e.height,0,0]})})}},Bf(g.GodrayEffect,"material",new Ce({vert:`precision mediump float;
581
581
  attribute vec2 position;
582
582
  attribute vec2 uv;
583
583
  varying vec2 vUv;
@@ -595,7 +595,7 @@ uniform float uTime;
595
595
  uniform vec3 uRay;
596
596
  uniform vec4 uInputSize;
597
597
 
598
- ${Bf}
598
+ ${Cf}
599
599
 
600
600
  void main(void) {
601
601
  bool uParallel = uParallel > 0.5;
@@ -626,7 +626,7 @@ void main(void) {
626
626
 
627
627
  vec4 color = texture2D(sampler, vUv);
628
628
  gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
629
- }`})),oA([M({default:0})],g.GodrayEffect.prototype,"time",2),oA([M({default:30})],g.GodrayEffect.prototype,"angle",2),oA([M({default:.5})],g.GodrayEffect.prototype,"gain",2),oA([M({default:2.5})],g.GodrayEffect.prototype,"lacunarity",2),oA([M({default:!0})],g.GodrayEffect.prototype,"parallel",2),oA([M({default:()=>[0,0]})],g.GodrayEffect.prototype,"center",2),oA([M({default:1})],g.GodrayEffect.prototype,"alpha",2),g.GodrayEffect=oA([ne("GodrayEffect")],g.GodrayEffect);var Cf=Object.defineProperty,Qf=Object.getOwnPropertyDescriptor,Dr=(r,A,e,t)=>{for(var i=t>1?void 0:t?Qf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Cf(A,e,i),i};const ul=`varying vec2 vUv;
629
+ }`})),oA([M({default:0})],g.GodrayEffect.prototype,"time",2),oA([M({default:30})],g.GodrayEffect.prototype,"angle",2),oA([M({default:.5})],g.GodrayEffect.prototype,"gain",2),oA([M({default:2.5})],g.GodrayEffect.prototype,"lacunarity",2),oA([M({default:!0})],g.GodrayEffect.prototype,"parallel",2),oA([M({default:()=>[0,0]})],g.GodrayEffect.prototype,"center",2),oA([M({default:1})],g.GodrayEffect.prototype,"alpha",2),g.GodrayEffect=oA([ne("GodrayEffect")],g.GodrayEffect);var Qf=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,Dr=(r,A,e,t)=>{for(var i=t>1?void 0:t?yf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Qf(A,e,i),i};const fl=`varying vec2 vUv;
630
630
  uniform sampler2D sampler;
631
631
  uniform vec2 uOffset;
632
632
 
@@ -638,7 +638,7 @@ void main(void) {
638
638
  color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y - uOffset.y));
639
639
  color *= 0.25;
640
640
  gl_FragColor = color;
641
- }`,fl=`precision highp float;
641
+ }`,dl=`precision highp float;
642
642
  varying vec2 vUv;
643
643
  uniform sampler2D sampler;
644
644
  uniform vec2 uOffset;
@@ -658,7 +658,7 @@ varying vec2 vUv;
658
658
  void main() {
659
659
  gl_Position = vec4(position, 0.0, 1.0);
660
660
  vUv = uv;
661
- }`,frag:e!=null&&e.clamp?fl:ul}),this.setProperties(e).append(t),this._generateKernels()}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"quality":case"strength":this._generateKernels();break}}_generateKernels(){const e=Math.max(1,Math.round(this.strength)),t=Math.max(1,Math.round(this.quality)),i=[e];if(e>0){let s=e;const n=e/t;for(let o=1;o<t;o++)s-=n,i.push(s)}this._kernels=i}apply(e,t){const i=this.pixelSize[0]/t.width,s=this.pixelSize[1]/t.height;this._kernels.forEach(n=>{const o=n+.5;t.redraw(e,()=>{fe.draw(e,this.material,{sampler:0,uOffset:[o*i,o*s],uInputClamp:[0,0,1,1]})})})}},Dr([M({default:4})],g.KawaseBlurEffect.prototype,"strength",2),Dr([M({default:3})],g.KawaseBlurEffect.prototype,"quality",2),Dr([M({default:[1,1]})],g.KawaseBlurEffect.prototype,"pixelSize",2),g.KawaseBlurEffect=Dr([ne("KawaseBlurEffect")],g.KawaseBlurEffect);var dl=Object.defineProperty,yf=Object.getOwnPropertyDescriptor,mf=(r,A,e)=>A in r?dl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,dn=(r,A,e,t)=>{for(var i=t>1?void 0:t?yf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&dl(A,e,i),i},wf=(r,A,e)=>mf(r,A+"",e);g.MaskEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"texture");this.setProperties(e).append(t)}async load(){this.texture=void 0,this.src&&(this.texture=await Gt.texture.load(this.src))}_updateProperty(e,t,i,s){var n;switch(super._updateProperty(e,t,i,s),e){case"src":this.load();break;case"texture":(n=i==null?void 0:i.free)==null||n.call(i);break}}apply(e,t,i){this.texture&&i.targetArea&&t.redraw(e,()=>{var s;this.texture.activate(e,1),fe.draw(e,g.MaskEffect.material,{sampler:0,mask:1,area:i.targetArea,rotation:((s=i.target)==null?void 0:s.globalRotation)??0}),e.texture.unbind(1)})}},wf(g.MaskEffect,"material",new Ce({vert:`precision mediump float;
661
+ }`,frag:e!=null&&e.clamp?dl:fl}),this.setProperties(e).append(t),this._generateKernels()}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"quality":case"strength":this._generateKernels();break}}_generateKernels(){const e=Math.max(1,Math.round(this.strength)),t=Math.max(1,Math.round(this.quality)),i=[e];if(e>0){let s=e;const n=e/t;for(let o=1;o<t;o++)s-=n,i.push(s)}this._kernels=i}apply(e,t){const i=this.pixelSize[0]/t.width,s=this.pixelSize[1]/t.height;this._kernels.forEach(n=>{const o=n+.5;t.redraw(e,()=>{fe.draw(e,this.material,{sampler:0,uOffset:[o*i,o*s],uInputClamp:[0,0,1,1]})})})}},Dr([M({default:4})],g.KawaseBlurEffect.prototype,"strength",2),Dr([M({default:3})],g.KawaseBlurEffect.prototype,"quality",2),Dr([M({default:[1,1]})],g.KawaseBlurEffect.prototype,"pixelSize",2),g.KawaseBlurEffect=Dr([ne("KawaseBlurEffect")],g.KawaseBlurEffect);var Il=Object.defineProperty,mf=Object.getOwnPropertyDescriptor,wf=(r,A,e)=>A in r?Il(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,dn=(r,A,e,t)=>{for(var i=t>1?void 0:t?mf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Il(A,e,i),i},vf=(r,A,e)=>wf(r,A+"",e);g.MaskEffect=class extends g.Effect{constructor(e,t=[]){super();u(this,"texture");this.setProperties(e).append(t)}async load(){this.texture=void 0,this.src&&(this.texture=await Gt.texture.load(this.src))}_updateProperty(e,t,i,s){var n;switch(super._updateProperty(e,t,i,s),e){case"src":this.load();break;case"texture":(n=i==null?void 0:i.free)==null||n.call(i);break}}apply(e,t,i){this.texture&&i.targetArea&&t.redraw(e,()=>{var s;this.texture.activate(e,1),fe.draw(e,g.MaskEffect.material,{sampler:0,mask:1,area:i.targetArea,rotation:((s=i.target)==null?void 0:s.globalRotation)??0}),e.texture.unbind(1)})}},vf(g.MaskEffect,"material",new Ce({vert:`precision mediump float;
662
662
  attribute vec2 position;
663
663
  attribute vec2 uv;
664
664
  varying vec2 vUv;
@@ -701,7 +701,7 @@ void main(void) {
701
701
  } else {
702
702
  gl_FragColor = vec4(0.);
703
703
  }
704
- }`})),dn([Be()],g.MaskEffect.prototype,"texture",2),dn([M({default:""})],g.MaskEffect.prototype,"src",2),g.MaskEffect=dn([ne("MaskEffect")],g.MaskEffect);var Il=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,_f=(r,A,e)=>A in r?Il(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,aA=(r,A,e,t)=>{for(var i=t>1?void 0:t?vf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Il(A,e,i),i},pl=(r,A,e)=>_f(r,typeof A!="symbol"?A+"":A,e);const bf=`precision highp float;
704
+ }`})),dn([Ie()],g.MaskEffect.prototype,"texture",2),dn([M({default:""})],g.MaskEffect.prototype,"src",2),g.MaskEffect=dn([ne("MaskEffect")],g.MaskEffect);var pl=Object.defineProperty,_f=Object.getOwnPropertyDescriptor,bf=(r,A,e)=>A in r?pl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,aA=(r,A,e,t)=>{for(var i=t>1?void 0:t?_f(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&pl(A,e,i),i},El=(r,A,e)=>bf(r,typeof A!="symbol"?A+"":A,e);const Df=`precision highp float;
705
705
  varying vec2 vUv;
706
706
  uniform sampler2D sampler;
707
707
  uniform vec2 uThickness;
@@ -742,7 +742,7 @@ varying vec2 vUv;
742
742
  void main() {
743
743
  gl_Position = vec4(position, 0.0, 1.0);
744
744
  vUv = uv;
745
- }`,frag:bf.replace(/\{ANGLE_STEP\}/,g.OutlineEffect.getAngleStep(this.quality).toFixed(7))})}static getAngleStep(e){return Number.parseFloat((Math.PI*2/Math.max(e*g.OutlineEffect.MAX_SAMPLES,g.OutlineEffect.MIN_SAMPLES)).toFixed(7))}apply(e,t){t.redraw(e,()=>{this._color.value=this.color,fe.draw(e,this.material,{sampler:0,uThickness:[this.width/t.width,this.width/t.height],uColor:this._color.toArray().slice(0,3),uAlpha:this.opacity!==1?this.opacity:this._color.a,uAngleStep:g.OutlineEffect.getAngleStep(this.quality),uKnockout:this.knockout?1:0,uInputClamp:[0,0,1,1]})})}},pl(g.OutlineEffect,"MIN_SAMPLES",1),pl(g.OutlineEffect,"MAX_SAMPLES",100),aA([M({default:0})],g.OutlineEffect.prototype,"color",2),aA([M({default:1})],g.OutlineEffect.prototype,"width",2),aA([M({default:"solid"})],g.OutlineEffect.prototype,"style",2),aA([M()],g.OutlineEffect.prototype,"image",2),aA([M({default:1})],g.OutlineEffect.prototype,"opacity",2),aA([M({default:.1})],g.OutlineEffect.prototype,"quality",2),aA([M({default:!1})],g.OutlineEffect.prototype,"knockout",2),g.OutlineEffect=aA([ne("OutlineEffect")],g.OutlineEffect);var El=Object.defineProperty,Df=Object.getOwnPropertyDescriptor,xf=(r,A,e)=>A in r?El(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Bl=(r,A,e,t)=>{for(var i=t>1?void 0:t?Df(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&El(A,e,i),i},Sf=(r,A,e)=>xf(r,A+"",e);g.PixelateEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){e.redraw(A,()=>{fe.draw(A,g.PixelateEffect.material,{sampler:0,uSize:[this.strength,this.strength],uInputSize:[e.width,e.height,1/e.width,1/e.height]})})}},Sf(g.PixelateEffect,"material",new Ce({vert:`precision mediump float;
745
+ }`,frag:Df.replace(/\{ANGLE_STEP\}/,g.OutlineEffect.getAngleStep(this.quality).toFixed(7))})}static getAngleStep(e){return Number.parseFloat((Math.PI*2/Math.max(e*g.OutlineEffect.MAX_SAMPLES,g.OutlineEffect.MIN_SAMPLES)).toFixed(7))}apply(e,t){t.redraw(e,()=>{this._color.value=this.color,fe.draw(e,this.material,{sampler:0,uThickness:[this.width/t.width,this.width/t.height],uColor:this._color.toArray().slice(0,3),uAlpha:this.opacity!==1?this.opacity:this._color.a,uAngleStep:g.OutlineEffect.getAngleStep(this.quality),uKnockout:this.knockout?1:0,uInputClamp:[0,0,1,1]})})}},El(g.OutlineEffect,"MIN_SAMPLES",1),El(g.OutlineEffect,"MAX_SAMPLES",100),aA([M({default:0})],g.OutlineEffect.prototype,"color",2),aA([M({default:1})],g.OutlineEffect.prototype,"width",2),aA([M({default:"solid"})],g.OutlineEffect.prototype,"style",2),aA([M()],g.OutlineEffect.prototype,"image",2),aA([M({default:1})],g.OutlineEffect.prototype,"opacity",2),aA([M({default:.1})],g.OutlineEffect.prototype,"quality",2),aA([M({default:!1})],g.OutlineEffect.prototype,"knockout",2),g.OutlineEffect=aA([ne("OutlineEffect")],g.OutlineEffect);var Bl=Object.defineProperty,xf=Object.getOwnPropertyDescriptor,Sf=(r,A,e)=>A in r?Bl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Cl=(r,A,e,t)=>{for(var i=t>1?void 0:t?xf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Bl(A,e,i),i},Mf=(r,A,e)=>Sf(r,A+"",e);g.PixelateEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e){e.redraw(A,()=>{fe.draw(A,g.PixelateEffect.material,{sampler:0,uSize:[this.strength,this.strength],uInputSize:[e.width,e.height,1/e.width,1/e.height]})})}},Mf(g.PixelateEffect,"material",new Ce({vert:`precision mediump float;
746
746
  attribute vec2 position;
747
747
  attribute vec2 uv;
748
748
  varying vec2 vUv;
@@ -775,7 +775,7 @@ void main(void) {
775
775
  coord = pixelate(coord, uSize);
776
776
  coord = unmapCoord(coord);
777
777
  gl_FragColor = texture2D(sampler, coord);
778
- }`})),Bl([M({default:10})],g.PixelateEffect.prototype,"strength",2),g.PixelateEffect=Bl([ne("PixelateEffect")],g.PixelateEffect);var Cl=Object.defineProperty,Mf=Object.getOwnPropertyDescriptor,Rf=(r,A,e)=>A in r?Cl(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Fi=(r,A,e,t)=>{for(var i=t>1?void 0:t?Mf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Cl(A,e,i),i},Pf=(r,A,e)=>Rf(r,A+"",e);g.ZoomBlurEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e,t){let i=this.center;t.targetArea&&(i=[(t.targetArea[0]+t.targetArea[2]/2)*e.width,(t.targetArea[1]+t.targetArea[3]/2)*e.height]),e.redraw(A,()=>{fe.draw(A,g.ZoomBlurEffect.material,{sampler:0,uCenter:i??[e.width/2,e.height/2],uInnerRadius:this.innerRadius,uRadius:this.radius,uStrength:this.strength,uInputSize:[e.width,e.height,1/e.width,1/e.height]})})}},Pf(g.ZoomBlurEffect,"material",new Ce({vert:`attribute vec2 position;
778
+ }`})),Cl([M({default:10})],g.PixelateEffect.prototype,"strength",2),g.PixelateEffect=Cl([ne("PixelateEffect")],g.PixelateEffect);var Ql=Object.defineProperty,Rf=Object.getOwnPropertyDescriptor,Pf=(r,A,e)=>A in r?Ql(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Fi=(r,A,e,t)=>{for(var i=t>1?void 0:t?Rf(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ql(A,e,i),i},kf=(r,A,e)=>Pf(r,A+"",e);g.ZoomBlurEffect=class extends g.Effect{constructor(A,e=[]){super(),this.setProperties(A).append(e)}apply(A,e,t){let i=this.center;t.targetArea&&(i=[(t.targetArea[0]+t.targetArea[2]/2)*e.width,(t.targetArea[1]+t.targetArea[3]/2)*e.height]),e.redraw(A,()=>{fe.draw(A,g.ZoomBlurEffect.material,{sampler:0,uCenter:i??[e.width/2,e.height/2],uInnerRadius:this.innerRadius,uRadius:this.radius,uStrength:this.strength,uInputSize:[e.width,e.height,1/e.width,1/e.height]})})}},kf(g.ZoomBlurEffect,"material",new Ce({vert:`attribute vec2 position;
779
779
  attribute vec2 uv;
780
780
  varying vec2 vUv;
781
781
  void main() {
@@ -855,13 +855,13 @@ void main() {
855
855
  color /= total;
856
856
 
857
857
  gl_FragColor = color;
858
- }`})),Fi([M()],g.ZoomBlurEffect.prototype,"center",2),Fi([M({default:20})],g.ZoomBlurEffect.prototype,"innerRadius",2),Fi([M({default:-1})],g.ZoomBlurEffect.prototype,"radius",2),Fi([M({default:.1})],g.ZoomBlurEffect.prototype,"strength",2),g.ZoomBlurEffect=Fi([ne("ZoomBlurEffect")],g.ZoomBlurEffect);var kf=Object.defineProperty,vt=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&kf(A,e,i),i};class qe extends iA{constructor(e){super();u(this,"_texture");this.parent=e}_setProperties(e){return super.setProperties(e)}setProperties(e){return this._setProperties(he(e)?void 0:yA(e))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"color":case"cropRect":case"stretchRect":case"dpi":case"rotateWithShape":case"tile":case"opacity":case"enabled":this.parent.requestRedraw();break;case"image":case"linearGradient":case"radialGradient":this._updateTexture();break}}async loadTexture(){return this.linearGradient||this.radialGradient?new Qr(this.linearGradient??this.radialGradient,this.parent.size.width,this.parent.size.height):he(this.image)?void 0:await Gt.texture.load(this.image)}async _updateTexture(){this._texture=await this.loadTexture(),this.parent.requestRedraw()}canDraw(){return!!(this.enabled&&(this._texture||this.color))}_getDrawOptions(){let e=!1;const{width:t,height:i}=this.parent.size,s=new ct().scale(1/t,1/i);if(this.cropRect){const{left:n=0,top:o=0,right:a=0,bottom:l=0}=this.cropRect;s.scale(Math.abs(1-(n+a)),Math.abs(1-(o+l))).translate(n,o),e=!0}if(this.tile){const{translateX:n=0,translateY:o=0,scaleX:a=1,scaleY:l=1}=this.tile;s.translate(-n/t,-o/i).scale(1/a,1/l),e=!0}else if(this.stretchRect){const{left:n=0,top:o=0,right:a=0,bottom:l=0}=this.stretchRect;s.scale(Math.abs(1-(-n+-a)),Math.abs(1-(-o+-l))).translate(-n,-o),e=!0}return{disableWrapMode:e,uvTransform:s}}draw(){const e=this.parent.context,{uvTransform:t,disableWrapMode:i}=this._getDrawOptions();e.uvTransform=t,e.fillStyle=this._texture??this.color,e.fill({disableWrapMode:i})}}vt([M({default:!0})],qe.prototype,"enabled"),vt([M()],qe.prototype,"color"),vt([M()],qe.prototype,"image"),vt([M()],qe.prototype,"linearGradient"),vt([M()],qe.prototype,"radialGradient"),vt([M()],qe.prototype,"cropRect"),vt([M()],qe.prototype,"stretchRect"),vt([M()],qe.prototype,"dpi"),vt([M()],qe.prototype,"rotateWithShape"),vt([M()],qe.prototype,"tile"),vt([M()],qe.prototype,"opacity");var Uf=Object.defineProperty,Nf=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Uf(A,e,i),i};class In extends qe{setProperties(A){return super._setProperties(he(A)?void 0:fc(A))}}Nf([M()],In.prototype,"fillWithShape");var Ff=Object.defineProperty,Tf=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Ff(A,e,i),i};class pn extends qe{setProperties(A){return super._setProperties(he(A)?void 0:dc(A))}}Tf([M()],pn.prototype,"fillWithShape");var Gf=Object.defineProperty,xr=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Gf(A,e,i),i};class XA extends qe{setProperties(A){return super._setProperties(he(A)?void 0:Ic(A))}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"width":case"style":case"enabled":this.parent.requestRedraw();break}}canDraw(){return!!(this.enabled&&(this.width||this.color||super.canDraw()))}draw(){const A=this.parent.context,{uvTransform:e,disableWrapMode:t}=this._getDrawOptions();A.lineWidth=this.width||1,A.uvTransform=e,A.strokeStyle=this._texture??this.color,A.stroke({disableWrapMode:t})}}xr([M({default:!0})],XA.prototype,"enabled"),xr([M({default:0})],XA.prototype,"color"),xr([M({default:0})],XA.prototype,"width"),xr([M({default:"solid"})],XA.prototype,"style");var Lf=Object.defineProperty,Ti=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Lf(A,e,i),i};class bA extends iA{constructor(A){super(),this.parent=A}setProperties(A){return super.setProperties(he(A)?void 0:pc(A))}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"color":case"blur":case"offsetX":case"offsetY":this.updateEffect();break}}updateEffect(){const A="__$shadow";let e=this.parent.getNode(A);this.blur||this.offsetX||this.offsetY?(e||(e=new g.DropShadowEffect({name:A}),this.parent.appendChild(e,"back")),e.setProperties(this.getProperties())):e&&this.parent.removeChild(e)}}Ti([M({default:!0})],bA.prototype,"enabled"),Ti([M({default:"#000000"})],bA.prototype,"color"),Ti([M({default:0})],bA.prototype,"blur"),Ti([M({default:0})],bA.prototype,"offsetY"),Ti([M({default:0})],bA.prototype,"offsetX");var Of=Object.defineProperty,Gi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Of(A,e,i),i};class DA extends iA{constructor(e){super();u(this,"_path2DSet",new nA);this.parent=e,this._updatePath2DSet()}setProperties(e){return super.setProperties(he(e)?void 0:Bc(e))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"svg":case"paths":case"viewBox":case"enabled":this._updatePath2DSet(),this.parent.requestRedraw();break}}_updatePath2DSet(){var o;let e;if(this.svg){const a=hn(this.svg);this._path2DSet=gn(a),e=this._path2DSet.viewBox}else(o=this.paths)==null||o.forEach((a,l)=>{const{data:h,...c}=a,f=new Ne;f.style=c,f.addData(h),this._path2DSet.paths[l]=f});if(!e){const a=this._path2DSet.getBoundingBox();e=a?[a.x,a.y,a.width,a.height]:[0,0,1,1]}const[t,i,s,n]=e;this._path2DSet.paths.forEach(a=>{a.applyTransform(new Ke().translate(-t,-i).scale(1/s,1/n))})}draw(){if(this.enabled&&this._path2DSet.paths.length){const e=this.parent.context,{width:t,height:i}=this.parent.size;this._path2DSet.paths.forEach(s=>{e.addPath(s.clone().applyTransform(new Ke().scale(t,i)))})}else this.drawRect()}drawRect(){const e=this.parent.context,{width:t,height:i}=this.parent.size,{borderRadius:s}=this.parent.style;t&&i&&(s?e.roundRect(0,0,t,i,s):e.rect(0,0,t,i))}}Gi([M({default:!0})],DA.prototype,"enabled"),Gi([M()],DA.prototype,"preset"),Gi([M()],DA.prototype,"svg"),Gi([M()],DA.prototype,"viewBox"),Gi([M({default:()=>[]})],DA.prototype,"paths");class Li extends Yt{constructor(A){super(),this.setProperties(A)}}const jA=xo();delete jA.top,delete jA.left,delete jA.width,delete jA.height;for(const r in jA)cr(Li,r,{default:jA[r]});var Xe=Uint8Array,dt=Uint16Array,En=Int32Array,Sr=new Xe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Mr=new Xe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Bn=new Xe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ql=function(r,A){for(var e=new dt(31),t=0;t<31;++t)e[t]=A+=1<<r[t-1];for(var i=new En(e[30]),t=1;t<30;++t)for(var s=e[t];s<e[t+1];++s)i[s]=s-e[t]<<5|t;return{b:e,r:i}},yl=Ql(Sr,2),ml=yl.b,Cn=yl.r;ml[28]=258,Cn[258]=28;for(var wl=Ql(Mr,0),Hf=wl.b,vl=wl.r,Qn=new dt(32768),Qe=0;Qe<32768;++Qe){var lA=(Qe&43690)>>1|(Qe&21845)<<1;lA=(lA&52428)>>2|(lA&13107)<<2,lA=(lA&61680)>>4|(lA&3855)<<4,Qn[Qe]=((lA&65280)>>8|(lA&255)<<8)>>1}for(var Ut=function(r,A,e){for(var t=r.length,i=0,s=new dt(A);i<t;++i)r[i]&&++s[r[i]-1];var n=new dt(A);for(i=1;i<A;++i)n[i]=n[i-1]+s[i-1]<<1;var o;if(e){o=new dt(1<<A);var a=15-A;for(i=0;i<t;++i)if(r[i])for(var l=i<<4|r[i],h=A-r[i],c=n[r[i]-1]++<<h,f=c|(1<<h)-1;c<=f;++c)o[Qn[c]>>a]=l}else for(o=new dt(t),i=0;i<t;++i)r[i]&&(o[i]=Qn[n[r[i]-1]++]>>15-r[i]);return o},hA=new Xe(288),Qe=0;Qe<144;++Qe)hA[Qe]=8;for(var Qe=144;Qe<256;++Qe)hA[Qe]=9;for(var Qe=256;Qe<280;++Qe)hA[Qe]=7;for(var Qe=280;Qe<288;++Qe)hA[Qe]=8;for(var Oi=new Xe(32),Qe=0;Qe<32;++Qe)Oi[Qe]=5;var Jf=Ut(hA,9,0),Kf=Ut(hA,9,1),Yf=Ut(Oi,5,0),Vf=Ut(Oi,5,1),yn=function(r){for(var A=r[0],e=1;e<r.length;++e)r[e]>A&&(A=r[e]);return A},_t=function(r,A,e){var t=A/8|0;return(r[t]|r[t+1]<<8)>>(A&7)&e},mn=function(r,A){var e=A/8|0;return(r[e]|r[e+1]<<8|r[e+2]<<16)>>(A&7)},wn=function(r){return(r+7)/8|0},_l=function(r,A,e){return(e==null||e>r.length)&&(e=r.length),new Xe(r.subarray(A,e))},zf=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],bt=function(r,A,e){var t=new Error(A||zf[r]);if(t.code=r,Error.captureStackTrace&&Error.captureStackTrace(t,bt),!e)throw t;return t},Wf=function(r,A,e,t){var i=r.length,s=0;if(!i||A.f&&!A.l)return e||new Xe(0);var n=!e,o=n||A.i!=2,a=A.i;n&&(e=new Xe(i*3));var l=function(He){var ge=e.length;if(He>ge){var we=new Xe(Math.max(ge*2,He));we.set(e),e=we}},h=A.f||0,c=A.p||0,f=A.b||0,I=A.l,d=A.d,C=A.m,p=A.n,x=i*8;do{if(!I){h=_t(r,c,1);var P=_t(r,c+1,3);if(c+=3,P)if(P==1)I=Kf,d=Vf,C=9,p=5;else if(P==2){var m=_t(r,c,31)+257,b=_t(r,c+10,15)+4,D=m+_t(r,c+5,31)+1;c+=14;for(var z=new Xe(D),Ae=new Xe(19),W=0;W<b;++W)Ae[Bn[W]]=_t(r,c+W*3,7);c+=b*3;for(var K=yn(Ae),te=(1<<K)-1,Y=Ut(Ae,K,1),W=0;W<D;){var L=Y[_t(r,c,te)];c+=L&15;var w=L>>4;if(w<16)z[W++]=w;else{var se=0,H=0;for(w==16?(H=3+_t(r,c,3),c+=2,se=z[W-1]):w==17?(H=3+_t(r,c,7),c+=3):w==18&&(H=11+_t(r,c,127),c+=7);H--;)z[W++]=se}}var q=z.subarray(0,m),ie=z.subarray(m);C=yn(q),p=yn(ie),I=Ut(q,C,1),d=Ut(ie,p,1)}else bt(1);else{var w=wn(c)+4,R=r[w-4]|r[w-3]<<8,v=w+R;if(v>i){a&&bt(0);break}o&&l(f+R),e.set(r.subarray(w,v),f),A.b=f+=R,A.p=c=v*8,A.f=h;continue}if(c>x){a&&bt(0);break}}o&&l(f+131072);for(var J=(1<<C)-1,$=(1<<p)-1,N=c;;N=c){var se=I[mn(r,c)&J],U=se>>4;if(c+=se&15,c>x){a&&bt(0);break}if(se||bt(2),U<256)e[f++]=U;else if(U==256){N=c,I=null;break}else{var X=U-254;if(U>264){var W=U-257,ee=Sr[W];X=_t(r,c,(1<<ee)-1)+ml[W],c+=ee}var oe=d[mn(r,c)&$],j=oe>>4;oe||bt(3),c+=oe&15;var ie=Hf[j];if(j>3){var ee=Mr[j];ie+=mn(r,c)&(1<<ee)-1,c+=ee}if(c>x){a&&bt(0);break}o&&l(f+131072);var pe=f+X;if(f<ie){var at=s-ie,lt=Math.min(ie,pe);for(at+f<0&&bt(3);f<lt;++f)e[f]=t[at+f]}for(;f<pe;++f)e[f]=e[f-ie]}}A.l=I,A.p=N,A.b=f,A.f=h,I&&(h=1,A.m=C,A.d=d,A.n=p)}while(!h);return f!=e.length&&n?_l(e,0,f):e.subarray(0,f)},jt=function(r,A,e){e<<=A&7;var t=A/8|0;r[t]|=e,r[t+1]|=e>>8},Hi=function(r,A,e){e<<=A&7;var t=A/8|0;r[t]|=e,r[t+1]|=e>>8,r[t+2]|=e>>16},vn=function(r,A){for(var e=[],t=0;t<r.length;++t)r[t]&&e.push({s:t,f:r[t]});var i=e.length,s=e.slice();if(!i)return{t:Sl,l:0};if(i==1){var n=new Xe(e[0].s+1);return n[e[0].s]=1,{t:n,l:1}}e.sort(function(v,m){return v.f-m.f}),e.push({s:-1,f:25001});var o=e[0],a=e[1],l=0,h=1,c=2;for(e[0]={s:-1,f:o.f+a.f,l:o,r:a};h!=i-1;)o=e[e[l].f<e[c].f?l++:c++],a=e[l!=h&&e[l].f<e[c].f?l++:c++],e[h++]={s:-1,f:o.f+a.f,l:o,r:a};for(var f=s[0].s,t=1;t<i;++t)s[t].s>f&&(f=s[t].s);var I=new dt(f+1),d=_n(e[h-1],I,0);if(d>A){var t=0,C=0,p=d-A,x=1<<p;for(s.sort(function(m,b){return I[b.s]-I[m.s]||m.f-b.f});t<i;++t){var P=s[t].s;if(I[P]>A)C+=x-(1<<d-I[P]),I[P]=A;else break}for(C>>=p;C>0;){var w=s[t].s;I[w]<A?C-=1<<A-I[w]++-1:++t}for(;t>=0&&C;--t){var R=s[t].s;I[R]==A&&(--I[R],++C)}d=A}return{t:new Xe(I),l:d}},_n=function(r,A,e){return r.s==-1?Math.max(_n(r.l,A,e+1),_n(r.r,A,e+1)):A[r.s]=e},bl=function(r){for(var A=r.length;A&&!r[--A];);for(var e=new dt(++A),t=0,i=r[0],s=1,n=function(a){e[t++]=a},o=1;o<=A;++o)if(r[o]==i&&o!=A)++s;else{if(!i&&s>2){for(;s>138;s-=138)n(32754);s>2&&(n(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(n(i),--s;s>6;s-=6)n(8304);s>2&&(n(s-3<<5|8208),s=0)}for(;s--;)n(i);s=1,i=r[o]}return{c:e.subarray(0,t),n:A}},Ji=function(r,A){for(var e=0,t=0;t<A.length;++t)e+=r[t]*A[t];return e},Dl=function(r,A,e){var t=e.length,i=wn(A+2);r[i]=t&255,r[i+1]=t>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var s=0;s<t;++s)r[i+s+4]=e[s];return(i+4+t)*8},xl=function(r,A,e,t,i,s,n,o,a,l,h){jt(A,h++,e),++i[256];for(var c=vn(i,15),f=c.t,I=c.l,d=vn(s,15),C=d.t,p=d.l,x=bl(f),P=x.c,w=x.n,R=bl(C),v=R.c,m=R.n,b=new dt(19),D=0;D<P.length;++D)++b[P[D]&31];for(var D=0;D<v.length;++D)++b[v[D]&31];for(var z=vn(b,7),Ae=z.t,W=z.l,K=19;K>4&&!Ae[Bn[K-1]];--K);var te=l+5<<3,Y=Ji(i,hA)+Ji(s,Oi)+n,L=Ji(i,f)+Ji(s,C)+n+14+3*K+Ji(b,Ae)+2*b[16]+3*b[17]+7*b[18];if(a>=0&&te<=Y&&te<=L)return Dl(A,h,r.subarray(a,a+l));var se,H,q,ie;if(jt(A,h,1+(L<Y)),h+=2,L<Y){se=Ut(f,I,0),H=f,q=Ut(C,p,0),ie=C;var J=Ut(Ae,W,0);jt(A,h,w-257),jt(A,h+5,m-1),jt(A,h+10,K-4),h+=14;for(var D=0;D<K;++D)jt(A,h+3*D,Ae[Bn[D]]);h+=3*K;for(var $=[P,v],N=0;N<2;++N)for(var U=$[N],D=0;D<U.length;++D){var X=U[D]&31;jt(A,h,J[X]),h+=Ae[X],X>15&&(jt(A,h,U[D]>>5&127),h+=U[D]>>12)}}else se=Jf,H=hA,q=Yf,ie=Oi;for(var D=0;D<o;++D){var ee=t[D];if(ee>255){var X=ee>>18&31;Hi(A,h,se[X+257]),h+=H[X+257],X>7&&(jt(A,h,ee>>23&31),h+=Sr[X]);var oe=ee&31;Hi(A,h,q[oe]),h+=ie[oe],oe>3&&(Hi(A,h,ee>>5&8191),h+=Mr[oe])}else Hi(A,h,se[ee]),h+=H[ee]}return Hi(A,h,se[256]),h+H[256]},qf=new En([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Sl=new Xe(0),Xf=function(r,A,e,t,i,s){var n=s.z||r.length,o=new Xe(t+n+5*(1+Math.ceil(n/7e3))+i),a=o.subarray(t,o.length-i),l=s.l,h=(s.r||0)&7;if(A){h&&(a[0]=s.r>>3);for(var c=qf[A-1],f=c>>13,I=c&8191,d=(1<<e)-1,C=s.p||new dt(32768),p=s.h||new dt(d+1),x=Math.ceil(e/3),P=2*x,w=function(Je){return(r[Je]^r[Je+1]<<x^r[Je+2]<<P)&d},R=new En(25e3),v=new dt(288),m=new dt(32),b=0,D=0,z=s.i||0,Ae=0,W=s.w||0,K=0;z+2<n;++z){var te=w(z),Y=z&32767,L=p[te];if(C[Y]=L,p[te]=Y,W<=z){var se=n-z;if((b>7e3||Ae>24576)&&(se>423||!l)){h=xl(r,a,0,R,v,m,D,Ae,K,z-K,h),Ae=b=D=0,K=z;for(var H=0;H<286;++H)v[H]=0;for(var H=0;H<30;++H)m[H]=0}var q=2,ie=0,J=I,$=Y-L&32767;if(se>2&&te==w(z-$))for(var N=Math.min(f,se)-1,U=Math.min(32767,z),X=Math.min(258,se);$<=U&&--J&&Y!=L;){if(r[z+q]==r[z+q-$]){for(var ee=0;ee<X&&r[z+ee]==r[z+ee-$];++ee);if(ee>q){if(q=ee,ie=$,ee>N)break;for(var oe=Math.min($,ee-2),j=0,H=0;H<oe;++H){var pe=z-$+H&32767,at=C[pe],lt=pe-at&32767;lt>j&&(j=lt,L=pe)}}}Y=L,L=C[Y],$+=Y-L&32767}if(ie){R[Ae++]=268435456|Cn[q]<<18|vl[ie];var He=Cn[q]&31,ge=vl[ie]&31;D+=Sr[He]+Mr[ge],++v[257+He],++m[ge],W=z+q,++b}else R[Ae++]=r[z],++v[r[z]]}}for(z=Math.max(z,W);z<n;++z)R[Ae++]=r[z],++v[r[z]];h=xl(r,a,l,R,v,m,D,Ae,K,z-K,h),l||(s.r=h&7|a[h/8|0]<<3,h-=7,s.h=p,s.p=C,s.i=z,s.w=W)}else{for(var z=s.w||0;z<n+l;z+=65535){var we=z+65535;we>=n&&(a[h/8|0]=l,we=n),h=Dl(a,h+1,r.subarray(z,we))}s.i=n}return _l(o,0,t+wn(h)+i)},Ml=function(){var r=1,A=0;return{p:function(e){for(var t=r,i=A,s=e.length|0,n=0;n!=s;){for(var o=Math.min(n+2655,s);n<o;++n)i+=t+=e[n];t=(t&65535)+15*(t>>16),i=(i&65535)+15*(i>>16)}r=t,A=i},d:function(){return r%=65521,A%=65521,(r&255)<<24|(r&65280)<<8|(A&255)<<8|A>>8}}},jf=function(r,A,e,t,i){if(!i&&(i={l:1},A.dictionary)){var s=A.dictionary.subarray(-32768),n=new Xe(s.length+r.length);n.set(s),n.set(r,s.length),r=n,i.w=s.length}return Xf(r,A.level==null?6:A.level,A.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+A.mem,e,t,i)},Rl=function(r,A,e){for(;e;++A)r[A]=e,e>>>=8},Zf=function(r,A){var e=A.level,t=e==0?0:e<6?1:e==9?3:2;if(r[0]=120,r[1]=t<<6|(A.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,A.dictionary){var i=Ml();i.p(A.dictionary),Rl(r,2,i.d())}},$f=function(r,A){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&bt(6,"invalid zlib data"),(r[1]>>5&1)==1&&bt(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function ed(r,A){A||(A={});var e=Ml();e.p(r);var t=jf(r,A,A.dictionary?6:2,4);return Zf(t,A),Rl(t,t.length-4,e.d()),t}function td(r,A){return Wf(r.subarray($f(r),-4),{i:2},A,A)}var Ad=typeof TextDecoder<"u"&&new TextDecoder,id=0;try{Ad.decode(Sl,{stream:!0}),id=1}catch{}const rd="modern-font";function Ki(r,A){if(!r)throw new Error(`[${rd}] ${A}`)}function sd(r){if("buffer"in r){const A=r.buffer;return r.byteOffset>0||r.byteLength<r.buffer.byteLength?A.slice(r.byteOffset,r.byteOffset+r.byteLength):A}else return r}function ZA(r){return"buffer"in r?new DataView(r.buffer,r.byteOffset,r.byteLength):new DataView(r)}function nd(r){let A="";for(let e=0,t=r.length,i;e<t;e++)i=r.charCodeAt(e),i!==0&&(A+=String.fromCharCode(i));return A}function Rr(r){r=nd(r);const A=[];for(let e=0,t=r.length,i;e<t;e++)i=r.charCodeAt(e),A.push(i>>8),A.push(i&255);return A}function od(r){let A="";for(let e=0,t=r.length;e<t;e++)r[e]<127?A+=String.fromCharCode(r[e]):A+=`%${(256+r[e]).toString(16).slice(1)}`;return unescape(A)}function ad(r){let A="";for(let e=0,t=r.length;e<t;e+=2)A+=String.fromCharCode((r[e]<<8)+r[e+1]);return A}var ld=Object.defineProperty,je=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&ld(A,e,i),i};const Yi={int8:1,int16:2,int32:4,uint8:1,uint16:2,uint32:4,float32:4,float64:8,fixed:4,longDateTime:8,char:1};function Ze(){return function(r,A){Object.defineProperty(r.constructor.prototype,A,{get(){if(typeof A=="string"){if(A.startsWith("read"))return(...e)=>this.read(A.substring(4).toLowerCase(),...e);if(A.startsWith("write"))return(...e)=>this.write(A.substring(5).toLowerCase(),...e)}},configurable:!0,enumerable:!0})}}class Fe extends DataView{constructor(e,t,i,s){super(sd(e),t,i);u(this,"cursor",0);this.littleEndian=s}readColumn(e){if(e.size){const t=Array.from({length:e.size},(i,s)=>this.read(e.type,e.offset+s));switch(e.type){case"char":return t.join("");default:return t}}else return this.read(e.type,e.offset)}writeColumn(e,t){e.size?Array.from({length:e.size},(i,s)=>{this.write(e.type,t[s],e.offset+s)}):this.write(e.type,t,e.offset)}read(e,t=this.cursor,i=this.littleEndian){var l;switch(e){case"char":return this.readChar(t);case"fixed":return this.readFixed(t,i);case"longDateTime":return this.readLongDateTime(t,i)}const s=`get${e.replace(/^\S/,h=>h.toUpperCase())}`,n=this,o=(l=n[s])==null?void 0:l.bind(n),a=o==null?void 0:o(t,i);return this.cursor+=Yi[e],a}readUint24(e=this.cursor){const[t,i,s]=this.readBytes(e,3);return(t<<16)+(i<<8)+s}readBytes(e,t){t==null&&(t=e,e=this.cursor);const i=[];for(let s=0;s<t;++s)i.push(this.getUint8(e+s));return this.cursor=e+t,i}readString(e,t){const i=this.readBytes(e,t);let s="";for(let n=0,o=i.length;n<o;n++)s+=String.fromCharCode(i[n]);return s}readFixed(e,t){const i=this.readInt32(e,t)/65536;return Math.ceil(i*1e5)/1e5}readLongDateTime(e=this.cursor,t){const i=this.readUint32(e+4,t),s=new Date;return s.setTime(i*1e3+-20775456e5),s}readChar(e){return this.readString(e,1)}write(e,t,i=this.cursor,s=this.littleEndian){var h;switch(e){case"char":return this.writeChar(t,i);case"fixed":return this.writeFixed(t,i);case"longDateTime":return this.writeLongDateTime(t,i)}const n=`set${e.replace(/^\S/,c=>c.toUpperCase())}`,o=this,a=(h=o[n])==null?void 0:h.bind(o),l=a==null?void 0:a(i,t,s);return this.cursor+=Yi[e.toLowerCase()],l}writeString(e="",t=this.cursor){const i=e.replace(/[^\x00-\xFF]/g,"11").length;this.seek(t);for(let s=0,n=e.length,o;s<n;++s)o=e.charCodeAt(s)||0,o>127?this.writeUint16(o):this.writeUint8(o);return this.cursor+=i,this}writeChar(e,t){return this.writeString(e,t)}writeFixed(e,t){return this.writeInt32(Math.round(e*65536),t),this}writeLongDateTime(e,t=this.cursor){typeof e>"u"?e=-20775456e5:typeof e.getTime=="function"?e=e.getTime():/^\d+$/.test(e)?e=+e:e=Date.parse(e);const s=Math.round((e- -20775456e5)/1e3);return this.writeUint32(0,t),this.writeUint32(s,t+4),this}writeBytes(e,t=this.cursor){let i;if(Array.isArray(e)){i=e.length;for(let s=0;s<i;++s)this.setUint8(t+s,e[s])}else{const s=ZA(e);i=s.byteLength;for(let n=0;n<i;++n)this.setUint8(t+n,s.getUint8(n))}return this.cursor=t+i,this}seek(e){return this.cursor=e,this}}je([Ze()],Fe.prototype,"readInt8"),je([Ze()],Fe.prototype,"readInt16"),je([Ze()],Fe.prototype,"readInt32"),je([Ze()],Fe.prototype,"readUint8"),je([Ze()],Fe.prototype,"readUint16"),je([Ze()],Fe.prototype,"readUint32"),je([Ze()],Fe.prototype,"readFloat32"),je([Ze()],Fe.prototype,"readFloat64"),je([Ze()],Fe.prototype,"writeInt8"),je([Ze()],Fe.prototype,"writeInt16"),je([Ze()],Fe.prototype,"writeInt32"),je([Ze()],Fe.prototype,"writeUint8"),je([Ze()],Fe.prototype,"writeUint16"),je([Ze()],Fe.prototype,"writeUint32"),je([Ze()],Fe.prototype,"writeFloat32"),je([Ze()],Fe.prototype,"writeFloat64");const Pl=new WeakMap;function y(r){const A=typeof r=="object"?r:{type:r},{size:e=1,type:t}=A;return(i,s)=>{if(typeof s!="string")return;let n=Pl.get(i);n||(n={columns:[],byteLength:0},Pl.set(i,n));const o={...A,name:s,byteLength:e*Yi[t],offset:A.offset??n.columns.reduce((a,l)=>a+l.byteLength,0)};n.columns.push(o),n.byteLength=n.columns.reduce((a,l)=>a+Yi[l.type]*(l.size??1),0),Object.defineProperty(i.constructor.prototype,s,{get(){return this.view.readColumn(o)},set(a){this.view.writeColumn(o,a)},configurable:!0,enumerable:!0})}}class It{constructor(A,e,t,i){u(this,"view");this.view=new Fe(A,e,t,i)}}class Pr extends It{get buffer(){return this.view.buffer}toBuffer(){return this.view.buffer.slice(this.view.byteOffset,this.view.byteOffset+this.view.byteLength)}toBlob(){return new Blob([new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength)],{type:this.mimeType})}toFontFace(A){return new FontFace(A,this.view.buffer)}}var hd=Object.defineProperty,rt=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&hd(A,e,i),i};const st=class Fh extends Pr{constructor(){super(...arguments);u(this,"format","EmbeddedOpenType");u(this,"mimeType","application/vnd.ms-fontobject")}static from(e){const t=e.sfnt,s=t.name.names,n=Rr(s.fontFamily||""),o=n.length,a=Rr(s.fontStyle||""),l=a.length,h=Rr(s.version||""),c=h.length,f=Rr(s.fullName||""),I=f.length,d=86+o+4+l+4+c+4+I+2+e.view.byteLength,C=new Fh(new ArrayBuffer(d),0,d,!0);C.EOTSize=C.view.byteLength,C.FontDataSize=e.view.byteLength,C.Version=131073,C.Flags=0,C.Charset=1,C.MagicNumber=20556,C.Padding1=0,C.CheckSumAdjustment=t.head.checkSumAdjustment;const p=t.os2;return p&&(C.FontPANOSE=p.fontPANOSE,C.Italic=p.fsSelection,C.Weight=p.usWeightClass,C.fsType=p.fsType,C.UnicodeRange=p.ulUnicodeRange,C.CodePageRange=p.ulCodePageRange),C.view.writeUint16(o),C.view.writeBytes(n),C.view.writeUint16(0),C.view.writeUint16(l),C.view.writeBytes(a),C.view.writeUint16(0),C.view.writeUint16(c),C.view.writeBytes(h),C.view.writeUint16(0),C.view.writeUint16(I),C.view.writeBytes(f),C.view.writeUint16(0),C.view.writeUint16(0),C.view.writeBytes(e.view),C}};rt([y("uint32")],st.prototype,"EOTSize"),rt([y("uint32")],st.prototype,"FontDataSize"),rt([y("uint32")],st.prototype,"Version"),rt([y("uint32")],st.prototype,"Flags"),rt([y({type:"uint8",size:10})],st.prototype,"FontPANOSE"),rt([y("uint8")],st.prototype,"Charset"),rt([y("uint8")],st.prototype,"Italic"),rt([y("uint32")],st.prototype,"Weight"),rt([y("uint16")],st.prototype,"fsType"),rt([y("uint16")],st.prototype,"MagicNumber"),rt([y({type:"uint8",size:16})],st.prototype,"UnicodeRange"),rt([y({type:"uint8",size:8})],st.prototype,"CodePageRange"),rt([y("uint32")],st.prototype,"CheckSumAdjustment"),rt([y({type:"uint8",size:16})],st.prototype,"Reserved"),rt([y("uint16")],st.prototype,"Padding1");var cd=Object.defineProperty,kr=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&cd(A,e,i),i};class $A extends It{constructor(A,e){super(A,e,16)}}kr([y({type:"char",size:4})],$A.prototype,"tag"),kr([y("uint32")],$A.prototype,"checkSum"),kr([y("uint32")],$A.prototype,"offset"),kr([y("uint32")],$A.prototype,"length");const bn=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],gd=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];class Dn{constructor(A){u(this,"index");u(this,"name");u(this,"isComposite",!1);u(this,"components",[]);u(this,"pathCommands",[]);const e={...A};if(this.index=e.index??0,e.name===".notdef"?e.unicode=void 0:e.name===".null"&&(e.unicode=0),e.unicode===0&&e.name!==".null")throw new Error('The unicode value "0" is reserved for the glyph name ".null" and cannot be used by any other glyph.');this.name=e.name??null,e.unicode&&(this.unicode=e.unicode),e.unicodes?this.unicodes=e.unicodes:e.unicode&&(this.unicodes=[e.unicode])}getPathCommands(A=0,e=0,t=72,i={},s){const n=1/((s==null?void 0:s.unitsPerEm)??1e3)*t,{xScale:o=n,yScale:a=n}=i,l=this.pathCommands,h=[];for(let c=0,f=l.length;c<f;c+=1){const I=l[c];I.type==="M"?h.push({type:"M",x:A+I.x*o,y:e+-I.y*a}):I.type==="L"?h.push({type:"L",x:A+I.x*o,y:e+-I.y*a}):I.type==="Q"?h.push({type:"Q",x1:A+I.x1*o,y1:e+-I.y1*a,x:A+I.x*o,y:e+-I.y*a}):I.type==="C"?h.push({type:"C",x1:A+I.x1*o,y1:e+-I.y1*a,x2:A+I.x2*o,y2:e+-I.y2*a,x:A+I.x*o,y:e+-I.y*a}):I.type==="Z"&&h.push({type:"Z"})}return h}}class ud extends Dn{parse(A,e,t){const i=this,{nominalWidthX:s,defaultWidthX:n,gsubrsBias:o,subrsBias:a}=A,l=A.topDict.paintType,h=this.index;let c,f,I,d;const C=[],p=[];let x=0,P=!1,w=!1,R=n,v=0,m=0;function b(Y,L){C.push({type:"L",x:Y,y:L})}function D(Y,L,se,H,q,ie){C.push({type:"C",x1:Y,y1:L,x2:se,y2:H,x:q,y:ie})}function z(Y,L){w&&l!==2&&Ae(),w=!0,C.push({type:"M",x:Y,y:L})}function Ae(){C.push({type:"Z"})}function W(Y){C.push(...Y)}function K(){p.length%2!==0&&!P&&(R=p.shift()+s),x+=p.length>>1,p.length=0,P=!0}function te(Y){let L,se,H,q,ie,J,$,N,U,X,ee,oe,j=0;for(;j<Y.length;){let pe=Y[j++];switch(pe){case 1:K();break;case 3:K();break;case 4:p.length>1&&!P&&(R=p.shift()+s,P=!0),m+=p.pop(),z(v,m);break;case 5:for(;p.length>0;)v+=p.shift(),m+=p.shift(),b(v,m);break;case 6:for(;p.length>0&&(v+=p.shift(),b(v,m),p.length!==0);)m+=p.shift(),b(v,m);break;case 7:for(;p.length>0&&(m+=p.shift(),b(v,m),p.length!==0);)v+=p.shift(),b(v,m);break;case 8:for(;p.length>0;)c=v+p.shift(),f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+p.shift(),D(c,f,I,d,v,m);break;case 10:ie=p.pop()+a,J=A.subrs[ie],J&&te(J);break;case 11:return;case 12:switch(pe=Y[j],j+=1,pe){case 35:c=v+p.shift(),f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d+p.shift(),U=$+p.shift(),X=N+p.shift(),ee=U+p.shift(),oe=X+p.shift(),v=ee+p.shift(),m=oe+p.shift(),p.shift(),D(c,f,I,d,$,N),D(U,X,ee,oe,v,m);break;case 34:c=v+p.shift(),f=m,I=c+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d,U=$+p.shift(),X=d,ee=U+p.shift(),oe=m,v=ee+p.shift(),D(c,f,I,d,$,N),D(U,X,ee,oe,v,m);break;case 36:c=v+p.shift(),f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d,U=$+p.shift(),X=d,ee=U+p.shift(),oe=X+p.shift(),v=ee+p.shift(),D(c,f,I,d,$,N),D(U,X,ee,oe,v,m);break;case 37:c=v+p.shift(),f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d+p.shift(),U=$+p.shift(),X=N+p.shift(),ee=U+p.shift(),oe=X+p.shift(),Math.abs(ee-v)>Math.abs(oe-m)?v=ee+p.shift():m=oe+p.shift(),D(c,f,I,d,$,N),D(U,X,ee,oe,v,m);break;default:console.warn(`Glyph ${h}: unknown operator ${1200+pe}`),p.length=0}break;case 14:if(p.length>=4){const at=bn[p.pop()],lt=bn[p.pop()],He=p.pop(),ge=p.pop();if(at&&lt){i.isComposite=!0,i.components=[];const we=A.charset.indexOf(at),Je=A.charset.indexOf(lt);i.components.push({glyphIndex:Je,dx:0,dy:0}),i.components.push({glyphIndex:we,dx:ge,dy:He}),W(t.get(Je).pathCommands);const We=JSON.parse(JSON.stringify(t.get(we).pathCommands));for(let xe=0;xe<We.length;xe+=1){const tt=We[xe];tt.type!=="Z"&&(tt.x+=ge,tt.y+=He),(tt.type==="Q"||tt.type==="C")&&(tt.x1+=ge,tt.y1+=He),tt.type==="C"&&(tt.x2+=ge,tt.y2+=He)}W(We)}}else p.length>0&&!P&&(R=p.shift()+s,P=!0);w&&l!==2&&(Ae(),w=!1);break;case 18:K();break;case 19:case 20:K(),j+=x+7>>3;break;case 21:p.length>2&&!P&&(R=p.shift()+s,P=!0),m+=p.pop(),v+=p.pop(),z(v,m);break;case 22:p.length>1&&!P&&(R=p.shift()+s,P=!0),v+=p.pop(),z(v,m);break;case 23:K();break;case 24:for(;p.length>2;)c=v+p.shift(),f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+p.shift(),D(c,f,I,d,v,m);v+=p.shift(),m+=p.shift(),b(v,m);break;case 25:for(;p.length>6;)v+=p.shift(),m+=p.shift(),b(v,m);c=v+p.shift(),f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+p.shift(),D(c,f,I,d,v,m);break;case 26:for(p.length%2&&(v+=p.shift());p.length>0;)c=v,f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),v=I,m=d+p.shift(),D(c,f,I,d,v,m);break;case 27:for(p.length%2&&(m+=p.shift());p.length>0;)c=v+p.shift(),f=m,I=c+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d,D(c,f,I,d,v,m);break;case 28:L=Y[j],se=Y[j+1],p.push((L<<24|se<<16)>>16),j+=2;break;case 29:ie=p.pop()+o,J=A.gsubrs[ie],J&&te(J);break;case 30:for(;p.length>0&&(c=v,f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+(p.length===1?p.shift():0),D(c,f,I,d,v,m),p.length!==0);)c=v+p.shift(),f=m,I=c+p.shift(),d=f+p.shift(),m=d+p.shift(),v=I+(p.length===1?p.shift():0),D(c,f,I,d,v,m);break;case 31:for(;p.length>0&&(c=v+p.shift(),f=m,I=c+p.shift(),d=f+p.shift(),m=d+p.shift(),v=I+(p.length===1?p.shift():0),D(c,f,I,d,v,m),p.length!==0);)c=v,f=m+p.shift(),I=c+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+(p.length===1?p.shift():0),D(c,f,I,d,v,m);break;default:pe<32?console.warn(`Glyph ${h}: unknown operator ${pe}`):pe<247?p.push(pe-139):pe<251?(L=Y[j],j+=1,p.push((pe-247)*256+L+108)):pe<255?(L=Y[j],j+=1,p.push(-(pe-251)*256-L-108)):(L=Y[j],se=Y[j+1],H=Y[j+2],q=Y[j+3],j+=4,p.push((L<<24|se<<16|H<<8|q)/65536))}}}te(e),this.pathCommands=C,P&&(this.advanceWidth=R)}}class xn{constructor(A){u(this,"_items",[]);this._sfnt=A}get(A){const e=this._items[A];let t;if(e)t=e;else{t=this._get(A);const i=this._sfnt.hmtx.metrics[A];i&&(t.advanceWidth=t.advanceWidth||i.advanceWidth,t.leftSideBearing=t.leftSideBearing||i.leftSideBearing);const s=this._sfnt.cmap.glyphIndexToUnicodesMap.get(A);s&&(t.unicode??(t.unicode=s[0]),t.unicodes??(t.unicodes=s)),this._items[A]=t}return t}}class fd extends xn{get length(){return this._sfnt.cff.charStringsIndex.offsets.length-1}_get(A){const e=this._sfnt.cff,t=new ud({index:A});return t.parse(e,e.charStringsIndex.get(A),this),t.name=e.charset[A],t}}var dd=Object.defineProperty,kl=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&dd(A,e,i),i};class Ur extends It{constructor(e,t,i,s){super(e,t,i,s);u(this,"_offsets");u(this,"_objects");this._init()}get offsets(){return this._offsets??(this._offsets=this.readOffsets())}get objects(){return this._objects??(this._objects=this.readObjects())}_init(){const e=this.view,t=this.count,i=this.offsetSize;this.objectOffset=(t+1)*i+2,this.endOffset=e.byteOffset+this.objectOffset+this.offsets[t]}readOffsets(){const e=this.view,t=this.count,i=this.offsetSize;e.seek(3);const s=[];for(let n=0,o=t+1;n<o;n++){const a=this.view;let l=0;for(let h=0;h<i;h++)l<<=8,l+=a.readUint8();s.push(l)}return s}readObjects(){const e=[];for(let t=0,i=this.count;t<i;t++)e.push(this.get(t));return e}get(e){const t=this.offsets,i=this.objectOffset,s=i+t[e],o=i+t[e+1]-s;return this._isString?this.view.readString(s,o):this.view.readBytes(s,o)}}kl([y("uint16")],Ur.prototype,"count"),kl([y("uint8")],Ur.prototype,"offsetSize");class Nr extends Ur{constructor(){super(...arguments);u(this,"_isString",!1)}}class Ul extends Ur{constructor(){super(...arguments);u(this,"_isString",!0)}}const Id=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],pd=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],Ed=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],Bd=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];function Fr(r,A){return A<=390?Id[A]:r[A-391]}function ye(r,A="number",e){return(t,i)=>{if(typeof i!="string")return;const s={type:A,operator:r,default:e??A==="number"?0:void 0};Object.defineProperty(t.constructor.prototype,i,{get(){return this._getProp(s)},set(n){this._setProp(s,n)},configurable:!0,enumerable:!0})}}class Nl extends It{constructor(){super(...arguments);u(this,"_dict");u(this,"_stringIndex")}get dict(){return this._dict??(this._dict=this._readDict())}setStringIndex(e){return this._stringIndex=e,this}_readFloatOperand(){const e=this.view;let t="";const i=15,s=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];for(;;){const n=e.readUint8(),o=n>>4,a=n&15;if(o===i||(t+=s[o],a===i))break;t+=s[a]}return Number.parseFloat(t)}_readOperand(e){const t=this.view;let i,s,n,o;if(e===28)return i=t.readUint8(),s=t.readUint8(),i<<8|s;if(e===29)return i=t.readUint8(),s=t.readUint8(),n=t.readUint8(),o=t.readUint8(),i<<24|s<<16|n<<8|o;if(e===30)return this._readFloatOperand();if(e>=32&&e<=246)return e-139;if(e>=247&&e<=250)return i=t.readUint8(),(e-247)*256+i+108;if(e>=251&&e<=254)return i=t.readUint8(),-(e-251)*256-i-108;throw new Error(`invalid b0 ${e}, at: ${t.cursor}`)}_readDict(){const e=this.view;e.seek(0);let t=[];const i=e.cursor+e.byteLength,s={};for(;e.cursor<i;){let n=e.readUint8();n<=21?(n===12&&(n=1200+e.readUint8()),s[n]=t,t=[]):t.push(this._readOperand(n))}return s}_getProp(e){var i;const t=this.dict[e.operator]??e.default;switch(e.type){case"number":return t[0];case"string":return Fr(((i=this._stringIndex)==null?void 0:i.objects)??[],t[0]);case"number[]":return t}return t}_setProp(e,t){}}var Cd=Object.defineProperty,Sn=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Cd(A,e,i),i};class Tr extends Nl{}Sn([ye(19)],Tr.prototype,"subrs"),Sn([ye(20)],Tr.prototype,"defaultWidthX"),Sn([ye(21)],Tr.prototype,"nominalWidthX");var Qd=Object.defineProperty,De=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Qd(A,e,i),i};class ve extends Nl{}De([ye(0,"string")],ve.prototype,"version"),De([ye(1,"string")],ve.prototype,"notice"),De([ye(1200,"string")],ve.prototype,"copyright"),De([ye(2,"string")],ve.prototype,"fullName"),De([ye(3,"string")],ve.prototype,"familyName"),De([ye(4,"string")],ve.prototype,"weight"),De([ye(1201)],ve.prototype,"isFixedPitch"),De([ye(1202)],ve.prototype,"italicAngle"),De([ye(1203,"number",-100)],ve.prototype,"underlinePosition"),De([ye(1204,"number",50)],ve.prototype,"underlineThickness"),De([ye(1205)],ve.prototype,"paintType"),De([ye(1206,"number",2)],ve.prototype,"charstringType"),De([ye(1207,"number[]",[.001,0,0,.001,0,0])],ve.prototype,"fontMatrix"),De([ye(13)],ve.prototype,"uniqueId"),De([ye(5,"number[]",[0,0,0,0])],ve.prototype,"fontBBox"),De([ye(1208)],ve.prototype,"strokeWidth"),De([ye(14)],ve.prototype,"xuid"),De([ye(15)],ve.prototype,"charset"),De([ye(16)],ve.prototype,"encoding"),De([ye(17)],ve.prototype,"charStrings"),De([ye(18,"number[]",[0,0])],ve.prototype,"private");function Ye(r,A=r){return e=>{xA.tableDefinitions.set(r,{tag:r,prop:A,class:e}),Object.defineProperty(xA.prototype,A,{get(){return this.get(r)},set(t){return this.set(r,t)},configurable:!0,enumerable:!0})}}const FA=class FA{constructor(A){u(this,"tables",new Map);u(this,"tableViews",new Map);(A instanceof Map?A:new Map(Object.entries(A))).forEach((t,i)=>{this.tableViews.set(i,new DataView(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)))})}get hasGlyf(){return this.tableViews.has("glyf")}get names(){return this.name.names}get unitsPerEm(){return this.head.unitsPerEm}get ascender(){return this.hhea.ascent}get descender(){return this.hhea.descent}get createdTimestamp(){return this.head.created}get modifiedTimestamp(){return this.head.modified}get numGlyphs(){return this.maxp.numGlyphs}get unicodes(){return this.cmap.glyphIndexToUnicodesMap}get glyphs(){return this.hasGlyf?this.glyf.glyphs:this.cff.glyphs}charToGlyphIndex(A){let e=this.cmap.unicodeToGlyphIndexMap.get(A.codePointAt(0));if(e===void 0&&!this.hasGlyf){const{encoding:t,charset:i}=this.cff;e=i.indexOf(t[A.codePointAt(0)])}return e??0}charToGlyph(A){return this.glyphs.get(this.charToGlyphIndex(A))}textToGlyphIndexes(A){const e=[];for(const t of A)e.push(this.charToGlyphIndex(t));return e}textToGlyphs(A){const e=this.glyphs,t=this.textToGlyphIndexes(A),i=t.length,s=Array.from({length:i}),n=e.get(0);for(let o=0;o<i;o+=1)s[o]=e.get(t[o])||n;return s}getPathCommands(A,e,t,i,s){const n=[];return this.forEachGlyph(A,e,t,i,s,(o,a,l,h,c)=>{n.push(...o.getPathCommands(a,l,h,c,this))}),n}getAdvanceWidth(A,e,t){return this.forEachGlyph(A,0,0,e,t,()=>{})}forEachGlyph(A,e=0,t=0,i=72,s={},n){const o=1/this.unitsPerEm*i,a=this.textToGlyphs(A);for(let l=0;l<a.length;l+=1){const h=a[l];n.call(this,h,e,t,i,s),h.advanceWidth&&(e+=h.advanceWidth*o),s.letterSpacing?e+=s.letterSpacing*i:s.tracking&&(e+=s.tracking/1e3*i)}return e}clone(){return new FA(this.tableViews)}delete(A){const e=FA.tableDefinitions.get(A);return e?(this.tableViews.delete(A),this.tables.delete(e.prop),this):this}set(A,e){const t=FA.tableDefinitions.get(A);return t&&this.tables.set(t.prop,e),this.tableViews.set(A,e.view),this}get(A){const e=FA.tableDefinitions.get(A);if(!e)return;let t=this.tables.get(e.prop);if(!t){const i=e.class;if(i){const s=this.tableViews.get(A);if(!s)return;t=new i(s.buffer,s.byteOffset,s.byteLength).setSFNT(this),this.tables.set(e.prop,t)}}return t}};u(FA,"tableDefinitions",new Map);let xA=FA;class $e extends It{setSFNT(A){return this._sfnt=A,this}getSFNT(){return this._sfnt}}var yd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Vi=(r,A,e,t)=>{for(var i=t>1?void 0:t?md(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&yd(A,e,i),i};let SA=class extends $e{constructor(A,e,t,i){super(A,e,t,i);u(this,"_glyphs");u(this,"privateDict");u(this,"subrsIndex");this._init()}get glyphs(){return this._glyphs??(this._glyphs=new fd(this._sfnt))}get gsubrs(){return this.globalSubrIndex.objects}get gsubrsBias(){return this._calcSubroutineBias(this.globalSubrIndex.objects)}get defaultWidthX(){var A;return((A=this.privateDict)==null?void 0:A.defaultWidthX)??0}get nominalWidthX(){var A;return((A=this.privateDict)==null?void 0:A.nominalWidthX)??0}get subrs(){var A;return((A=this.subrsIndex)==null?void 0:A.objects)??[]}get subrsBias(){return this._calcSubroutineBias(this.subrs)}_init(){const A=this.view,{buffer:e,byteOffset:t}=A,i=t+4;this.nameIndex=new Ul(e,i),this.topDictIndex=new Nr(e,this.nameIndex.endOffset),this.stringIndex=new Ul(e,this.topDictIndex.endOffset),this.globalSubrIndex=new Nr(e,this.stringIndex.endOffset),this.topDict=new ve(new Uint8Array(this.topDictIndex.objects[0]).buffer).setStringIndex(this.stringIndex);const s=this.topDict.private[0],n=this.topDict.private[1];s&&(this.privateDict=new Tr(e,t+n,s).setStringIndex(this.stringIndex),this.privateDict.subrs&&(this.subrsIndex=new Nr(e,t+n+this.privateDict.subrs))),this.charStringsIndex=new Nr(e,t+this.topDict.charStrings);const o=this.charStringsIndex.offsets.length-1;this.topDict.charset===0?this.charset=pd:this.topDict.charset===1?this.charset=Ed:this.topDict.charset===2?this.charset=Bd:this.charset=this._readCharset(t+this.topDict.charset,o,this.stringIndex.objects),this.topDict.encoding===0?this.encoding=bn:this.topDict.encoding===1?this.encoding=gd:this.encoding=this._readEncoding(t+this.topDict.encoding)}_readCharset(A,e,t){const i=this.view;i.seek(A);let s,n,o;e-=1;const a=[".notdef"],l=i.readUint8();if(l===0)for(s=0;s<e;s+=1)n=i.readUint16(),a.push(Fr(t,n));else if(l===1)for(;a.length<=e;)for(n=i.readUint16(),o=i.readUint8(),s=0;s<=o;s+=1)a.push(Fr(t,n)),n+=1;else if(l===2)for(;a.length<=e;)for(n=i.readUint16(),o=i.readUint16(),s=0;s<=o;s+=1)a.push(Fr(t,n)),n+=1;else throw new Error(`Unknown charset format ${l}`);return a}_readEncoding(A){const e=this.view;e.seek(A);let t,i;const s={},n=e.readUint8();if(n===0){const o=e.readUint8();for(t=0;t<o;t+=1)i=e.readUint8(),s[i]=t}else if(n===1){const o=e.readUint8();for(i=1,t=0;t<o;t+=1){const a=e.readUint8(),l=e.readUint8();for(let h=a;h<=a+l;h+=1)s[h]=i,i+=1}}else console.warn(`unknown encoding format:${n}`);return s}_calcSubroutineBias(A){let e;return A.length<1240?e=107:A.length<33900?e=1131:e=32768,e}};Vi([y("uint8")],SA.prototype,"majorVersion",2),Vi([y("uint8")],SA.prototype,"minorVersion",2),Vi([y("uint8")],SA.prototype,"headerSize",2),Vi([y("uint8")],SA.prototype,"offsetSize",2),SA=Vi([Ye("CFF ","cff")],SA);var wd=Object.defineProperty,Gr=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&wd(A,e,i),i};const zi=class Th extends It{constructor(A=new ArrayBuffer(262),e){super(A,e,262)}static from(A){const e=new Th;return e.format=0,e.length=e.view.byteLength,e.language=0,A.forEach((t,i)=>{i<256&&t<256&&e.view.writeUint8(t,6+i)}),e}getUnicodeToGlyphIndexMap(){const A=new Map;return this.glyphIndexArray.forEach((e,t)=>{A.set(t,e)}),A}};Gr([y("uint16")],zi.prototype,"format"),Gr([y("uint16")],zi.prototype,"length"),Gr([y("uint16")],zi.prototype,"language"),Gr([y({type:"uint8",size:256})],zi.prototype,"glyphIndexArray");let Mn=zi;var vd=Object.defineProperty,Rn=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&vd(A,e,i),i};class Wi extends It{get subHeaderKeys(){return this.view.seek(6),Array.from({length:256},()=>this.view.readUint16()/8)}get maxSubHeaderKey(){return this.subHeaderKeys.reduce((A,e)=>Math.max(A,e),0)}get subHeaders(){const A=this.maxSubHeaderKey;return this.view.seek(6+256*2),Array.from({length:A},(e,t)=>({firstCode:this.view.readUint16(),entryCount:this.view.readUint16(),idDelta:this.view.readUint16(),idRangeOffset:(this.view.readUint16()-(A-t)*8-2)/2}))}get glyphIndexArray(){const A=this.maxSubHeaderKey,e=6+256*2+A*8;this.view.seek(e);const t=(this.view.byteLength-e)/2;return Array.from({length:t},()=>this.view.readUint16())}getUnicodeToGlyphIndexMap(A){const e=new Map,t=this.subHeaderKeys,i=this.maxSubHeaderKey,s=this.subHeaders,n=this.glyphIndexArray,o=t.findIndex(l=>l===i);let a=0;for(let l=0;l<256;l++)if(t[l]===0)l>=o||l<s[0].firstCode||l>=s[0].firstCode+s[0].entryCount||s[0].idRangeOffset+(l-s[0].firstCode)>=n.length?a=0:(a=n[s[0].idRangeOffset+(l-s[0].firstCode)],a!==0&&(a=a+s[0].idDelta)),a!==0&&a<A&&e.set(l,a);else{const h=t[l];for(let c=0,f=s[h].entryCount;c<f;c++)if(s[h].idRangeOffset+c>=n.length?a=0:(a=n[s[h].idRangeOffset+c],a!==0&&(a=a+s[h].idDelta)),a!==0&&a<A){const I=(l<<8|c+s[h].firstCode)%65535;e.set(I,a)}}return e}}Rn([y("uint16")],Wi.prototype,"format"),Rn([y("uint16")],Wi.prototype,"length"),Rn([y("uint16")],Wi.prototype,"language");function Fl(r){return r>32767?r-65536:r<-32767?r+65536:r}function Pn(r,A){let e;const t=[];let i={};return r.forEach((s,n)=>{A&&n>A||((!e||n!==e.unicode+1||s!==e.glyphIndex+1)&&(e?(i.end=e.unicode,t.push(i),i={start:n,startId:s,delta:Fl(s-n)}):(i.start=Number(n),i.startId=s,i.delta=Fl(s-n))),e={unicode:n,glyphIndex:s})}),e&&(i.end=e.unicode,t.push(i)),t}var _d=Object.defineProperty,MA=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&_d(A,e,i),i};const cA=class Gh extends It{get endCode(){const A=this.segCountX2;return this.view.seek(14),Array.from({length:A/2},()=>this.view.readUint16())}set endCode(A){this.view.seek(14),A.forEach(e=>this.view.writeUint16(e))}get reservedPad(){return this.view.readUint16(14+this.segCountX2)}set reservedPad(A){this.view.writeUint16(A,14+this.segCountX2)}get startCode(){const A=this.segCountX2;return this.view.seek(14+A+2),Array.from({length:A/2},()=>this.view.readUint16())}set startCode(A){this.view.seek(14+this.segCountX2+2),A.forEach(e=>this.view.writeUint16(e))}get idDelta(){const A=this.segCountX2;return this.view.seek(14+A+2+A),Array.from({length:A/2},()=>this.view.readUint16())}set idDelta(A){const e=this.segCountX2;this.view.seek(14+e+2+e),A.forEach(t=>this.view.writeUint16(t))}get idRangeOffsetCursor(){const A=this.segCountX2;return 14+A+2+A*2}get idRangeOffset(){const A=this.segCountX2;return this.view.seek(this.idRangeOffsetCursor),Array.from({length:A/2},()=>this.view.readUint16())}set idRangeOffset(A){this.view.seek(this.idRangeOffsetCursor),A.forEach(e=>this.view.writeUint16(e))}get glyphIndexArrayCursor(){const A=this.segCountX2;return 14+A+2+A*3}get glyphIndexArray(){const A=this.glyphIndexArrayCursor;this.view.seek(A);const e=(this.view.byteLength-A)/2;return Array.from({length:e},()=>this.view.readUint16())}static from(A){const e=Pn(A,65535),t=e.length+1,i=Math.floor(Math.log(t)/Math.LN2),s=2*2**i,n=new Gh(new ArrayBuffer(24+e.length*8));return n.format=4,n.length=n.view.byteLength,n.language=0,n.segCountX2=t*2,n.searchRange=s,n.entrySelector=i,n.rangeShift=2*t-s,n.endCode=[...e.map(o=>o.end),65535],n.reservedPad=0,n.startCode=[...e.map(o=>o.start),65535],n.idDelta=[...e.map(o=>o.delta),1],n.idRangeOffset=Array.from({length:t},()=>0),n}getUnicodeToGlyphIndexMap(){const A=new Map,e=this.segCountX2/2,t=(this.glyphIndexArrayCursor-this.idRangeOffsetCursor)/2,i=this.startCode,s=this.endCode,n=this.idRangeOffset,o=this.idDelta,a=this.glyphIndexArray;for(let l=0;l<e;++l)for(let h=i[l],c=s[l];h<=c;++h)if(n[l]===0)A.set(h,(h+o[l])%65536);else{const f=l+n[l]/2+(h-i[l])-t,I=a[f];I!==0?A.set(h,(I+o[l])%65536):A.set(h,0)}return A.delete(65535),A}};MA([y("uint16")],cA.prototype,"format"),MA([y("uint16")],cA.prototype,"length"),MA([y("uint16")],cA.prototype,"language"),MA([y("uint16")],cA.prototype,"segCountX2"),MA([y("uint16")],cA.prototype,"searchRange"),MA([y("uint16")],cA.prototype,"entrySelector"),MA([y("uint16")],cA.prototype,"rangeShift");let kn=cA;var bd=Object.defineProperty,qi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&bd(A,e,i),i};class RA extends It{get glyphIndexArray(){return this.view.seek(12),Array.from({length:this.entryCount},()=>this.view.readUint16())}getUnicodeToGlyphIndexMap(){const A=this.glyphIndexArray,e=new Map;return A.forEach((t,i)=>{e.set(i,t)}),e}}qi([y("uint16")],RA.prototype,"format"),qi([y("uint16")],RA.prototype,"length"),qi([y("uint16")],RA.prototype,"language"),qi([y("uint16")],RA.prototype,"firstCode"),qi([y("uint16")],RA.prototype,"entryCount");var Dd=Object.defineProperty,Xi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Dd(A,e,i),i};const ei=class Lh extends It{get groups(){const A=this.nGroups;return this.view.seek(16),Array.from({length:A},()=>({startCharCode:this.view.readUint32(),endCharCode:this.view.readUint32(),startGlyphCode:this.view.readUint32()}))}static from(A){const e=Pn(A),t=new Lh(new ArrayBuffer(16+e.length*12));return t.format=12,t.reserved=0,t.length=t.view.byteLength,t.language=0,t.nGroups=e.length,e.forEach(i=>{t.view.writeUint32(i.start),t.view.writeUint32(i.end),t.view.writeUint32(i.startId)}),t}getUnicodeToGlyphIndexMap(){const A=new Map,e=this.groups;for(let t=0,i=e.length;t<i;t++){const s=e[t];let n=s.startGlyphCode,o=s.startCharCode;const a=s.endCharCode;for(;o<=a;)A.set(o++,n++)}return A}};Xi([y("uint16")],ei.prototype,"format"),Xi([y("uint16")],ei.prototype,"reserved"),Xi([y("uint32")],ei.prototype,"length"),Xi([y("uint32")],ei.prototype,"language"),Xi([y("uint32")],ei.prototype,"nGroups");let Un=ei;var xd=Object.defineProperty,Nn=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&xd(A,e,i),i};class ji extends It{getVarSelectorRecords(){const A=this.numVarSelectorRecords;return this.view.seek(10),Array.from({length:A},()=>{const e={varSelector:this.view.readUint24(),defaultUVSOffset:this.view.readUint32(),unicodeValueRanges:[],nonDefaultUVSOffset:this.view.readUint32(),uVSMappings:[]};if(e.defaultUVSOffset){this.view.seek(e.defaultUVSOffset);const t=this.view.readUint32();e.unicodeValueRanges=Array.from({length:t},()=>({startUnicodeValue:this.view.readUint24(),additionalCount:this.view.readUint8()}))}if(e.nonDefaultUVSOffset){this.view.seek(e.nonDefaultUVSOffset);const t=this.view.readUint32();e.uVSMappings=Array.from({length:t},()=>({unicodeValue:this.view.readUint24(),glyphID:this.view.readUint16()}))}return e})}getUnicodeToGlyphIndexMap(){const A=new Map,e=this.getVarSelectorRecords();for(let t=0,i=e.length;t<i;t++){const{uVSMappings:s}=e[t];s.forEach(n=>{A.set(n.unicodeValue,n.glyphID)})}return A}}Nn([y("uint16")],ji.prototype,"format"),Nn([y("uint32")],ji.prototype,"length"),Nn([y("uint32")],ji.prototype,"numVarSelectorRecords");var Sd=Object.defineProperty,Md=Object.getOwnPropertyDescriptor,Fn=(r,A,e,t)=>{for(var i=t>1?void 0:t?Md(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Sd(A,e,i),i};let ti=class extends $e{constructor(){super(...arguments);u(this,"_unicodeToGlyphIndexMap");u(this,"_glyphIndexToUnicodesMap")}static from(A){const e=Array.from(A.keys()).some(c=>c>65535),t=kn.from(A),i=Mn.from(A),s=e?Un.from(A):void 0,n=4+(s?32:24),o=n+t.view.byteLength,a=o+i.view.byteLength,l=[{platformID:0,platformSpecificID:3,offset:n},{platformID:1,platformSpecificID:0,offset:o},{platformID:3,platformSpecificID:1,offset:n},s&&{platformID:3,platformSpecificID:10,offset:a}].filter(Boolean),h=new ti(new ArrayBuffer(4+8*l.length+t.view.byteLength+i.view.byteLength+((s==null?void 0:s.view.byteLength)??0)));return h.numberSubtables=l.length,h.view.seek(4),l.forEach(c=>{h.view.writeUint16(c.platformID),h.view.writeUint16(c.platformSpecificID),h.view.writeUint32(c.offset)}),h.view.writeBytes(t.view,n),h.view.writeBytes(i.view,o),s&&h.view.writeBytes(s.view,a),h}get unicodeToGlyphIndexMap(){return this._unicodeToGlyphIndexMap??(this._unicodeToGlyphIndexMap=this.readunicodeToGlyphIndexMap())}get glyphIndexToUnicodesMap(){if(!this._glyphIndexToUnicodesMap){const A=new Map,e=this.unicodeToGlyphIndexMap,t=Array.from(e.keys());for(let i=0,s=t.length;i<s;i++){const n=t[i],o=e.get(n);A.has(o)?A.get(o).push(n):A.set(o,[n])}this._glyphIndexToUnicodesMap=A}return this._glyphIndexToUnicodesMap}readSubtables(){const A=this.numberSubtables;return this.view.seek(4),Array.from({length:A},()=>({platformID:this.view.readUint16(),platformSpecificID:this.view.readUint16(),offset:this.view.readUint32()})).map(e=>{this.view.seek(e.offset);const t=this.view.readUint16();let i;switch(t){case 0:i=new Mn(this.view.buffer,e.offset);break;case 2:i=new Wi(this.view.buffer,e.offset,this.view.readUint16());break;case 4:i=new kn(this.view.buffer,e.offset,this.view.readUint16());break;case 6:i=new RA(this.view.buffer,e.offset,this.view.readUint16());break;case 12:i=new Un(this.view.buffer,e.offset,this.view.readUint32(e.offset+4));break;case 14:default:i=new ji(this.view.buffer,e.offset,this.view.readUint32());break}return{...e,format:t,view:i}})}readunicodeToGlyphIndexMap(){var o,a,l,h,c;const A=this.readSubtables(),e=(o=A.find(f=>f.format===0))==null?void 0:o.view,t=(a=A.find(f=>f.platformID===3&&f.platformSpecificID===3&&f.format===2))==null?void 0:a.view,i=(l=A.find(f=>f.platformID===3&&f.platformSpecificID===1&&f.format===4))==null?void 0:l.view,s=(h=A.find(f=>f.platformID===3&&f.platformSpecificID===10&&f.format===12))==null?void 0:h.view,n=(c=A.find(f=>f.platformID===0&&f.platformSpecificID===5&&f.format===14))==null?void 0:c.view;return new Map([...(e==null?void 0:e.getUnicodeToGlyphIndexMap())??[],...(t==null?void 0:t.getUnicodeToGlyphIndexMap(this._sfnt.maxp.numGlyphs))??[],...(i==null?void 0:i.getUnicodeToGlyphIndexMap())??[],...(s==null?void 0:s.getUnicodeToGlyphIndexMap())??[],...(n==null?void 0:n.getUnicodeToGlyphIndexMap())??[]])}};Fn([y("uint16")],ti.prototype,"version",2),Fn([y("uint16")],ti.prototype,"numberSubtables",2),ti=Fn([Ye("cmap")],ti);class Rd extends Dn{_parseContours(A){const e=[];let t=[];for(let i=0;i<A.length;i+=1){const s=A[i];t.push(s),s.lastPointOfContour&&(e.push(t),t=[])}return Ki(t.length===0,"There are still points left in the current contour."),e}_transformPoints(A,e){const t=[];for(let i=0;i<A.length;i+=1){const s=A[i],n={x:e.xScale*s.x+e.scale10*s.y+e.dx,y:e.scale01*s.x+e.yScale*s.y+e.dy,onCurve:s.onCurve,lastPointOfContour:s.lastPointOfContour};t.push(n)}return t}_parseGlyphCoordinate(A,e,t,i,s){let n;return(e&i)>0?(n=A.view.readUint8(),(e&s)===0&&(n=-n),n=t+n):(e&s)>0?n=t:n=t+A.view.readInt16(),n}parse(A,e,t){A.view.seek(e);const i=this.numberOfContours=A.view.readInt16();if(this.xMin=A.view.readInt16(),this.yMin=A.view.readInt16(),this.xMax=A.view.readInt16(),this.yMax=A.view.readInt16(),i>0){const o=this.endPointIndices=[];for(let C=0;C<i;C++)o.push(A.view.readUint16());const a=this.instructionLength=A.view.readUint16();Ki(a<5e3,`Bad instructionLength:${a}`);const l=this.instructions=[];for(let C=0;C<a;++C)l.push(A.view.readUint8());const h=A.view.byteOffset,c=o[o.length-1]+1;Ki(c<2e4,`Bad numberOfCoordinates:${h}`);const f=[];let I,d=0;for(;d<c;)if(I=A.view.readUint8(),f.push(I),d++,I&8&&d<c){const C=A.view.readUint8();for(let p=0;p<C;p++)f.push(I),d++}if(Ki(f.length===c,`Bad flags length: ${f.length}, numberOfCoordinates: ${c}`),o.length>0){const C=[];let p;if(c>0){for(let w=0;w<c;w+=1)I=f[w],p={},p.onCurve=!!(I&1),p.lastPointOfContour=o.includes(w),C.push(p);let x=0;for(let w=0;w<c;w+=1)I=f[w],p=C[w],p.x=this._parseGlyphCoordinate(A,I,x,2,16),x=p.x;let P=0;for(let w=0;w<c;w+=1)I=f[w],p=C[w],p.y=this._parseGlyphCoordinate(A,I,P,4,32),P=p.y}this.points=C}else this.points=[]}else if(i===0)this.points=[];else{this.isComposite=!0,this.points=[],this.components=[];let o,a=!0;for(;a;){o=A.view.readUint16();const l={glyphIndex:A.view.readUint16(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(o&1)>0?(o&2)>0?(l.dx=A.view.readInt16(),l.dy=A.view.readInt16()):l.matchedPoints=[A.view.readUint16(),A.view.readUint16()]:(o&2)>0?(l.dx=A.view.readInt8(),l.dy=A.view.readInt8()):l.matchedPoints=[A.view.readUint8(),A.view.readUint8()],(o&8)>0?l.xScale=l.yScale=A.view.readInt16()/16384:(o&64)>0?(l.xScale=A.view.readInt16()/16384,l.yScale=A.view.readInt16()/16384):(o&128)>0&&(l.xScale=A.view.readInt16()/16384,l.scale01=A.view.readInt16()/16384,l.scale10=A.view.readInt16()/16384,l.yScale=A.view.readInt16()/16384),this.components.push(l),a=!!(o&32)}if(o&256){this.instructionLength=A.view.readUint16(),this.instructions=[];for(let l=0;l<this.instructionLength;l+=1)this.instructions.push(A.view.readUint8())}}if(this.isComposite)for(let o=0;o<this.components.length;o+=1){const a=this.components[o],l=t.get(a.glyphIndex);if(l.getPathCommands(),l.points){let h;if(a.matchedPoints===void 0)h=this._transformPoints(l.points,a);else{Ki(a.matchedPoints[0]>this.points.length-1||a.matchedPoints[1]>l.points.length-1,`Matched points out of range in ${this.name}`);const c=this.points[a.matchedPoints[0]];let f=l.points[a.matchedPoints[1]];const I={xScale:a.xScale,scale01:a.scale01,scale10:a.scale10,yScale:a.yScale,dx:0,dy:0};f=this._transformPoints([f],I)[0],I.dx=c.x-f.x,I.dy=c.y-f.y,h=this._transformPoints(l.points,I)}this.points=this.points.concat(h)}}const s=[],n=this._parseContours(this.points);for(let o=0,a=n.length;o<a;++o){const l=n[o];let h=l[l.length-1],c=l[0];h.onCurve?s.push({type:"M",x:h.x,y:h.y}):c.onCurve?s.push({type:"M",x:c.x,y:c.y}):s.push({type:"M",x:(h.x+c.x)*.5,y:(h.y+c.y)*.5});for(let f=0,I=l.length;f<I;++f)if(h=c,c=l[(f+1)%I],h.onCurve)s.push({type:"L",x:h.x,y:h.y});else{let d=c;c.onCurve||(d={x:(h.x+c.x)*.5,y:(h.y+c.y)*.5}),s.push({type:"Q",x1:h.x,y1:h.y,x:d.x,y:d.y})}s.push({type:"Z"})}this.pathCommands=s}}class Pd extends xn{get length(){return this._sfnt.loca.locations.length}_get(A){const e=this._sfnt.loca.locations,t=e[A],i=new Rd({index:A});return t!==e[A+1]&&i.parse(this._sfnt.glyf,t,this),i}}var kd=Object.getOwnPropertyDescriptor,Ud=(r,A,e,t)=>{for(var i=t>1?void 0:t?kd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Lr=class extends $e{constructor(){super(...arguments);u(this,"_glyphs")}static from(A){const e=A.reduce((i,s)=>i+s.byteLength,0),t=new Lr(new ArrayBuffer(e));return A.forEach(i=>{t.view.writeBytes(i)}),t}get glyphs(){return this._glyphs??(this._glyphs=new Pd(this._sfnt))}};Lr=Ud([Ye("glyf")],Lr);var Nd=Object.getOwnPropertyDescriptor,Fd=(r,A,e,t)=>{for(var i=t>1?void 0:t?Nd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Tn=class extends $e{};Tn=Fd([Ye("GPOS","gpos")],Tn);var Td=Object.defineProperty,Gd=Object.getOwnPropertyDescriptor,PA=(r,A,e,t)=>{for(var i=t>1?void 0:t?Gd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Td(A,e,i),i};let Zt=class extends $e{};PA([y("uint16")],Zt.prototype,"majorVersion",2),PA([y("uint16")],Zt.prototype,"minorVersion",2),PA([y("uint16")],Zt.prototype,"scriptListOffset",2),PA([y("uint16")],Zt.prototype,"featureListOffset",2),PA([y("uint16")],Zt.prototype,"lookupListOffset",2),PA([y("uint16")],Zt.prototype,"featureVariationsOffset",2),Zt=PA([Ye("GSUB","gsub")],Zt);var Ld=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,Te=(r,A,e,t)=>{for(var i=t>1?void 0:t?Od(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ld(A,e,i),i};let Re=class extends $e{constructor(r=new ArrayBuffer(54),A){super(r,A,Math.min(54,r.byteLength-(A??0)))}};Te([y("fixed")],Re.prototype,"version",2),Te([y("fixed")],Re.prototype,"fontRevision",2),Te([y("uint32")],Re.prototype,"checkSumAdjustment",2),Te([y("uint32")],Re.prototype,"magickNumber",2),Te([y("uint16")],Re.prototype,"flags",2),Te([y("uint16")],Re.prototype,"unitsPerEm",2),Te([y({type:"longDateTime"})],Re.prototype,"created",2),Te([y({type:"longDateTime"})],Re.prototype,"modified",2),Te([y("int16")],Re.prototype,"xMin",2),Te([y("int16")],Re.prototype,"yMin",2),Te([y("int16")],Re.prototype,"xMax",2),Te([y("int16")],Re.prototype,"yMax",2),Te([y("uint16")],Re.prototype,"macStyle",2),Te([y("uint16")],Re.prototype,"lowestRecPPEM",2),Te([y("int16")],Re.prototype,"fontDirectionHint",2),Te([y("int16")],Re.prototype,"indexToLocFormat",2),Te([y("int16")],Re.prototype,"glyphDataFormat",2),Re=Te([Ye("head")],Re);var Hd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,nt=(r,A,e,t)=>{for(var i=t>1?void 0:t?Jd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Hd(A,e,i),i};let Ve=class extends $e{constructor(r=new ArrayBuffer(36),A){super(r,A,Math.min(36,r.byteLength-(A??0)))}};nt([y("fixed")],Ve.prototype,"version",2),nt([y("int16")],Ve.prototype,"ascent",2),nt([y("int16")],Ve.prototype,"descent",2),nt([y("int16")],Ve.prototype,"lineGap",2),nt([y("uint16")],Ve.prototype,"advanceWidthMax",2),nt([y("int16")],Ve.prototype,"minLeftSideBearing",2),nt([y("int16")],Ve.prototype,"minRightSideBearing",2),nt([y("int16")],Ve.prototype,"xMaxExtent",2),nt([y("int16")],Ve.prototype,"caretSlopeRise",2),nt([y("int16")],Ve.prototype,"caretSlopeRun",2),nt([y("int16")],Ve.prototype,"caretOffset",2),nt([y({type:"int16",size:4})],Ve.prototype,"reserved",2),nt([y("int16")],Ve.prototype,"metricDataFormat",2),nt([y("uint16")],Ve.prototype,"numOfLongHorMetrics",2),Ve=nt([Ye("hhea")],Ve);var Kd=Object.getOwnPropertyDescriptor,Yd=(r,A,e,t)=>{for(var i=t>1?void 0:t?Kd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Or=class extends $e{constructor(){super(...arguments);u(this,"_metrics")}static from(A){const e=A.length*4,t=new Or(new ArrayBuffer(e));return A.forEach(i=>{t.view.writeUint16(i.advanceWidth),t.view.writeUint16(i.leftSideBearing)}),t}get metrics(){return this._metrics??(this._metrics=this.readMetrics())}readMetrics(){const A=this._sfnt.maxp.numGlyphs,e=this._sfnt.hhea.numOfLongHorMetrics;let t=0;const i=this.view;return i.seek(0),Array.from({length:A}).map((s,n)=>(n<e&&(t=i.readUint16()),{advanceWidth:t,leftSideBearing:i.readUint16()}))}};Or=Yd([Ye("hmtx")],Or);var Vd=Object.getOwnPropertyDescriptor,zd=(r,A,e,t)=>{for(var i=t>1?void 0:t?Vd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Gn=class extends $e{};Gn=zd([Ye("kern","kern")],Gn);var Wd=Object.getOwnPropertyDescriptor,qd=(r,A,e,t)=>{for(var i=t>1?void 0:t?Wd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Hr=class extends $e{constructor(){super(...arguments);u(this,"_locations")}static from(A,e=1){const t=A.length*(e?4:2),i=new Hr(new ArrayBuffer(t));return A.forEach(s=>{e?i.view.writeUint32(s):i.view.writeUint16(s/2)}),i}get locations(){return this._locations??(this._locations=this.readLocations())}readLocations(){const A=this._sfnt.maxp.numGlyphs,e=this._sfnt.head.indexToLocFormat,t=this.view;return t.seek(0),Array.from({length:A}).map(()=>e?t.readUint32():t.readUint16()*2)}};Hr=qd([Ye("loca")],Hr);var Xd=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,et=(r,A,e,t)=>{for(var i=t>1?void 0:t?jd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Xd(A,e,i),i};let Ge=class extends $e{constructor(r=new ArrayBuffer(32),A){super(r,A,Math.min(32,r.byteLength-(A??0)))}};et([y("fixed")],Ge.prototype,"version",2),et([y("uint16")],Ge.prototype,"numGlyphs",2),et([y("uint16")],Ge.prototype,"maxPoints",2),et([y("uint16")],Ge.prototype,"maxContours",2),et([y("uint16")],Ge.prototype,"maxComponentPoints",2),et([y("uint16")],Ge.prototype,"maxComponentContours",2),et([y("uint16")],Ge.prototype,"maxZones",2),et([y("uint16")],Ge.prototype,"maxTwilightPoints",2),et([y("uint16")],Ge.prototype,"maxStorage",2),et([y("uint16")],Ge.prototype,"maxFunctionDefs",2),et([y("uint16")],Ge.prototype,"maxInstructionDefs",2),et([y("uint16")],Ge.prototype,"maxStackElements",2),et([y("uint16")],Ge.prototype,"maxSizeOfInstructions",2),et([y("uint16")],Ge.prototype,"maxComponentElements",2),et([y("uint16")],Ge.prototype,"maxComponentDepth",2),Ge=et([Ye("maxp")],Ge);var Zd=Object.defineProperty,$d=Object.getOwnPropertyDescriptor,Jr=(r,A,e,t)=>{for(var i=t>1?void 0:t?$d(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Zd(A,e,i),i};const Tl={0:"copyright",1:"fontFamily",2:"fontSubFamily",3:"uniqueSubFamily",4:"fullName",5:"version",6:"postScriptName",7:"tradeMark",8:"manufacturer",9:"designer",10:"description",11:"urlOfFontVendor",12:"urlOfFontDesigner",13:"licence",14:"urlOfLicence",16:"preferredFamily",17:"preferredSubFamily",18:"compatibleFull",19:"sampleText"},Ln={Macintosh:1,Microsoft:3},eI={Default:0},Gl={UCS2:1};let Ai=class extends $e{constructor(){super(...arguments);u(this,"_names")}get names(){return this._names??(this._names=this.readNames())}readNames(){const A=this.count;this.view.seek(6);const e=[];for(let a=0;a<A;++a)e.push({platform:this.view.readUint16(),encoding:this.view.readUint16(),language:this.view.readUint16(),nameId:this.view.readUint16(),length:this.view.readUint16(),offset:this.view.readUint16()});const t=this.stringOffset;for(let a=0;a<A;++a){const l=e[a];l.name=this.view.readBytes(t+l.offset,l.length)}let i=Ln.Macintosh,s=eI.Default,n=0;e.some(a=>a.platform===Ln.Microsoft&&a.encoding===Gl.UCS2&&a.language===1033)&&(i=Ln.Microsoft,s=Gl.UCS2,n=1033);const o={};for(let a=0;a<A;++a){const l=e[a];l.platform===i&&l.encoding===s&&l.language===n&&Tl[l.nameId]&&(o[Tl[l.nameId]]=n===0?od(l.name):ad(l.name))}return o}};Jr([y("uint16")],Ai.prototype,"format",2),Jr([y("uint16")],Ai.prototype,"count",2),Jr([y("uint16")],Ai.prototype,"stringOffset",2),Ai=Jr([Ye("name")],Ai);var tI=Object.defineProperty,AI=Object.getOwnPropertyDescriptor,le=(r,A,e,t)=>{for(var i=t>1?void 0:t?AI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&tI(A,e,i),i};let ae=class extends $e{get fontPANOSE(){return[this.bFamilyType,this.bSerifStyle,this.bWeight,this.bProportion,this.bContrast,this.bStrokeVariation,this.bArmStyle,this.bLetterform,this.bMidline,this.bXHeight]}};le([y("uint16")],ae.prototype,"version",2),le([y("int16")],ae.prototype,"xAvgCharWidth",2),le([y("uint16")],ae.prototype,"usWeightClass",2),le([y("uint16")],ae.prototype,"usWidthClass",2),le([y("uint16")],ae.prototype,"fsType",2),le([y("uint16")],ae.prototype,"ySubscriptXSize",2),le([y("uint16")],ae.prototype,"ySubscriptYSize",2),le([y("uint16")],ae.prototype,"ySubscriptXOffset",2),le([y("uint16")],ae.prototype,"ySubscriptYOffset",2),le([y("uint16")],ae.prototype,"ySuperscriptXSize",2),le([y("uint16")],ae.prototype,"ySuperscriptYSize",2),le([y("uint16")],ae.prototype,"ySuperscriptXOffset",2),le([y("uint16")],ae.prototype,"ySuperscriptYOffset",2),le([y("uint16")],ae.prototype,"yStrikeoutSize",2),le([y("uint16")],ae.prototype,"yStrikeoutPosition",2),le([y("uint16")],ae.prototype,"sFamilyClass",2),le([y({type:"uint8"})],ae.prototype,"bFamilyType",2),le([y({type:"uint8"})],ae.prototype,"bSerifStyle",2),le([y({type:"uint8"})],ae.prototype,"bWeight",2),le([y({type:"uint8"})],ae.prototype,"bProportion",2),le([y({type:"uint8"})],ae.prototype,"bContrast",2),le([y({type:"uint8"})],ae.prototype,"bStrokeVariation",2),le([y({type:"uint8"})],ae.prototype,"bArmStyle",2),le([y({type:"uint8"})],ae.prototype,"bLetterform",2),le([y({type:"uint8"})],ae.prototype,"bMidline",2),le([y({type:"uint8"})],ae.prototype,"bXHeight",2),le([y({type:"uint8",size:16})],ae.prototype,"ulUnicodeRange",2),le([y({type:"char",size:4})],ae.prototype,"achVendID",2),le([y("uint16")],ae.prototype,"fsSelection",2),le([y("uint16")],ae.prototype,"usFirstCharIndex",2),le([y("uint16")],ae.prototype,"usLastCharIndex",2),le([y("int16")],ae.prototype,"sTypoAscender",2),le([y("int16")],ae.prototype,"sTypoDescender",2),le([y("int16")],ae.prototype,"sTypoLineGap",2),le([y("uint16")],ae.prototype,"usWinAscent",2),le([y("uint16")],ae.prototype,"usWinDescent",2),le([y({offset:72,type:"uint8",size:8})],ae.prototype,"ulCodePageRange",2),le([y({offset:72,type:"int16"})],ae.prototype,"sxHeight",2),le([y("int16")],ae.prototype,"sCapHeight",2),le([y("uint16")],ae.prototype,"usDefaultChar",2),le([y("uint16")],ae.prototype,"usBreakChar",2),le([y("uint16")],ae.prototype,"usMaxContext",2),ae=le([Ye("OS/2","os2")],ae);var iI=Object.defineProperty,rI=Object.getOwnPropertyDescriptor,Nt=(r,A,e,t)=>{for(var i=t>1?void 0:t?rI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&iI(A,e,i),i};let Qt=class extends $e{constructor(r=new ArrayBuffer(32),A,e){super(r,A,e)}};Nt([y("fixed")],Qt.prototype,"format",2),Nt([y("fixed")],Qt.prototype,"italicAngle",2),Nt([y("int16")],Qt.prototype,"underlinePosition",2),Nt([y("int16")],Qt.prototype,"underlineThickness",2),Nt([y("uint32")],Qt.prototype,"isFixedPitch",2),Nt([y("uint32")],Qt.prototype,"minMemType42",2),Nt([y("uint32")],Qt.prototype,"maxMemType42",2),Nt([y("uint32")],Qt.prototype,"minMemType1",2),Nt([y("uint32")],Qt.prototype,"maxMemType1",2),Qt=Nt([Ye("post")],Qt);var sI=Object.defineProperty,nI=Object.getOwnPropertyDescriptor,ot=(r,A,e,t)=>{for(var i=t>1?void 0:t?nI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&sI(A,e,i),i};let ze=class extends $e{constructor(r=new ArrayBuffer(36),A){super(r,A,Math.min(36,r.byteLength-(A??0)))}};ot([y("fixed")],ze.prototype,"version",2),ot([y("int16")],ze.prototype,"vertTypoAscender",2),ot([y("int16")],ze.prototype,"vertTypoDescender",2),ot([y("int16")],ze.prototype,"vertTypoLineGap",2),ot([y("int16")],ze.prototype,"advanceHeightMax",2),ot([y("int16")],ze.prototype,"minTopSideBearing",2),ot([y("int16")],ze.prototype,"minBottomSideBearing",2),ot([y("int16")],ze.prototype,"yMaxExtent",2),ot([y("int16")],ze.prototype,"caretSlopeRise",2),ot([y("int16")],ze.prototype,"caretSlopeRun",2),ot([y("int16")],ze.prototype,"caretOffset",2),ot([y({type:"int16",size:4})],ze.prototype,"reserved",2),ot([y("int16")],ze.prototype,"metricDataFormat",2),ot([y("int16")],ze.prototype,"numOfLongVerMetrics",2),ze=ot([Ye("vhea")],ze);var oI=Object.getOwnPropertyDescriptor,aI=(r,A,e,t)=>{for(var i=t>1?void 0:t?oI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Kr=class extends $e{constructor(){super(...arguments);u(this,"_metrics")}static from(A){const e=A.length*4,t=new Kr(new ArrayBuffer(e));return A.forEach(i=>{t.view.writeUint16(i.advanceHeight),t.view.writeInt16(i.topSideBearing)}),t}get metrics(){return this._metrics??(this._metrics=this.readMetrics())}readMetrics(){var s;const A=this._sfnt.maxp.numGlyphs,e=((s=this._sfnt.vhea)==null?void 0:s.numOfLongVerMetrics)??0,t=this.view;t.seek(0);let i=0;return Array.from({length:A}).map((n,o)=>(o<e&&(i=t.readUint16()),{advanceHeight:i,topSideBearing:t.readUint8()}))}};Kr=aI([Ye("vmtx")],Kr);var lI=Object.defineProperty,Zi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&lI(A,e,i),i};class yt extends Pr{constructor(){super(...arguments);u(this,"format","TrueType");u(this,"mimeType","font/ttf");u(this,"_sfnt")}get sfnt(){return this._sfnt||(this._sfnt=this.createSFNT()),this._sfnt}static is(e){return typeof e=="number"?this.signature.has(e):this.signature.has(ZA(e).getUint32(0))}static checksum(e){const t=ZA(e);let i=t.byteLength;for(;i%4;)i++;let s=0;for(let n=0,o=i/4;n<o;n+=4)n*4<i-4&&(s+=t.getUint32(n*4,!1));return s&4294967295}static from(e){const t=f=>f+3&-4,i=e.tableViews.size,s=Array.from(e.tableViews.values()).reduce((f,I)=>f+t(I.byteLength),0),n=new this(new ArrayBuffer(12+i*16+s));n.scalerType=65536,n.numTables=i;const o=Math.log(2);n.searchRange=Math.floor(Math.log(i)/o)*16,n.entrySelector=Math.floor(n.searchRange/o),n.rangeShift=i*16-n.searchRange;let a=12+i*16,l=0;const h=n.getDirectories();e.tableViews.forEach((f,I)=>{const d=h[l++];d.tag=I,d.checkSum=this.checksum(f),d.offset=a,d.length=f.byteLength,n.view.writeBytes(f,a),a+=t(d.length)});const c=n.createSFNT().head;return c.checkSumAdjustment=0,c.checkSumAdjustment=2981146554-this.checksum(n.view),n}getDirectories(){let e=this.view.byteOffset+12;return Array.from({length:this.numTables},()=>{const t=new $A(this.view.buffer,e);return e+=t.view.byteLength,t})}createSFNT(){return new xA(this.getDirectories().reduce((e,t)=>(e[t.tag]=new DataView(this.view.buffer,this.view.byteOffset+t.offset,t.length),e),{}))}}u(yt,"signature",new Set([65536,1953658213,1954115633])),Zi([y("uint32")],yt.prototype,"scalerType"),Zi([y("uint16")],yt.prototype,"numTables"),Zi([y("uint16")],yt.prototype,"searchRange"),Zi([y("uint16")],yt.prototype,"entrySelector"),Zi([y("uint16")],yt.prototype,"rangeShift");class Yr extends yt{constructor(){super(...arguments);u(this,"format","OpenType");u(this,"mimeType","font/otf")}static from(e){return super.from(e)}}u(Yr,"signature",new Set([1330926671]));var hI=Object.defineProperty,$i=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&hI(A,e,i),i};class kA extends It{constructor(A,e){super(A,e,20)}}$i([y({type:"char",size:4})],kA.prototype,"tag"),$i([y("uint32")],kA.prototype,"offset"),$i([y("uint32")],kA.prototype,"compLength"),$i([y("uint32")],kA.prototype,"origLength"),$i([y("uint32")],kA.prototype,"origChecksum");var cI=Object.defineProperty,pt=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&cI(A,e,i),i};const gt=(BA=class extends Pr{constructor(){super(...arguments);u(this,"format","WOFF");u(this,"mimeType","font/woff");u(this,"_sfnt")}get subfontFormat(){return yt.is(this.flavor)?"TrueType":Yr.is(this.flavor)?"OpenType":"Open"}get sfnt(){return this._sfnt||(this._sfnt=this.createSFNT()),this._sfnt}static is(e){return typeof e=="number"?this.signature.has(e):this.signature.has(ZA(e).getUint32(0))}static checkSum(e){const t=ZA(e),i=t.byteLength,s=Math.floor(i/4);let n=0,o=0;for(;o<s;)n+=t.getUint32(4*o++,!1);let a=i-s*4;if(a){let l=s*4;for(;a>0;)n+=t.getUint8(l)<<a*8,l++,a--}return n%4294967296}static from(e,t=new ArrayBuffer(0)){const i=f=>f+3&-4,s=[];e.tableViews.forEach((f,I)=>{const d=ZA(ed(new Uint8Array(f.buffer,f.byteOffset,f.byteLength)));s.push({tag:I,view:d.byteLength<f.byteLength?d:f,rawView:f})});const n=s.length,o=s.reduce((f,I)=>f+i(I.view.byteLength),0),a=new BA(new ArrayBuffer(44+20*n+o+t.byteLength));a.signature=2001684038,a.flavor=65536,a.length=a.view.byteLength,a.numTables=n,a.totalSFNTSize=12+16*n+s.reduce((f,I)=>f+i(I.rawView.byteLength),0);let l=44+n*20,h=0;const c=a.getDirectories();return s.forEach(f=>{const I=c[h++];I.tag=f.tag,I.offset=l,I.compLength=f.view.byteLength,I.origChecksum=BA.checkSum(f.rawView),I.origLength=f.rawView.byteLength,a.view.writeBytes(f.view,l),l+=i(I.compLength)}),a.view.writeBytes(t),a}getDirectories(){let e=44;return Array.from({length:this.numTables},()=>{const t=new kA(this.view.buffer,e);return e+=t.view.byteLength,t})}createSFNT(){return new xA(this.getDirectories().reduce((e,t)=>{const i=t.tag,s=this.view.byteOffset+t.offset,n=t.compLength,o=t.origLength,a=s+n;return e[i]=n>=o?new DataView(this.view.buffer,s,n):new DataView(td(new Uint8Array(this.view.buffer.slice(s,a))).buffer),e},{}))}},u(BA,"signature",new Set([2001684038])),BA);pt([y("uint32")],gt.prototype,"signature"),pt([y("uint32")],gt.prototype,"flavor"),pt([y("uint32")],gt.prototype,"length"),pt([y("uint16")],gt.prototype,"numTables"),pt([y("uint16")],gt.prototype,"reserved"),pt([y("uint32")],gt.prototype,"totalSFNTSize"),pt([y("uint16")],gt.prototype,"majorVersion"),pt([y("uint16")],gt.prototype,"minorVersion"),pt([y("uint32")],gt.prototype,"metaOffset"),pt([y("uint32")],gt.prototype,"metaLength"),pt([y("uint32")],gt.prototype,"metaOrigLength"),pt([y("uint32")],gt.prototype,"privOffset"),pt([y("uint32")],gt.prototype,"privLength");let Vr=gt;function Ll(r,A=!0){if(yt.is(r))return new yt(r);if(Yr.is(r))return new Yr(r);if(Vr.is(r))return new Vr(r);if(A)throw new Error("Failed to parseFont")}function Ol(r,A=!0){const e=Ll(r,!1);if(e)return e;if(A)throw new Error("Failed to parseFont")}const os=class os{constructor(){u(this,"fallbackFont");u(this,"loading",new Map);u(this,"loaded",new Map);u(this,"familyToUrl",new Map)}setFallbackFont(A){this.fallbackFont=A}async loadFallbackFont(A,e={}){this.fallbackFont=await this.load(A,e)}_createRequest(A,e){const t=new AbortController;return{url:A,when:fetch(A,{...os.defaultRequestInit,...e,signal:t.signal}).then(i=>i.arrayBuffer()),cancel:()=>t.abort()}}injectFontFace(A,e){return document.fonts.add(new FontFace(A,e)),this}injectStyleTag(A,e){const t=document.createElement("style");return t.appendChild(document.createTextNode(`@font-face {
858
+ }`})),Fi([M()],g.ZoomBlurEffect.prototype,"center",2),Fi([M({default:20})],g.ZoomBlurEffect.prototype,"innerRadius",2),Fi([M({default:-1})],g.ZoomBlurEffect.prototype,"radius",2),Fi([M({default:.1})],g.ZoomBlurEffect.prototype,"strength",2),g.ZoomBlurEffect=Fi([ne("ZoomBlurEffect")],g.ZoomBlurEffect);var Uf=Object.defineProperty,vt=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Uf(A,e,i),i};class qe extends iA{constructor(e){super();u(this,"_texture");this.parent=e}_setProperties(e){return super.setProperties(e)}setProperties(e){return this._setProperties(ce(e)?void 0:yA(e))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"color":case"cropRect":case"stretchRect":case"dpi":case"rotateWithShape":case"tile":case"opacity":case"enabled":this.parent.requestRedraw();break;case"image":case"linearGradient":case"radialGradient":this._updateTexture();break}}async loadTexture(){return this.linearGradient||this.radialGradient?new Qr(this.linearGradient??this.radialGradient,this.parent.size.width,this.parent.size.height):ce(this.image)?void 0:await Gt.texture.load(this.image)}async _updateTexture(){this._texture=await this.loadTexture(),this.parent.requestRedraw()}canDraw(){return!!(this.enabled&&(this._texture||this.color))}_getDrawOptions(){let e=!1;const{width:t,height:i}=this.parent.size,s=new ht().scale(1/t,1/i);if(this.cropRect){const{left:n=0,top:o=0,right:a=0,bottom:l=0}=this.cropRect;s.scale(Math.abs(1-(n+a)),Math.abs(1-(o+l))).translate(n,o),e=!0}if(this.tile){const{translateX:n=0,translateY:o=0,scaleX:a=1,scaleY:l=1}=this.tile;s.translate(-n/t,-o/i).scale(1/a,1/l),e=!0}else if(this.stretchRect){const{left:n=0,top:o=0,right:a=0,bottom:l=0}=this.stretchRect;s.scale(Math.abs(1-(-n+-a)),Math.abs(1-(-o+-l))).translate(-n,-o),e=!0}return{disableWrapMode:e,uvTransform:s}}draw(){const e=this.parent.context,{uvTransform:t,disableWrapMode:i}=this._getDrawOptions();e.uvTransform=t,e.fillStyle=this._texture??this.color,e.fill({disableWrapMode:i})}}vt([M({default:!0})],qe.prototype,"enabled"),vt([M()],qe.prototype,"color"),vt([M()],qe.prototype,"image"),vt([M()],qe.prototype,"linearGradient"),vt([M()],qe.prototype,"radialGradient"),vt([M()],qe.prototype,"cropRect"),vt([M()],qe.prototype,"stretchRect"),vt([M()],qe.prototype,"dpi"),vt([M()],qe.prototype,"rotateWithShape"),vt([M()],qe.prototype,"tile"),vt([M()],qe.prototype,"opacity");var Nf=Object.defineProperty,Ff=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Nf(A,e,i),i};class In extends qe{setProperties(A){return super._setProperties(ce(A)?void 0:dh(A))}}Ff([M()],In.prototype,"fillWithShape");var Tf=Object.defineProperty,Gf=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Tf(A,e,i),i};class pn extends qe{setProperties(A){return super._setProperties(ce(A)?void 0:Ih(A))}}Gf([M()],pn.prototype,"fillWithShape");var Lf=Object.defineProperty,xr=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Lf(A,e,i),i};class XA extends qe{setProperties(A){return super._setProperties(ce(A)?void 0:ph(A))}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"width":case"style":case"enabled":this.parent.requestRedraw();break}}canDraw(){return!!(this.enabled&&(this.width||this.color||super.canDraw()))}draw(){const A=this.parent.context,{uvTransform:e,disableWrapMode:t}=this._getDrawOptions();A.lineWidth=this.width||1,A.uvTransform=e,A.strokeStyle=this._texture??this.color,A.stroke({disableWrapMode:t})}}xr([M({default:!0})],XA.prototype,"enabled"),xr([M({default:0})],XA.prototype,"color"),xr([M({default:0})],XA.prototype,"width"),xr([M({default:"solid"})],XA.prototype,"style");var Of=Object.defineProperty,Ti=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Of(A,e,i),i};class bA extends iA{constructor(A){super(),this.parent=A}setProperties(A){return super.setProperties(ce(A)?void 0:Eh(A))}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"color":case"blur":case"offsetX":case"offsetY":this.updateEffect();break}}updateEffect(){const A="__$shadow";let e=this.parent.getNode(A);this.blur||this.offsetX||this.offsetY?(e||(e=new g.DropShadowEffect({name:A}),this.parent.appendChild(e,"back")),e.setProperties(this.getProperties())):e&&this.parent.removeChild(e)}}Ti([M({default:!0})],bA.prototype,"enabled"),Ti([M({default:"#000000"})],bA.prototype,"color"),Ti([M({default:0})],bA.prototype,"blur"),Ti([M({default:0})],bA.prototype,"offsetY"),Ti([M({default:0})],bA.prototype,"offsetX");var Hf=Object.defineProperty,Gi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Hf(A,e,i),i};class DA extends iA{constructor(e){super();u(this,"_path2DSet",new nA);this.parent=e,this._updatePath2DSet()}setProperties(e){return super.setProperties(ce(e)?void 0:Ch(e))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"svg":case"paths":case"viewBox":case"enabled":this._updatePath2DSet(),this.parent.requestRedraw();break}}_updatePath2DSet(){var o;let e;if(this.svg){const a=cn(this.svg);this._path2DSet=gn(a),e=this._path2DSet.viewBox}else(o=this.paths)==null||o.forEach((a,l)=>{const{data:c,...h}=a,f=new Ne;f.style=h,f.addData(c),this._path2DSet.paths[l]=f});if(!e){const a=this._path2DSet.getBoundingBox();e=a?[a.x,a.y,a.width,a.height]:[0,0,1,1]}const[t,i,s,n]=e;this._path2DSet.paths.forEach(a=>{a.applyTransform(new Ke().translate(-t,-i).scale(1/s,1/n))})}draw(){if(this.enabled&&this._path2DSet.paths.length){const e=this.parent.context,{width:t,height:i}=this.parent.size;this._path2DSet.paths.forEach(s=>{e.addPath(s.clone().applyTransform(new Ke().scale(t,i)))})}else this.drawRect()}drawRect(){const e=this.parent.context,{width:t,height:i}=this.parent.size,{borderRadius:s}=this.parent.style;t&&i&&(s?e.roundRect(0,0,t,i,s):e.rect(0,0,t,i))}}Gi([M({default:!0})],DA.prototype,"enabled"),Gi([M()],DA.prototype,"preset"),Gi([M()],DA.prototype,"svg"),Gi([M()],DA.prototype,"viewBox"),Gi([M({default:()=>[]})],DA.prototype,"paths");class Li extends Yt{constructor(A){super(),this.setProperties(A)}}const jA=So();delete jA.top,delete jA.left,delete jA.width,delete jA.height;for(const r in jA)hr(Li,r,{default:jA[r]});var Xe=Uint8Array,dt=Uint16Array,En=Int32Array,Sr=new Xe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Mr=new Xe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Bn=new Xe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yl=function(r,A){for(var e=new dt(31),t=0;t<31;++t)e[t]=A+=1<<r[t-1];for(var i=new En(e[30]),t=1;t<30;++t)for(var s=e[t];s<e[t+1];++s)i[s]=s-e[t]<<5|t;return{b:e,r:i}},ml=yl(Sr,2),wl=ml.b,Cn=ml.r;wl[28]=258,Cn[258]=28;for(var vl=yl(Mr,0),Jf=vl.b,_l=vl.r,Qn=new dt(32768),Qe=0;Qe<32768;++Qe){var lA=(Qe&43690)>>1|(Qe&21845)<<1;lA=(lA&52428)>>2|(lA&13107)<<2,lA=(lA&61680)>>4|(lA&3855)<<4,Qn[Qe]=((lA&65280)>>8|(lA&255)<<8)>>1}for(var Ut=function(r,A,e){for(var t=r.length,i=0,s=new dt(A);i<t;++i)r[i]&&++s[r[i]-1];var n=new dt(A);for(i=1;i<A;++i)n[i]=n[i-1]+s[i-1]<<1;var o;if(e){o=new dt(1<<A);var a=15-A;for(i=0;i<t;++i)if(r[i])for(var l=i<<4|r[i],c=A-r[i],h=n[r[i]-1]++<<c,f=h|(1<<c)-1;h<=f;++h)o[Qn[h]>>a]=l}else for(o=new dt(t),i=0;i<t;++i)r[i]&&(o[i]=Qn[n[r[i]-1]++]>>15-r[i]);return o},cA=new Xe(288),Qe=0;Qe<144;++Qe)cA[Qe]=8;for(var Qe=144;Qe<256;++Qe)cA[Qe]=9;for(var Qe=256;Qe<280;++Qe)cA[Qe]=7;for(var Qe=280;Qe<288;++Qe)cA[Qe]=8;for(var Oi=new Xe(32),Qe=0;Qe<32;++Qe)Oi[Qe]=5;var Kf=Ut(cA,9,0),Yf=Ut(cA,9,1),Vf=Ut(Oi,5,0),zf=Ut(Oi,5,1),yn=function(r){for(var A=r[0],e=1;e<r.length;++e)r[e]>A&&(A=r[e]);return A},_t=function(r,A,e){var t=A/8|0;return(r[t]|r[t+1]<<8)>>(A&7)&e},mn=function(r,A){var e=A/8|0;return(r[e]|r[e+1]<<8|r[e+2]<<16)>>(A&7)},wn=function(r){return(r+7)/8|0},bl=function(r,A,e){return(e==null||e>r.length)&&(e=r.length),new Xe(r.subarray(A,e))},Wf=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],bt=function(r,A,e){var t=new Error(A||Wf[r]);if(t.code=r,Error.captureStackTrace&&Error.captureStackTrace(t,bt),!e)throw t;return t},qf=function(r,A,e,t){var i=r.length,s=0;if(!i||A.f&&!A.l)return e||new Xe(0);var n=!e,o=n||A.i!=2,a=A.i;n&&(e=new Xe(i*3));var l=function(He){var ge=e.length;if(He>ge){var we=new Xe(Math.max(ge*2,He));we.set(e),e=we}},c=A.f||0,h=A.p||0,f=A.b||0,I=A.l,d=A.d,C=A.m,p=A.n,x=i*8;do{if(!I){c=_t(r,h,1);var P=_t(r,h+1,3);if(h+=3,P)if(P==1)I=Yf,d=zf,C=9,p=5;else if(P==2){var m=_t(r,h,31)+257,b=_t(r,h+10,15)+4,D=m+_t(r,h+5,31)+1;h+=14;for(var z=new Xe(D),Ae=new Xe(19),W=0;W<b;++W)Ae[Bn[W]]=_t(r,h+W*3,7);h+=b*3;for(var K=yn(Ae),te=(1<<K)-1,Y=Ut(Ae,K,1),W=0;W<D;){var L=Y[_t(r,h,te)];h+=L&15;var w=L>>4;if(w<16)z[W++]=w;else{var se=0,H=0;for(w==16?(H=3+_t(r,h,3),h+=2,se=z[W-1]):w==17?(H=3+_t(r,h,7),h+=3):w==18&&(H=11+_t(r,h,127),h+=7);H--;)z[W++]=se}}var q=z.subarray(0,m),ie=z.subarray(m);C=yn(q),p=yn(ie),I=Ut(q,C,1),d=Ut(ie,p,1)}else bt(1);else{var w=wn(h)+4,R=r[w-4]|r[w-3]<<8,v=w+R;if(v>i){a&&bt(0);break}o&&l(f+R),e.set(r.subarray(w,v),f),A.b=f+=R,A.p=h=v*8,A.f=c;continue}if(h>x){a&&bt(0);break}}o&&l(f+131072);for(var J=(1<<C)-1,$=(1<<p)-1,N=h;;N=h){var se=I[mn(r,h)&J],U=se>>4;if(h+=se&15,h>x){a&&bt(0);break}if(se||bt(2),U<256)e[f++]=U;else if(U==256){N=h,I=null;break}else{var X=U-254;if(U>264){var W=U-257,ee=Sr[W];X=_t(r,h,(1<<ee)-1)+wl[W],h+=ee}var oe=d[mn(r,h)&$],j=oe>>4;oe||bt(3),h+=oe&15;var ie=Jf[j];if(j>3){var ee=Mr[j];ie+=mn(r,h)&(1<<ee)-1,h+=ee}if(h>x){a&&bt(0);break}o&&l(f+131072);var Ee=f+X;if(f<ie){var at=s-ie,lt=Math.min(ie,Ee);for(at+f<0&&bt(3);f<lt;++f)e[f]=t[at+f]}for(;f<Ee;++f)e[f]=e[f-ie]}}A.l=I,A.p=N,A.b=f,A.f=c,I&&(c=1,A.m=C,A.d=d,A.n=p)}while(!c);return f!=e.length&&n?bl(e,0,f):e.subarray(0,f)},jt=function(r,A,e){e<<=A&7;var t=A/8|0;r[t]|=e,r[t+1]|=e>>8},Hi=function(r,A,e){e<<=A&7;var t=A/8|0;r[t]|=e,r[t+1]|=e>>8,r[t+2]|=e>>16},vn=function(r,A){for(var e=[],t=0;t<r.length;++t)r[t]&&e.push({s:t,f:r[t]});var i=e.length,s=e.slice();if(!i)return{t:Ml,l:0};if(i==1){var n=new Xe(e[0].s+1);return n[e[0].s]=1,{t:n,l:1}}e.sort(function(v,m){return v.f-m.f}),e.push({s:-1,f:25001});var o=e[0],a=e[1],l=0,c=1,h=2;for(e[0]={s:-1,f:o.f+a.f,l:o,r:a};c!=i-1;)o=e[e[l].f<e[h].f?l++:h++],a=e[l!=c&&e[l].f<e[h].f?l++:h++],e[c++]={s:-1,f:o.f+a.f,l:o,r:a};for(var f=s[0].s,t=1;t<i;++t)s[t].s>f&&(f=s[t].s);var I=new dt(f+1),d=_n(e[c-1],I,0);if(d>A){var t=0,C=0,p=d-A,x=1<<p;for(s.sort(function(m,b){return I[b.s]-I[m.s]||m.f-b.f});t<i;++t){var P=s[t].s;if(I[P]>A)C+=x-(1<<d-I[P]),I[P]=A;else break}for(C>>=p;C>0;){var w=s[t].s;I[w]<A?C-=1<<A-I[w]++-1:++t}for(;t>=0&&C;--t){var R=s[t].s;I[R]==A&&(--I[R],++C)}d=A}return{t:new Xe(I),l:d}},_n=function(r,A,e){return r.s==-1?Math.max(_n(r.l,A,e+1),_n(r.r,A,e+1)):A[r.s]=e},Dl=function(r){for(var A=r.length;A&&!r[--A];);for(var e=new dt(++A),t=0,i=r[0],s=1,n=function(a){e[t++]=a},o=1;o<=A;++o)if(r[o]==i&&o!=A)++s;else{if(!i&&s>2){for(;s>138;s-=138)n(32754);s>2&&(n(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(n(i),--s;s>6;s-=6)n(8304);s>2&&(n(s-3<<5|8208),s=0)}for(;s--;)n(i);s=1,i=r[o]}return{c:e.subarray(0,t),n:A}},Ji=function(r,A){for(var e=0,t=0;t<A.length;++t)e+=r[t]*A[t];return e},xl=function(r,A,e){var t=e.length,i=wn(A+2);r[i]=t&255,r[i+1]=t>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var s=0;s<t;++s)r[i+s+4]=e[s];return(i+4+t)*8},Sl=function(r,A,e,t,i,s,n,o,a,l,c){jt(A,c++,e),++i[256];for(var h=vn(i,15),f=h.t,I=h.l,d=vn(s,15),C=d.t,p=d.l,x=Dl(f),P=x.c,w=x.n,R=Dl(C),v=R.c,m=R.n,b=new dt(19),D=0;D<P.length;++D)++b[P[D]&31];for(var D=0;D<v.length;++D)++b[v[D]&31];for(var z=vn(b,7),Ae=z.t,W=z.l,K=19;K>4&&!Ae[Bn[K-1]];--K);var te=l+5<<3,Y=Ji(i,cA)+Ji(s,Oi)+n,L=Ji(i,f)+Ji(s,C)+n+14+3*K+Ji(b,Ae)+2*b[16]+3*b[17]+7*b[18];if(a>=0&&te<=Y&&te<=L)return xl(A,c,r.subarray(a,a+l));var se,H,q,ie;if(jt(A,c,1+(L<Y)),c+=2,L<Y){se=Ut(f,I,0),H=f,q=Ut(C,p,0),ie=C;var J=Ut(Ae,W,0);jt(A,c,w-257),jt(A,c+5,m-1),jt(A,c+10,K-4),c+=14;for(var D=0;D<K;++D)jt(A,c+3*D,Ae[Bn[D]]);c+=3*K;for(var $=[P,v],N=0;N<2;++N)for(var U=$[N],D=0;D<U.length;++D){var X=U[D]&31;jt(A,c,J[X]),c+=Ae[X],X>15&&(jt(A,c,U[D]>>5&127),c+=U[D]>>12)}}else se=Kf,H=cA,q=Vf,ie=Oi;for(var D=0;D<o;++D){var ee=t[D];if(ee>255){var X=ee>>18&31;Hi(A,c,se[X+257]),c+=H[X+257],X>7&&(jt(A,c,ee>>23&31),c+=Sr[X]);var oe=ee&31;Hi(A,c,q[oe]),c+=ie[oe],oe>3&&(Hi(A,c,ee>>5&8191),c+=Mr[oe])}else Hi(A,c,se[ee]),c+=H[ee]}return Hi(A,c,se[256]),c+H[256]},Xf=new En([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ml=new Xe(0),jf=function(r,A,e,t,i,s){var n=s.z||r.length,o=new Xe(t+n+5*(1+Math.ceil(n/7e3))+i),a=o.subarray(t,o.length-i),l=s.l,c=(s.r||0)&7;if(A){c&&(a[0]=s.r>>3);for(var h=Xf[A-1],f=h>>13,I=h&8191,d=(1<<e)-1,C=s.p||new dt(32768),p=s.h||new dt(d+1),x=Math.ceil(e/3),P=2*x,w=function(Je){return(r[Je]^r[Je+1]<<x^r[Je+2]<<P)&d},R=new En(25e3),v=new dt(288),m=new dt(32),b=0,D=0,z=s.i||0,Ae=0,W=s.w||0,K=0;z+2<n;++z){var te=w(z),Y=z&32767,L=p[te];if(C[Y]=L,p[te]=Y,W<=z){var se=n-z;if((b>7e3||Ae>24576)&&(se>423||!l)){c=Sl(r,a,0,R,v,m,D,Ae,K,z-K,c),Ae=b=D=0,K=z;for(var H=0;H<286;++H)v[H]=0;for(var H=0;H<30;++H)m[H]=0}var q=2,ie=0,J=I,$=Y-L&32767;if(se>2&&te==w(z-$))for(var N=Math.min(f,se)-1,U=Math.min(32767,z),X=Math.min(258,se);$<=U&&--J&&Y!=L;){if(r[z+q]==r[z+q-$]){for(var ee=0;ee<X&&r[z+ee]==r[z+ee-$];++ee);if(ee>q){if(q=ee,ie=$,ee>N)break;for(var oe=Math.min($,ee-2),j=0,H=0;H<oe;++H){var Ee=z-$+H&32767,at=C[Ee],lt=Ee-at&32767;lt>j&&(j=lt,L=Ee)}}}Y=L,L=C[Y],$+=Y-L&32767}if(ie){R[Ae++]=268435456|Cn[q]<<18|_l[ie];var He=Cn[q]&31,ge=_l[ie]&31;D+=Sr[He]+Mr[ge],++v[257+He],++m[ge],W=z+q,++b}else R[Ae++]=r[z],++v[r[z]]}}for(z=Math.max(z,W);z<n;++z)R[Ae++]=r[z],++v[r[z]];c=Sl(r,a,l,R,v,m,D,Ae,K,z-K,c),l||(s.r=c&7|a[c/8|0]<<3,c-=7,s.h=p,s.p=C,s.i=z,s.w=W)}else{for(var z=s.w||0;z<n+l;z+=65535){var we=z+65535;we>=n&&(a[c/8|0]=l,we=n),c=xl(a,c+1,r.subarray(z,we))}s.i=n}return bl(o,0,t+wn(c)+i)},Rl=function(){var r=1,A=0;return{p:function(e){for(var t=r,i=A,s=e.length|0,n=0;n!=s;){for(var o=Math.min(n+2655,s);n<o;++n)i+=t+=e[n];t=(t&65535)+15*(t>>16),i=(i&65535)+15*(i>>16)}r=t,A=i},d:function(){return r%=65521,A%=65521,(r&255)<<24|(r&65280)<<8|(A&255)<<8|A>>8}}},Zf=function(r,A,e,t,i){if(!i&&(i={l:1},A.dictionary)){var s=A.dictionary.subarray(-32768),n=new Xe(s.length+r.length);n.set(s),n.set(r,s.length),r=n,i.w=s.length}return jf(r,A.level==null?6:A.level,A.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+A.mem,e,t,i)},Pl=function(r,A,e){for(;e;++A)r[A]=e,e>>>=8},$f=function(r,A){var e=A.level,t=e==0?0:e<6?1:e==9?3:2;if(r[0]=120,r[1]=t<<6|(A.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,A.dictionary){var i=Rl();i.p(A.dictionary),Pl(r,2,i.d())}},ed=function(r,A){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&bt(6,"invalid zlib data"),(r[1]>>5&1)==1&&bt(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function td(r,A){A||(A={});var e=Rl();e.p(r);var t=Zf(r,A,A.dictionary?6:2,4);return $f(t,A),Pl(t,t.length-4,e.d()),t}function Ad(r,A){return qf(r.subarray(ed(r),-4),{i:2},A,A)}var id=typeof TextDecoder<"u"&&new TextDecoder,rd=0;try{id.decode(Ml,{stream:!0}),rd=1}catch{}const sd="modern-font";function Ki(r,A){if(!r)throw new Error(`[${sd}] ${A}`)}function nd(r){if("buffer"in r){const A=r.buffer;return r.byteOffset>0||r.byteLength<r.buffer.byteLength?A.slice(r.byteOffset,r.byteOffset+r.byteLength):A}else return r}function ZA(r){return"buffer"in r?new DataView(r.buffer,r.byteOffset,r.byteLength):new DataView(r)}function od(r){let A="";for(let e=0,t=r.length,i;e<t;e++)i=r.charCodeAt(e),i!==0&&(A+=String.fromCharCode(i));return A}function Rr(r){r=od(r);const A=[];for(let e=0,t=r.length,i;e<t;e++)i=r.charCodeAt(e),A.push(i>>8),A.push(i&255);return A}function ad(r){let A="";for(let e=0,t=r.length;e<t;e++)r[e]<127?A+=String.fromCharCode(r[e]):A+=`%${(256+r[e]).toString(16).slice(1)}`;return unescape(A)}function ld(r){let A="";for(let e=0,t=r.length;e<t;e+=2)A+=String.fromCharCode((r[e]<<8)+r[e+1]);return A}var cd=Object.defineProperty,je=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&cd(A,e,i),i};const Yi={int8:1,int16:2,int32:4,uint8:1,uint16:2,uint32:4,float32:4,float64:8,fixed:4,longDateTime:8,char:1};function Ze(){return function(r,A){Object.defineProperty(r.constructor.prototype,A,{get(){if(typeof A=="string"){if(A.startsWith("read"))return(...e)=>this.read(A.substring(4).toLowerCase(),...e);if(A.startsWith("write"))return(...e)=>this.write(A.substring(5).toLowerCase(),...e)}},configurable:!0,enumerable:!0})}}class Fe extends DataView{constructor(e,t,i,s){super(nd(e),t,i);u(this,"cursor",0);this.littleEndian=s}readColumn(e){if(e.size){const t=Array.from({length:e.size},(i,s)=>this.read(e.type,e.offset+s));switch(e.type){case"char":return t.join("");default:return t}}else return this.read(e.type,e.offset)}writeColumn(e,t){e.size?Array.from({length:e.size},(i,s)=>{this.write(e.type,t[s],e.offset+s)}):this.write(e.type,t,e.offset)}read(e,t=this.cursor,i=this.littleEndian){var l;switch(e){case"char":return this.readChar(t);case"fixed":return this.readFixed(t,i);case"longDateTime":return this.readLongDateTime(t,i)}const s=`get${e.replace(/^\S/,c=>c.toUpperCase())}`,n=this,o=(l=n[s])==null?void 0:l.bind(n),a=o==null?void 0:o(t,i);return this.cursor+=Yi[e],a}readUint24(e=this.cursor){const[t,i,s]=this.readBytes(e,3);return(t<<16)+(i<<8)+s}readBytes(e,t){t==null&&(t=e,e=this.cursor);const i=[];for(let s=0;s<t;++s)i.push(this.getUint8(e+s));return this.cursor=e+t,i}readString(e,t){const i=this.readBytes(e,t);let s="";for(let n=0,o=i.length;n<o;n++)s+=String.fromCharCode(i[n]);return s}readFixed(e,t){const i=this.readInt32(e,t)/65536;return Math.ceil(i*1e5)/1e5}readLongDateTime(e=this.cursor,t){const i=this.readUint32(e+4,t),s=new Date;return s.setTime(i*1e3+-20775456e5),s}readChar(e){return this.readString(e,1)}write(e,t,i=this.cursor,s=this.littleEndian){var c;switch(e){case"char":return this.writeChar(t,i);case"fixed":return this.writeFixed(t,i);case"longDateTime":return this.writeLongDateTime(t,i)}const n=`set${e.replace(/^\S/,h=>h.toUpperCase())}`,o=this,a=(c=o[n])==null?void 0:c.bind(o),l=a==null?void 0:a(i,t,s);return this.cursor+=Yi[e.toLowerCase()],l}writeString(e="",t=this.cursor){const i=e.replace(/[^\x00-\xFF]/g,"11").length;this.seek(t);for(let s=0,n=e.length,o;s<n;++s)o=e.charCodeAt(s)||0,o>127?this.writeUint16(o):this.writeUint8(o);return this.cursor+=i,this}writeChar(e,t){return this.writeString(e,t)}writeFixed(e,t){return this.writeInt32(Math.round(e*65536),t),this}writeLongDateTime(e,t=this.cursor){typeof e>"u"?e=-20775456e5:typeof e.getTime=="function"?e=e.getTime():/^\d+$/.test(e)?e=+e:e=Date.parse(e);const s=Math.round((e- -20775456e5)/1e3);return this.writeUint32(0,t),this.writeUint32(s,t+4),this}writeBytes(e,t=this.cursor){let i;if(Array.isArray(e)){i=e.length;for(let s=0;s<i;++s)this.setUint8(t+s,e[s])}else{const s=ZA(e);i=s.byteLength;for(let n=0;n<i;++n)this.setUint8(t+n,s.getUint8(n))}return this.cursor=t+i,this}seek(e){return this.cursor=e,this}}je([Ze()],Fe.prototype,"readInt8"),je([Ze()],Fe.prototype,"readInt16"),je([Ze()],Fe.prototype,"readInt32"),je([Ze()],Fe.prototype,"readUint8"),je([Ze()],Fe.prototype,"readUint16"),je([Ze()],Fe.prototype,"readUint32"),je([Ze()],Fe.prototype,"readFloat32"),je([Ze()],Fe.prototype,"readFloat64"),je([Ze()],Fe.prototype,"writeInt8"),je([Ze()],Fe.prototype,"writeInt16"),je([Ze()],Fe.prototype,"writeInt32"),je([Ze()],Fe.prototype,"writeUint8"),je([Ze()],Fe.prototype,"writeUint16"),je([Ze()],Fe.prototype,"writeUint32"),je([Ze()],Fe.prototype,"writeFloat32"),je([Ze()],Fe.prototype,"writeFloat64");const kl=new WeakMap;function y(r){const A=typeof r=="object"?r:{type:r},{size:e=1,type:t}=A;return(i,s)=>{if(typeof s!="string")return;let n=kl.get(i);n||(n={columns:[],byteLength:0},kl.set(i,n));const o={...A,name:s,byteLength:e*Yi[t],offset:A.offset??n.columns.reduce((a,l)=>a+l.byteLength,0)};n.columns.push(o),n.byteLength=n.columns.reduce((a,l)=>a+Yi[l.type]*(l.size??1),0),Object.defineProperty(i.constructor.prototype,s,{get(){return this.view.readColumn(o)},set(a){this.view.writeColumn(o,a)},configurable:!0,enumerable:!0})}}class It{constructor(A,e,t,i){u(this,"view");this.view=new Fe(A,e,t,i)}}class Pr extends It{get buffer(){return this.view.buffer}toBuffer(){return this.view.buffer.slice(this.view.byteOffset,this.view.byteOffset+this.view.byteLength)}toBlob(){return new Blob([new Uint8Array(this.view.buffer,this.view.byteOffset,this.view.byteLength)],{type:this.mimeType})}toFontFace(A){return new FontFace(A,this.view.buffer)}}var hd=Object.defineProperty,rt=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&hd(A,e,i),i};const st=class Tc extends Pr{constructor(){super(...arguments);u(this,"format","EmbeddedOpenType");u(this,"mimeType","application/vnd.ms-fontobject")}static from(e){const t=e.sfnt,s=t.name.names,n=Rr(s.fontFamily||""),o=n.length,a=Rr(s.fontStyle||""),l=a.length,c=Rr(s.version||""),h=c.length,f=Rr(s.fullName||""),I=f.length,d=86+o+4+l+4+h+4+I+2+e.view.byteLength,C=new Tc(new ArrayBuffer(d),0,d,!0);C.EOTSize=C.view.byteLength,C.FontDataSize=e.view.byteLength,C.Version=131073,C.Flags=0,C.Charset=1,C.MagicNumber=20556,C.Padding1=0,C.CheckSumAdjustment=t.head.checkSumAdjustment;const p=t.os2;return p&&(C.FontPANOSE=p.fontPANOSE,C.Italic=p.fsSelection,C.Weight=p.usWeightClass,C.fsType=p.fsType,C.UnicodeRange=p.ulUnicodeRange,C.CodePageRange=p.ulCodePageRange),C.view.writeUint16(o),C.view.writeBytes(n),C.view.writeUint16(0),C.view.writeUint16(l),C.view.writeBytes(a),C.view.writeUint16(0),C.view.writeUint16(h),C.view.writeBytes(c),C.view.writeUint16(0),C.view.writeUint16(I),C.view.writeBytes(f),C.view.writeUint16(0),C.view.writeUint16(0),C.view.writeBytes(e.view),C}};rt([y("uint32")],st.prototype,"EOTSize"),rt([y("uint32")],st.prototype,"FontDataSize"),rt([y("uint32")],st.prototype,"Version"),rt([y("uint32")],st.prototype,"Flags"),rt([y({type:"uint8",size:10})],st.prototype,"FontPANOSE"),rt([y("uint8")],st.prototype,"Charset"),rt([y("uint8")],st.prototype,"Italic"),rt([y("uint32")],st.prototype,"Weight"),rt([y("uint16")],st.prototype,"fsType"),rt([y("uint16")],st.prototype,"MagicNumber"),rt([y({type:"uint8",size:16})],st.prototype,"UnicodeRange"),rt([y({type:"uint8",size:8})],st.prototype,"CodePageRange"),rt([y("uint32")],st.prototype,"CheckSumAdjustment"),rt([y({type:"uint8",size:16})],st.prototype,"Reserved"),rt([y("uint16")],st.prototype,"Padding1");var gd=Object.defineProperty,kr=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&gd(A,e,i),i};class $A extends It{constructor(A,e){super(A,e,16)}}kr([y({type:"char",size:4})],$A.prototype,"tag"),kr([y("uint32")],$A.prototype,"checkSum"),kr([y("uint32")],$A.prototype,"offset"),kr([y("uint32")],$A.prototype,"length");const bn=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],ud=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];class Dn{constructor(A){u(this,"index");u(this,"name");u(this,"isComposite",!1);u(this,"components",[]);u(this,"pathCommands",[]);const e={...A};if(this.index=e.index??0,e.name===".notdef"?e.unicode=void 0:e.name===".null"&&(e.unicode=0),e.unicode===0&&e.name!==".null")throw new Error('The unicode value "0" is reserved for the glyph name ".null" and cannot be used by any other glyph.');this.name=e.name??null,e.unicode&&(this.unicode=e.unicode),e.unicodes?this.unicodes=e.unicodes:e.unicode&&(this.unicodes=[e.unicode])}getPathCommands(A=0,e=0,t=72,i={},s){const n=1/((s==null?void 0:s.unitsPerEm)??1e3)*t,{xScale:o=n,yScale:a=n}=i,l=this.pathCommands,c=[];for(let h=0,f=l.length;h<f;h+=1){const I=l[h];I.type==="M"?c.push({type:"M",x:A+I.x*o,y:e+-I.y*a}):I.type==="L"?c.push({type:"L",x:A+I.x*o,y:e+-I.y*a}):I.type==="Q"?c.push({type:"Q",x1:A+I.x1*o,y1:e+-I.y1*a,x:A+I.x*o,y:e+-I.y*a}):I.type==="C"?c.push({type:"C",x1:A+I.x1*o,y1:e+-I.y1*a,x2:A+I.x2*o,y2:e+-I.y2*a,x:A+I.x*o,y:e+-I.y*a}):I.type==="Z"&&c.push({type:"Z"})}return c}}class fd extends Dn{parse(A,e,t){const i=this,{nominalWidthX:s,defaultWidthX:n,gsubrsBias:o,subrsBias:a}=A,l=A.topDict.paintType,c=this.index;let h,f,I,d;const C=[],p=[];let x=0,P=!1,w=!1,R=n,v=0,m=0;function b(Y,L){C.push({type:"L",x:Y,y:L})}function D(Y,L,se,H,q,ie){C.push({type:"C",x1:Y,y1:L,x2:se,y2:H,x:q,y:ie})}function z(Y,L){w&&l!==2&&Ae(),w=!0,C.push({type:"M",x:Y,y:L})}function Ae(){C.push({type:"Z"})}function W(Y){C.push(...Y)}function K(){p.length%2!==0&&!P&&(R=p.shift()+s),x+=p.length>>1,p.length=0,P=!0}function te(Y){let L,se,H,q,ie,J,$,N,U,X,ee,oe,j=0;for(;j<Y.length;){let Ee=Y[j++];switch(Ee){case 1:K();break;case 3:K();break;case 4:p.length>1&&!P&&(R=p.shift()+s,P=!0),m+=p.pop(),z(v,m);break;case 5:for(;p.length>0;)v+=p.shift(),m+=p.shift(),b(v,m);break;case 6:for(;p.length>0&&(v+=p.shift(),b(v,m),p.length!==0);)m+=p.shift(),b(v,m);break;case 7:for(;p.length>0&&(m+=p.shift(),b(v,m),p.length!==0);)v+=p.shift(),b(v,m);break;case 8:for(;p.length>0;)h=v+p.shift(),f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+p.shift(),D(h,f,I,d,v,m);break;case 10:ie=p.pop()+a,J=A.subrs[ie],J&&te(J);break;case 11:return;case 12:switch(Ee=Y[j],j+=1,Ee){case 35:h=v+p.shift(),f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d+p.shift(),U=$+p.shift(),X=N+p.shift(),ee=U+p.shift(),oe=X+p.shift(),v=ee+p.shift(),m=oe+p.shift(),p.shift(),D(h,f,I,d,$,N),D(U,X,ee,oe,v,m);break;case 34:h=v+p.shift(),f=m,I=h+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d,U=$+p.shift(),X=d,ee=U+p.shift(),oe=m,v=ee+p.shift(),D(h,f,I,d,$,N),D(U,X,ee,oe,v,m);break;case 36:h=v+p.shift(),f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d,U=$+p.shift(),X=d,ee=U+p.shift(),oe=X+p.shift(),v=ee+p.shift(),D(h,f,I,d,$,N),D(U,X,ee,oe,v,m);break;case 37:h=v+p.shift(),f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),$=I+p.shift(),N=d+p.shift(),U=$+p.shift(),X=N+p.shift(),ee=U+p.shift(),oe=X+p.shift(),Math.abs(ee-v)>Math.abs(oe-m)?v=ee+p.shift():m=oe+p.shift(),D(h,f,I,d,$,N),D(U,X,ee,oe,v,m);break;default:console.warn(`Glyph ${c}: unknown operator ${1200+Ee}`),p.length=0}break;case 14:if(p.length>=4){const at=bn[p.pop()],lt=bn[p.pop()],He=p.pop(),ge=p.pop();if(at&&lt){i.isComposite=!0,i.components=[];const we=A.charset.indexOf(at),Je=A.charset.indexOf(lt);i.components.push({glyphIndex:Je,dx:0,dy:0}),i.components.push({glyphIndex:we,dx:ge,dy:He}),W(t.get(Je).pathCommands);const We=JSON.parse(JSON.stringify(t.get(we).pathCommands));for(let xe=0;xe<We.length;xe+=1){const tt=We[xe];tt.type!=="Z"&&(tt.x+=ge,tt.y+=He),(tt.type==="Q"||tt.type==="C")&&(tt.x1+=ge,tt.y1+=He),tt.type==="C"&&(tt.x2+=ge,tt.y2+=He)}W(We)}}else p.length>0&&!P&&(R=p.shift()+s,P=!0);w&&l!==2&&(Ae(),w=!1);break;case 18:K();break;case 19:case 20:K(),j+=x+7>>3;break;case 21:p.length>2&&!P&&(R=p.shift()+s,P=!0),m+=p.pop(),v+=p.pop(),z(v,m);break;case 22:p.length>1&&!P&&(R=p.shift()+s,P=!0),v+=p.pop(),z(v,m);break;case 23:K();break;case 24:for(;p.length>2;)h=v+p.shift(),f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+p.shift(),D(h,f,I,d,v,m);v+=p.shift(),m+=p.shift(),b(v,m);break;case 25:for(;p.length>6;)v+=p.shift(),m+=p.shift(),b(v,m);h=v+p.shift(),f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+p.shift(),D(h,f,I,d,v,m);break;case 26:for(p.length%2&&(v+=p.shift());p.length>0;)h=v,f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),v=I,m=d+p.shift(),D(h,f,I,d,v,m);break;case 27:for(p.length%2&&(m+=p.shift());p.length>0;)h=v+p.shift(),f=m,I=h+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d,D(h,f,I,d,v,m);break;case 28:L=Y[j],se=Y[j+1],p.push((L<<24|se<<16)>>16),j+=2;break;case 29:ie=p.pop()+o,J=A.gsubrs[ie],J&&te(J);break;case 30:for(;p.length>0&&(h=v,f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+(p.length===1?p.shift():0),D(h,f,I,d,v,m),p.length!==0);)h=v+p.shift(),f=m,I=h+p.shift(),d=f+p.shift(),m=d+p.shift(),v=I+(p.length===1?p.shift():0),D(h,f,I,d,v,m);break;case 31:for(;p.length>0&&(h=v+p.shift(),f=m,I=h+p.shift(),d=f+p.shift(),m=d+p.shift(),v=I+(p.length===1?p.shift():0),D(h,f,I,d,v,m),p.length!==0);)h=v,f=m+p.shift(),I=h+p.shift(),d=f+p.shift(),v=I+p.shift(),m=d+(p.length===1?p.shift():0),D(h,f,I,d,v,m);break;default:Ee<32?console.warn(`Glyph ${c}: unknown operator ${Ee}`):Ee<247?p.push(Ee-139):Ee<251?(L=Y[j],j+=1,p.push((Ee-247)*256+L+108)):Ee<255?(L=Y[j],j+=1,p.push(-(Ee-251)*256-L-108)):(L=Y[j],se=Y[j+1],H=Y[j+2],q=Y[j+3],j+=4,p.push((L<<24|se<<16|H<<8|q)/65536))}}}te(e),this.pathCommands=C,P&&(this.advanceWidth=R)}}class xn{constructor(A){u(this,"_items",[]);this._sfnt=A}get(A){const e=this._items[A];let t;if(e)t=e;else{t=this._get(A);const i=this._sfnt.hmtx.metrics[A];i&&(t.advanceWidth=t.advanceWidth||i.advanceWidth,t.leftSideBearing=t.leftSideBearing||i.leftSideBearing);const s=this._sfnt.cmap.glyphIndexToUnicodesMap.get(A);s&&(t.unicode??(t.unicode=s[0]),t.unicodes??(t.unicodes=s)),this._items[A]=t}return t}}class dd extends xn{get length(){return this._sfnt.cff.charStringsIndex.offsets.length-1}_get(A){const e=this._sfnt.cff,t=new fd({index:A});return t.parse(e,e.charStringsIndex.get(A),this),t.name=e.charset[A],t}}var Id=Object.defineProperty,Ul=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Id(A,e,i),i};class Ur extends It{constructor(e,t,i,s){super(e,t,i,s);u(this,"_offsets");u(this,"_objects");this._init()}get offsets(){return this._offsets??(this._offsets=this.readOffsets())}get objects(){return this._objects??(this._objects=this.readObjects())}_init(){const e=this.view,t=this.count,i=this.offsetSize;this.objectOffset=(t+1)*i+2,this.endOffset=e.byteOffset+this.objectOffset+this.offsets[t]}readOffsets(){const e=this.view,t=this.count,i=this.offsetSize;e.seek(3);const s=[];for(let n=0,o=t+1;n<o;n++){const a=this.view;let l=0;for(let c=0;c<i;c++)l<<=8,l+=a.readUint8();s.push(l)}return s}readObjects(){const e=[];for(let t=0,i=this.count;t<i;t++)e.push(this.get(t));return e}get(e){const t=this.offsets,i=this.objectOffset,s=i+t[e],o=i+t[e+1]-s;return this._isString?this.view.readString(s,o):this.view.readBytes(s,o)}}Ul([y("uint16")],Ur.prototype,"count"),Ul([y("uint8")],Ur.prototype,"offsetSize");class Nr extends Ur{constructor(){super(...arguments);u(this,"_isString",!1)}}class Nl extends Ur{constructor(){super(...arguments);u(this,"_isString",!0)}}const pd=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],Ed=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],Bd=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],Cd=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];function Fr(r,A){return A<=390?pd[A]:r[A-391]}function ye(r,A="number",e){return(t,i)=>{if(typeof i!="string")return;const s={type:A,operator:r,default:e??A==="number"?0:void 0};Object.defineProperty(t.constructor.prototype,i,{get(){return this._getProp(s)},set(n){this._setProp(s,n)},configurable:!0,enumerable:!0})}}class Fl extends It{constructor(){super(...arguments);u(this,"_dict");u(this,"_stringIndex")}get dict(){return this._dict??(this._dict=this._readDict())}setStringIndex(e){return this._stringIndex=e,this}_readFloatOperand(){const e=this.view;let t="";const i=15,s=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];for(;;){const n=e.readUint8(),o=n>>4,a=n&15;if(o===i||(t+=s[o],a===i))break;t+=s[a]}return Number.parseFloat(t)}_readOperand(e){const t=this.view;let i,s,n,o;if(e===28)return i=t.readUint8(),s=t.readUint8(),i<<8|s;if(e===29)return i=t.readUint8(),s=t.readUint8(),n=t.readUint8(),o=t.readUint8(),i<<24|s<<16|n<<8|o;if(e===30)return this._readFloatOperand();if(e>=32&&e<=246)return e-139;if(e>=247&&e<=250)return i=t.readUint8(),(e-247)*256+i+108;if(e>=251&&e<=254)return i=t.readUint8(),-(e-251)*256-i-108;throw new Error(`invalid b0 ${e}, at: ${t.cursor}`)}_readDict(){const e=this.view;e.seek(0);let t=[];const i=e.cursor+e.byteLength,s={};for(;e.cursor<i;){let n=e.readUint8();n<=21?(n===12&&(n=1200+e.readUint8()),s[n]=t,t=[]):t.push(this._readOperand(n))}return s}_getProp(e){var i;const t=this.dict[e.operator]??e.default;switch(e.type){case"number":return t[0];case"string":return Fr(((i=this._stringIndex)==null?void 0:i.objects)??[],t[0]);case"number[]":return t}return t}_setProp(e,t){}}var Qd=Object.defineProperty,Sn=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Qd(A,e,i),i};class Tr extends Fl{}Sn([ye(19)],Tr.prototype,"subrs"),Sn([ye(20)],Tr.prototype,"defaultWidthX"),Sn([ye(21)],Tr.prototype,"nominalWidthX");var yd=Object.defineProperty,De=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&yd(A,e,i),i};class ve extends Fl{}De([ye(0,"string")],ve.prototype,"version"),De([ye(1,"string")],ve.prototype,"notice"),De([ye(1200,"string")],ve.prototype,"copyright"),De([ye(2,"string")],ve.prototype,"fullName"),De([ye(3,"string")],ve.prototype,"familyName"),De([ye(4,"string")],ve.prototype,"weight"),De([ye(1201)],ve.prototype,"isFixedPitch"),De([ye(1202)],ve.prototype,"italicAngle"),De([ye(1203,"number",-100)],ve.prototype,"underlinePosition"),De([ye(1204,"number",50)],ve.prototype,"underlineThickness"),De([ye(1205)],ve.prototype,"paintType"),De([ye(1206,"number",2)],ve.prototype,"charstringType"),De([ye(1207,"number[]",[.001,0,0,.001,0,0])],ve.prototype,"fontMatrix"),De([ye(13)],ve.prototype,"uniqueId"),De([ye(5,"number[]",[0,0,0,0])],ve.prototype,"fontBBox"),De([ye(1208)],ve.prototype,"strokeWidth"),De([ye(14)],ve.prototype,"xuid"),De([ye(15)],ve.prototype,"charset"),De([ye(16)],ve.prototype,"encoding"),De([ye(17)],ve.prototype,"charStrings"),De([ye(18,"number[]",[0,0])],ve.prototype,"private");function Ye(r,A=r){return e=>{xA.tableDefinitions.set(r,{tag:r,prop:A,class:e}),Object.defineProperty(xA.prototype,A,{get(){return this.get(r)},set(t){return this.set(r,t)},configurable:!0,enumerable:!0})}}const FA=class FA{constructor(A){u(this,"tables",new Map);u(this,"tableViews",new Map);(A instanceof Map?A:new Map(Object.entries(A))).forEach((t,i)=>{this.tableViews.set(i,new DataView(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)))})}get hasGlyf(){return this.tableViews.has("glyf")}get names(){return this.name.names}get unitsPerEm(){return this.head.unitsPerEm}get ascender(){return this.hhea.ascent}get descender(){return this.hhea.descent}get createdTimestamp(){return this.head.created}get modifiedTimestamp(){return this.head.modified}get numGlyphs(){return this.maxp.numGlyphs}get unicodes(){return this.cmap.glyphIndexToUnicodesMap}get glyphs(){return this.hasGlyf?this.glyf.glyphs:this.cff.glyphs}charToGlyphIndex(A){let e=this.cmap.unicodeToGlyphIndexMap.get(A.codePointAt(0));if(e===void 0&&!this.hasGlyf){const{encoding:t,charset:i}=this.cff;e=i.indexOf(t[A.codePointAt(0)])}return e??0}charToGlyph(A){return this.glyphs.get(this.charToGlyphIndex(A))}textToGlyphIndexes(A){const e=[];for(const t of A)e.push(this.charToGlyphIndex(t));return e}textToGlyphs(A){const e=this.glyphs,t=this.textToGlyphIndexes(A),i=t.length,s=Array.from({length:i}),n=e.get(0);for(let o=0;o<i;o+=1)s[o]=e.get(t[o])||n;return s}getPathCommands(A,e,t,i,s){const n=[];return this.forEachGlyph(A,e,t,i,s,(o,a,l,c,h)=>{n.push(...o.getPathCommands(a,l,c,h,this))}),n}getAdvanceWidth(A,e,t){return this.forEachGlyph(A,0,0,e,t,()=>{})}forEachGlyph(A,e=0,t=0,i=72,s={},n){const o=1/this.unitsPerEm*i,a=this.textToGlyphs(A);for(let l=0;l<a.length;l+=1){const c=a[l];n.call(this,c,e,t,i,s),c.advanceWidth&&(e+=c.advanceWidth*o),s.letterSpacing?e+=s.letterSpacing*i:s.tracking&&(e+=s.tracking/1e3*i)}return e}clone(){return new FA(this.tableViews)}delete(A){const e=FA.tableDefinitions.get(A);return e?(this.tableViews.delete(A),this.tables.delete(e.prop),this):this}set(A,e){const t=FA.tableDefinitions.get(A);return t&&this.tables.set(t.prop,e),this.tableViews.set(A,e.view),this}get(A){const e=FA.tableDefinitions.get(A);if(!e)return;let t=this.tables.get(e.prop);if(!t){const i=e.class;if(i){const s=this.tableViews.get(A);if(!s)return;t=new i(s.buffer,s.byteOffset,s.byteLength).setSFNT(this),this.tables.set(e.prop,t)}}return t}};u(FA,"tableDefinitions",new Map);let xA=FA;class $e extends It{setSFNT(A){return this._sfnt=A,this}getSFNT(){return this._sfnt}}var md=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,Vi=(r,A,e,t)=>{for(var i=t>1?void 0:t?wd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&md(A,e,i),i};let SA=class extends $e{constructor(A,e,t,i){super(A,e,t,i);u(this,"_glyphs");u(this,"privateDict");u(this,"subrsIndex");this._init()}get glyphs(){return this._glyphs??(this._glyphs=new dd(this._sfnt))}get gsubrs(){return this.globalSubrIndex.objects}get gsubrsBias(){return this._calcSubroutineBias(this.globalSubrIndex.objects)}get defaultWidthX(){var A;return((A=this.privateDict)==null?void 0:A.defaultWidthX)??0}get nominalWidthX(){var A;return((A=this.privateDict)==null?void 0:A.nominalWidthX)??0}get subrs(){var A;return((A=this.subrsIndex)==null?void 0:A.objects)??[]}get subrsBias(){return this._calcSubroutineBias(this.subrs)}_init(){const A=this.view,{buffer:e,byteOffset:t}=A,i=t+4;this.nameIndex=new Nl(e,i),this.topDictIndex=new Nr(e,this.nameIndex.endOffset),this.stringIndex=new Nl(e,this.topDictIndex.endOffset),this.globalSubrIndex=new Nr(e,this.stringIndex.endOffset),this.topDict=new ve(new Uint8Array(this.topDictIndex.objects[0]).buffer).setStringIndex(this.stringIndex);const s=this.topDict.private[0],n=this.topDict.private[1];s&&(this.privateDict=new Tr(e,t+n,s).setStringIndex(this.stringIndex),this.privateDict.subrs&&(this.subrsIndex=new Nr(e,t+n+this.privateDict.subrs))),this.charStringsIndex=new Nr(e,t+this.topDict.charStrings);const o=this.charStringsIndex.offsets.length-1;this.topDict.charset===0?this.charset=Ed:this.topDict.charset===1?this.charset=Bd:this.topDict.charset===2?this.charset=Cd:this.charset=this._readCharset(t+this.topDict.charset,o,this.stringIndex.objects),this.topDict.encoding===0?this.encoding=bn:this.topDict.encoding===1?this.encoding=ud:this.encoding=this._readEncoding(t+this.topDict.encoding)}_readCharset(A,e,t){const i=this.view;i.seek(A);let s,n,o;e-=1;const a=[".notdef"],l=i.readUint8();if(l===0)for(s=0;s<e;s+=1)n=i.readUint16(),a.push(Fr(t,n));else if(l===1)for(;a.length<=e;)for(n=i.readUint16(),o=i.readUint8(),s=0;s<=o;s+=1)a.push(Fr(t,n)),n+=1;else if(l===2)for(;a.length<=e;)for(n=i.readUint16(),o=i.readUint16(),s=0;s<=o;s+=1)a.push(Fr(t,n)),n+=1;else throw new Error(`Unknown charset format ${l}`);return a}_readEncoding(A){const e=this.view;e.seek(A);let t,i;const s={},n=e.readUint8();if(n===0){const o=e.readUint8();for(t=0;t<o;t+=1)i=e.readUint8(),s[i]=t}else if(n===1){const o=e.readUint8();for(i=1,t=0;t<o;t+=1){const a=e.readUint8(),l=e.readUint8();for(let c=a;c<=a+l;c+=1)s[c]=i,i+=1}}else console.warn(`unknown encoding format:${n}`);return s}_calcSubroutineBias(A){let e;return A.length<1240?e=107:A.length<33900?e=1131:e=32768,e}};Vi([y("uint8")],SA.prototype,"majorVersion",2),Vi([y("uint8")],SA.prototype,"minorVersion",2),Vi([y("uint8")],SA.prototype,"headerSize",2),Vi([y("uint8")],SA.prototype,"offsetSize",2),SA=Vi([Ye("CFF ","cff")],SA);var vd=Object.defineProperty,Gr=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&vd(A,e,i),i};const zi=class Gc extends It{constructor(A=new ArrayBuffer(262),e){super(A,e,262)}static from(A){const e=new Gc;return e.format=0,e.length=e.view.byteLength,e.language=0,A.forEach((t,i)=>{i<256&&t<256&&e.view.writeUint8(t,6+i)}),e}getUnicodeToGlyphIndexMap(){const A=new Map;return this.glyphIndexArray.forEach((e,t)=>{A.set(t,e)}),A}};Gr([y("uint16")],zi.prototype,"format"),Gr([y("uint16")],zi.prototype,"length"),Gr([y("uint16")],zi.prototype,"language"),Gr([y({type:"uint8",size:256})],zi.prototype,"glyphIndexArray");let Mn=zi;var _d=Object.defineProperty,Rn=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&_d(A,e,i),i};class Wi extends It{get subHeaderKeys(){return this.view.seek(6),Array.from({length:256},()=>this.view.readUint16()/8)}get maxSubHeaderKey(){return this.subHeaderKeys.reduce((A,e)=>Math.max(A,e),0)}get subHeaders(){const A=this.maxSubHeaderKey;return this.view.seek(6+256*2),Array.from({length:A},(e,t)=>({firstCode:this.view.readUint16(),entryCount:this.view.readUint16(),idDelta:this.view.readUint16(),idRangeOffset:(this.view.readUint16()-(A-t)*8-2)/2}))}get glyphIndexArray(){const A=this.maxSubHeaderKey,e=6+256*2+A*8;this.view.seek(e);const t=(this.view.byteLength-e)/2;return Array.from({length:t},()=>this.view.readUint16())}getUnicodeToGlyphIndexMap(A){const e=new Map,t=this.subHeaderKeys,i=this.maxSubHeaderKey,s=this.subHeaders,n=this.glyphIndexArray,o=t.findIndex(l=>l===i);let a=0;for(let l=0;l<256;l++)if(t[l]===0)l>=o||l<s[0].firstCode||l>=s[0].firstCode+s[0].entryCount||s[0].idRangeOffset+(l-s[0].firstCode)>=n.length?a=0:(a=n[s[0].idRangeOffset+(l-s[0].firstCode)],a!==0&&(a=a+s[0].idDelta)),a!==0&&a<A&&e.set(l,a);else{const c=t[l];for(let h=0,f=s[c].entryCount;h<f;h++)if(s[c].idRangeOffset+h>=n.length?a=0:(a=n[s[c].idRangeOffset+h],a!==0&&(a=a+s[c].idDelta)),a!==0&&a<A){const I=(l<<8|h+s[c].firstCode)%65535;e.set(I,a)}}return e}}Rn([y("uint16")],Wi.prototype,"format"),Rn([y("uint16")],Wi.prototype,"length"),Rn([y("uint16")],Wi.prototype,"language");function Tl(r){return r>32767?r-65536:r<-32767?r+65536:r}function Pn(r,A){let e;const t=[];let i={};return r.forEach((s,n)=>{A&&n>A||((!e||n!==e.unicode+1||s!==e.glyphIndex+1)&&(e?(i.end=e.unicode,t.push(i),i={start:n,startId:s,delta:Tl(s-n)}):(i.start=Number(n),i.startId=s,i.delta=Tl(s-n))),e={unicode:n,glyphIndex:s})}),e&&(i.end=e.unicode,t.push(i)),t}var bd=Object.defineProperty,MA=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&bd(A,e,i),i};const hA=class Lc extends It{get endCode(){const A=this.segCountX2;return this.view.seek(14),Array.from({length:A/2},()=>this.view.readUint16())}set endCode(A){this.view.seek(14),A.forEach(e=>this.view.writeUint16(e))}get reservedPad(){return this.view.readUint16(14+this.segCountX2)}set reservedPad(A){this.view.writeUint16(A,14+this.segCountX2)}get startCode(){const A=this.segCountX2;return this.view.seek(14+A+2),Array.from({length:A/2},()=>this.view.readUint16())}set startCode(A){this.view.seek(14+this.segCountX2+2),A.forEach(e=>this.view.writeUint16(e))}get idDelta(){const A=this.segCountX2;return this.view.seek(14+A+2+A),Array.from({length:A/2},()=>this.view.readUint16())}set idDelta(A){const e=this.segCountX2;this.view.seek(14+e+2+e),A.forEach(t=>this.view.writeUint16(t))}get idRangeOffsetCursor(){const A=this.segCountX2;return 14+A+2+A*2}get idRangeOffset(){const A=this.segCountX2;return this.view.seek(this.idRangeOffsetCursor),Array.from({length:A/2},()=>this.view.readUint16())}set idRangeOffset(A){this.view.seek(this.idRangeOffsetCursor),A.forEach(e=>this.view.writeUint16(e))}get glyphIndexArrayCursor(){const A=this.segCountX2;return 14+A+2+A*3}get glyphIndexArray(){const A=this.glyphIndexArrayCursor;this.view.seek(A);const e=(this.view.byteLength-A)/2;return Array.from({length:e},()=>this.view.readUint16())}static from(A){const e=Pn(A,65535),t=e.length+1,i=Math.floor(Math.log(t)/Math.LN2),s=2*2**i,n=new Lc(new ArrayBuffer(24+e.length*8));return n.format=4,n.length=n.view.byteLength,n.language=0,n.segCountX2=t*2,n.searchRange=s,n.entrySelector=i,n.rangeShift=2*t-s,n.endCode=[...e.map(o=>o.end),65535],n.reservedPad=0,n.startCode=[...e.map(o=>o.start),65535],n.idDelta=[...e.map(o=>o.delta),1],n.idRangeOffset=Array.from({length:t},()=>0),n}getUnicodeToGlyphIndexMap(){const A=new Map,e=this.segCountX2/2,t=(this.glyphIndexArrayCursor-this.idRangeOffsetCursor)/2,i=this.startCode,s=this.endCode,n=this.idRangeOffset,o=this.idDelta,a=this.glyphIndexArray;for(let l=0;l<e;++l)for(let c=i[l],h=s[l];c<=h;++c)if(n[l]===0)A.set(c,(c+o[l])%65536);else{const f=l+n[l]/2+(c-i[l])-t,I=a[f];I!==0?A.set(c,(I+o[l])%65536):A.set(c,0)}return A.delete(65535),A}};MA([y("uint16")],hA.prototype,"format"),MA([y("uint16")],hA.prototype,"length"),MA([y("uint16")],hA.prototype,"language"),MA([y("uint16")],hA.prototype,"segCountX2"),MA([y("uint16")],hA.prototype,"searchRange"),MA([y("uint16")],hA.prototype,"entrySelector"),MA([y("uint16")],hA.prototype,"rangeShift");let kn=hA;var Dd=Object.defineProperty,qi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Dd(A,e,i),i};class RA extends It{get glyphIndexArray(){return this.view.seek(12),Array.from({length:this.entryCount},()=>this.view.readUint16())}getUnicodeToGlyphIndexMap(){const A=this.glyphIndexArray,e=new Map;return A.forEach((t,i)=>{e.set(i,t)}),e}}qi([y("uint16")],RA.prototype,"format"),qi([y("uint16")],RA.prototype,"length"),qi([y("uint16")],RA.prototype,"language"),qi([y("uint16")],RA.prototype,"firstCode"),qi([y("uint16")],RA.prototype,"entryCount");var xd=Object.defineProperty,Xi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&xd(A,e,i),i};const ei=class Oc extends It{get groups(){const A=this.nGroups;return this.view.seek(16),Array.from({length:A},()=>({startCharCode:this.view.readUint32(),endCharCode:this.view.readUint32(),startGlyphCode:this.view.readUint32()}))}static from(A){const e=Pn(A),t=new Oc(new ArrayBuffer(16+e.length*12));return t.format=12,t.reserved=0,t.length=t.view.byteLength,t.language=0,t.nGroups=e.length,e.forEach(i=>{t.view.writeUint32(i.start),t.view.writeUint32(i.end),t.view.writeUint32(i.startId)}),t}getUnicodeToGlyphIndexMap(){const A=new Map,e=this.groups;for(let t=0,i=e.length;t<i;t++){const s=e[t];let n=s.startGlyphCode,o=s.startCharCode;const a=s.endCharCode;for(;o<=a;)A.set(o++,n++)}return A}};Xi([y("uint16")],ei.prototype,"format"),Xi([y("uint16")],ei.prototype,"reserved"),Xi([y("uint32")],ei.prototype,"length"),Xi([y("uint32")],ei.prototype,"language"),Xi([y("uint32")],ei.prototype,"nGroups");let Un=ei;var Sd=Object.defineProperty,Nn=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Sd(A,e,i),i};class ji extends It{getVarSelectorRecords(){const A=this.numVarSelectorRecords;return this.view.seek(10),Array.from({length:A},()=>{const e={varSelector:this.view.readUint24(),defaultUVSOffset:this.view.readUint32(),unicodeValueRanges:[],nonDefaultUVSOffset:this.view.readUint32(),uVSMappings:[]};if(e.defaultUVSOffset){this.view.seek(e.defaultUVSOffset);const t=this.view.readUint32();e.unicodeValueRanges=Array.from({length:t},()=>({startUnicodeValue:this.view.readUint24(),additionalCount:this.view.readUint8()}))}if(e.nonDefaultUVSOffset){this.view.seek(e.nonDefaultUVSOffset);const t=this.view.readUint32();e.uVSMappings=Array.from({length:t},()=>({unicodeValue:this.view.readUint24(),glyphID:this.view.readUint16()}))}return e})}getUnicodeToGlyphIndexMap(){const A=new Map,e=this.getVarSelectorRecords();for(let t=0,i=e.length;t<i;t++){const{uVSMappings:s}=e[t];s.forEach(n=>{A.set(n.unicodeValue,n.glyphID)})}return A}}Nn([y("uint16")],ji.prototype,"format"),Nn([y("uint32")],ji.prototype,"length"),Nn([y("uint32")],ji.prototype,"numVarSelectorRecords");var Md=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,Fn=(r,A,e,t)=>{for(var i=t>1?void 0:t?Rd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Md(A,e,i),i};let ti=class extends $e{constructor(){super(...arguments);u(this,"_unicodeToGlyphIndexMap");u(this,"_glyphIndexToUnicodesMap")}static from(A){const e=Array.from(A.keys()).some(h=>h>65535),t=kn.from(A),i=Mn.from(A),s=e?Un.from(A):void 0,n=4+(s?32:24),o=n+t.view.byteLength,a=o+i.view.byteLength,l=[{platformID:0,platformSpecificID:3,offset:n},{platformID:1,platformSpecificID:0,offset:o},{platformID:3,platformSpecificID:1,offset:n},s&&{platformID:3,platformSpecificID:10,offset:a}].filter(Boolean),c=new ti(new ArrayBuffer(4+8*l.length+t.view.byteLength+i.view.byteLength+((s==null?void 0:s.view.byteLength)??0)));return c.numberSubtables=l.length,c.view.seek(4),l.forEach(h=>{c.view.writeUint16(h.platformID),c.view.writeUint16(h.platformSpecificID),c.view.writeUint32(h.offset)}),c.view.writeBytes(t.view,n),c.view.writeBytes(i.view,o),s&&c.view.writeBytes(s.view,a),c}get unicodeToGlyphIndexMap(){return this._unicodeToGlyphIndexMap??(this._unicodeToGlyphIndexMap=this.readunicodeToGlyphIndexMap())}get glyphIndexToUnicodesMap(){if(!this._glyphIndexToUnicodesMap){const A=new Map,e=this.unicodeToGlyphIndexMap,t=Array.from(e.keys());for(let i=0,s=t.length;i<s;i++){const n=t[i],o=e.get(n);A.has(o)?A.get(o).push(n):A.set(o,[n])}this._glyphIndexToUnicodesMap=A}return this._glyphIndexToUnicodesMap}readSubtables(){const A=this.numberSubtables;return this.view.seek(4),Array.from({length:A},()=>({platformID:this.view.readUint16(),platformSpecificID:this.view.readUint16(),offset:this.view.readUint32()})).map(e=>{this.view.seek(e.offset);const t=this.view.readUint16();let i;switch(t){case 0:i=new Mn(this.view.buffer,e.offset);break;case 2:i=new Wi(this.view.buffer,e.offset,this.view.readUint16());break;case 4:i=new kn(this.view.buffer,e.offset,this.view.readUint16());break;case 6:i=new RA(this.view.buffer,e.offset,this.view.readUint16());break;case 12:i=new Un(this.view.buffer,e.offset,this.view.readUint32(e.offset+4));break;case 14:default:i=new ji(this.view.buffer,e.offset,this.view.readUint32());break}return{...e,format:t,view:i}})}readunicodeToGlyphIndexMap(){var o,a,l,c,h;const A=this.readSubtables(),e=(o=A.find(f=>f.format===0))==null?void 0:o.view,t=(a=A.find(f=>f.platformID===3&&f.platformSpecificID===3&&f.format===2))==null?void 0:a.view,i=(l=A.find(f=>f.platformID===3&&f.platformSpecificID===1&&f.format===4))==null?void 0:l.view,s=(c=A.find(f=>f.platformID===3&&f.platformSpecificID===10&&f.format===12))==null?void 0:c.view,n=(h=A.find(f=>f.platformID===0&&f.platformSpecificID===5&&f.format===14))==null?void 0:h.view;return new Map([...(e==null?void 0:e.getUnicodeToGlyphIndexMap())??[],...(t==null?void 0:t.getUnicodeToGlyphIndexMap(this._sfnt.maxp.numGlyphs))??[],...(i==null?void 0:i.getUnicodeToGlyphIndexMap())??[],...(s==null?void 0:s.getUnicodeToGlyphIndexMap())??[],...(n==null?void 0:n.getUnicodeToGlyphIndexMap())??[]])}};Fn([y("uint16")],ti.prototype,"version",2),Fn([y("uint16")],ti.prototype,"numberSubtables",2),ti=Fn([Ye("cmap")],ti);class Pd extends Dn{_parseContours(A){const e=[];let t=[];for(let i=0;i<A.length;i+=1){const s=A[i];t.push(s),s.lastPointOfContour&&(e.push(t),t=[])}return Ki(t.length===0,"There are still points left in the current contour."),e}_transformPoints(A,e){const t=[];for(let i=0;i<A.length;i+=1){const s=A[i],n={x:e.xScale*s.x+e.scale10*s.y+e.dx,y:e.scale01*s.x+e.yScale*s.y+e.dy,onCurve:s.onCurve,lastPointOfContour:s.lastPointOfContour};t.push(n)}return t}_parseGlyphCoordinate(A,e,t,i,s){let n;return(e&i)>0?(n=A.view.readUint8(),(e&s)===0&&(n=-n),n=t+n):(e&s)>0?n=t:n=t+A.view.readInt16(),n}parse(A,e,t){A.view.seek(e);const i=this.numberOfContours=A.view.readInt16();if(this.xMin=A.view.readInt16(),this.yMin=A.view.readInt16(),this.xMax=A.view.readInt16(),this.yMax=A.view.readInt16(),i>0){const o=this.endPointIndices=[];for(let C=0;C<i;C++)o.push(A.view.readUint16());const a=this.instructionLength=A.view.readUint16();Ki(a<5e3,`Bad instructionLength:${a}`);const l=this.instructions=[];for(let C=0;C<a;++C)l.push(A.view.readUint8());const c=A.view.byteOffset,h=o[o.length-1]+1;Ki(h<2e4,`Bad numberOfCoordinates:${c}`);const f=[];let I,d=0;for(;d<h;)if(I=A.view.readUint8(),f.push(I),d++,I&8&&d<h){const C=A.view.readUint8();for(let p=0;p<C;p++)f.push(I),d++}if(Ki(f.length===h,`Bad flags length: ${f.length}, numberOfCoordinates: ${h}`),o.length>0){const C=[];let p;if(h>0){for(let w=0;w<h;w+=1)I=f[w],p={},p.onCurve=!!(I&1),p.lastPointOfContour=o.includes(w),C.push(p);let x=0;for(let w=0;w<h;w+=1)I=f[w],p=C[w],p.x=this._parseGlyphCoordinate(A,I,x,2,16),x=p.x;let P=0;for(let w=0;w<h;w+=1)I=f[w],p=C[w],p.y=this._parseGlyphCoordinate(A,I,P,4,32),P=p.y}this.points=C}else this.points=[]}else if(i===0)this.points=[];else{this.isComposite=!0,this.points=[],this.components=[];let o,a=!0;for(;a;){o=A.view.readUint16();const l={glyphIndex:A.view.readUint16(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(o&1)>0?(o&2)>0?(l.dx=A.view.readInt16(),l.dy=A.view.readInt16()):l.matchedPoints=[A.view.readUint16(),A.view.readUint16()]:(o&2)>0?(l.dx=A.view.readInt8(),l.dy=A.view.readInt8()):l.matchedPoints=[A.view.readUint8(),A.view.readUint8()],(o&8)>0?l.xScale=l.yScale=A.view.readInt16()/16384:(o&64)>0?(l.xScale=A.view.readInt16()/16384,l.yScale=A.view.readInt16()/16384):(o&128)>0&&(l.xScale=A.view.readInt16()/16384,l.scale01=A.view.readInt16()/16384,l.scale10=A.view.readInt16()/16384,l.yScale=A.view.readInt16()/16384),this.components.push(l),a=!!(o&32)}if(o&256){this.instructionLength=A.view.readUint16(),this.instructions=[];for(let l=0;l<this.instructionLength;l+=1)this.instructions.push(A.view.readUint8())}}if(this.isComposite)for(let o=0;o<this.components.length;o+=1){const a=this.components[o],l=t.get(a.glyphIndex);if(l.getPathCommands(),l.points){let c;if(a.matchedPoints===void 0)c=this._transformPoints(l.points,a);else{Ki(a.matchedPoints[0]>this.points.length-1||a.matchedPoints[1]>l.points.length-1,`Matched points out of range in ${this.name}`);const h=this.points[a.matchedPoints[0]];let f=l.points[a.matchedPoints[1]];const I={xScale:a.xScale,scale01:a.scale01,scale10:a.scale10,yScale:a.yScale,dx:0,dy:0};f=this._transformPoints([f],I)[0],I.dx=h.x-f.x,I.dy=h.y-f.y,c=this._transformPoints(l.points,I)}this.points=this.points.concat(c)}}const s=[],n=this._parseContours(this.points);for(let o=0,a=n.length;o<a;++o){const l=n[o];let c=l[l.length-1],h=l[0];c.onCurve?s.push({type:"M",x:c.x,y:c.y}):h.onCurve?s.push({type:"M",x:h.x,y:h.y}):s.push({type:"M",x:(c.x+h.x)*.5,y:(c.y+h.y)*.5});for(let f=0,I=l.length;f<I;++f)if(c=h,h=l[(f+1)%I],c.onCurve)s.push({type:"L",x:c.x,y:c.y});else{let d=h;h.onCurve||(d={x:(c.x+h.x)*.5,y:(c.y+h.y)*.5}),s.push({type:"Q",x1:c.x,y1:c.y,x:d.x,y:d.y})}s.push({type:"Z"})}this.pathCommands=s}}class kd extends xn{get length(){return this._sfnt.loca.locations.length}_get(A){const e=this._sfnt.loca.locations,t=e[A],i=new Pd({index:A});return t!==e[A+1]&&i.parse(this._sfnt.glyf,t,this),i}}var Ud=Object.getOwnPropertyDescriptor,Nd=(r,A,e,t)=>{for(var i=t>1?void 0:t?Ud(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Lr=class extends $e{constructor(){super(...arguments);u(this,"_glyphs")}static from(A){const e=A.reduce((i,s)=>i+s.byteLength,0),t=new Lr(new ArrayBuffer(e));return A.forEach(i=>{t.view.writeBytes(i)}),t}get glyphs(){return this._glyphs??(this._glyphs=new kd(this._sfnt))}};Lr=Nd([Ye("glyf")],Lr);var Fd=Object.getOwnPropertyDescriptor,Td=(r,A,e,t)=>{for(var i=t>1?void 0:t?Fd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Tn=class extends $e{};Tn=Td([Ye("GPOS","gpos")],Tn);var Gd=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,PA=(r,A,e,t)=>{for(var i=t>1?void 0:t?Ld(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Gd(A,e,i),i};let Zt=class extends $e{};PA([y("uint16")],Zt.prototype,"majorVersion",2),PA([y("uint16")],Zt.prototype,"minorVersion",2),PA([y("uint16")],Zt.prototype,"scriptListOffset",2),PA([y("uint16")],Zt.prototype,"featureListOffset",2),PA([y("uint16")],Zt.prototype,"lookupListOffset",2),PA([y("uint16")],Zt.prototype,"featureVariationsOffset",2),Zt=PA([Ye("GSUB","gsub")],Zt);var Od=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,Te=(r,A,e,t)=>{for(var i=t>1?void 0:t?Hd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Od(A,e,i),i};let Re=class extends $e{constructor(r=new ArrayBuffer(54),A){super(r,A,Math.min(54,r.byteLength-(A??0)))}};Te([y("fixed")],Re.prototype,"version",2),Te([y("fixed")],Re.prototype,"fontRevision",2),Te([y("uint32")],Re.prototype,"checkSumAdjustment",2),Te([y("uint32")],Re.prototype,"magickNumber",2),Te([y("uint16")],Re.prototype,"flags",2),Te([y("uint16")],Re.prototype,"unitsPerEm",2),Te([y({type:"longDateTime"})],Re.prototype,"created",2),Te([y({type:"longDateTime"})],Re.prototype,"modified",2),Te([y("int16")],Re.prototype,"xMin",2),Te([y("int16")],Re.prototype,"yMin",2),Te([y("int16")],Re.prototype,"xMax",2),Te([y("int16")],Re.prototype,"yMax",2),Te([y("uint16")],Re.prototype,"macStyle",2),Te([y("uint16")],Re.prototype,"lowestRecPPEM",2),Te([y("int16")],Re.prototype,"fontDirectionHint",2),Te([y("int16")],Re.prototype,"indexToLocFormat",2),Te([y("int16")],Re.prototype,"glyphDataFormat",2),Re=Te([Ye("head")],Re);var Jd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,nt=(r,A,e,t)=>{for(var i=t>1?void 0:t?Kd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Jd(A,e,i),i};let Ve=class extends $e{constructor(r=new ArrayBuffer(36),A){super(r,A,Math.min(36,r.byteLength-(A??0)))}};nt([y("fixed")],Ve.prototype,"version",2),nt([y("int16")],Ve.prototype,"ascent",2),nt([y("int16")],Ve.prototype,"descent",2),nt([y("int16")],Ve.prototype,"lineGap",2),nt([y("uint16")],Ve.prototype,"advanceWidthMax",2),nt([y("int16")],Ve.prototype,"minLeftSideBearing",2),nt([y("int16")],Ve.prototype,"minRightSideBearing",2),nt([y("int16")],Ve.prototype,"xMaxExtent",2),nt([y("int16")],Ve.prototype,"caretSlopeRise",2),nt([y("int16")],Ve.prototype,"caretSlopeRun",2),nt([y("int16")],Ve.prototype,"caretOffset",2),nt([y({type:"int16",size:4})],Ve.prototype,"reserved",2),nt([y("int16")],Ve.prototype,"metricDataFormat",2),nt([y("uint16")],Ve.prototype,"numOfLongHorMetrics",2),Ve=nt([Ye("hhea")],Ve);var Yd=Object.getOwnPropertyDescriptor,Vd=(r,A,e,t)=>{for(var i=t>1?void 0:t?Yd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Or=class extends $e{constructor(){super(...arguments);u(this,"_metrics")}static from(A){const e=A.length*4,t=new Or(new ArrayBuffer(e));return A.forEach(i=>{t.view.writeUint16(i.advanceWidth),t.view.writeUint16(i.leftSideBearing)}),t}get metrics(){return this._metrics??(this._metrics=this.readMetrics())}readMetrics(){const A=this._sfnt.maxp.numGlyphs,e=this._sfnt.hhea.numOfLongHorMetrics;let t=0;const i=this.view;return i.seek(0),Array.from({length:A}).map((s,n)=>(n<e&&(t=i.readUint16()),{advanceWidth:t,leftSideBearing:i.readUint16()}))}};Or=Vd([Ye("hmtx")],Or);var zd=Object.getOwnPropertyDescriptor,Wd=(r,A,e,t)=>{for(var i=t>1?void 0:t?zd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Gn=class extends $e{};Gn=Wd([Ye("kern","kern")],Gn);var qd=Object.getOwnPropertyDescriptor,Xd=(r,A,e,t)=>{for(var i=t>1?void 0:t?qd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Hr=class extends $e{constructor(){super(...arguments);u(this,"_locations")}static from(A,e=1){const t=A.length*(e?4:2),i=new Hr(new ArrayBuffer(t));return A.forEach(s=>{e?i.view.writeUint32(s):i.view.writeUint16(s/2)}),i}get locations(){return this._locations??(this._locations=this.readLocations())}readLocations(){const A=this._sfnt.maxp.numGlyphs,e=this._sfnt.head.indexToLocFormat,t=this.view;return t.seek(0),Array.from({length:A}).map(()=>e?t.readUint32():t.readUint16()*2)}};Hr=Xd([Ye("loca")],Hr);var jd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,et=(r,A,e,t)=>{for(var i=t>1?void 0:t?Zd(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&jd(A,e,i),i};let Ge=class extends $e{constructor(r=new ArrayBuffer(32),A){super(r,A,Math.min(32,r.byteLength-(A??0)))}};et([y("fixed")],Ge.prototype,"version",2),et([y("uint16")],Ge.prototype,"numGlyphs",2),et([y("uint16")],Ge.prototype,"maxPoints",2),et([y("uint16")],Ge.prototype,"maxContours",2),et([y("uint16")],Ge.prototype,"maxComponentPoints",2),et([y("uint16")],Ge.prototype,"maxComponentContours",2),et([y("uint16")],Ge.prototype,"maxZones",2),et([y("uint16")],Ge.prototype,"maxTwilightPoints",2),et([y("uint16")],Ge.prototype,"maxStorage",2),et([y("uint16")],Ge.prototype,"maxFunctionDefs",2),et([y("uint16")],Ge.prototype,"maxInstructionDefs",2),et([y("uint16")],Ge.prototype,"maxStackElements",2),et([y("uint16")],Ge.prototype,"maxSizeOfInstructions",2),et([y("uint16")],Ge.prototype,"maxComponentElements",2),et([y("uint16")],Ge.prototype,"maxComponentDepth",2),Ge=et([Ye("maxp")],Ge);var $d=Object.defineProperty,eI=Object.getOwnPropertyDescriptor,Jr=(r,A,e,t)=>{for(var i=t>1?void 0:t?eI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&$d(A,e,i),i};const Gl={0:"copyright",1:"fontFamily",2:"fontSubFamily",3:"uniqueSubFamily",4:"fullName",5:"version",6:"postScriptName",7:"tradeMark",8:"manufacturer",9:"designer",10:"description",11:"urlOfFontVendor",12:"urlOfFontDesigner",13:"licence",14:"urlOfLicence",16:"preferredFamily",17:"preferredSubFamily",18:"compatibleFull",19:"sampleText"},Ln={Macintosh:1,Microsoft:3},tI={Default:0},Ll={UCS2:1};let Ai=class extends $e{constructor(){super(...arguments);u(this,"_names")}get names(){return this._names??(this._names=this.readNames())}readNames(){const A=this.count;this.view.seek(6);const e=[];for(let a=0;a<A;++a)e.push({platform:this.view.readUint16(),encoding:this.view.readUint16(),language:this.view.readUint16(),nameId:this.view.readUint16(),length:this.view.readUint16(),offset:this.view.readUint16()});const t=this.stringOffset;for(let a=0;a<A;++a){const l=e[a];l.name=this.view.readBytes(t+l.offset,l.length)}let i=Ln.Macintosh,s=tI.Default,n=0;e.some(a=>a.platform===Ln.Microsoft&&a.encoding===Ll.UCS2&&a.language===1033)&&(i=Ln.Microsoft,s=Ll.UCS2,n=1033);const o={};for(let a=0;a<A;++a){const l=e[a];l.platform===i&&l.encoding===s&&l.language===n&&Gl[l.nameId]&&(o[Gl[l.nameId]]=n===0?ad(l.name):ld(l.name))}return o}};Jr([y("uint16")],Ai.prototype,"format",2),Jr([y("uint16")],Ai.prototype,"count",2),Jr([y("uint16")],Ai.prototype,"stringOffset",2),Ai=Jr([Ye("name")],Ai);var AI=Object.defineProperty,iI=Object.getOwnPropertyDescriptor,le=(r,A,e,t)=>{for(var i=t>1?void 0:t?iI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&AI(A,e,i),i};let ae=class extends $e{get fontPANOSE(){return[this.bFamilyType,this.bSerifStyle,this.bWeight,this.bProportion,this.bContrast,this.bStrokeVariation,this.bArmStyle,this.bLetterform,this.bMidline,this.bXHeight]}};le([y("uint16")],ae.prototype,"version",2),le([y("int16")],ae.prototype,"xAvgCharWidth",2),le([y("uint16")],ae.prototype,"usWeightClass",2),le([y("uint16")],ae.prototype,"usWidthClass",2),le([y("uint16")],ae.prototype,"fsType",2),le([y("uint16")],ae.prototype,"ySubscriptXSize",2),le([y("uint16")],ae.prototype,"ySubscriptYSize",2),le([y("uint16")],ae.prototype,"ySubscriptXOffset",2),le([y("uint16")],ae.prototype,"ySubscriptYOffset",2),le([y("uint16")],ae.prototype,"ySuperscriptXSize",2),le([y("uint16")],ae.prototype,"ySuperscriptYSize",2),le([y("uint16")],ae.prototype,"ySuperscriptXOffset",2),le([y("uint16")],ae.prototype,"ySuperscriptYOffset",2),le([y("uint16")],ae.prototype,"yStrikeoutSize",2),le([y("uint16")],ae.prototype,"yStrikeoutPosition",2),le([y("uint16")],ae.prototype,"sFamilyClass",2),le([y({type:"uint8"})],ae.prototype,"bFamilyType",2),le([y({type:"uint8"})],ae.prototype,"bSerifStyle",2),le([y({type:"uint8"})],ae.prototype,"bWeight",2),le([y({type:"uint8"})],ae.prototype,"bProportion",2),le([y({type:"uint8"})],ae.prototype,"bContrast",2),le([y({type:"uint8"})],ae.prototype,"bStrokeVariation",2),le([y({type:"uint8"})],ae.prototype,"bArmStyle",2),le([y({type:"uint8"})],ae.prototype,"bLetterform",2),le([y({type:"uint8"})],ae.prototype,"bMidline",2),le([y({type:"uint8"})],ae.prototype,"bXHeight",2),le([y({type:"uint8",size:16})],ae.prototype,"ulUnicodeRange",2),le([y({type:"char",size:4})],ae.prototype,"achVendID",2),le([y("uint16")],ae.prototype,"fsSelection",2),le([y("uint16")],ae.prototype,"usFirstCharIndex",2),le([y("uint16")],ae.prototype,"usLastCharIndex",2),le([y("int16")],ae.prototype,"sTypoAscender",2),le([y("int16")],ae.prototype,"sTypoDescender",2),le([y("int16")],ae.prototype,"sTypoLineGap",2),le([y("uint16")],ae.prototype,"usWinAscent",2),le([y("uint16")],ae.prototype,"usWinDescent",2),le([y({offset:72,type:"uint8",size:8})],ae.prototype,"ulCodePageRange",2),le([y({offset:72,type:"int16"})],ae.prototype,"sxHeight",2),le([y("int16")],ae.prototype,"sCapHeight",2),le([y("uint16")],ae.prototype,"usDefaultChar",2),le([y("uint16")],ae.prototype,"usBreakChar",2),le([y("uint16")],ae.prototype,"usMaxContext",2),ae=le([Ye("OS/2","os2")],ae);var rI=Object.defineProperty,sI=Object.getOwnPropertyDescriptor,Nt=(r,A,e,t)=>{for(var i=t>1?void 0:t?sI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&rI(A,e,i),i};let Qt=class extends $e{constructor(r=new ArrayBuffer(32),A,e){super(r,A,e)}};Nt([y("fixed")],Qt.prototype,"format",2),Nt([y("fixed")],Qt.prototype,"italicAngle",2),Nt([y("int16")],Qt.prototype,"underlinePosition",2),Nt([y("int16")],Qt.prototype,"underlineThickness",2),Nt([y("uint32")],Qt.prototype,"isFixedPitch",2),Nt([y("uint32")],Qt.prototype,"minMemType42",2),Nt([y("uint32")],Qt.prototype,"maxMemType42",2),Nt([y("uint32")],Qt.prototype,"minMemType1",2),Nt([y("uint32")],Qt.prototype,"maxMemType1",2),Qt=Nt([Ye("post")],Qt);var nI=Object.defineProperty,oI=Object.getOwnPropertyDescriptor,ot=(r,A,e,t)=>{for(var i=t>1?void 0:t?oI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&nI(A,e,i),i};let ze=class extends $e{constructor(r=new ArrayBuffer(36),A){super(r,A,Math.min(36,r.byteLength-(A??0)))}};ot([y("fixed")],ze.prototype,"version",2),ot([y("int16")],ze.prototype,"vertTypoAscender",2),ot([y("int16")],ze.prototype,"vertTypoDescender",2),ot([y("int16")],ze.prototype,"vertTypoLineGap",2),ot([y("int16")],ze.prototype,"advanceHeightMax",2),ot([y("int16")],ze.prototype,"minTopSideBearing",2),ot([y("int16")],ze.prototype,"minBottomSideBearing",2),ot([y("int16")],ze.prototype,"yMaxExtent",2),ot([y("int16")],ze.prototype,"caretSlopeRise",2),ot([y("int16")],ze.prototype,"caretSlopeRun",2),ot([y("int16")],ze.prototype,"caretOffset",2),ot([y({type:"int16",size:4})],ze.prototype,"reserved",2),ot([y("int16")],ze.prototype,"metricDataFormat",2),ot([y("int16")],ze.prototype,"numOfLongVerMetrics",2),ze=ot([Ye("vhea")],ze);var aI=Object.getOwnPropertyDescriptor,lI=(r,A,e,t)=>{for(var i=t>1?void 0:t?aI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};let Kr=class extends $e{constructor(){super(...arguments);u(this,"_metrics")}static from(A){const e=A.length*4,t=new Kr(new ArrayBuffer(e));return A.forEach(i=>{t.view.writeUint16(i.advanceHeight),t.view.writeInt16(i.topSideBearing)}),t}get metrics(){return this._metrics??(this._metrics=this.readMetrics())}readMetrics(){var s;const A=this._sfnt.maxp.numGlyphs,e=((s=this._sfnt.vhea)==null?void 0:s.numOfLongVerMetrics)??0,t=this.view;t.seek(0);let i=0;return Array.from({length:A}).map((n,o)=>(o<e&&(i=t.readUint16()),{advanceHeight:i,topSideBearing:t.readUint8()}))}};Kr=lI([Ye("vmtx")],Kr);var cI=Object.defineProperty,Zi=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&cI(A,e,i),i};class yt extends Pr{constructor(){super(...arguments);u(this,"format","TrueType");u(this,"mimeType","font/ttf");u(this,"_sfnt")}get sfnt(){return this._sfnt||(this._sfnt=this.createSFNT()),this._sfnt}static is(e){return typeof e=="number"?this.signature.has(e):this.signature.has(ZA(e).getUint32(0))}static checksum(e){const t=ZA(e);let i=t.byteLength;for(;i%4;)i++;let s=0;for(let n=0,o=i/4;n<o;n+=4)n*4<i-4&&(s+=t.getUint32(n*4,!1));return s&4294967295}static from(e){const t=f=>f+3&-4,i=e.tableViews.size,s=Array.from(e.tableViews.values()).reduce((f,I)=>f+t(I.byteLength),0),n=new this(new ArrayBuffer(12+i*16+s));n.scalerType=65536,n.numTables=i;const o=Math.log(2);n.searchRange=Math.floor(Math.log(i)/o)*16,n.entrySelector=Math.floor(n.searchRange/o),n.rangeShift=i*16-n.searchRange;let a=12+i*16,l=0;const c=n.getDirectories();e.tableViews.forEach((f,I)=>{const d=c[l++];d.tag=I,d.checkSum=this.checksum(f),d.offset=a,d.length=f.byteLength,n.view.writeBytes(f,a),a+=t(d.length)});const h=n.createSFNT().head;return h.checkSumAdjustment=0,h.checkSumAdjustment=2981146554-this.checksum(n.view),n}getDirectories(){let e=this.view.byteOffset+12;return Array.from({length:this.numTables},()=>{const t=new $A(this.view.buffer,e);return e+=t.view.byteLength,t})}createSFNT(){return new xA(this.getDirectories().reduce((e,t)=>(e[t.tag]=new DataView(this.view.buffer,this.view.byteOffset+t.offset,t.length),e),{}))}}u(yt,"signature",new Set([65536,1953658213,1954115633])),Zi([y("uint32")],yt.prototype,"scalerType"),Zi([y("uint16")],yt.prototype,"numTables"),Zi([y("uint16")],yt.prototype,"searchRange"),Zi([y("uint16")],yt.prototype,"entrySelector"),Zi([y("uint16")],yt.prototype,"rangeShift");class Yr extends yt{constructor(){super(...arguments);u(this,"format","OpenType");u(this,"mimeType","font/otf")}static from(e){return super.from(e)}}u(Yr,"signature",new Set([1330926671]));var hI=Object.defineProperty,$i=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&hI(A,e,i),i};class kA extends It{constructor(A,e){super(A,e,20)}}$i([y({type:"char",size:4})],kA.prototype,"tag"),$i([y("uint32")],kA.prototype,"offset"),$i([y("uint32")],kA.prototype,"compLength"),$i([y("uint32")],kA.prototype,"origLength"),$i([y("uint32")],kA.prototype,"origChecksum");var gI=Object.defineProperty,pt=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&gI(A,e,i),i};const gt=(BA=class extends Pr{constructor(){super(...arguments);u(this,"format","WOFF");u(this,"mimeType","font/woff");u(this,"_sfnt")}get subfontFormat(){return yt.is(this.flavor)?"TrueType":Yr.is(this.flavor)?"OpenType":"Open"}get sfnt(){return this._sfnt||(this._sfnt=this.createSFNT()),this._sfnt}static is(e){return typeof e=="number"?this.signature.has(e):this.signature.has(ZA(e).getUint32(0))}static checkSum(e){const t=ZA(e),i=t.byteLength,s=Math.floor(i/4);let n=0,o=0;for(;o<s;)n+=t.getUint32(4*o++,!1);let a=i-s*4;if(a){let l=s*4;for(;a>0;)n+=t.getUint8(l)<<a*8,l++,a--}return n%4294967296}static from(e,t=new ArrayBuffer(0)){const i=f=>f+3&-4,s=[];e.tableViews.forEach((f,I)=>{const d=ZA(td(new Uint8Array(f.buffer,f.byteOffset,f.byteLength)));s.push({tag:I,view:d.byteLength<f.byteLength?d:f,rawView:f})});const n=s.length,o=s.reduce((f,I)=>f+i(I.view.byteLength),0),a=new BA(new ArrayBuffer(44+20*n+o+t.byteLength));a.signature=2001684038,a.flavor=65536,a.length=a.view.byteLength,a.numTables=n,a.totalSFNTSize=12+16*n+s.reduce((f,I)=>f+i(I.rawView.byteLength),0);let l=44+n*20,c=0;const h=a.getDirectories();return s.forEach(f=>{const I=h[c++];I.tag=f.tag,I.offset=l,I.compLength=f.view.byteLength,I.origChecksum=BA.checkSum(f.rawView),I.origLength=f.rawView.byteLength,a.view.writeBytes(f.view,l),l+=i(I.compLength)}),a.view.writeBytes(t),a}getDirectories(){let e=44;return Array.from({length:this.numTables},()=>{const t=new kA(this.view.buffer,e);return e+=t.view.byteLength,t})}createSFNT(){return new xA(this.getDirectories().reduce((e,t)=>{const i=t.tag,s=this.view.byteOffset+t.offset,n=t.compLength,o=t.origLength,a=s+n;return e[i]=n>=o?new DataView(this.view.buffer,s,n):new DataView(Ad(new Uint8Array(this.view.buffer.slice(s,a))).buffer),e},{}))}},u(BA,"signature",new Set([2001684038])),BA);pt([y("uint32")],gt.prototype,"signature"),pt([y("uint32")],gt.prototype,"flavor"),pt([y("uint32")],gt.prototype,"length"),pt([y("uint16")],gt.prototype,"numTables"),pt([y("uint16")],gt.prototype,"reserved"),pt([y("uint32")],gt.prototype,"totalSFNTSize"),pt([y("uint16")],gt.prototype,"majorVersion"),pt([y("uint16")],gt.prototype,"minorVersion"),pt([y("uint32")],gt.prototype,"metaOffset"),pt([y("uint32")],gt.prototype,"metaLength"),pt([y("uint32")],gt.prototype,"metaOrigLength"),pt([y("uint32")],gt.prototype,"privOffset"),pt([y("uint32")],gt.prototype,"privLength");let Vr=gt;function Ol(r,A=!0){if(yt.is(r))return new yt(r);if(Yr.is(r))return new Yr(r);if(Vr.is(r))return new Vr(r);if(A)throw new Error("Failed to parseFont")}function Hl(r,A=!0){const e=Ol(r,!1);if(e)return e;if(A)throw new Error("Failed to parseFont")}const os=class os{constructor(){u(this,"fallbackFont");u(this,"loading",new Map);u(this,"loaded",new Map);u(this,"familyToUrl",new Map)}setFallbackFont(A){this.fallbackFont=A}async loadFallbackFont(A,e={}){this.fallbackFont=await this.load(A,e)}_createRequest(A,e){const t=new AbortController;return{url:A,when:fetch(A,{...os.defaultRequestInit,...e,signal:t.signal}).then(i=>i.arrayBuffer()),cancel:()=>t.abort()}}injectFontFace(A,e){return document.fonts.add(new FontFace(A,e)),this}injectStyleTag(A,e){const t=document.createElement("style");return t.appendChild(document.createTextNode(`@font-face {
859
859
  font-family: "${A}";
860
860
  src: url(${e});
861
- }`)),document.head.appendChild(t),this}_parseUrls(A){const e=Array.from(new Set([...A.split(","),A]));return Array.from(new Set(e.map(t=>this.familyToUrl.get(t.trim())??this.familyToUrl.get(t)??t)))}get(A){let e;return A&&(e=this._parseUrls(A).reduce((i,s)=>i||this.loaded.get(s),void 0)),e??this.fallbackFont}set(A,e){return this.familyToUrl.set(A,e.src),this.loaded.set(e.src,e),this}delete(A){return this._parseUrls(A).forEach(e=>{this.familyToUrl.delete(e),this.loaded.delete(e)}),this}clear(){return this.familyToUrl.clear(),this.loading.clear(),this.loaded.clear(),this}async load(A,e={}){const{cancelOther:t,injectFontFace:i=!0,injectStyleTag:s=!0,...n}=e;let o,a;if(typeof A=="string"?o=A:{src:o,family:a}=A,this.loaded.has(o))return t&&(this.loading.forEach(I=>I.cancel()),this.loading.clear()),c(this.loaded.get(o));let l=this.loading.get(o);return l||(l=this._createRequest(o,n),this.loading.set(o,l)),t&&this.loading.forEach((I,d)=>{I!==l&&(I.cancel(),this.loading.delete(d))}),l.when.then(I=>{if(this.loaded.has(o))return c(this.loaded.get(o));{const d=f(I);return e.noAdd||this.loaded.set(o,d),d.familySet.forEach(C=>{this.familyToUrl.set(C,o),typeof document<"u"&&(i&&this.injectFontFace(C,I),s&&this.injectStyleTag(C,o))}),d}}).catch(I=>{if(I instanceof DOMException&&I.message==="The user aborted a request.")return f();throw I}).finally(()=>{this.loading.delete(o)});function h(){return a?Array.isArray(a)?a:[a]:[]}function c(I){return h().forEach(d=>{I.familySet.add(d)}),I}function f(I=new ArrayBuffer(0)){let d;function C(){return d||(d=I.byteLength?Ol(I,!1):void 0),d}function p(){const x=C();if(x instanceof yt||x instanceof Vr)return x.sfnt}return{src:o,family:a,buffer:I,familySet:new Set(h()),getFont:C,getSFNT:p}}}async waitUntilLoad(){await Promise.all(Array.from(this.loading.values()).map(A=>A.when))}};u(os,"defaultRequestInit",{cache:"force-cache"});let zr=os;const Hl=new zr,gI=Object.freeze(Object.defineProperty({__proto__:null,BaseFont:Pr,get Cff(){return SA},get Cmap(){return ti},CmapSubtableFormat0:Mn,CmapSubtableFormat12:Un,CmapSubtableFormat14:ji,CmapSubtableFormat2:Wi,CmapSubtableFormat4:kn,CmapSubtableFormat6:RA,FontDataObject:It,FontDataView:Fe,Fonts:zr,get Glyf(){return Lr},Glyph:Dn,GlyphSet:xn,get Gpos(){return Tn},get Gsub(){return Zt},get Head(){return Re},get Hhea(){return Ve},get Hmtx(){return Or},get Kern(){return Gn},get Loca(){return Hr},get Maxp(){return Ge},get Name(){return Ai},get Os2(){return ae},get Post(){return Qt},SFNT:xA,TTF:yt,TableDirectory:$A,get Vhea(){return ze},get Vmtx(){return Kr},WOFF:Vr,WOFFTableDirectoryEntry:kA,createCmapSegments:Pn,dataTypeToByteLength:Yi,defineColumn:y,defineSFNTTable:Ye,fonts:Hl,parseFont:Ol,parseSFNTFont:Ll},Symbol.toStringTag,{value:"Module"}));function On(r,A,e){if(typeof A=="string"&&A.startsWith("linear-gradient")){const{x0:t,y0:i,x1:s,y1:n,stops:o}=uI(A,e.left,e.top,e.width,e.height),a=r.createLinearGradient(t,i,s,n);return o.forEach(l=>a.addColorStop(l.offset,l.color)),a}return A}function Wr(r,A,e){r!=null&&r.color&&(r.color=On(e,r.color,A)),r!=null&&r.backgroundColor&&(r.backgroundColor=On(e,r.backgroundColor,A)),r!=null&&r.textStrokeColor&&(r.textStrokeColor=On(e,r.textStrokeColor,A))}function uI(r,A,e,t,i){var I;const s=((I=r.match(/linear-gradient\((.+)\)$/))==null?void 0:I[1])??"",n=s.split(",")[0],o=n.includes("deg")?n:"0deg",a=s.replace(o,"").matchAll(/(#|rgba|rgb)(.+?) ([\d.]+%)/gi),h=(Number(o.replace("deg",""))||0)*Math.PI/180,c=t*Math.sin(h),f=i*Math.cos(h);return{x0:A+t/2-c,y0:e+i/2+f,x1:A+t/2+c,y1:e+i/2-f,stops:Array.from(a).map(d=>{let C=d[2];return C.startsWith("(")?C=C.split(",").length>3?`rgba${C}`:`rgb${C}`:C=`#${C}`,{offset:Number(d[3].replace("%",""))/100,color:C}})}}function ii(r){const{ctx:A,path:e,fontSize:t,clipRect:i}=r;A.save(),A.beginPath();const s=e.style,n={...s,fill:r.color??s.fill,stroke:r.textStrokeColor??s.stroke,strokeWidth:r.textStrokeWidth?r.textStrokeWidth*t:s.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round",shadowOffsetX:(r.shadowOffsetX??0)*t,shadowOffsetY:(r.shadowOffsetY??0)*t,shadowBlur:(r.shadowBlur??0)*t,shadowColor:r.shadowColor};i&&(A.rect(i.left,i.top,i.width,i.height),A.clip(),A.beginPath()),e.drawTo(A,n),A.restore()}function fI(r,A,e){const{left:t,top:i,width:s,height:n}=e,o=r.canvas;o.dataset.viewBox=`${t} ${i} ${s} ${n}`,o.dataset.pixelRatio=String(A);const a=s,l=n;o.width=Math.max(1,Math.ceil(a*A)),o.height=Math.max(1,Math.ceil(l*A)),o.style.width=`${a}px`,o.style.height=`${l}px`,r.clearRect(0,0,o.width,o.height),r.scale(A,A),r.translate(-t,-i)}function dI(r,A){const{paragraphs:e,computedStyle:t,glyphBox:i}=A;Wr(t,i,r),e.forEach(s=>{Wr(s.computedStyle,s.lineBox,r),s.fragments.forEach(n=>{Wr(n.computedStyle,n.inlineBox,r)})})}const II=new Set(["©","®","÷"]),pI=new Set(["—","…","“","”","﹏","﹋","﹌","‘","’","˜"]),EI={1:"italic",32:"bold"},BI={1:"italic",2:"bold"},Jl={100:-.2,200:-.1,300:0,400:0,normal:0,500:.1,600:.2,700:.3,bold:.3,800:.4,900:.5};class CI{constructor(A,e,t){u(this,"path",new Ne);u(this,"lineBox",new ce);u(this,"inlineBox",new ce);u(this,"glyphBox");u(this,"advanceWidth",0);u(this,"advanceHeight",0);u(this,"underlinePosition",0);u(this,"underlineThickness",0);u(this,"strikeoutPosition",0);u(this,"strikeoutSize",0);u(this,"ascender",0);u(this,"descender",0);u(this,"typoAscender",0);u(this,"typoDescender",0);u(this,"typoLineGap",0);u(this,"winAscent",0);u(this,"winDescent",0);u(this,"xHeight",0);u(this,"capHeight",0);u(this,"baseline",0);u(this,"centerDiviation",0);u(this,"fontStyle");this.content=A,this.index=e,this.parent=t}get compatibleGlyphBox(){const A=this.computedStyle.fontSize*.8;return this.glyphBox??(this.isVertical?new ce(this.lineBox.left+this.lineBox.width/2-A/2,this.lineBox.top,A,this.lineBox.height):new ce(this.lineBox.left,this.lineBox.top+this.lineBox.height/2-A/2,this.lineBox.width,A))}get center(){return this.compatibleGlyphBox.center}get computedStyle(){return this.parent.computedStyle}get isVertical(){return this.computedStyle.writingMode.includes("vertical")}get fontSize(){return this.computedStyle.fontSize}get fontHeight(){return this.fontSize*this.computedStyle.lineHeight}_getFontSFNT(A){const e=this.computedStyle.fontFamily,t=A??Hl,i=e?t.get(e):t.fallbackFont;return i==null?void 0:i.getSFNT()}updateGlyph(A=this._getFontSFNT()){if(!A)return this;const{hhea:e,os2:t,post:i,head:s}=A,n=s.unitsPerEm,o=e.ascent,a=e.descent,{content:l,computedStyle:h,isVertical:c}=this,{fontSize:f}=h,I=n/f,d=A.getAdvanceWidth(l,f),C=(o+Math.abs(a))/I,p=o/I;return this.advanceWidth=d,this.advanceHeight=C,this.inlineBox.width=c?C:d,this.inlineBox.height=c?d:C,this.underlinePosition=(o-i.underlinePosition)/I,this.underlineThickness=i.underlineThickness/I,this.strikeoutPosition=(o-t.yStrikeoutPosition)/I,this.strikeoutSize=t.yStrikeoutSize/I,this.ascender=o/I,this.descender=a/I,this.typoAscender=t.sTypoAscender/I,this.typoDescender=t.sTypoDescender/I,this.typoLineGap=t.sTypoLineGap/I,this.winAscent=t.usWinAscent/I,this.winDescent=t.usWinDescent/I,this.xHeight=t.sxHeight/I,this.capHeight=t.sCapHeight/I,this.baseline=p,this.centerDiviation=C/2-p,this.fontStyle=EI[t.fsSelection]??BI[s.macStyle],this}update(A){const e=this._getFontSFNT(A);if(!e)return this;this.updateGlyph(e);const{isVertical:t,content:i,computedStyle:s,baseline:n,inlineBox:o,ascender:a,descender:l,typoAscender:h,fontStyle:c,advanceWidth:f,advanceHeight:I}=this,{left:d,top:C}=o,p=s.fontStyle==="italic"&&c!=="italic";let x=d,P=C+n,w;const R=new Ne;if(t&&(x+=(I-f)/2,Math.abs(f-I)>.1&&(P-=(a-h)/(a+Math.abs(l))*I),w=void 0),t&&!II.has(i)&&(i.codePointAt(0)<=256||pI.has(i))){R.addCommands(e.getPathCommands(i,x,C+n-(I-f)/2,s.fontSize));const m={y:C-(I-f)/2+I/2,x:x+f/2};p&&this._italic(R,t?{x:m.x,y:C-(I-f)/2+n}:void 0),R.rotate(90,m)}else w!==void 0?(R.addCommands(e.glyphs.get(w).getPathCommands(x,P,s.fontSize)),p&&this._italic(R,t?{x:x+f/2,y:C+h/(a+Math.abs(l))*I}:void 0)):(R.addCommands(e.getPathCommands(i,x,P,s.fontSize)),p&&this._italic(R,t?{x:x+I/2,y:P}:void 0));const v=s.fontWeight??400;return v in Jl&&(v===700||v==="bold")&&c!=="bold"&&R.bold(Jl[v]*s.fontSize*.05),R.style={fill:s.color,stroke:s.textStrokeWidth?s.textStrokeColor:"none",strokeWidth:s.textStrokeWidth?s.textStrokeWidth*s.fontSize*.03:0},this.path=R,this.glyphBox=this.getGlyphBoundingBox(),this}_italic(A,e){A.skew(-.24,0,e||{y:this.inlineBox.top+this.baseline,x:this.inlineBox.left+this.inlineBox.width/2})}getGlyphMinMax(A,e,t){var i;if((i=this.path.curves[0])!=null&&i.curves.length)return this.path.getMinMax(A,e,t)}getGlyphBoundingBox(A){const e=this.getGlyphMinMax(void 0,void 0,A);if(!e)return;const{min:t,max:i}=e;return new ce(t.x,t.y,i.x-t.x,i.y-t.y)}drawTo(A,e={}){const t=this.computedStyle,i={ctx:A,path:this.path,fontSize:t.fontSize,color:t.color,...e};if(this.glyphBox)ii(i);else{A.save(),A.beginPath();const s=this.path.style,n={...s,fill:i.color??s.fill,stroke:i.textStrokeColor??s.stroke,strokeWidth:i.textStrokeWidth?i.textStrokeWidth*i.fontSize:s.strokeWidth,shadowOffsetX:(i.shadowOffsetX??0)*i.fontSize,shadowOffsetY:(i.shadowOffsetY??0)*i.fontSize,shadowBlur:(i.shadowBlur??0)*i.fontSize,shadowColor:i.shadowColor};An(A,n),A.font=`${i.fontSize}px ${i.fontFamily}`,this.isVertical?(A.textBaseline="middle",A.fillText(this.content,this.inlineBox.left,this.inlineBox.top+this.inlineBox.height/2)):(A.textBaseline="alphabetic",A.fillText(this.content,this.inlineBox.left,this.inlineBox.top+this.baseline)),A.restore()}}}function Kl(){const r=new Map;async function A(t){if(!r.has(t)){r.set(t,t);try{r.set(t,await fetch(t).then(i=>i.text()))}catch(i){console.warn(i),r.delete(t)}}}function e(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("blob://")}return{loaded:r,needsLoad:e,load:A}}function Yl(r){const A=new Map;function e(t){let i=A.get(t);if(!i){const s=hn(r.needsLoad(t)?r.loaded.get(t)??t:t),n=gn(s);i={dom:s,pathSet:n},A.set(t,i)}return i}return{parsed:A,parse:e}}function Hn(r,A){return typeof r=="number"?r:r.endsWith("%")?(r=r.substring(0,r.length-1),Math.ceil(Number(r)/100*A.total)):r.endsWith("rem")?(r=r.substring(0,r.length-3),Number(r)*A.fontSize):r.endsWith("em")?(r=r.substring(0,r.length-2),Number(r)*A.fontSize):Number(r)}function Jn(r){return he(r)?{}:r}function QI(r,A){const e=Object.keys(r),t=Object.keys(A);return Array.from(new Set([...e,...t])).every(s=>ri(r[s],A[s]))}function ri(r,A){const e=typeof r;return e===typeof A?e==="object"?QI(r,A):r===A:!1}function Kn(r){if(!r)return r;const A={};for(const e in r)r[e]!==""&&r[e]!==void 0&&(A[e]=r[e]);return A}class yI{constructor(A,e={},t){u(this,"inlineBox",new ce);this.content=A,this.style=e,this.parent=t,this.updateComputedStyle().initCharacters()}get computedContent(){const A=this.computedStyle;return A.textTransform==="uppercase"?this.content.toUpperCase():A.textTransform==="lowercase"?this.content.toLowerCase():this.content}updateComputedStyle(){return this.computedStyle={...this.parent.computedStyle,...Kn(this.style)},this}initCharacters(){const A=[];let e=0;for(const t of this.computedContent)A.push(new CI(t,e++,this));return this.characters=A,this}}class mI{constructor(A,e){u(this,"lineBox",new ce);u(this,"fragments",[]);this.style=A,this.parentStyle=e,this.updateComputedStyle()}updateComputedStyle(){return this.computedStyle={...Kn(this.parentStyle),...Kn(this.style)},this}addFragment(A,e){const t=new yI(A,e,this);return this.fragments.push(t),t}}function xE(r){return r}const di=class di{_toDOMStyle(A){const e={};for(const t in A){const i=A[t];di.notZeroStyles.has(t)&&i===0||(typeof i=="number"&&di.pxStyles.has(t)?e[t]=`${i}px`:e[t]=i)}return e}createDOM(A,e){const t=document.createElement("section"),i={...e},s=e.writingMode.includes("horizontal");switch(e.textAlign){case"start":case"left":i.justifyContent="flex-start";break;case"center":i.justifyContent="center";break;case"end":case"right":i.justifyContent="flex-end";break}switch(e.verticalAlign){case"top":i.alignItems="flex-start";break;case"middle":i.alignItems="center";break;case"bottom":i.alignItems="flex-end";break}const n=!!(i.justifyContent||i.alignItems);Object.assign(t.style,{...this._toDOMStyle({...i,boxSizing:i.boxSizing??"border-box",display:i.display??(n?"inline-flex":void 0),width:i.width??"max-content",height:i.height??"max-content"}),whiteSpace:"pre-wrap",wordBreak:"break-all"});const o=document.createElement("ul");return Object.assign(o.style,{verticalAlign:"inherit",listStyleType:"inherit",padding:"0",margin:"0",width:n&&s?"100%":void 0,height:n&&!s?"100%":void 0}),A.forEach(a=>{const l=document.createElement("li");Object.assign(l.style,{verticalAlign:"inherit",...this._toDOMStyle(a.style)}),a.fragments.forEach(h=>{const c=document.createElement("span");Object.assign(c.style,{verticalAlign:"inherit",...this._toDOMStyle(h.style)}),c.appendChild(document.createTextNode(h.content)),l.appendChild(c)}),o.appendChild(l)}),t.appendChild(o),t}measureDOMText(A){const e=document.createRange();e.selectNodeContents(A);const t=A.data??"";let i=0;return Array.from(t).map(s=>{var c;const n=i+=t.substring(i).indexOf(s),o=n+s.length;i+=s.length,e.setStart(A,Math.max(n,0)),e.setEnd(A,o);const a=((c=e.getClientRects)==null?void 0:c.call(e))??[e.getBoundingClientRect()];let l=a[a.length-1];a.length>1&&l.width<2&&(l=a[a.length-2]);const h=e.toString();if(h!==""&&l&&l.width+l.height!==0)return{content:h,top:l.top,left:l.left,height:l.height,width:l.width}}).filter(Boolean)}measureDOM(A){const e=[],t=[],i=[];return A.querySelectorAll("li").forEach((s,n)=>{const o=s.getBoundingClientRect();e.push({paragraphIndex:n,left:o.left,top:o.top,width:o.width,height:o.height}),s.querySelectorAll(":scope > *").forEach((a,l)=>{const h=a.getBoundingClientRect();t.push({paragraphIndex:n,fragmentIndex:l,left:h.left,top:h.top,width:h.width,height:h.height});let c=0;!a.children.length&&a.firstChild instanceof window.Text?this.measureDOMText(a.firstChild).forEach(f=>{i.push({...f,newParagraphIndex:-1,paragraphIndex:n,fragmentIndex:l,characterIndex:c++,textWidth:-1,textHeight:-1})}):a.querySelectorAll(":scope > *").forEach(f=>{f.firstChild instanceof window.Text&&this.measureDOMText(f.firstChild).forEach(I=>{i.push({...I,newParagraphIndex:-1,paragraphIndex:n,fragmentIndex:l,characterIndex:c++,textWidth:-1,textHeight:-1})})})})}),{paragraphs:e,fragments:t,characters:i}}measureParagraphDOM(A,e){const t=e.getBoundingClientRect(),i=this.measureDOM(e);i.paragraphs.forEach(o=>{const a=A[o.paragraphIndex];a.lineBox.left=o.left-t.left,a.lineBox.top=o.top-t.top,a.lineBox.width=o.width,a.lineBox.height=o.height}),i.fragments.forEach(o=>{const a=A[o.paragraphIndex].fragments[o.fragmentIndex];a.inlineBox.left=o.left-t.left,a.inlineBox.top=o.top-t.top,a.inlineBox.width=o.width,a.inlineBox.height=o.height});const s=[];let n=0;return i.characters.forEach(o=>{const{paragraphIndex:a,fragmentIndex:l,characterIndex:h}=o;s.push({...o,newParagraphIndex:a,left:o.left-t.left,top:o.top-t.top});const c=A[a].fragments[l].characters[h],{fontHeight:f,isVertical:I}=c,d=s[n];c.inlineBox.left=d.left,c.inlineBox.top=d.top,c.inlineBox.width=d.width,c.inlineBox.height=d.height,I?(c.lineBox.left=d.left+(d.width-f)/2,c.lineBox.top=d.top,c.lineBox.width=f,c.lineBox.height=d.height):(c.lineBox.left=d.left,c.lineBox.top=d.top+(d.height-f)/2,c.lineBox.width=d.width,c.lineBox.height=f),n++}),{paragraphs:A,boundingBox:new ce(0,0,t.width,t.height)}}measure(A,e,t){let i;t||(t=this.createDOM(A,e),Object.assign(t.style,{position:"fixed",visibility:"hidden"}),document.body.appendChild(t),i=()=>{var n;return(n=t==null?void 0:t.parentNode)==null?void 0:n.removeChild(t)});const s=this.measureParagraphDOM(A,t);return i==null||i(),s}};u(di,"notZeroStyles",new Set(["width","height"])),u(di,"pxStyles",new Set(["width","height","fontSize","letterSpacing","textStrokeWidth","textIndent","shadowOffsetX","shadowOffsetY","shadowBlur","margin","marginLeft","marginTop","marginRight","marginBottom","padding","paddingLeft","paddingTop","paddingRight","paddingBottom"]));let Yn=di;class wI{constructor(){u(this,"eventListeners",new Map)}addEventListener(A,e,t){const i={value:e,options:t},s=this.eventListeners.get(A);return s?Array.isArray(s)?s.push(i):this.eventListeners.set(A,[s,i]):this.eventListeners.set(A,i),this}removeEventListener(A,e,t){var s,n;if(!e)return this.eventListeners.delete(A),this;const i=this.eventListeners.get(A);if(!i)return this;if(Array.isArray(i)){const o=[];for(let a=0,l=i.length;a<l;a++){const h=i[a];(h.value!==e||typeof t=="object"&&(t!=null&&t.once)&&(typeof h.options=="boolean"||!((s=h.options)!=null&&s.once)))&&o.push(h)}o.length?this.eventListeners.set(A,o.length===1?o[0]:o):this.eventListeners.delete(A)}else i.value===e&&(typeof t=="boolean"||!(t!=null&&t.once)||typeof i.options=="boolean"||(n=i.options)!=null&&n.once)&&this.eventListeners.delete(A);return this}removeAllListeners(){return this.eventListeners.clear(),this}hasEventListener(A){return this.eventListeners.has(A)}dispatchEvent(A,e){var i,s;const t=this.eventListeners.get(A);if(t){if(Array.isArray(t))for(let n=t.length,o=0;o<n;o++){const a=t[o];typeof a.options=="object"&&((i=a.options)!=null&&i.once)&&this.off(A,a.value,a.options),a.value.apply(this,[e])}else typeof t.options=="object"&&((s=t.options)!=null&&s.once)&&this.off(A,t.value,t.options),t.value.apply(this,[e]);return!0}else return!1}on(A,e,t){return this.addEventListener(A,e,t)}once(A,e){return this.addEventListener(A,e,{once:!0})}off(A,e,t){return this.removeEventListener(A,e,t)}emit(A,e){this.dispatchEvent(A,e)}}function vI(){const r=new nA,A=Kl(),e=Yl(A);return{name:"background",pathSet:r,load:async t=>{const{backgroundImage:i}=t.style;i&&A.needsLoad(i)&&await A.load(i)},update:t=>{r.paths.length=0;const{style:i,lineBox:s,isVertical:n}=t,{backgroundImage:o,backgroundSize:a,backgroundColormap:l}=i;if(he(o))return;const{pathSet:h}=e.parse(o),c=h.getBoundingBox(!0);let f,I,d,C;n?{x:I,y:f,width:C,height:d}=s:{x:f,y:I,width:d,height:C}=s;const p=Jn(l??"none"),x=h.paths.map(v=>{const m=v.clone();return m.style.fill&&m.style.fill in p&&(m.style.fill=p[m.style.fill]),m.style.stroke&&m.style.stroke in p&&(m.style.stroke=p[m.style.stroke]),m});let P,w;if(a==="rigid"){P=Math.max(t.fontSize*5/c.width),w=P;const v=new G;v.x=c.width-d/P,v.y=c.height-C/w,x.forEach(m=>{m.applyTransform(b=>{const D=b.x>c.left+c.width/2,z=b.y>c.top+c.height/2;D&&(b.x-=v.x),z&&(b.y-=v.y)})})}else P=d/c.width,w=C/c.height;const R=new Ke;R.translate(-c.x,-c.y),R.scale(P,w),n&&(R.translate(-d/2,-C/2),R.rotate(-Math.PI/2),R.translate(C/2,d/2)),R.translate(f,I),x.forEach(v=>{v.applyTransform(m=>{m.applyMatrix3(R)})}),r.paths.push(...x)},renderOrder:-2,render:(t,i)=>{const{boundingBox:s,computedStyle:n}=i;he(n.backgroundColor)||(t.fillStyle=n.backgroundColor,t.fillRect(...s.array)),r.paths.forEach(o=>{if(ii({ctx:t,path:o,fontSize:n.fontSize}),i.debug){const a=new nA([o]).getBoundingBox();a&&t.strokeRect(a.x,a.y,a.width,a.height)}}),i.paragraphs.forEach(o=>{const{lineBox:a,style:l}=o;he(l.backgroundColor)||(t.fillStyle=l.backgroundColor,t.fillRect(...a.array)),o.fragments.forEach(h=>{const{inlineBox:c,style:f}=h;he(f.backgroundColor)||(t.fillStyle=f.backgroundColor,t.fillRect(...c.array))})})}}}function Vn(r){const{highlight:A,highlightImage:e,highlightReferImage:t,highlightColormap:i,highlightLine:s,highlightSize:n,highlightThickness:o}=r;return{image:(A==null?void 0:A.image)??e??"none",referImage:(A==null?void 0:A.referImage)??t??"none",colormap:(A==null?void 0:A.colormap)??i??"none",line:(A==null?void 0:A.line)??s??"none",size:(A==null?void 0:A.size)??n??"cover",thickness:(A==null?void 0:A.thickness)??o??"100%"}}function _I(){const r=new nA,A=[],e=Kl(),t=Yl(e);return{name:"highlight",pathSet:r,load:async i=>{const s=new Set;i.forEachCharacter(n=>{const{computedStyle:o}=n,{image:a,referImage:l}=Vn(o);a&&e.needsLoad(a)&&s.add(a),l&&e.needsLoad(l)&&s.add(l)}),await Promise.all(Array.from(s).map(n=>e.load(n)))},update:i=>{A.length=0,r.paths.length=0;let s=[],n,o;i.forEachCharacter(a=>{const{computedStyle:l}=a,h=Vn(l),{image:c,colormap:f,line:I,size:d,thickness:C}=h;if(he(c))n!=null&&n.length&&(n=[],s.push(n));else{const{inlineBox:p,isVertical:x}=a,{fontSize:P}=l;(!o||ri(o.image,c)&&ri(o.colormap,f)&&ri(o.line,I)&&ri(o.size,d)&&ri(o.thickness,C))&&(n!=null&&n.length)&&(x?n[0].inlineBox.left===p.left:n[0].inlineBox.top===p.top)&&n[0].fontSize===P?n.push(a):(n=[],n.push(a),s.push(n))}o=h}),s=s.filter(a=>a.length);for(let a=0;a<s.length;a++){const l=s[a],h=l[0],c=ce.from(...l.map(J=>J.compatibleGlyphBox));if(!c.height||!c.width)continue;const{computedStyle:f,isVertical:I,inlineBox:d,compatibleGlyphBox:C,strikeoutPosition:p,underlinePosition:x}=h,{fontSize:P}=f,{image:w,referImage:R,colormap:v,line:m,size:b,thickness:D}=Vn(f),z=Hn(D,{fontSize:P,total:c.width})/c.width,Ae=Jn(v),{pathSet:W,dom:K}=t.parse(w),te=W.getBoundingBox(!0),Y=P/te.width*2,L=new ce().copy(c);I&&(L.width=c.height,L.height=c.width,L.left=c.left+c.width);const se=Math.floor(L.width);let H=se;b!=="cover"&&(H=Hn(b,{fontSize:P,total:c.width})||se,L.width=H);const q=!he(R)&&he(m);if(q)te.copy(t.parse(R).pathSet.getBoundingBox(!0));else{let J;if(he(m))if(te.width/te.height>4){J="underline";const $=K.getAttribute("viewBox");if($){const[N,U,X,ee]=$.split(" ").map(j=>Number(j)),oe=U+ee/2;te.y<oe&&te.y+te.height>oe?J="line-through":te.y+te.height<oe?J="overline":J="underline"}}else J="outline";else J=m;switch(J){case"outline":{const $=L.width*.2,N=L.height*.2;I?(L.x-=N/2,L.y-=$/2,L.x-=L.height):(L.x-=$/2,L.y-=N/2),L.width+=$,L.height+=N;break}case"overline":L.height=te.height*Y,I?L.x=d.left+d.width:L.y=d.top;break;case"line-through":L.height=te.height*Y,I?L.x=d.left+d.width-p+L.height/2:L.y=d.top+p-L.height/2;break;case"underline":L.height=te.height*Y,I?L.x=C.left+C.width-x:L.y=d.top+x;break}}const ie=new Ke;if(ie.translate(-te.x,-te.y),ie.scale(L.width/te.width,L.height/te.height),I){const J=L.width/2,$=L.height/2;q||ie.translate(-J,-$),ie.rotate(-Math.PI/2),q||ie.translate($,J)}ie.translate(L.x,L.y);for(let J=0;J<Math.ceil(se/H);J++){const $=ie.clone();I?$.translate(0,J*L.width):$.translate(J*L.width,0),W.paths.forEach(N=>{const U=N.clone().applyTransform($);U.style.strokeWidth&&(U.style.strokeWidth*=Y*z),U.style.strokeMiterlimit&&(U.style.strokeMiterlimit*=Y),U.style.strokeDashoffset&&(U.style.strokeDashoffset*=Y),U.style.strokeDasharray&&(U.style.strokeDasharray=U.style.strokeDasharray.map(X=>X*Y)),U.style.fill&&U.style.fill in Ae&&(U.style.fill=Ae[U.style.fill]),U.style.stroke&&U.style.stroke in Ae&&(U.style.stroke=Ae[U.style.stroke]),r.paths.push(U),se!==H&&(I?A[r.paths.length-1]=new ce(c.left-c.width*2,c.top,c.width*4,c.height):A[r.paths.length-1]=new ce(c.left,c.top-c.height*2,c.width,c.height*4))})}}},renderOrder:-1,getBoundingBox:()=>{const i=[];return r.paths.forEach((s,n)=>{const o=A[n];let a=s.getBoundingBox();if(o){const l=Math.max(a.x,o.x),h=Math.max(a.y,o.y),c=Math.min(a.right,o.right),f=Math.min(a.bottom,o.bottom);a=new ce(l,h,c-l,f-h)}i.push(a)}),ce.from(...i)},render:(i,s)=>{r.paths.forEach((n,o)=>{if(ii({ctx:i,path:n,fontSize:s.computedStyle.fontSize,clipRect:A[o]}),s.debug){const a=new nA([n]).getBoundingBox();a&&i.strokeRect(a.x,a.y,a.width,a.height)}})}}}function bI(r,A){return`<svg width="${r*2}" height="${r*2}" xmlns="http://www.w3.org/2000/svg">
861
+ }`)),document.head.appendChild(t),this}_parseUrls(A){const e=Array.from(new Set([...A.split(","),A]));return Array.from(new Set(e.map(t=>this.familyToUrl.get(t.trim())??this.familyToUrl.get(t)??t)))}get(A){let e;return A&&(e=this._parseUrls(A).reduce((i,s)=>i||this.loaded.get(s),void 0)),e??this.fallbackFont}set(A,e){return this.familyToUrl.set(A,e.src),this.loaded.set(e.src,e),this}delete(A){return this._parseUrls(A).forEach(e=>{this.familyToUrl.delete(e),this.loaded.delete(e)}),this}clear(){return this.familyToUrl.clear(),this.loading.clear(),this.loaded.clear(),this}async load(A,e={}){const{cancelOther:t,injectFontFace:i=!0,injectStyleTag:s=!0,...n}=e;let o,a;if(typeof A=="string"?o=A:{src:o,family:a}=A,this.loaded.has(o))return t&&(this.loading.forEach(I=>I.cancel()),this.loading.clear()),h(this.loaded.get(o));let l=this.loading.get(o);return l||(l=this._createRequest(o,n),this.loading.set(o,l)),t&&this.loading.forEach((I,d)=>{I!==l&&(I.cancel(),this.loading.delete(d))}),l.when.then(I=>{if(this.loaded.has(o))return h(this.loaded.get(o));{const d=f(I);return e.noAdd||this.loaded.set(o,d),d.familySet.forEach(C=>{this.familyToUrl.set(C,o),typeof document<"u"&&(i&&this.injectFontFace(C,I),s&&this.injectStyleTag(C,o))}),d}}).catch(I=>{if(I instanceof DOMException&&I.message==="The user aborted a request.")return f();throw I}).finally(()=>{this.loading.delete(o)});function c(){return a?Array.isArray(a)?a:[a]:[]}function h(I){return c().forEach(d=>{I.familySet.add(d)}),I}function f(I=new ArrayBuffer(0)){let d;function C(){return d||(d=I.byteLength?Hl(I,!1):void 0),d}function p(){const x=C();if(x instanceof yt||x instanceof Vr)return x.sfnt}return{src:o,family:a,buffer:I,familySet:new Set(c()),getFont:C,getSFNT:p}}}async waitUntilLoad(){await Promise.all(Array.from(this.loading.values()).map(A=>A.when))}};u(os,"defaultRequestInit",{cache:"force-cache"});let zr=os;const Jl=new zr,uI=Object.freeze(Object.defineProperty({__proto__:null,BaseFont:Pr,get Cff(){return SA},get Cmap(){return ti},CmapSubtableFormat0:Mn,CmapSubtableFormat12:Un,CmapSubtableFormat14:ji,CmapSubtableFormat2:Wi,CmapSubtableFormat4:kn,CmapSubtableFormat6:RA,FontDataObject:It,FontDataView:Fe,Fonts:zr,get Glyf(){return Lr},Glyph:Dn,GlyphSet:xn,get Gpos(){return Tn},get Gsub(){return Zt},get Head(){return Re},get Hhea(){return Ve},get Hmtx(){return Or},get Kern(){return Gn},get Loca(){return Hr},get Maxp(){return Ge},get Name(){return Ai},get Os2(){return ae},get Post(){return Qt},SFNT:xA,TTF:yt,TableDirectory:$A,get Vhea(){return ze},get Vmtx(){return Kr},WOFF:Vr,WOFFTableDirectoryEntry:kA,createCmapSegments:Pn,dataTypeToByteLength:Yi,defineColumn:y,defineSFNTTable:Ye,fonts:Jl,parseFont:Hl,parseSFNTFont:Ol},Symbol.toStringTag,{value:"Module"}));function On(r,A,e){if(typeof A=="string"&&A.startsWith("linear-gradient")){const{x0:t,y0:i,x1:s,y1:n,stops:o}=fI(A,e.left,e.top,e.width,e.height),a=r.createLinearGradient(t,i,s,n);return o.forEach(l=>a.addColorStop(l.offset,l.color)),a}return A}function Wr(r,A,e){r!=null&&r.color&&(r.color=On(e,r.color,A)),r!=null&&r.backgroundColor&&(r.backgroundColor=On(e,r.backgroundColor,A)),r!=null&&r.textStrokeColor&&(r.textStrokeColor=On(e,r.textStrokeColor,A))}function fI(r,A,e,t,i){var I;const s=((I=r.match(/linear-gradient\((.+)\)$/))==null?void 0:I[1])??"",n=s.split(",")[0],o=n.includes("deg")?n:"0deg",a=s.replace(o,"").matchAll(/(#|rgba|rgb)(.+?) ([\d.]+%)/gi),c=(Number(o.replace("deg",""))||0)*Math.PI/180,h=t*Math.sin(c),f=i*Math.cos(c);return{x0:A+t/2-h,y0:e+i/2+f,x1:A+t/2+h,y1:e+i/2-f,stops:Array.from(a).map(d=>{let C=d[2];return C.startsWith("(")?C=C.split(",").length>3?`rgba${C}`:`rgb${C}`:C=`#${C}`,{offset:Number(d[3].replace("%",""))/100,color:C}})}}function ii(r){const{ctx:A,path:e,fontSize:t,clipRect:i}=r;A.save(),A.beginPath();const s=e.style,n={...s,fill:r.color??s.fill,stroke:r.textStrokeColor??s.stroke,strokeWidth:r.textStrokeWidth?r.textStrokeWidth*t:s.strokeWidth,strokeLinecap:"round",strokeLinejoin:"round",shadowOffsetX:(r.shadowOffsetX??0)*t,shadowOffsetY:(r.shadowOffsetY??0)*t,shadowBlur:(r.shadowBlur??0)*t,shadowColor:r.shadowColor};i&&(A.rect(i.left,i.top,i.width,i.height),A.clip(),A.beginPath()),e.drawTo(A,n),A.restore()}function dI(r,A,e){const{left:t,top:i,width:s,height:n}=e,o=r.canvas;o.dataset.viewBox=`${t} ${i} ${s} ${n}`,o.dataset.pixelRatio=String(A);const a=s,l=n;o.width=Math.max(1,Math.ceil(a*A)),o.height=Math.max(1,Math.ceil(l*A)),o.style.width=`${a}px`,o.style.height=`${l}px`,r.clearRect(0,0,o.width,o.height),r.scale(A,A),r.translate(-t,-i)}function II(r,A){const{paragraphs:e,computedStyle:t,glyphBox:i}=A;Wr(t,i,r),e.forEach(s=>{Wr(s.computedStyle,s.lineBox,r),s.fragments.forEach(n=>{Wr(n.computedStyle,n.inlineBox,r)})})}const pI=new Set(["©","®","÷"]),EI=new Set(["—","…","“","”","﹏","﹋","﹌","‘","’","˜"]),BI={1:"italic",32:"bold"},CI={1:"italic",2:"bold"},Kl={100:-.2,200:-.1,300:0,400:0,normal:0,500:.1,600:.2,700:.3,bold:.3,800:.4,900:.5};class QI{constructor(A,e,t){u(this,"path",new Ne);u(this,"lineBox",new he);u(this,"inlineBox",new he);u(this,"glyphBox");u(this,"advanceWidth",0);u(this,"advanceHeight",0);u(this,"underlinePosition",0);u(this,"underlineThickness",0);u(this,"strikeoutPosition",0);u(this,"strikeoutSize",0);u(this,"ascender",0);u(this,"descender",0);u(this,"typoAscender",0);u(this,"typoDescender",0);u(this,"typoLineGap",0);u(this,"winAscent",0);u(this,"winDescent",0);u(this,"xHeight",0);u(this,"capHeight",0);u(this,"baseline",0);u(this,"centerDiviation",0);u(this,"fontStyle");this.content=A,this.index=e,this.parent=t}get compatibleGlyphBox(){const A=this.computedStyle.fontSize*.8;return this.glyphBox??(this.isVertical?new he(this.lineBox.left+this.lineBox.width/2-A/2,this.lineBox.top,A,this.lineBox.height):new he(this.lineBox.left,this.lineBox.top+this.lineBox.height/2-A/2,this.lineBox.width,A))}get center(){return this.compatibleGlyphBox.center}get computedStyle(){return this.parent.computedStyle}get isVertical(){return this.computedStyle.writingMode.includes("vertical")}get fontSize(){return this.computedStyle.fontSize}get fontHeight(){return this.fontSize*this.computedStyle.lineHeight}_getFontSFNT(A){const e=this.computedStyle.fontFamily,t=A??Jl,i=e?t.get(e):t.fallbackFont;return i==null?void 0:i.getSFNT()}updateGlyph(A=this._getFontSFNT()){if(!A)return this;const{hhea:e,os2:t,post:i,head:s}=A,n=s.unitsPerEm,o=e.ascent,a=e.descent,{content:l,computedStyle:c,isVertical:h}=this,{fontSize:f}=c,I=n/f,d=A.getAdvanceWidth(l,f),C=(o+Math.abs(a))/I,p=o/I;return this.advanceWidth=d,this.advanceHeight=C,this.inlineBox.width=h?C:d,this.inlineBox.height=h?d:C,this.underlinePosition=(o-i.underlinePosition)/I,this.underlineThickness=i.underlineThickness/I,this.strikeoutPosition=(o-t.yStrikeoutPosition)/I,this.strikeoutSize=t.yStrikeoutSize/I,this.ascender=o/I,this.descender=a/I,this.typoAscender=t.sTypoAscender/I,this.typoDescender=t.sTypoDescender/I,this.typoLineGap=t.sTypoLineGap/I,this.winAscent=t.usWinAscent/I,this.winDescent=t.usWinDescent/I,this.xHeight=t.sxHeight/I,this.capHeight=t.sCapHeight/I,this.baseline=p,this.centerDiviation=C/2-p,this.fontStyle=BI[t.fsSelection]??CI[s.macStyle],this}update(A){const e=this._getFontSFNT(A);if(!e)return this;this.updateGlyph(e);const{isVertical:t,content:i,computedStyle:s,baseline:n,inlineBox:o,ascender:a,descender:l,typoAscender:c,fontStyle:h,advanceWidth:f,advanceHeight:I}=this,{left:d,top:C}=o,p=s.fontStyle==="italic"&&h!=="italic";let x=d,P=C+n,w;const R=new Ne;if(t&&(x+=(I-f)/2,Math.abs(f-I)>.1&&(P-=(a-c)/(a+Math.abs(l))*I),w=void 0),t&&!pI.has(i)&&(i.codePointAt(0)<=256||EI.has(i))){R.addCommands(e.getPathCommands(i,x,C+n-(I-f)/2,s.fontSize));const m={y:C-(I-f)/2+I/2,x:x+f/2};p&&this._italic(R,t?{x:m.x,y:C-(I-f)/2+n}:void 0),R.rotate(90,m)}else w!==void 0?(R.addCommands(e.glyphs.get(w).getPathCommands(x,P,s.fontSize)),p&&this._italic(R,t?{x:x+f/2,y:C+c/(a+Math.abs(l))*I}:void 0)):(R.addCommands(e.getPathCommands(i,x,P,s.fontSize)),p&&this._italic(R,t?{x:x+I/2,y:P}:void 0));const v=s.fontWeight??400;return v in Kl&&(v===700||v==="bold")&&h!=="bold"&&R.bold(Kl[v]*s.fontSize*.05),R.style={fill:s.color,stroke:s.textStrokeWidth?s.textStrokeColor:"none",strokeWidth:s.textStrokeWidth?s.textStrokeWidth*s.fontSize*.03:0},this.path=R,this.glyphBox=this.getGlyphBoundingBox(),this}_italic(A,e){A.skew(-.24,0,e||{y:this.inlineBox.top+this.baseline,x:this.inlineBox.left+this.inlineBox.width/2})}getGlyphMinMax(A,e,t){var i;if((i=this.path.curves[0])!=null&&i.curves.length)return this.path.getMinMax(A,e,t)}getGlyphBoundingBox(A){const e=this.getGlyphMinMax(void 0,void 0,A);if(!e)return;const{min:t,max:i}=e;return new he(t.x,t.y,i.x-t.x,i.y-t.y)}drawTo(A,e={}){const t=this.computedStyle,i={ctx:A,path:this.path,fontSize:t.fontSize,color:t.color,...e};if(this.glyphBox)ii(i);else{A.save(),A.beginPath();const s=this.path.style,n={...s,fill:i.color??s.fill,stroke:i.textStrokeColor??s.stroke,strokeWidth:i.textStrokeWidth?i.textStrokeWidth*i.fontSize:s.strokeWidth,shadowOffsetX:(i.shadowOffsetX??0)*i.fontSize,shadowOffsetY:(i.shadowOffsetY??0)*i.fontSize,shadowBlur:(i.shadowBlur??0)*i.fontSize,shadowColor:i.shadowColor};An(A,n),A.font=`${i.fontSize}px ${i.fontFamily}`,this.isVertical?(A.textBaseline="middle",A.fillText(this.content,this.inlineBox.left,this.inlineBox.top+this.inlineBox.height/2)):(A.textBaseline="alphabetic",A.fillText(this.content,this.inlineBox.left,this.inlineBox.top+this.baseline)),A.restore()}}}function Yl(){const r=new Map;async function A(t){if(!r.has(t)){r.set(t,t);try{r.set(t,await fetch(t).then(i=>i.text()))}catch(i){console.warn(i),r.delete(t)}}}function e(t){return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("blob://")}return{loaded:r,needsLoad:e,load:A}}function Vl(r){const A=new Map;function e(t){let i=A.get(t);if(!i){const s=cn(r.needsLoad(t)?r.loaded.get(t)??t:t),n=gn(s);i={dom:s,pathSet:n},A.set(t,i)}return i}return{parsed:A,parse:e}}function Hn(r,A){return typeof r=="number"?r:r.endsWith("%")?(r=r.substring(0,r.length-1),Math.ceil(Number(r)/100*A.total)):r.endsWith("rem")?(r=r.substring(0,r.length-3),Number(r)*A.fontSize):r.endsWith("em")?(r=r.substring(0,r.length-2),Number(r)*A.fontSize):Number(r)}function Jn(r){return ce(r)?{}:r}function yI(r,A){const e=Object.keys(r),t=Object.keys(A);return Array.from(new Set([...e,...t])).every(s=>ri(r[s],A[s]))}function ri(r,A){const e=typeof r;return e===typeof A?e==="object"?yI(r,A):r===A:!1}function Kn(r){if(!r)return r;const A={};for(const e in r)r[e]!==""&&r[e]!==void 0&&(A[e]=r[e]);return A}class mI{constructor(A,e={},t){u(this,"inlineBox",new he);this.content=A,this.style=e,this.parent=t,this.updateComputedStyle().initCharacters()}get computedContent(){const A=this.computedStyle;return A.textTransform==="uppercase"?this.content.toUpperCase():A.textTransform==="lowercase"?this.content.toLowerCase():this.content}updateComputedStyle(){return this.computedStyle={...this.parent.computedStyle,...Kn(this.style)},this}initCharacters(){const A=[];let e=0;for(const t of this.computedContent)A.push(new QI(t,e++,this));return this.characters=A,this}}class wI{constructor(A,e){u(this,"lineBox",new he);u(this,"fragments",[]);this.style=A,this.parentStyle=e,this.updateComputedStyle()}updateComputedStyle(){return this.computedStyle={...Kn(this.parentStyle),...Kn(this.style)},this}addFragment(A,e){const t=new mI(A,e,this);return this.fragments.push(t),t}}function SE(r){return r}const di=class di{_toDOMStyle(A){const e={};for(const t in A){const i=A[t];di.notZeroStyles.has(t)&&i===0||(typeof i=="number"&&di.pxStyles.has(t)?e[t]=`${i}px`:e[t]=i)}return e}createDOM(A,e){const t=document.createElement("section"),i={...e},s=e.writingMode.includes("horizontal");switch(e.textAlign){case"start":case"left":i.justifyContent="flex-start";break;case"center":i.justifyContent="center";break;case"end":case"right":i.justifyContent="flex-end";break}switch(e.verticalAlign){case"top":i.alignItems="flex-start";break;case"middle":i.alignItems="center";break;case"bottom":i.alignItems="flex-end";break}const n=!!(i.justifyContent||i.alignItems);Object.assign(t.style,{...this._toDOMStyle({...i,boxSizing:i.boxSizing??"border-box",display:i.display??(n?"inline-flex":void 0),width:i.width??"max-content",height:i.height??"max-content"}),whiteSpace:"pre-wrap",wordBreak:"break-all"});const o=document.createElement("ul");return Object.assign(o.style,{verticalAlign:"inherit",listStyleType:"inherit",padding:"0",margin:"0",width:n&&s?"100%":void 0,height:n&&!s?"100%":void 0}),A.forEach(a=>{const l=document.createElement("li");Object.assign(l.style,{verticalAlign:"inherit",...this._toDOMStyle(a.style)}),a.fragments.forEach(c=>{const h=document.createElement("span");Object.assign(h.style,{verticalAlign:"inherit",...this._toDOMStyle(c.style)}),h.appendChild(document.createTextNode(c.content)),l.appendChild(h)}),o.appendChild(l)}),t.appendChild(o),t}measureDOMText(A){const e=document.createRange();e.selectNodeContents(A);const t=A.data??"";let i=0;return Array.from(t).map(s=>{var h;const n=i+=t.substring(i).indexOf(s),o=n+s.length;i+=s.length,e.setStart(A,Math.max(n,0)),e.setEnd(A,o);const a=((h=e.getClientRects)==null?void 0:h.call(e))??[e.getBoundingClientRect()];let l=a[a.length-1];a.length>1&&l.width<2&&(l=a[a.length-2]);const c=e.toString();if(c!==""&&l&&l.width+l.height!==0)return{content:c,top:l.top,left:l.left,height:l.height,width:l.width}}).filter(Boolean)}measureDOM(A){const e=[],t=[],i=[];return A.querySelectorAll("li").forEach((s,n)=>{const o=s.getBoundingClientRect();e.push({paragraphIndex:n,left:o.left,top:o.top,width:o.width,height:o.height}),s.querySelectorAll(":scope > *").forEach((a,l)=>{const c=a.getBoundingClientRect();t.push({paragraphIndex:n,fragmentIndex:l,left:c.left,top:c.top,width:c.width,height:c.height});let h=0;!a.children.length&&a.firstChild instanceof window.Text?this.measureDOMText(a.firstChild).forEach(f=>{i.push({...f,newParagraphIndex:-1,paragraphIndex:n,fragmentIndex:l,characterIndex:h++,textWidth:-1,textHeight:-1})}):a.querySelectorAll(":scope > *").forEach(f=>{f.firstChild instanceof window.Text&&this.measureDOMText(f.firstChild).forEach(I=>{i.push({...I,newParagraphIndex:-1,paragraphIndex:n,fragmentIndex:l,characterIndex:h++,textWidth:-1,textHeight:-1})})})})}),{paragraphs:e,fragments:t,characters:i}}measureParagraphDOM(A,e){const t=e.getBoundingClientRect(),i=this.measureDOM(e);i.paragraphs.forEach(o=>{const a=A[o.paragraphIndex];a.lineBox.left=o.left-t.left,a.lineBox.top=o.top-t.top,a.lineBox.width=o.width,a.lineBox.height=o.height}),i.fragments.forEach(o=>{const a=A[o.paragraphIndex].fragments[o.fragmentIndex];a.inlineBox.left=o.left-t.left,a.inlineBox.top=o.top-t.top,a.inlineBox.width=o.width,a.inlineBox.height=o.height});const s=[];let n=0;return i.characters.forEach(o=>{const{paragraphIndex:a,fragmentIndex:l,characterIndex:c}=o;s.push({...o,newParagraphIndex:a,left:o.left-t.left,top:o.top-t.top});const h=A[a].fragments[l].characters[c],{fontHeight:f,isVertical:I}=h,d=s[n];h.inlineBox.left=d.left,h.inlineBox.top=d.top,h.inlineBox.width=d.width,h.inlineBox.height=d.height,I?(h.lineBox.left=d.left+(d.width-f)/2,h.lineBox.top=d.top,h.lineBox.width=f,h.lineBox.height=d.height):(h.lineBox.left=d.left,h.lineBox.top=d.top+(d.height-f)/2,h.lineBox.width=d.width,h.lineBox.height=f),n++}),{paragraphs:A,boundingBox:new he(0,0,t.width,t.height)}}measure(A,e,t){let i;t||(t=this.createDOM(A,e),Object.assign(t.style,{position:"fixed",visibility:"hidden"}),document.body.appendChild(t),i=()=>{var n;return(n=t==null?void 0:t.parentNode)==null?void 0:n.removeChild(t)});const s=this.measureParagraphDOM(A,t);return i==null||i(),s}};u(di,"notZeroStyles",new Set(["width","height"])),u(di,"pxStyles",new Set(["width","height","fontSize","letterSpacing","textStrokeWidth","textIndent","shadowOffsetX","shadowOffsetY","shadowBlur","margin","marginLeft","marginTop","marginRight","marginBottom","padding","paddingLeft","paddingTop","paddingRight","paddingBottom"]));let Yn=di;class vI{constructor(){u(this,"eventListeners",new Map)}addEventListener(A,e,t){const i={value:e,options:t},s=this.eventListeners.get(A);return s?Array.isArray(s)?s.push(i):this.eventListeners.set(A,[s,i]):this.eventListeners.set(A,i),this}removeEventListener(A,e,t){var s,n;if(!e)return this.eventListeners.delete(A),this;const i=this.eventListeners.get(A);if(!i)return this;if(Array.isArray(i)){const o=[];for(let a=0,l=i.length;a<l;a++){const c=i[a];(c.value!==e||typeof t=="object"&&(t!=null&&t.once)&&(typeof c.options=="boolean"||!((s=c.options)!=null&&s.once)))&&o.push(c)}o.length?this.eventListeners.set(A,o.length===1?o[0]:o):this.eventListeners.delete(A)}else i.value===e&&(typeof t=="boolean"||!(t!=null&&t.once)||typeof i.options=="boolean"||(n=i.options)!=null&&n.once)&&this.eventListeners.delete(A);return this}removeAllListeners(){return this.eventListeners.clear(),this}hasEventListener(A){return this.eventListeners.has(A)}dispatchEvent(A,e){var i,s;const t=this.eventListeners.get(A);if(t){if(Array.isArray(t))for(let n=t.length,o=0;o<n;o++){const a=t[o];typeof a.options=="object"&&((i=a.options)!=null&&i.once)&&this.off(A,a.value,a.options),a.value.apply(this,[e])}else typeof t.options=="object"&&((s=t.options)!=null&&s.once)&&this.off(A,t.value,t.options),t.value.apply(this,[e]);return!0}else return!1}on(A,e,t){return this.addEventListener(A,e,t)}once(A,e){return this.addEventListener(A,e,{once:!0})}off(A,e,t){return this.removeEventListener(A,e,t)}emit(A,e){this.dispatchEvent(A,e)}}function _I(){const r=new nA,A=Yl(),e=Vl(A);return{name:"background",pathSet:r,load:async t=>{const{backgroundImage:i}=t.style;i&&A.needsLoad(i)&&await A.load(i)},update:t=>{r.paths.length=0;const{style:i,lineBox:s,isVertical:n}=t,{backgroundImage:o,backgroundSize:a,backgroundColormap:l}=i;if(ce(o))return;const{pathSet:c}=e.parse(o),h=c.getBoundingBox(!0);let f,I,d,C;n?{x:I,y:f,width:C,height:d}=s:{x:f,y:I,width:d,height:C}=s;const p=Jn(l??"none"),x=c.paths.map(v=>{const m=v.clone();return m.style.fill&&m.style.fill in p&&(m.style.fill=p[m.style.fill]),m.style.stroke&&m.style.stroke in p&&(m.style.stroke=p[m.style.stroke]),m});let P,w;if(a==="rigid"){P=Math.max(t.fontSize*5/h.width),w=P;const v=new G;v.x=h.width-d/P,v.y=h.height-C/w,x.forEach(m=>{m.applyTransform(b=>{const D=b.x>h.left+h.width/2,z=b.y>h.top+h.height/2;D&&(b.x-=v.x),z&&(b.y-=v.y)})})}else P=d/h.width,w=C/h.height;const R=new Ke;R.translate(-h.x,-h.y),R.scale(P,w),n&&(R.translate(-d/2,-C/2),R.rotate(-Math.PI/2),R.translate(C/2,d/2)),R.translate(f,I),x.forEach(v=>{v.applyTransform(m=>{m.applyMatrix3(R)})}),r.paths.push(...x)},renderOrder:-2,render:(t,i)=>{const{boundingBox:s,computedStyle:n}=i;ce(n.backgroundColor)||(t.fillStyle=n.backgroundColor,t.fillRect(...s.array)),r.paths.forEach(o=>{if(ii({ctx:t,path:o,fontSize:n.fontSize}),i.debug){const a=new nA([o]).getBoundingBox();a&&t.strokeRect(a.x,a.y,a.width,a.height)}}),i.paragraphs.forEach(o=>{const{lineBox:a,style:l}=o;ce(l.backgroundColor)||(t.fillStyle=l.backgroundColor,t.fillRect(...a.array)),o.fragments.forEach(c=>{const{inlineBox:h,style:f}=c;ce(f.backgroundColor)||(t.fillStyle=f.backgroundColor,t.fillRect(...h.array))})})}}}function Vn(r){const{highlight:A,highlightImage:e,highlightReferImage:t,highlightColormap:i,highlightLine:s,highlightSize:n,highlightThickness:o}=r;return{image:(A==null?void 0:A.image)??e??"none",referImage:(A==null?void 0:A.referImage)??t??"none",colormap:(A==null?void 0:A.colormap)??i??"none",line:(A==null?void 0:A.line)??s??"none",size:(A==null?void 0:A.size)??n??"cover",thickness:(A==null?void 0:A.thickness)??o??"100%"}}function bI(){const r=new nA,A=[],e=Yl(),t=Vl(e);return{name:"highlight",pathSet:r,load:async i=>{const s=new Set;i.forEachCharacter(n=>{const{computedStyle:o}=n,{image:a,referImage:l}=Vn(o);a&&e.needsLoad(a)&&s.add(a),l&&e.needsLoad(l)&&s.add(l)}),await Promise.all(Array.from(s).map(n=>e.load(n)))},update:i=>{A.length=0,r.paths.length=0;let s=[],n,o;i.forEachCharacter(a=>{const{computedStyle:l}=a,c=Vn(l),{image:h,colormap:f,line:I,size:d,thickness:C}=c;if(ce(h))n!=null&&n.length&&(n=[],s.push(n));else{const{inlineBox:p,isVertical:x}=a,{fontSize:P}=l;(!o||ri(o.image,h)&&ri(o.colormap,f)&&ri(o.line,I)&&ri(o.size,d)&&ri(o.thickness,C))&&(n!=null&&n.length)&&(x?n[0].inlineBox.left===p.left:n[0].inlineBox.top===p.top)&&n[0].fontSize===P?n.push(a):(n=[],n.push(a),s.push(n))}o=c}),s=s.filter(a=>a.length);for(let a=0;a<s.length;a++){const l=s[a],c=l[0],h=he.from(...l.map(J=>J.compatibleGlyphBox));if(!h.height||!h.width)continue;const{computedStyle:f,isVertical:I,inlineBox:d,compatibleGlyphBox:C,strikeoutPosition:p,underlinePosition:x}=c,{fontSize:P}=f,{image:w,referImage:R,colormap:v,line:m,size:b,thickness:D}=Vn(f),z=Hn(D,{fontSize:P,total:h.width})/h.width,Ae=Jn(v),{pathSet:W,dom:K}=t.parse(w),te=W.getBoundingBox(!0),Y=P/te.width*2,L=new he().copy(h);I&&(L.width=h.height,L.height=h.width,L.left=h.left+h.width);const se=Math.floor(L.width);let H=se;b!=="cover"&&(H=Hn(b,{fontSize:P,total:h.width})||se,L.width=H);const q=!ce(R)&&ce(m);if(q)te.copy(t.parse(R).pathSet.getBoundingBox(!0));else{let J;if(ce(m))if(te.width/te.height>4){J="underline";const $=K.getAttribute("viewBox");if($){const[N,U,X,ee]=$.split(" ").map(j=>Number(j)),oe=U+ee/2;te.y<oe&&te.y+te.height>oe?J="line-through":te.y+te.height<oe?J="overline":J="underline"}}else J="outline";else J=m;switch(J){case"outline":{const $=L.width*.2,N=L.height*.2;I?(L.x-=N/2,L.y-=$/2,L.x-=L.height):(L.x-=$/2,L.y-=N/2),L.width+=$,L.height+=N;break}case"overline":L.height=te.height*Y,I?L.x=d.left+d.width:L.y=d.top;break;case"line-through":L.height=te.height*Y,I?L.x=d.left+d.width-p+L.height/2:L.y=d.top+p-L.height/2;break;case"underline":L.height=te.height*Y,I?L.x=C.left+C.width-x:L.y=d.top+x;break}}const ie=new Ke;if(ie.translate(-te.x,-te.y),ie.scale(L.width/te.width,L.height/te.height),I){const J=L.width/2,$=L.height/2;q||ie.translate(-J,-$),ie.rotate(-Math.PI/2),q||ie.translate($,J)}ie.translate(L.x,L.y);for(let J=0;J<Math.ceil(se/H);J++){const $=ie.clone();I?$.translate(0,J*L.width):$.translate(J*L.width,0),W.paths.forEach(N=>{const U=N.clone().applyTransform($);U.style.strokeWidth&&(U.style.strokeWidth*=Y*z),U.style.strokeMiterlimit&&(U.style.strokeMiterlimit*=Y),U.style.strokeDashoffset&&(U.style.strokeDashoffset*=Y),U.style.strokeDasharray&&(U.style.strokeDasharray=U.style.strokeDasharray.map(X=>X*Y)),U.style.fill&&U.style.fill in Ae&&(U.style.fill=Ae[U.style.fill]),U.style.stroke&&U.style.stroke in Ae&&(U.style.stroke=Ae[U.style.stroke]),r.paths.push(U),se!==H&&(I?A[r.paths.length-1]=new he(h.left-h.width*2,h.top,h.width*4,h.height):A[r.paths.length-1]=new he(h.left,h.top-h.height*2,h.width,h.height*4))})}}},renderOrder:-1,getBoundingBox:()=>{const i=[];return r.paths.forEach((s,n)=>{const o=A[n];let a=s.getBoundingBox();if(o){const l=Math.max(a.x,o.x),c=Math.max(a.y,o.y),h=Math.min(a.right,o.right),f=Math.min(a.bottom,o.bottom);a=new he(l,c,h-l,f-c)}i.push(a)}),he.from(...i)},render:(i,s)=>{r.paths.forEach((n,o)=>{if(ii({ctx:i,path:n,fontSize:s.computedStyle.fontSize,clipRect:A[o]}),s.debug){const a=new nA([n]).getBoundingBox();a&&i.strokeRect(a.x,a.y,a.width,a.height)}})}}}function DI(r,A){return`<svg width="${r*2}" height="${r*2}" xmlns="http://www.w3.org/2000/svg">
862
862
  <circle cx="${r}" cy="${r}" r="${r}" fill="${A}" />
863
- </svg>`}function DI(){const r=new nA;return{name:"listStyle",pathSet:r,update:A=>{r.paths.length=0;const{paragraphs:e,isVertical:t,fontSize:i}=A,s=i*.45;e.forEach(n=>{var m;const{computedStyle:o}=n,{color:a,listStyleImage:l,listStyleColormap:h,listStyleSize:c,listStyleType:f}=o,I=Jn(h);let d=c,C;if(!he(l))C=l;else if(!he(f)){const b=i*.38/2;switch(d=d==="cover"?b*2:d,f){case"disc":C=bI(b,String(a));break}}if(!C)return;const p=gn(C),x=p.getBoundingBox(),P=(m=n.fragments[0])==null?void 0:m.characters[0];if(!P)return;const{inlineBox:w}=P,R=d==="cover"?1:Hn(d,{total:i,fontSize:i})/i,v=new Ke;if(t){const b=i/x.height*R;v.translate(-x.left,-x.top).rotate(Math.PI/2).scale(b,b).translate(w.left+(w.width-x.height*b)/2,w.top-s)}else{const b=i/x.height*R;v.translate(-x.left,-x.top).scale(b,b).translate(w.left-x.width*b-s,w.top+(w.height-x.height*b)/2)}r.paths.push(...p.paths.map(b=>{const D=b.clone();return D.applyTransform(v),D.style.fill&&D.style.fill in I&&(D.style.fill=I[D.style.fill]),D.style.stroke&&D.style.stroke in I&&(D.style.stroke=I[D.style.stroke]),D}))})}}}function xI(){return{name:"outline"}}const gA=new G,si=new Ke,uA=new Ke;function SI(){return{name:"render",getBoundingBox:r=>{const{characters:A,fontSize:e,effects:t}=r,i=[];return A.forEach(s=>{t==null||t.forEach(n=>{if(!s.glyphBox)return;const o=s.glyphBox.clone(),a=zn(r,n);gA.set(o.left,o.top),gA.applyMatrix3(a),o.left=gA.x,o.top=gA.y,gA.set(o.right,o.bottom),gA.applyMatrix3(a),o.width=gA.x-o.left,o.height=gA.y-o.top;const l=(n.shadowOffsetX??0)*e,h=(n.shadowOffsetY??0)*e,c=Math.max(.1,n.textStrokeWidth??0)*e;o.left+=l-c,o.top+=h-c,o.width+=c*2,o.height+=c*2,i.push(o)})}),i.length?ce.from(...i):void 0},render:(r,A)=>{const{paragraphs:e,glyphBox:t,effects:i}=A;i?i.forEach(s=>{Wr(s,t,r),r.save();const[n,o,a,l,h,c]=zn(A,s).transpose().elements;r.transform(n,l,o,h,a,c),A.forEachCharacter(f=>{f.drawTo(r,s)}),r.restore()}):e.forEach(s=>{s.fragments.forEach(n=>{n.characters.forEach(o=>{o.drawTo(r)})})}),A.debug&&e.forEach(s=>{r.strokeRect(s.lineBox.x,s.lineBox.y,s.lineBox.width,s.lineBox.height)})}}}function zn(r,A){const{fontSize:e,glyphBox:t}=r,i=(A.translateX??0)*e,s=(A.translateY??0)*e,n=Math.PI*2,o=(A.skewX??0)/360*n,a=(A.skewY??0)/360*n,{left:l,top:h,width:c,height:f}=t,I=l+c/2,d=h+f/2;return si.identity(),uA.makeTranslation(i,s),si.multiply(uA),uA.makeTranslation(I,d),si.multiply(uA),uA.set(1,Math.tan(o),0,Math.tan(a),1,0,0,0,1),si.multiply(uA),uA.makeTranslation(-I,-d),si.multiply(uA),si.clone()}function MI(){const r=new nA;return{name:"textDecoration",pathSet:r,update:A=>{r.paths.length=0;const e=[];let t,i;A.forEachCharacter(s=>{const{computedStyle:n,isVertical:o,inlineBox:a,underlinePosition:l,underlineThickness:h,strikeoutPosition:c,strikeoutSize:f}=s,{color:I,textDecoration:d,writingMode:C}=n;if(he(d))i=void 0;else{let p=!1;if((i==null?void 0:i.textDecoration)===d&&(i==null?void 0:i.writingMode)===C&&(i==null?void 0:i.color)===I&&(o?t[0].inlineBox.left===a.left:t[0].inlineBox.top===a.top))switch(d){case"underline":t[0].underlinePosition===l&&t[0].underlineThickness===h&&(p=!0);break;case"line-through":t[0].strikeoutPosition===c&&t[0].strikeoutSize===f&&(p=!0);break}p?t.push(s):(t=[],t.push(s),e.push(t)),i=n}}),e.forEach(s=>{const{computedStyle:n,isVertical:o,underlinePosition:a,underlineThickness:l,strikeoutPosition:h,strikeoutSize:c}=s[0],{color:f,textDecoration:I}=n,d=ce.from(...s.map(b=>b.inlineBox)),{left:C,top:p,width:x,height:P}=d;let w=o?C+x:p;const R=o?-1:1;let v=0;switch(I){case"overline":v=l*2;break;case"underline":w+=R*a,v=l*2;break;case"line-through":w+=R*h,v=c*2;break}w-=v;let m;o?m=new Ne([{type:"M",x:w,y:p},{type:"L",x:w,y:p+P},{type:"L",x:w+v,y:p+P},{type:"L",x:w+v,y:p},{type:"Z"}],{fill:f}):m=new Ne([{type:"M",x:C,y:w},{type:"L",x:C+x,y:w},{type:"L",x:C+x,y:w+v},{type:"L",x:C,y:w+v},{type:"Z"}],{fill:f}),r.paths.push(m)})},render:(A,e)=>{const{effects:t,computedStyle:i}=e;t?t.forEach(s=>{A.save();const[n,o,a,l,h,c]=zn(e,s).transpose().elements;A.transform(n,l,o,h,a,c),r.paths.forEach(f=>{ii({ctx:A,path:f,fontSize:i.fontSize,...s})}),A.restore()}):r.paths.forEach(s=>{ii({ctx:A,path:s,fontSize:i.fontSize})})}}}const Wn=xo();class Vl extends wI{constructor(e={}){super();u(this,"debug");u(this,"content");u(this,"style");u(this,"effects");u(this,"measureDOM");u(this,"needsUpdate",!0);u(this,"computedStyle",{...Wn});u(this,"paragraphs",[]);u(this,"lineBox",new ce);u(this,"rawGlyphBox",new ce);u(this,"glyphBox",new ce);u(this,"pathBox",new ce);u(this,"boundingBox",new ce);u(this,"measurer",new Yn);u(this,"plugins",new Map);u(this,"fonts");this.set(e)}get fontSize(){return this.computedStyle.fontSize}get isVertical(){return this.computedStyle.writingMode.includes("vertical")}get characters(){return this.paragraphs.flatMap(e=>e.fragments.flatMap(t=>t.characters))}set(e={}){this.debug=e.debug??!1,this.content=ur(e.content??""),this.style=e.style??{},this.measureDOM=e.measureDOM,this.effects=e.effects,this.fonts=e.fonts,this.use(vI()).use(xI()).use(DI()).use(MI()).use(_I()).use(SI()),(e.plugins??[]).forEach(t=>{this.use(t)}),this.updateParagraphs()}use(e){return this.plugins.set(e.name,e),this}forEachCharacter(e){return this.paragraphs.forEach((t,i)=>{t.fragments.forEach((s,n)=>{s.characters.forEach((o,a)=>{e(o,{paragraphIndex:i,fragmentIndex:n,characterIndex:a})})})}),this}async load(){await Promise.all(Array.from(this.plugins.values()).map(e=>{var t;return(t=e.load)==null?void 0:t.call(e,this)}))}updateParagraphs(){this.computedStyle={...Wn,...this.style};const{content:e,computedStyle:t}=this,i=[];return e.forEach(s=>{const{fragments:n,...o}=s,a=new mI(o,t);n.forEach(l=>{const{content:h,...c}=l;h!==void 0&&a.addFragment(h,c)}),i.push(a)}),this.paragraphs=i,this}createDOM(){return this.updateParagraphs(),this.measurer.createDOM(this.paragraphs,this.computedStyle)}measure(e=this.measureDOM){const t={paragraphs:this.paragraphs,lineBox:this.lineBox,rawGlyphBox:this.rawGlyphBox,glyphBox:this.glyphBox,pathBox:this.pathBox,boundingBox:this.boundingBox};this.updateParagraphs();const i=this.measurer.measure(this.paragraphs,this.computedStyle,e);this.paragraphs=i.paragraphs,this.lineBox=i.boundingBox,this.characters.forEach(s=>{s.update(this.fonts)}),this.rawGlyphBox=this.getGlyphBox(),Array.from(this.plugins.values()).sort((s,n)=>(s.updateOrder??0)-(n.updateOrder??0)).forEach(s=>{var n;(n=s.update)==null||n.call(s,this)}),this.glyphBox=this.getGlyphBox(),this.updatePathBox().updateBoundingBox();for(const s in t)i[s]=this[s],this[s]=t[s];return this.emit("measure",{text:this,result:i}),i}getGlyphBox(){const e=G.MAX,t=G.MIN;return this.characters.forEach(i=>{if(!i.getGlyphMinMax(e,t)){const{inlineBox:s}=i,{left:n,top:o,width:a,height:l}=s,h=new G(n,o),c=new G(n+a,o+l);e.min(h,c),t.max(h,c)}}),new ce(e.x,e.y,t.x-e.x,t.y-e.y)}updatePathBox(){return this.pathBox=ce.from(this.glyphBox,...Array.from(this.plugins.values()).map(e=>{var t;return e.getBoundingBox?e.getBoundingBox(this):(t=e.pathSet)==null?void 0:t.getBoundingBox()}).filter(Boolean)),this}updateBoundingBox(){return this.boundingBox=ce.from(this.rawGlyphBox,this.lineBox,this.pathBox),this}requestUpdate(){return this.needsUpdate=!0,this}update(e=this.measureDOM){const t=this.measure(e);for(const i in t)this[i]=t[i];return this.emit("update",{text:this}),this.needsUpdate=!1,this}render(e){var n;const{view:t,pixelRatio:i=2}=e,s=t.getContext("2d");s&&(this.needsUpdate&&this.update(),fI(s,i,this.boundingBox),dI(s,this),Array.from(this.plugins.values()).sort((o,a)=>(o.renderOrder??0)-(a.renderOrder??0)).forEach(o=>{var a;if(o.render)(a=o.render)==null||a.call(o,s,this);else if(o.pathSet){const l=this.computedStyle;o.pathSet.paths.forEach(h=>{ii({ctx:s,path:h,fontSize:l.fontSize})})}}),this.emit("render",{text:this,view:t,pixelRatio:i}),(n=e.onContext)==null||n.call(e,s))}toString(){return this.content.flatMap(e=>e.fragments.map(t=>t.content)).join("")}}var RI=Object.defineProperty,er=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&RI(A,e,i),i};class UA extends iA{constructor(e){super();u(this,"base",new Vl);u(this,"texture",new YA);u(this,"measureResult");this.parent=e}setProperties(e){return super.setProperties(he(e)?void 0:Rc(e))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"content":case"effects":case"measureDOM":case"fonts":case"split":case"enabled":this.parent.requestRedraw();break}}_updateText(){this.base.style={justifyContent:"center",alignItems:"center",textAlign:"center",...this.parent.style.toJSON()},this.base.requestUpdate()}measure(){return this._updateText(),this.base.measure()}updateMeasure(){return this.measureResult=this.measure(),this}canDraw(){var e;return!!(this.enabled&&!/^\s*$/.test(this.base.toString())&&((e=this.texture)!=null&&e.valid))}draw(){var s,n;this.base.render({pixelRatio:this.texture.pixelRatio,view:this.texture.source}),this.texture.requestUpload();const e=((s=this.measureResult)==null?void 0:s.boundingBox.width)??this.parent.size.width,t=((n=this.measureResult)==null?void 0:n.boundingBox.height)??this.parent.size.height,i=this.parent.context;i.fillStyle=this.texture,i.uvTransform=new ct().scale(1/e,1/t),i.vertTransform=()=>{const o=this.parent,a=o.getTransformOrigin();return new ct().translate(-a.x,-a.y).scale(o.globalScale.x>0?1:-1,o.globalScale.y>0?1:-1).translate(a.x,a.y)},i.fill()}}er([M({default:!0})],UA.prototype,"enabled"),er([M({alias:"base.content"})],UA.prototype,"content"),er([M({alias:"base.effects"})],UA.prototype,"effects"),er([Be({alias:"base.measureDOM"})],UA.prototype,"measureDOM"),er([Be({alias:"base.fonts"})],UA.prototype,"fonts");var PI=Object.getOwnPropertyDescriptor,kI=(r,A,e,t)=>{for(var i=t>1?void 0:t?PI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Node2D=class extends g.CanvasItem{constructor(e,t=[]){super();u(this,"position",new ut);u(this,"rotation",0);u(this,"scale",new ut(1,1));u(this,"skew",new ut);u(this,"transform",new ct);u(this,"globalPosition",new ut);u(this,"globalRotation",0);u(this,"globalScale",new ut);u(this,"globalSkew",new ut);u(this,"globalTransform",new ct);u(this,"_parentTransformDirtyId");this.setProperties(e).append(t)}getTransformOrigin(){return new ut(0,0)}getTransform(e){const t=this.getTransformOrigin(),i=new ct;return i.translate(-t.x,-t.y).scale(this.scale.x,this.scale.y).skew(this.skew.x,this.skew.y).rotate(this.rotation),e==null||e(i),i.translate(this.position.x,this.position.y).translate(t.x,t.y),i}_updateTransform(){this.transform.copy(this.getTransform())}_updateGlobalTransform(){const e=this.getParent();e!=null&&e.globalTransform?(this._parentTransformDirtyId=e.globalTransform.dirtyId,this.globalScale.set(e.globalScale.x*this.scale.x,e.globalScale.y*this.scale.y),this.globalRotation=e.globalRotation+this.rotation,e.globalTransform.multiply(this.transform,this.globalTransform)):(this.globalScale=this.scale.clone(),this.globalRotation=this.rotation,this.globalTransform=this.transform.clone());const[t,i,s,n,o,a]=this.globalTransform.toArray();this.globalPosition.set(s,a),this.globalSkew.x=Math.atan2(i,t)-this.globalRotation,this.globalSkew.y=Math.atan2(n,o)-this.globalRotation,this.requestRelayout()}_transformVertices(e,t){let i,s,n,o,a,l;if(t){const c=this.globalTransform.clone();c.multiply(typeof t=="function"?t==null?void 0:t():t),[i,s,n,o,a,l]=c.toArray()}else[i,s,n,o,a,l]=this.globalTransform.toArray();const h=e.slice();for(let c=e.length,f=0;f<c;f+=2){const I=e[f],d=e[f+1];h[f]=i*I+s*d+n,h[f+1]=o*I+a*d+l}return h}_relayout(e){return this._updateTransform(),this._updateGlobalTransform(),super._relayout(e).map(t=>({...t,vertices:this._transformVertices(t.vertices,t.vertTransform)}))}_process(e){var i;super._process(e);const t=this.getParent();t!=null&&t.globalTransform&&this._parentTransformDirtyId!==((i=t==null?void 0:t.globalTransform)==null?void 0:i.dirtyId)&&this.requestRelayout()}},g.Node2D=kI([ne("Node2D")],g.Node2D);var UI=Object.getOwnPropertyDescriptor,NI=(r,A,e,t)=>{for(var i=t>1?void 0:t?UI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.BaseElement2D=class extends g.Node2D{constructor(e,t=[]){super();u(this,"size",new ut);u(this,"_background",new In(this));u(this,"_shape",new DA(this));u(this,"_fill",new qe(this));u(this,"_outline",new XA(this));u(this,"_foreground",new pn(this));u(this,"_text",new UA(this));u(this,"_shadow",new bA(this));this._updateStyleProperty=this._updateStyleProperty.bind(this),this.style=new Li,this.setProperties(e).append(t)}get style(){return this._style}set style(e){var i;const t=(...s)=>{this.emit("updateStyleProperty",...s),this._updateStyleProperty(s[0],s[1],s[2],s[3])};e.on("updateProperty",t),(i=this._style)==null||i.off("updateProperty",t),this._style=e}get background(){return this._background}set background(e){this._background.resetProperties().setProperties(e)}get shape(){return this._shape}set shape(e){this._shape.resetProperties().setProperties(e)}get fill(){return this._fill}set fill(e){this._fill.resetProperties().setProperties(e)}get outline(){return this._outline}set outline(e){this._outline.resetProperties().setProperties(e)}get foreground(){return this._foreground}set foreground(e){this._foreground.resetProperties().setProperties(e)}get text(){return this._text}set text(e){this._text.resetProperties().setProperties(e)}get shadow(){return this._shadow}set shadow(e){this._shadow.resetProperties().setProperties(e)}setProperties(e){if(e){const{style:t,text:i,shape:s,background:n,fill:o,outline:a,foreground:l,shadow:h,...c}=e;t&&this.style.setProperties(t),n&&this.background.setProperties(n),s&&this.shape.setProperties(s),o&&this.fill.setProperties(o),a&&this.outline.setProperties(a),i&&this.text.setProperties(i),l&&this.foreground.setProperties(l),h&&this.shadow.setProperties(h),super.setProperties(c)}return this}_updateStyleProperty(e,t,i,s){switch(e){case"width":case"height":this.mask instanceof g.BaseElement2D&&(this.mask.size.x=this.size.x,this.mask.size.y=this.size.y);break}switch(e){case"rotate":this.rotation=this.style.rotate*Xo,this.requestRelayout();break;case"scaleX":this.scale.x=this.style.scaleX,this.requestRelayout();break;case"scaleY":this.scale.y=this.style.scaleY,this.requestRelayout();break;case"skewX":this.skew.x=this.style.skewX,this.requestRelayout();break;case"skewY":this.skew.y=this.style.skewY,this.requestRelayout();break;case"transform":case"transformOrigin":this.requestRelayout();break;case"opacity":this.opacity=this.style.opacity;break;case"visibility":this.visible=this.style.visibility==="visible";break;case"filter":this.requestRepaint();break;case"maskImage":this._updateMaskImage();break;case"borderRadius":this.requestRedraw();break;case"backgroundColor":this.background.color=this.style.backgroundColor;break;case"backgroundImage":this.background.image=this.style.backgroundImage;break;case"borderStyle":case"outlineStyle":this.outline.style=t;break;case"borderWidth":case"outlineWidth":this.outline.width=t;break;case"borderColor":case"outlineColor":this.outline.color=t;break}}_updateMaskImage(){const e="__$style.maskImage",t=this.style.maskImage;if(t&&t!=="none"){const i=this.getNode(e);i?i.src=t:this.appendChild(new g.MaskEffect({name:e,src:t}),"back")}else{const i=this.getNode(e);i&&this.removeChild(i)}}getTransformOrigin(){const{width:e,height:t}=this.size,[i,s]=Ea(this.style.transformOrigin);return new ut(i*e,s*t)}getTransform(e){const{width:t,height:i}=this.size;return super.getTransform(s=>{pa(this.style.transform??"",t,i,s),e==null||e(s)})}_updateGlobalTransform(){super._updateGlobalTransform(),this._updateOverflow()}getRect(){const{width:e,height:t}=this.size,i=0,s=0,n=i+e,o=s+t,[a,l,h,c,f,I]=this.globalTransform.toArray(),d=[[i,s],[i,o],[n,s],[n,o]].map(v=>[a*v[0]+l*v[1]+h,c*v[0]+f*v[1]+I]),C=d.map(v=>v[0]),p=d.map(v=>v[1]),x=Math.min(...C),P=Math.max(...C),w=Math.min(...p),R=Math.max(...p);return new Ys(x,w,P-x,R-w)}_updateOverflow(){if(this.style.overflow==="hidden"){const e=this.getRect();this.mask={x:e.x,y:e.y,width:e.width,height:e.height}}else this.mask=void 0}_draw(){var e,t,i,s,n;super._draw(),this._text.canDraw()&&this._text.updateMeasure(),this._background.canDraw()&&((e=this._tree)==null||e.log(this.name,"draw background"),this._shape.drawRect(),this._background.draw()),this._fill.canDraw()&&((t=this._tree)==null||t.log(this.name,"draw fill"),this._shape.draw(),this._fill.draw()),this._outline.canDraw()&&((i=this._tree)==null||i.log(this.name,"draw outline"),this._shape.draw(),this._outline.draw()),this._foreground.canDraw()&&((s=this._tree)==null||s.log(this.name,"draw foreground"),this._shape.drawRect(),this._foreground.draw()),this._text.canDraw()&&((n=this._tree)==null||n.log(this.name,"draw text"),this._shape.drawRect(),this._text.draw()),this._drawContent()}_drawContent(){}_repaint(e){const t=Ia(this.style.filter);return super._repaint(e).map(i=>({...i,colorMatrix:t.toMatrix4().toArray(!0),colorMatrixOffset:t.toVector4().toArray()}))}canPointerEvents(){return this.style.pointerEvents!=="none"}input(e,t){for(let i=this._children.length-1;i>=0;i--)this._children[i].input(e,t);this.isVisibleInTree()&&this._input(e,t)}_pointerInput(e,t){const{width:i,height:s}=this.size;return e.x>=0&&e.x<i&&e.y>=0&&e.y<s}_input(e,t){switch(t){case"pointerdown":case"pointermove":case"pointerup":{if(this.canPointerEvents()){const{screenX:i,screenY:s}=e;if(i&&s){const[n,o]=this.globalTransform.inverse().applyToPoint(i,s);this._pointerInput({x:n,y:o},t)&&(e.target||(e.target=this),this.emit(t,e))}}break}}}toJSON(){const e=super.toJSON();return{...e,props:{...e.props,style:this.style.toJSON(),background:this.background.toJSON(),shape:this.shape.toJSON(),fill:this.fill.toJSON(),outline:this.outline.toJSON(),text:this.text.toJSON(),foreground:this.foreground.toJSON(),shadow:this.shadow.toJSON()}}}},g.BaseElement2D=NI([ne("BaseElement2D")],g.BaseElement2D);class qn extends Li{constructor(A){super(),this.setProperties(A)}}const zl={left:0,top:0,width:0,height:0};for(const r in zl)cr(qn,r,{default:zl[r]});var FI=Object.getOwnPropertyDescriptor,TI=(r,A,e,t)=>{for(var i=t>1?void 0:t?FI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Element2D=class extends g.BaseElement2D{get style(){return this._style}set style(A){var t;const e=(...i)=>{this.emit("updateStyleProperty",...i),this._updateStyleProperty(i[0],i[1],i[2],i[3])};A.on("updateProperty",e),(t=this._style)==null||t.off("updateProperty",e),this._style=A}constructor(A,e=[]){super(),this.style=new qn,this.setProperties(A).append(e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"left":this.position.x=Number(e),this.requestRelayout();break;case"top":this.position.y=Number(e),this.requestRelayout();break;case"width":this.size.width=Number(e),this.requestRedraw();break;case"height":this.size.height=Number(e),this.requestRedraw();break}}},g.Element2D=TI([ne("Element2D")],g.Element2D);var GI=(()=>{var r=typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:At&&At.tagName.toUpperCase()==="SCRIPT"&&At.src||new URL("index.js",document.baseURI).href;return function(A){A=A||{};var e;e||(e=typeof A<"u"?A:{});var t,i;e.ready=new Promise(function(E,B){t=E,i=B});var s=Object.assign({},e),n="";typeof document<"u"&&document.currentScript&&(n=document.currentScript.src),r&&(n=r),n.indexOf("blob:")!==0?n=n.substr(0,n.replace(/[?#].*/,"").lastIndexOf("/")+1):n="";var o=e.print||console.log.bind(console),a=e.printErr||console.warn.bind(console);Object.assign(e,s),s=null;var l;e.wasmBinary&&(l=e.wasmBinary),e.noExitRuntime,typeof WebAssembly!="object"&&Y("no native wasm support detected");var h,c=!1;function f(E,B,Q){Q=B+Q;for(var _="";!(B>=Q);){var S=E[B++];if(!S)break;if(S&128){var k=E[B++]&63;if((S&224)==192)_+=String.fromCharCode((S&31)<<6|k);else{var F=E[B++]&63;S=(S&240)==224?(S&15)<<12|k<<6|F:(S&7)<<18|k<<12|F<<6|E[B++]&63,65536>S?_+=String.fromCharCode(S):(S-=65536,_+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else _+=String.fromCharCode(S)}return _}var I,d,C,p,x,P,w,R,v;function m(){var E=h.buffer;I=E,e.HEAP8=d=new Int8Array(E),e.HEAP16=p=new Int16Array(E),e.HEAP32=P=new Int32Array(E),e.HEAPU8=C=new Uint8Array(E),e.HEAPU16=x=new Uint16Array(E),e.HEAPU32=w=new Uint32Array(E),e.HEAPF32=R=new Float32Array(E),e.HEAPF64=v=new Float64Array(E)}var b,D=[],z=[],Ae=[];function W(){var E=e.preRun.shift();D.unshift(E)}var K=0,te=null;function Y(E){throw e.onAbort&&e.onAbort(E),E="Aborted("+E+")",a(E),c=!0,E=new WebAssembly.RuntimeError(E+". Build with -sASSERTIONS for more info."),i(E),E}function L(E){return E.startsWith("data:application/octet-stream;base64,")}var se;if(se="data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAAAGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAV/f39/fwBgAn9/AX1gBX9/f319AX1gAX8BfWADf35/AX5gB39/f39/f38AYAZ/f39/f38AYAR/f39/AX9gBn9/f319fQF9YAR/f31/AGADf399AX1gBn98f39/fwF/YAR/fHx/AGACf30AYAh/f39/f39/fwBgDX9/f39/f39/f39/f38AYAp/f39/f39/f39/AGAFf39/f38BfGAEfHx/fwF9YA1/fX1/f399fX9/f39/AX9gB39/f319f38AYAJ+fwF/YAN/fX0BfWABfAF8YAN/fHwAYAR/f319AGAHf39/fX19fQF9YA1/fX99f31/fX19fX1/AX9gC39/f39/f399fX19AX9gCH9/f39/f319AGAEf39+fgBgB39/f39/f38Bf2ACfH8BfGAFf398fH8AYAN/f38BfGAEf39/fABgA39/fQBgBn9/fX99fwF/ArUBHgFhAWEAHwFhAWIAAwFhAWMACQFhAWQAFgFhA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YACaiQAC/ICAgJ/AX4CQCACRQ0AIAAgAToAACAAIAJqIgNBAWsgAToAACACQQNJDQAgACABOgACIAAgAToAASADQQNrIAE6AAAgA0ECayABOgAAIAJBB0kNACAAIAE6AAMgA0EEayABOgAAIAJBCUkNACAAQQAgAGtBA3EiBGoiAyABQf8BcUGBgoQIbCIBNgIAIAMgAiAEa0F8cSIEaiICQQRrIAE2AgAgBEEJSQ0AIAMgATYCCCADIAE2AgQgAkEIayABNgIAIAJBDGsgATYCACAEQRlJDQAgAyABNgIYIAMgATYCFCADIAE2AhAgAyABNgIMIAJBEGsgATYCACACQRRrIAE2AgAgAkEYayABNgIAIAJBHGsgATYCACAEIANBBHFBGHIiBGsiAkEgSQ0AIAGtQoGAgIAQfiEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkEgayICQR9LDQALCyAAC4AEAQN/IAJBgARPBEAgACABIAIQFyAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQAL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AgwgBiAIKAIEIgM2AhAgBiAIKAIINgIUIABFDQAgABAjIAYoAhAhAwsgBiADQQFqNgIQIAYoAgwgA0EDdkH8////AXFqIgAgACgCAEF+IAN3cTYCACABLwAAIQMLIANBB3EgC0EEdHJBCHIhAwsgASADOwAAIAhBEGokAAuPAQIBfwF9IwBBEGsiAyQAIANBCGogAEHoAGogAEHUAEHWACABQf4BcUECRhtqLwEAIgEgAC8BWCABQQdxGxAfQwAAwH8hBAJAAkACQCADLQAMQQFrDgIAAQILIAMqAgghBAwBCyADKgIIIAKUQwrXIzyUIQQLIANBEGokACAEQwAAAACXQwAAAAAgBCAEWxsL2AICBH8BfSMAQSBrIgMkAAJAIAAoAgwiAQRAIAAgACoClAMgACoCmAMgAREnACIFIAVbDQEgA0GqHjYCACAAQQVB2CUgAxAsECQACyADQRBqIAAQMgJAIAMoAhAiAiADKAIUIgFyRQ0AAkADQCABIAIoAuwDIAIoAugDIgJrQQJ1SQRAIAIgAUECdGooAgAiASgC3AMNAyABLwAVIAEtABdBEHRyIgJBgOAAcUGAwABHBEAgAkEIdkEPcSICBH8gAgUgAC0AFUEEdgtBBUYEQCAALQAUQQhxDQQLIAEtAABBAnENAyAEIAEgBBshBAsgA0EQahAuIAMoAhQiASADKAIQIgJyDQEMAwsLEAIACyABIQQLIAMoAhgiAQRAA0AgASgCACECIAEQIyACIgENAAsLIARFBEAgACoCmAMhBQwBCyAEEE4gBCoCoAOSIQULIANBIGokACAFC6EDAQh/AkAgACgC6AMiBSAAKALsAyIHRwRAA0AgACAFKAIAIgIoAuQDRwRAAkAgACgC9AMoAgAiAQRAIAIgACAGIAERBgAiAQ0BC0GIBBAeIgEgAigCEDYCECABIAIpAgg3AgggASACKQIANwIAIAFBFGogAkEUakHoABArGiABQgA3AoABIAFB/ABqIgNBADsBACABQgA3AogBIAFCADcCkAEgAyACQfwAahCgASABQZgBaiACQZgBakHQAhArGiABQQA2AvADIAFCADcC6AMgAigC7AMiAyACKALoAyIERwRAIAMgBG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gMkAEEBIQQgA0EIaiAAQfwAaiIFIAAgAUEBdGpBMmoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALDwAgASAAKAIAaiACOQMACw0AIAEgACgCAGorAwALCwAgAARAIAAQIwsLxwECBH8CfSMAQRBrIgIkACACQQhqIABB/ABqIgQgAEEeaiIFLwEAEB9BASEDAkACQCACKgIIIgcgASoCACIGXARAIAcgB1sEQCABLQAEIQEMAgsgBiAGXCEDCyABLQAEIQEgA0UNACACLQAMIAFB/wFxRg0BCyAEIAUgBiABEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyACQRBqJAALlgMCA34CfyAAvSICQjSIp0H/D3EiBEH/D0YEQCAARAAAAAAAAPA/oiIAIACjDwsgAkIBhiIBQoCAgICAgIDw/wBYBEAgAEQAAAAAAAAAAKIgACABQoCAgICAgIDw/wBRGw8LAn4gBEUEQEEAIQQgAkIMhiIBQgBZBEADQCAEQQFrIQQgAUIBhiIBQgBZDQALCyACQQEgBGuthgwBCyACQv////////8Hg0KAgICAgICACIQLIQEgBEH/B0oEQANAAkAgAUKAgICAgICACH0iA0IAUw0AIAMiAUIAUg0AIABEAAAAAAAAAACiDwsgAUIBhiEBIARBAWsiBEH/B0oNAAtB/wchBAsCQCABQoCAgICAgIAIfSIDQgBTDQAgAyIBQgBSDQAgAEQAAAAAAAAAAKIPCyABQv////////8HWARAA0AgBEEBayEEIAFCgICAgICAgARUIQUgAUIBhiEBIAUNAAsLIAJCgICAgICAgICAf4MgAUKAgICAgICACH0gBK1CNIaEIAFBASAEa62IIARBAEobhL8LiwEBA38DQCAAQ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MEQCADEFsLIAEQJyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALIAAoAgQhASAAQQA2AgQgAQRAIAEgASgCACgCBBEAAAsgBkEgaiQAIAAQIwsLtQEBAX8jAEEQayICJAACfyABBEAgASgCACEBQYgEEB4gARBcIAENARogAkH3GTYCACACEHIQJAALQZQ7LQAARQRAQfg6QQM2AgBBiDtCgICAgICAgMA/NwIAQYA7QgA3AgBBlDtBAToAAEH8OkH8Oi0AAEH+AXE6AABB9DpBADYCAEGQO0EANgIAC0GIBBAeQfQ6EFwLIQEgAEIANwIEIAAgATYCACABIAA2AgQgAkEQaiQAIAALGwEBfyAABEAgACgCACIBBEAgARAjCyAAECMLC0kBAn9BBBAeIQFBIBAeIgBBADYCHCAAQoCAgICAgIDAPzcCFCAAQgA3AgwgAEEAOgAIIABBAzYCBCAAQQA2AgAgASAANgIAIAELIAAgAkEFR0EAIAIbRQRAQbgwIAMgBBBJDwsgAyAEEHALIgEBfiABIAKtIAOtQiCGhCAEIAARFQAiBUIgiKckASAFpwuoAQEFfyAAKAJUIgMoAgAhBSADKAIEIgQgACgCFCAAKAIcIgdrIgYgBCAGSRsiBgRAIAUgByAGECsaIAMgAygCACAGaiIFNgIAIAMgAygCBCAGayIENgIECyAEIAIgAiAESxsiBARAIAUgASAEECsaIAMgAygCACAEaiIFNgIAIAMgAygCBCAEazYCBAsgBUEAOgAAIAAgACgCLCIBNgIcIAAgATYCFCACCwQAQgALBABBAAuKBQIGfgJ/IAEgASgCAEEHakF4cSIBQRBqNgIAIAAhCSABKQMAIQMgASkDCCEGIwBBIGsiCCQAAkAgBkL///////////8AgyIEQoCAgICAgMCAPH0gBEKAgICAgIDA/8MAfVQEQCAGQgSGIANCPIiEIQQgA0L//////////w+DIgNCgYCAgICAgIAIWgRAIARCgYCAgICAgIDAAHwhAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2AiwCQCABvSIZQgBTBEBBASERQZkJIRMgAZoiAb0hGQwBCyAEQYAQcQRAQQEhEUGcCSETDAELQZ8JQZoJIARBAXEiERshEyARRSEVCwJAIBlCgICAgICAgPj/AINCgICAgICAgPj/AFEEQCAAQSAgAiARQQNqIgMgBEH//3txECkgACATIBEQJiAAQe0VQdweIAVBIHEiBRtB4RpB4B4gBRsgASABYhtBAxAmIABBICACIAMgBEGAwABzECkgAyACIAIgA0gbIQoMAQsgDEEQaiESAkACfwJAIAEgDEEsahCMASIBIAGgIgFEAAAAAAAAAABiBEAgDCAMKAIsIgZBAWs2AiwgBUEgciIOQeEARw0BDAMLIAVBIHIiDkHhAEYNAiAMKAIsIQlBBiADIANBAEgbDAELIAwgBkEdayIJNgIsIAFEAAAAAAAAsEGiIQFBBiADIANBAEgbCyELIAxBMGpBoAJBACAJQQBOG2oiDSEHA0AgBwJ/IAFEAAAAAAAA8EFjIAFEAAAAAAAAAAB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c2AgggASABKQMINwMAIAAgARBrIAFBEGokAAt6AgN/AX0jAEEQayICJAAgACgCACEDAn0gAbYiBSAFXARAQQAhAEMAAMB/DAELQQBBAiAFQwAAgH9bIAVDAACA/1tyIgQbIQBDAADAfyAFIAQbCyEFIAIgADoADCACIAU4AgggAiACKQMINwMAIAMgAhBrIAJBEGokAAtyAgF9An8jAEEQayIDJAAgACgCACEEIAMCfyABtiICIAJcBEBDAADAfyECQQAMAQtDAADAfyACIAJDAACAf1sgAkMAAID/W3IiABshAiAARQs6AAwgAyACOAIIIAMgAykDCDcDACAEIAMQayADQRBqJAALoAECA38CfQJAIAAoAgAiAEH8AGoiAyAAQRhqIgIvAQAQICIGIAG2IgVbDQAgBSAFWyIERSAGIAZccQ0AAkAgBEUEQCACIAIvAQBB+P8DcTsBAAwBCyADIAIgBUEDEEwLA0AgAC0AACICQQRxDQEgACACQQRyOgAAIAAoAhAiAgRAIAAgAhEAAAsgAEGAgID+BzYCnAEgACgC5AMiAA0ACwsLkAEBAX8CQCAAKAIAIgBBF2otAAAiAkECdkEDcSABQf8BcUYNACAAIAAvABUgAkEQdHIiAjsAFSAAIAJB///PB3EgAUEDcUESdHJBEHY6ABcDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCwuNAQEBfwJAIAAoAgAiAEEXai0AACICQQNxIAFB/wFxRg0AIAAgAC8AFSACQRB0ciICOwAVIAAgAkH///MHcSABQQNxQRB0ckEQdjoAFwNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLC0MBAX8jAEEQayICJAAgACgCACEAIAJBAzoADCACQYCAgP4HNgIIIAIgAikDCDcDACAAIAFB/wFxIAIQZSACQRBqJAALgAECA38BfSMAQRBrIgMkACAAKAIAIQQCfSACtiIGIAZcBEBBACEAQwAAwH8MAQtBAEECIAZDAACAf1sgBk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RQ0ACyABLwB6IgBBB3FFBEAgBS0AekEHcUUNAgsgCCAAECAiCiAHIAUvAHoQICILWw0BIAogClsNACALIAtcDQELIAFBFGogBUEUakHoABArGiABQfwAaiAFQfwAahCgAQNAIAEtAAAiAEEEcQ0BIAEgAEEEcjoAACABKAIQIgAEQCABIAARAAALIAFBgICA/gc2ApwBIAEoAuQDIgENAAsLIAJBEGokAAvGAwEEfyMAQaAEayICJAAgACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALAkAgACgCACIAKALoAyAAKALsA0YEQCAAKALkAw0BIAAgAkEYaiAAKAL0AxBcIgEpAgA3AgAgACABKAIQNgIQIAAgASkCCDcCCCAAQRRqIAFBFGpB6AAQKxogACABKQKMATcCjAEgACABKQKEATcChAEgACABKQJ8NwJ8IAEoApQBIQQgAUEANgKUASAAKAKUASEDIAAgBDYClAEgAwRAIAMQWwsgAEGYAWogAUGYAWpB0AIQKxogACgC6AMiAwRAIAAgAzYC7AMgAxAjCyAAIAEoAugDNgLoAyAAIAEoAuwDNgLsAyAAIAEoAvADNgLwAyABQQA2AvADIAFCADcC6AMgACABKQL8AzcC/AMgACABKQL0AzcC9AMgACABKAKEBDYChAQgASgClAEhACABQQA2ApQBIAAEQCAAEFsLIAJBoARqJAAPCyACQfAcNgIQIABBBUHYJSACQRBqECwQJAALIAJB5hE2AgAgAEEFQdglIAIQLBAkAAsLAEEMEB4gABCiAQsLAEEMEB5BABCiAQsNACAAKAIALQAIQQFxCwoAIAAoAgAoAhQLGQAgAUH/AXEEQBACAAsgACgCACgCEEEBcQsYACAAKAIAIgAgAC0ACEH+AXEgAXI6AAgLJgAgASAAKAIAIgAoAhRHBEAgACABNgIUIAAgACgCDEEBajYCDAsLkgEBAn8jAEEQayICJAAgACgCACEAIAFDAAAAAGAEQCABIAAqAhhcBEAgACABOAIYIAAgACgCDEEBajYCDAsgAkEQaiQADwsgAkGIFDYCACMAQ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QsBEgBByy0LHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!L(se)){var H=se;se=e.locateFile?e.locateFile(H,n):n+H}function q(){var E=se;try{if(E==se&&l)return new Uint8Array(l);if(L(E))try{var B=vE(E.slice(37)),Q=new Uint8Array(B.length);for(E=0;E<B.length;++E)Q[E]=B.charCodeAt(E);var _=Q}catch{throw Error("Converting base64 string to bytes failed.")}else _=void 0;var S=_;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(k){Y(k)}}function ie(){return l||typeof fetch!="function"?Promise.resolve().then(function(){return q()}):fetch(se,{credentials:"same-origin"}).then(function(E){if(!E.ok)throw"failed to load wasm binary file at '"+se+"'";return E.arrayBuffer()}).catch(function(){return q()})}function J(E){for(;0<E.length;)E.shift()(e)}function $(E){if(E===void 0)return"_unknown";E=E.replace(/[^a-zA-Z0-9_]/g,"$");var B=E.charCodeAt(0);return 48<=B&&57>=B?"_"+E:E}function N(E,B){return E=$(E),function(){return B.apply(this,arguments)}}var U=[{},{value:void 0},{value:null},{value:!0},{value:!1}],X=[];function ee(E){var B=Error,Q=N(E,function(_){this.name=E,this.message=_,_=Error(_).stack,_!==void 0&&(this.stack=this.toString()+`
864
- `+_.replace(/^Error(:[^\n]*)?\n/,""))});return Q.prototype=Object.create(B.prototype),Q.prototype.constructor=Q,Q.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},Q}var oe=void 0;function j(E){throw new oe(E)}var pe=E=>(E||j("Cannot use deleted val. handle = "+E),U[E].value),at=E=>{switch(E){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var B=X.length?X.pop():U.length;return U[B]={ga:1,value:E},B}},lt=void 0,He=void 0;function ge(E){for(var B="";C[E];)B+=He[C[E++]];return B}var we=[];function Je(){for(;we.length;){var E=we.pop();E.M.$=!1,E.delete()}}var We=void 0,xe={};function tt(E,B){for(B===void 0&&j("ptr should not be undefined");E.R;)B=E.ba(B),E=E.R;return B}var Ot={};function cs(E){E=Ph(E);var B=ge(E);return tA(E),B}function to(E,B){var Q=Ot[E];return Q===void 0&&j(B+" has unknown type "+cs(E)),Q}function gs(){}var Ao=!1;function vh(E){--E.count.value,E.count.value===0&&(E.T?E.U.W(E.T):E.P.N.W(E.O))}function _h(E,B,Q){return B===Q?E:Q.R===void 0?null:(E=_h(E,B,Q.R),E===null?null:Q.na(E))}var bh={};function sE(E,B){return B=tt(E,B),xe[B]}var Dh=void 0;function us(E){throw new Dh(E)}function fs(E,B){return B.P&&B.O||us("makeClassHandle requires ptr and ptrType"),!!B.U!=!!B.T&&us("Both smartPtrType and smartPtr must be specified"),B.count={value:1},Ii(Object.create(E,{M:{value:B}}))}function Ii(E){return typeof FinalizationRegistry>"u"?(Ii=B=>B,E):(Ao=new FinalizationRegistry(B=>{vh(B.M)}),Ii=B=>{var Q=B.M;return Q.T&&Ao.register(B,{M:Q},B),B},gs=B=>{Ao.unregister(B)},Ii(E))}var ds={};function io(E){for(;E.length;){var B=E.pop();E.pop()(B)}}function sr(E){return this.fromWireType(P[E>>2])}var pi={},Is={};function CA(E,B,Q){function _(T){T=Q(T),T.length!==E.length&&us("Mismatched type converter count");for(var V=0;V<E.length;++V)$t(E[V],T[V])}E.forEach(function(T){Is[T]=B});var S=Array(B.length),k=[],F=0;B.forEach((T,V)=>{Ot.hasOwnProperty(T)?S[V]=Ot[T]:(k.push(T),pi.hasOwnProperty(T)||(pi[T]=[]),pi[T].push(()=>{S[V]=Ot[T],++F,F===k.length&&_(S)}))}),k.length===0&&_(S)}function ro(E){switch(E){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+E)}}function $t(E,B,Q={}){if(!("argPackAdvance"in B))throw new TypeError("registerType registeredInstance requires argPackAdvance");var _=B.name;if(E||j('type "'+_+'" must have a positive integer typeid pointer'),Ot.hasOwnProperty(E)){if(Q.ua)return;j("Cannot register type '"+_+"' twice")}Ot[E]=B,delete Is[E],pi.hasOwnProperty(E)&&(B=pi[E],delete pi[E],B.forEach(S=>S()))}function so(E){j(E.M.P.N.name+" instance already deleted")}function QA(){}function no(E,B,Q){if(E[B].S===void 0){var _=E[B];E[B]=function(){return E[B].S.hasOwnProperty(arguments.length)||j("Function '"+Q+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+E[B].S+")!"),E[B].S[arguments.length].apply(this,arguments)},E[B].S=[],E[B].S[_.Z]=_}}function nE(E,B){e.hasOwnProperty(E)?(j("Cannot register public name '"+E+"' twice"),no(e,E,E),e.hasOwnProperty(void 0)&&j("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),e[E].S[void 0]=B):e[E]=B}function oE(E,B,Q,_,S,k,F,T){this.name=E,this.constructor=B,this.X=Q,this.W=_,this.R=S,this.pa=k,this.ba=F,this.na=T,this.ja=[]}function oo(E,B,Q){for(;B!==Q;)B.ba||j("Expected null or instance of "+Q.name+", got an instance of "+B.name),E=B.ba(E),B=B.R;return E}function aE(E,B){return B===null?(this.ea&&j("null is not a valid "+this.name),0):(B.M||j('Cannot pass "'+co(B)+'" as a '+this.name),B.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),oo(B.M.O,B.M.P.N,this.N))}function lE(E,B){if(B===null){if(this.ea&&j("null is not a valid "+this.name),this.da){var Q=this.fa();return E!==null&&E.push(this.W,Q),Q}return 0}if(B.M||j('Cannot pass "'+co(B)+'" as a '+this.name),B.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&B.M.P.ca&&j("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name),Q=oo(B.M.O,B.M.P.N,this.N),this.da)switch(B.M.T===void 0&&j("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:B.M.U===this?Q=B.M.T:j("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name);break;case 1:Q=B.M.T;break;case 2:if(B.M.U===this)Q=B.M.T;else{var _=B.clone();Q=this.xa(Q,at(function(){_.delete()})),E!==null&&E.push(this.W,Q)}break;default:j("Unsupporting sharing policy")}return Q}function hE(E,B){return B===null?(this.ea&&j("null is not a valid "+this.name),0):(B.M||j('Cannot pass "'+co(B)+'" as a '+this.name),B.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),B.M.P.ca&&j("Cannot convert argument of type "+B.M.P.name+" to parameter type "+this.name),oo(B.M.O,B.M.P.N,this.N))}function eA(E,B,Q,_){this.name=E,this.N=B,this.ea=Q,this.ca=_,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,B.R!==void 0?this.toWireType=lE:(this.toWireType=_?aE:hE,this.V=null)}function cE(E,B){e.hasOwnProperty(E)||us("Replacing nonexistant public symbol"),e[E]=B,e[E].Z=void 0}function gE(E,B){var Q=[];return function(){if(Q.length=0,Object.assign(Q,arguments),E.includes("j")){var _=e["dynCall_"+E];_=Q&&Q.length?_.apply(null,[B].concat(Q)):_.call(null,B)}else _=b.get(B).apply(null,Q);return _}}function Dt(E,B){E=ge(E);var Q=E.includes("j")?gE(E,B):b.get(B);return typeof Q!="function"&&j("unknown function pointer with signature "+E+": "+B),Q}var xh=void 0;function ps(E,B){function Q(k){S[k]||Ot[k]||(Is[k]?Is[k].forEach(Q):(_.push(k),S[k]=!0))}var _=[],S={};throw B.forEach(Q),new xh(E+": "+_.map(cs).join([", "]))}function ao(E,B,Q,_,S){var k=B.length;2>k&&j("argTypes array size mismatch! Must at least get return value and 'this' types!");var F=B[1]!==null&&Q!==null,T=!1;for(Q=1;Q<B.length;++Q)if(B[Q]!==null&&B[Q].V===void 0){T=!0;break}var V=B[0].name!=="void",O=k-2,Z=Array(O),re=[],ue=[];return function(){if(arguments.length!==O&&j("function "+E+" called with "+arguments.length+" arguments, expected "+O+" args!"),ue.length=0,re.length=F?2:1,re[0]=S,F){var Pe=B[1].toWireType(ue,this);re[1]=Pe}for(var de=0;de<O;++de)Z[de]=B[de+2].toWireType(ue,arguments[de]),re.push(Z[de]);if(de=_.apply(null,re),T)io(ue);else for(var Et=F?1:2;Et<B.length;Et++){var xt=Et===1?Pe:Z[Et-2];B[Et].V!==null&&B[Et].V(xt)}return Pe=V?B[0].fromWireType(de):void 0,Pe}}function lo(E,B){for(var Q=[],_=0;_<E;_++)Q.push(w[B+4*_>>2]);return Q}function ho(E){4<E&&--U[E].ga===0&&(U[E]=void 0,X.push(E))}function co(E){if(E===null)return"null";var B=typeof E;return B==="object"||B==="array"||B==="function"?E.toString():""+E}function uE(E,B){switch(B){case 2:return function(Q){return this.fromWireType(R[Q>>2])};case 3:return function(Q){return this.fromWireType(v[Q>>3])};default:throw new TypeError("Unknown float type: "+E)}}function fE(E,B,Q){switch(B){case 0:return Q?function(_){return d[_]}:function(_){return C[_]};case 1:return Q?function(_){return p[_>>1]}:function(_){return x[_>>1]};case 2:return Q?function(_){return P[_>>2]}:function(_){return w[_>>2]};default:throw new TypeError("Unknown integer type: "+E)}}function dE(E,B){for(var Q="",_=0;!(_>=B/2);++_){var S=p[E+2*_>>1];if(S==0)break;Q+=String.fromCharCode(S)}return Q}function IE(E,B,Q){if(Q===void 0&&(Q=2147483647),2>Q)return 0;Q-=2;var _=B;Q=Q<2*E.length?Q/2:E.length;for(var S=0;S<Q;++S)p[B>>1]=E.charCodeAt(S),B+=2;return p[B>>1]=0,B-_}function pE(E){return 2*E.length}function EE(E,B){for(var Q=0,_="";!(Q>=B/4);){var S=P[E+4*Q>>2];if(S==0)break;++Q,65536<=S?(S-=65536,_+=String.fromCharCode(55296|S>>10,56320|S&1023)):_+=String.fromCharCode(S)}return _}function BE(E,B,Q){if(Q===void 0&&(Q=2147483647),4>Q)return 0;var _=B;Q=_+Q-4;for(var S=0;S<E.length;++S){var k=E.charCodeAt(S);if(55296<=k&&57343>=k){var F=E.charCodeAt(++S);k=65536+((k&1023)<<10)|F&1023}if(P[B>>2]=k,B+=4,B+4>Q)break}return P[B>>2]=0,B-_}function CE(E){for(var B=0,Q=0;Q<E.length;++Q){var _=E.charCodeAt(Q);55296<=_&&57343>=_&&++Q,B+=4}return B}var QE={};function Sh(E){var B=QE[E];return B===void 0?ge(E):B}var Es=[];function yE(E){var B=Es.length;return Es.push(E),B}function mE(E,B){for(var Q=Array(E),_=0;_<E;++_)Q[_]=to(w[B+4*_>>2],"parameter "+_);return Q}var Mh=[],wE=[null,[],[]];oe=e.BindingError=ee("BindingError"),e.count_emval_handles=function(){for(var E=0,B=5;B<U.length;++B)U[B]!==void 0&&++E;return E},e.get_first_emval=function(){for(var E=5;E<U.length;++E)if(U[E]!==void 0)return U[E];return null},lt=e.PureVirtualError=ee("PureVirtualError");for(var Rh=Array(256),Bs=0;256>Bs;++Bs)Rh[Bs]=String.fromCharCode(Bs);He=Rh,e.getInheritedInstanceCount=function(){return Object.keys(xe).length},e.getLiveInheritedInstances=function(){var E=[],B;for(B in xe)xe.hasOwnProperty(B)&&E.push(xe[B]);return E},e.flushPendingDeletes=Je,e.setDelayFunction=function(E){We=E,we.length&&We&&We(Je)},Dh=e.InternalError=ee("InternalError"),QA.prototype.isAliasOf=function(E){if(!(this instanceof QA&&E instanceof QA))return!1;var B=this.M.P.N,Q=this.M.O,_=E.M.P.N;for(E=E.M.O;B.R;)Q=B.ba(Q),B=B.R;for(;_.R;)E=_.ba(E),_=_.R;return B===_&&Q===E},QA.prototype.clone=function(){if(this.M.O||so(this),this.M.aa)return this.M.count.value+=1,this;var E=Ii,B=Object,Q=B.create,_=Object.getPrototypeOf(this),S=this.M;return E=E(Q.call(B,_,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),E.M.count.value+=1,E.M.$=!1,E},QA.prototype.delete=function(){this.M.O||so(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),gs(this),vh(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},QA.prototype.isDeleted=function(){return!this.M.O},QA.prototype.deleteLater=function(){return this.M.O||so(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),we.push(this),we.length===1&&We&&We(Je),this.M.$=!0,this},eA.prototype.qa=function(E){return this.ka&&(E=this.ka(E)),E},eA.prototype.ha=function(E){this.W&&this.W(E)},eA.prototype.argPackAdvance=8,eA.prototype.readValueFromPointer=sr,eA.prototype.deleteObject=function(E){E!==null&&E.delete()},eA.prototype.fromWireType=function(E){function B(){return this.da?fs(this.N.X,{P:this.wa,O:Q,U:this,T:E}):fs(this.N.X,{P:this,O:E})}var Q=this.qa(E);if(!Q)return this.ha(E),null;var _=sE(this.N,Q);if(_!==void 0)return _.M.count.value===0?(_.M.O=Q,_.M.T=E,_.clone()):(_=_.clone(),this.ha(E),_);if(_=this.N.pa(Q),_=bh[_],!_)return B.call(this);_=this.ca?_.la:_.pointerType;var S=_h(Q,this.N,_.N);return S===null?B.call(this):this.da?fs(_.N.X,{P:_,O:S,U:this,T:E}):fs(_.N.X,{P:_,O:S})},xh=e.UnboundTypeError=ee("UnboundTypeError");var vE=typeof atob=="function"?atob:function(E){var B="",Q=0;E=E.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++)),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++));_=_<<2|S>>4,S=(S&15)<<4|k>>2;var T=(k&3)<<6|F;B+=String.fromCharCode(_),k!==64&&(B+=String.fromCharCode(S)),F!==64&&(B+=String.fromCharCode(T))}while(Q<E.length);return B},_E={l:function(E,B,Q,_){Y("Assertion failed: "+(E?f(C,E):"")+", at: "+[B?B?f(C,B):"":"unknown filename",Q,_?_?f(C,_):"":"unknown function"])},q:function(E,B,Q){E=ge(E),B=to(B,"wrapper"),Q=pe(Q);var _=[].slice,S=B.N,k=S.X,F=S.R.X,T=S.R.constructor;E=N(E,function(){S.R.ja.forEach((function(O){if(this[O]===F[O])throw new lt("Pure virtual function "+O+" must be implemented in JavaScript")}).bind(this)),Object.defineProperty(this,"__parent",{value:k}),this.__construct.apply(this,_.call(arguments))}),k.__construct=function(){this===k&&j("Pass correct 'this' to __construct");var O=T.implement.apply(void 0,[this].concat(_.call(arguments)));gs(O);var Z=O.M;O.notifyOnDestruction(),Z.aa=!0,Object.defineProperties(this,{M:{value:Z}}),Ii(this),O=Z.O,O=tt(S,O),xe.hasOwnProperty(O)?j("Tried to register registered instance: "+O):xe[O]=this},k.__destruct=function(){this===k&&j("Pass correct 'this' to __destruct"),gs(this);var O=this.M.O;O=tt(S,O),xe.hasOwnProperty(O)?delete xe[O]:j("Tried to unregister unregistered instance: "+O)},E.prototype=Object.create(k);for(var V in Q)E.prototype[V]=Q[V];return at(E)},j:function(E){var B=ds[E];delete ds[E];var Q=B.fa,_=B.W,S=B.ia,k=S.map(F=>F.ta).concat(S.map(F=>F.za));CA([E],k,F=>{var T={};return S.forEach((V,O)=>{var Z=F[O],re=V.ra,ue=V.sa,Pe=F[O+S.length],de=V.ya,Et=V.Aa;T[V.oa]={read:xt=>Z.fromWireType(re(ue,xt)),write:(xt,nr)=>{var AA=[];de(Et,xt,Pe.toWireType(AA,nr)),io(AA)}}}),[{name:B.name,fromWireType:function(V){var O={},Z;for(Z in T)O[Z]=T[Z].read(V);return _(V),O},toWireType:function(V,O){for(var Z in T)if(!(Z in O))throw new TypeError('Missing field: "'+Z+'"');var re=Q();for(Z in T)T[Z].write(re,O[Z]);return V!==null&&V.push(_,re),re},argPackAdvance:8,readValueFromPointer:sr,V:_}]})},v:function(){},B:function(E,B,Q,_,S){var k=ro(Q);B=ge(B),$t(E,{name:B,fromWireType:function(F){return!!F},toWireType:function(F,T){return T?_:S},argPackAdvance:8,readValueFromPointer:function(F){if(Q===1)var T=d;else if(Q===2)T=p;else if(Q===4)T=P;else throw new TypeError("Unknown boolean type size: "+B);return this.fromWireType(T[F>>k])},V:null})},f:function(E,B,Q,_,S,k,F,T,V,O,Z,re,ue){Z=ge(Z),k=Dt(S,k),T&&(T=Dt(F,T)),O&&(O=Dt(V,O)),ue=Dt(re,ue);var Pe=$(Z);nE(Pe,function(){ps("Cannot construct "+Z+" due to unbound types",[_])}),CA([E,B,Q],_?[_]:[],function(de){if(de=de[0],_)var Et=de.N,xt=Et.X;else xt=QA.prototype;de=N(Pe,function(){if(Object.getPrototypeOf(this)!==nr)throw new oe("Use 'new' to construct "+Z);if(AA.Y===void 0)throw new oe(Z+" has no accessible constructor");var Nh=AA.Y[arguments.length];if(Nh===void 0)throw new oe("Tried to invoke ctor of "+Z+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(AA.Y).toString()+") parameters instead!");return Nh.apply(this,arguments)});var nr=Object.create(xt,{constructor:{value:de}});de.prototype=nr;var AA=new oE(Z,de,nr,ue,Et,k,T,O);Et=new eA(Z,AA,!0,!1),xt=new eA(Z+"*",AA,!1,!1);var Uh=new eA(Z+" const*",AA,!1,!0);return bh[E]={pointerType:xt,la:Uh},cE(Pe,de),[Et,xt,Uh]})},d:function(E,B,Q,_,S,k,F){var T=lo(Q,_);B=ge(B),k=Dt(S,k),CA([],[E],function(V){function O(){ps("Cannot call "+Z+" due to unbound types",T)}V=V[0];var Z=V.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]);var re=V.N.constructor;return re[B]===void 0?(O.Z=Q-1,re[B]=O):(no(re,B,Z),re[B].S[Q-1]=O),CA([],T,function(ue){return ue=ao(Z,[ue[0],null].concat(ue.slice(1)),null,k,F),re[B].S===void 0?(ue.Z=Q-1,re[B]=ue):re[B].S[Q-1]=ue,[]}),[]})},p:function(E,B,Q,_,S,k){0<B||Y();var F=lo(B,Q);S=Dt(_,S),CA([],[E],function(T){T=T[0];var V="constructor "+T.name;if(T.N.Y===void 0&&(T.N.Y=[]),T.N.Y[B-1]!==void 0)throw new oe("Cannot register multiple constructors with identical number of parameters ("+(B-1)+") for class '"+T.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return T.N.Y[B-1]=()=>{ps("Cannot construct "+T.name+" due to unbound types",F)},CA([],F,function(O){return O.splice(1,0,null),T.N.Y[B-1]=ao(V,O,null,S,k),[]}),[]})},a:function(E,B,Q,_,S,k,F,T){var V=lo(Q,_);B=ge(B),k=Dt(S,k),CA([],[E],function(O){function Z(){ps("Cannot call "+re+" due to unbound types",V)}O=O[0];var re=O.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]),T&&O.N.ja.push(B);var ue=O.N.X,Pe=ue[B];return Pe===void 0||Pe.S===void 0&&Pe.className!==O.name&&Pe.Z===Q-2?(Z.Z=Q-2,Z.className=O.name,ue[B]=Z):(no(ue,B,re),ue[B].S[Q-2]=Z),CA([],V,function(de){return de=ao(re,de,O,k,F),ue[B].S===void 0?(de.Z=Q-2,ue[B]=de):ue[B].S[Q-2]=de,[]}),[]})},A:function(E,B){B=ge(B),$t(E,{name:B,fromWireType:function(Q){var _=pe(Q);return ho(Q),_},toWireType:function(Q,_){return at(_)},argPackAdvance:8,readValueFromPointer:sr,V:null})},n:function(E,B,Q){Q=ro(Q),B=ge(B),$t(E,{name:B,fromWireType:function(_){return _},toWireType:function(_,S){return S},argPackAdvance:8,readValueFromPointer:uE(B,Q),V:null})},e:function(E,B,Q,_,S){B=ge(B),S===-1&&(S=4294967295),S=ro(Q);var k=T=>T;if(_===0){var F=32-8*Q;k=T=>T<<F>>>F}Q=B.includes("unsigned")?function(T,V){return V>>>0}:function(T,V){return V},$t(E,{name:B,fromWireType:k,toWireType:Q,argPackAdvance:8,readValueFromPointer:fE(B,S,_!==0),V:null})},b:function(E,B,Q){function _(k){k>>=2;var F=w;return new S(I,F[k+1],F[k])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][B];Q=ge(Q),$t(E,{name:Q,fromWireType:_,argPackAdvance:8,readValueFromPointer:_},{ua:!0})},o:function(E,B){B=ge(B);var Q=B==="std::string";$t(E,{name:B,fromWireType:function(_){var S=w[_>>2],k=_+4;if(Q)for(var F=k,T=0;T<=S;++T){var V=k+T;if(T==S||C[V]==0){if(F=F?f(C,F,V-F):"",O===void 0)var O=F;else O+="\0",O+=F;F=V+1}}else{for(O=Array(S),T=0;T<S;++T)O[T]=String.fromCharCode(C[k+T]);O=O.join("")}return tA(_),O},toWireType:function(_,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var k,F=typeof S=="string";if(F||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||j("Cannot pass non-string to std::string"),Q&&F){var T=0;for(k=0;k<S.length;++k){var V=S.charCodeAt(k);127>=V?T++:2047>=V?T+=2:55296<=V&&57343>=V?(T+=4,++k):T+=3}k=T}else k=S.length;if(T=go(4+k+1),V=T+4,w[T>>2]=k,Q&&F){if(F=V,V=k+1,k=C,0<V){V=F+V-1;for(var O=0;O<S.length;++O){var Z=S.charCodeAt(O);if(55296<=Z&&57343>=Z){var re=S.charCodeAt(++O);Z=65536+((Z&1023)<<10)|re&1023}if(127>=Z){if(F>=V)break;k[F++]=Z}else{if(2047>=Z){if(F+1>=V)break;k[F++]=192|Z>>6}else{if(65535>=Z){if(F+2>=V)break;k[F++]=224|Z>>12}else{if(F+3>=V)break;k[F++]=240|Z>>18,k[F++]=128|Z>>12&63}k[F++]=128|Z>>6&63}k[F++]=128|Z&63}}k[F]=0}}else if(F)for(F=0;F<k;++F)O=S.charCodeAt(F),255<O&&(tA(V),j("String has UTF-16 code units that do not fit in 8 bits")),C[V+F]=O;else for(F=0;F<k;++F)C[V+F]=S[F];return _!==null&&_.push(tA,T),T},argPackAdvance:8,readValueFromPointer:sr,V:function(_){tA(_)}})},i:function(E,B,Q){if(Q=ge(Q),B===2)var _=dE,S=IE,k=pE,F=()=>x,T=1;else B===4&&(_=EE,S=BE,k=CE,F=()=>w,T=2);$t(E,{name:Q,fromWireType:function(V){for(var O=w[V>>2],Z=F(),re,ue=V+4,Pe=0;Pe<=O;++Pe){var de=V+4+Pe*B;(Pe==O||Z[de>>T]==0)&&(ue=_(ue,de-ue),re===void 0?re=ue:(re+="\0",re+=ue),ue=de+B)}return tA(V),re},toWireType:function(V,O){typeof O!="string"&&j("Cannot pass non-string to C++ string type "+Q);var Z=k(O),re=go(4+Z+B);return w[re>>2]=Z>>T,S(O,re+4,Z+B),V!==null&&V.push(tA,re),re},argPackAdvance:8,readValueFromPointer:sr,V:function(V){tA(V)}})},k:function(E,B,Q,_,S,k){ds[E]={name:ge(B),fa:Dt(Q,_),W:Dt(S,k),ia:[]}},h:function(E,B,Q,_,S,k,F,T,V,O){ds[E].ia.push({oa:ge(B),ta:Q,ra:Dt(_,S),sa:k,za:F,ya:Dt(T,V),Aa:O})},C:function(E,B){B=ge(B),$t(E,{va:!0,name:B,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(E,B,Q,_,S){E=Es[E],B=pe(B),Q=Sh(Q);var k=[];return w[_>>2]=at(k),E(B,Q,k,S)},t:function(E,B,Q,_){E=Es[E],B=pe(B),Q=Sh(Q),E(B,Q,null,_)},g:ho,m:function(E,B){var Q=mE(E,B),_=Q[0];B=_.name+"_$"+Q.slice(1).map(function(F){return F.name}).join("_")+"$";var S=Mh[B];if(S!==void 0)return S;var k=Array(E-1);return S=yE((F,T,V,O)=>{for(var Z=0,re=0;re<E-1;++re)k[re]=Q[re+1].readValueFromPointer(O+Z),Z+=Q[re+1].argPackAdvance;for(F=F[T].apply(F,k),re=0;re<E-1;++re)Q[re+1].ma&&Q[re+1].ma(k[re]);if(!_.va)return _.toWireType(V,F)}),Mh[B]=S},D:function(E){4<E&&(U[E].ga+=1)},r:function(E){var B=pe(E);io(B),ho(E)},c:function(){Y("")},x:function(E,B,Q){C.copyWithin(E,B,B+Q)},w:function(E){var B=C.length;if(E>>>=0,2147483648<E)return!1;for(var Q=1;4>=Q;Q*=2){var _=B*(1+.2/Q);_=Math.min(_,E+100663296);var S=Math;_=Math.max(E,_),S=S.min.call(S,2147483648,_+(65536-_%65536)%65536);e:{try{h.grow(S-I.byteLength+65535>>>16),m();var k=1;break e}catch{}k=void 0}if(k)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(E,B,Q,_){for(var S=0,k=0;k<Q;k++){var F=w[B>>2],T=w[B+4>>2];B+=8;for(var V=0;V<T;V++){var O=C[F+V],Z=wE[E];O===0||O===10?((E===1?o:a)(f(Z,0)),Z.length=0):Z.push(O)}S+=T}return w[_>>2]=S,0}};(function(){function E(S){e.asm=S.exports,h=e.asm.E,m(),b=e.asm.J,z.unshift(e.asm.F),K--,e.monitorRunDependencies&&e.monitorRunDependencies(K),K==0&&te&&(S=te,te=null,S())}function B(S){E(S.instance)}function Q(S){return ie().then(function(k){return WebAssembly.instantiate(k,_)}).then(function(k){return k}).then(S,function(k){a("failed to asynchronously prepare wasm: "+k),Y(k)})}var _={a:_E};if(K++,e.monitorRunDependencies&&e.monitorRunDependencies(K),e.instantiateWasm)try{return e.instantiateWasm(_,E)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),i(S)}return function(){return l||typeof WebAssembly.instantiateStreaming!="function"||L(se)||typeof fetch!="function"?Q(B):fetch(se,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,_).then(B,function(k){return a("wasm streaming compile failed: "+k),a("falling back to ArrayBuffer instantiation"),Q(B)})})}().catch(i),{}})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.F).apply(null,arguments)};var Ph=e.___getTypeName=function(){return(Ph=e.___getTypeName=e.asm.G).apply(null,arguments)};e.__embind_initialize_bindings=function(){return(e.__embind_initialize_bindings=e.asm.H).apply(null,arguments)};var go=e._malloc=function(){return(go=e._malloc=e.asm.I).apply(null,arguments)},tA=e._free=function(){return(tA=e._free=e.asm.K).apply(null,arguments)};e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.L).apply(null,arguments)};var Cs;te=function E(){Cs||kh(),Cs||(te=E)};function kh(){function E(){if(!Cs&&(Cs=!0,e.calledRun=!0,!c)){if(J(z),t(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;){var B=e.postRun.shift();Ae.unshift(B)}J(Ae)}}if(!(0<K)){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)W();J(D),0<K||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),E()},1)):E())}}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return kh(),A.ready}})();let Le=function(r){return r[r.Auto=0]="Auto",r[r.FlexStart=1]="FlexStart",r[r.Center=2]="Center",r[r.FlexEnd=3]="FlexEnd",r[r.Stretch=4]="Stretch",r[r.Baseline=5]="Baseline",r[r.SpaceBetween=6]="SpaceBetween",r[r.SpaceAround=7]="SpaceAround",r[r.SpaceEvenly=8]="SpaceEvenly",r}({}),qr=function(r){return r[r.BorderBox=0]="BorderBox",r[r.ContentBox=1]="ContentBox",r}({}),Wl=function(r){return r[r.Width=0]="Width",r[r.Height=1]="Height",r}({}),fA=function(r){return r[r.Inherit=0]="Inherit",r[r.LTR=1]="LTR",r[r.RTL=2]="RTL",r}({}),ni=function(r){return r[r.Flex=0]="Flex",r[r.None=1]="None",r[r.Contents=2]="Contents",r}({}),Ie=function(r){return r[r.Left=0]="Left",r[r.Top=1]="Top",r[r.Right=2]="Right",r[r.Bottom=3]="Bottom",r[r.Start=4]="Start",r[r.End=5]="End",r[r.Horizontal=6]="Horizontal",r[r.Vertical=7]="Vertical",r[r.All=8]="All",r}({}),oi=function(r){return r[r.None=0]="None",r[r.StretchFlexBasis=1]="StretchFlexBasis",r[r.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",r[r.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",r[r.All=2147483647]="All",r[r.Classic=2147483646]="Classic",r}({}),LI=function(r){return r[r.WebFlexBasis=0]="WebFlexBasis",r}({}),dA=function(r){return r[r.Column=0]="Column",r[r.ColumnReverse=1]="ColumnReverse",r[r.Row=2]="Row",r[r.RowReverse=3]="RowReverse",r}({}),Xr=function(r){return r[r.Column=0]="Column",r[r.Row=1]="Row",r[r.All=2]="All",r}({}),mt=function(r){return r[r.FlexStart=0]="FlexStart",r[r.Center=1]="Center",r[r.FlexEnd=2]="FlexEnd",r[r.SpaceBetween=3]="SpaceBetween",r[r.SpaceAround=4]="SpaceAround",r[r.SpaceEvenly=5]="SpaceEvenly",r}({}),ai=function(r){return r[r.Error=0]="Error",r[r.Warn=1]="Warn",r[r.Info=2]="Info",r[r.Debug=3]="Debug",r[r.Verbose=4]="Verbose",r[r.Fatal=5]="Fatal",r}({}),Xn=function(r){return r[r.Undefined=0]="Undefined",r[r.Exactly=1]="Exactly",r[r.AtMost=2]="AtMost",r}({}),ql=function(r){return r[r.Default=0]="Default",r[r.Text=1]="Text",r}({}),li=function(r){return r[r.Visible=0]="Visible",r[r.Hidden=1]="Hidden",r[r.Scroll=2]="Scroll",r}({}),hi=function(r){return r[r.Static=0]="Static",r[r.Relative=1]="Relative",r[r.Absolute=2]="Absolute",r}({}),Ft=function(r){return r[r.Undefined=0]="Undefined",r[r.Point=1]="Point",r[r.Percent=2]="Percent",r[r.Auto=3]="Auto",r}({}),ci=function(r){return r[r.NoWrap=0]="NoWrap",r[r.Wrap=1]="Wrap",r[r.WrapReverse=2]="WrapReverse",r}({});const OI={ALIGN_AUTO:Le.Auto,ALIGN_FLEX_START:Le.FlexStart,ALIGN_CENTER:Le.Center,ALIGN_FLEX_END:Le.FlexEnd,ALIGN_STRETCH:Le.Stretch,ALIGN_BASELINE:Le.Baseline,ALIGN_SPACE_BETWEEN:Le.SpaceBetween,ALIGN_SPACE_AROUND:Le.SpaceAround,ALIGN_SPACE_EVENLY:Le.SpaceEvenly,BOX_SIZING_BORDER_BOX:qr.BorderBox,BOX_SIZING_CONTENT_BOX:qr.ContentBox,DIMENSION_WIDTH:Wl.Width,DIMENSION_HEIGHT:Wl.Height,DIRECTION_INHERIT:fA.Inherit,DIRECTION_LTR:fA.LTR,DIRECTION_RTL:fA.RTL,DISPLAY_FLEX:ni.Flex,DISPLAY_NONE:ni.None,DISPLAY_CONTENTS:ni.Contents,EDGE_LEFT:Ie.Left,EDGE_TOP:Ie.Top,EDGE_RIGHT:Ie.Right,EDGE_BOTTOM:Ie.Bottom,EDGE_START:Ie.Start,EDGE_END:Ie.End,EDGE_HORIZONTAL:Ie.Horizontal,EDGE_VERTICAL:Ie.Vertical,EDGE_ALL:Ie.All,ERRATA_NONE:oi.None,ERRATA_STRETCH_FLEX_BASIS:oi.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:oi.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:oi.AbsolutePercentAgainstInnerSize,ERRATA_ALL:oi.All,ERRATA_CLASSIC:oi.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:LI.WebFlexBasis,FLEX_DIRECTION_COLUMN:dA.Column,FLEX_DIRECTION_COLUMN_REVERSE:dA.ColumnReverse,FLEX_DIRECTION_ROW:dA.Row,FLEX_DIRECTION_ROW_REVERSE:dA.RowReverse,GUTTER_COLUMN:Xr.Column,GUTTER_ROW:Xr.Row,GUTTER_ALL:Xr.All,JUSTIFY_FLEX_START:mt.FlexStart,JUSTIFY_CENTER:mt.Center,JUSTIFY_FLEX_END:mt.FlexEnd,JUSTIFY_SPACE_BETWEEN:mt.SpaceBetween,JUSTIFY_SPACE_AROUND:mt.SpaceAround,JUSTIFY_SPACE_EVENLY:mt.SpaceEvenly,LOG_LEVEL_ERROR:ai.Error,LOG_LEVEL_WARN:ai.Warn,LOG_LEVEL_INFO:ai.Info,LOG_LEVEL_DEBUG:ai.Debug,LOG_LEVEL_VERBOSE:ai.Verbose,LOG_LEVEL_FATAL:ai.Fatal,MEASURE_MODE_UNDEFINED:Xn.Undefined,MEASURE_MODE_EXACTLY:Xn.Exactly,MEASURE_MODE_AT_MOST:Xn.AtMost,NODE_TYPE_DEFAULT:ql.Default,NODE_TYPE_TEXT:ql.Text,OVERFLOW_VISIBLE:li.Visible,OVERFLOW_HIDDEN:li.Hidden,OVERFLOW_SCROLL:li.Scroll,POSITION_TYPE_STATIC:hi.Static,POSITION_TYPE_RELATIVE:hi.Relative,POSITION_TYPE_ABSOLUTE:hi.Absolute,UNIT_UNDEFINED:Ft.Undefined,UNIT_POINT:Ft.Point,UNIT_PERCENT:Ft.Percent,UNIT_AUTO:Ft.Auto,WRAP_NO_WRAP:ci.NoWrap,WRAP_WRAP:ci.Wrap,WRAP_WRAP_REVERSE:ci.WrapReverse};function HI(r){function A(i,s,n){const o=i[s];i[s]=function(){for(var a=arguments.length,l=new Array(a),h=0;h<a;h++)l[h]=arguments[h];return n.call(this,o,...l)}}for(const i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){const s={[Ft.Point]:r.Node.prototype[i],[Ft.Percent]:r.Node.prototype[`${i}Percent`],[Ft.Auto]:r.Node.prototype[`${i}Auto`]};A(r.Node.prototype,i,function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];const h=a.pop();let c,f;if(h==="auto")c=Ft.Auto,f=void 0;else if(typeof h=="object")c=h.unit,f=h.valueOf();else if(c=typeof h=="string"&&h.endsWith("%")?Ft.Percent:Ft.Point,f=parseFloat(h),h!==void 0&&!Number.isNaN(h)&&Number.isNaN(f))throw new Error(`Invalid value ${h} for ${i}`);if(!s[c])throw new Error(`Failed to execute "${i}": Unsupported unit '${h}'`);return f!==void 0?s[c].call(this,...a,f):s[c].call(this,...a)})}function e(i){return r.MeasureCallback.implement({measure:function(){const{width:s,height:n}=i(...arguments);return{width:s??NaN,height:n??NaN}}})}A(r.Node.prototype,"setMeasureFunc",function(i,s){return s?i.call(this,e(s)):this.unsetMeasureFunc()});function t(i){return r.DirtiedCallback.implement({dirtied:i})}return A(r.Node.prototype,"setDirtiedFunc",function(i,s){i.call(this,t(s))}),A(r.Config.prototype,"free",function(){r.Config.destroy(this)}),A(r.Node,"create",(i,s)=>s?r.Node.createWithConfig(s):r.Node.createDefault()),A(r.Node.prototype,"free",function(){r.Node.destroy(this)}),A(r.Node.prototype,"freeRecursive",function(){for(let i=0,s=this.getChildCount();i<s;++i)this.getChild(0).freeRecursive();this.free()}),A(r.Node.prototype,"calculateLayout",function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:fA.LTR;return i.call(this,s,n,o)}),{Config:r.Config,Node:r.Node,...OI}}async function JI(){return HI(await GI())}class Xl extends Li{constructor(A){super(),this.setProperties(A)}}const gi={auto:Le.Auto,"flex-start":Le.FlexStart,center:Le.Center,"flex-end":Le.FlexEnd,stretch:Le.Stretch,baseline:Le.Baseline,"space-between":Le.SpaceBetween,"space-around":Le.SpaceAround,"space-evenly":Le.SpaceEvenly},jl={none:ni.None,flex:ni.Flex,contents:ni.Contents},Zl={inherit:fA.Inherit,ltr:fA.LTR,rtl:fA.RTL},$l={column:dA.Column,"column-reverse":dA.ColumnReverse,row:dA.Row,"row-reverse":dA.RowReverse},eh={"no-wrap":ci.NoWrap,wrap:ci.Wrap,"Wrap-reverse":ci.WrapReverse},th={"flex-start":mt.FlexStart,center:mt.Center,"flex-end":mt.FlexEnd,"space-between":mt.SpaceBetween,"space-around":mt.SpaceAround,"space-evenly":mt.SpaceEvenly},Ah={visible:li.Visible,hidden:li.Hidden,scroll:li.Scroll},ih={static:hi.Static,relative:hi.Relative,absolute:hi.Absolute},rh={"border-box":qr.BorderBox,"content-box":qr.ContentBox},as=class as{constructor(A){u(this,"_node",as._yoga.Node.create());this._element=A}static async load(){this._yoga=await JI()}get _style(){return this._element.style}get offsetLeft(){return this._node.getComputedLeft()}get offsetTop(){return this._node.getComputedTop()}get offsetWidth(){return this._node.getComputedWidth()}get offsetHeight(){return this._node.getComputedHeight()}calculateLayout(A,e,t){return this._node.calculateLayout(A,e,t)}getComputedLayout(){return this._node.getComputedLayout()}updateStyleProperty(A,e,t,i){switch(A){case"alignContent":this._node.setAlignContent(e?gi[e]:gi["flex-start"]);break;case"alignItems":this._node.setAlignItems(e?gi[e]:gi["flex-start"]);break;case"alignSelf":this._node.setAlignSelf(e?gi[e]:gi["flex-start"]);break;case"aspectRatio":this._node.setAspectRatio(e);break;case"borderTop":this._node.setBorder(Ie.Top,this._style.borderWidth);break;case"borderBottom":this._node.setBorder(Ie.Bottom,this._style.borderWidth);break;case"borderLeft":this._node.setBorder(Ie.Left,this._style.borderWidth);break;case"borderRight":this._node.setBorder(Ie.Right,this._style.borderWidth);break;case"border":this._node.setBorder(Ie.All,this._style.borderWidth);break;case"direction":this._node.setDirection(e?Zl[e]:Zl.inherit);break;case"display":this._node.setDisplay(e?jl[e]:jl.flex);break;case"flex":this._node.setFlex(this._style.flex);break;case"flexBasis":this._node.setFlexBasis(this._style.flexBasis);break;case"flexDirection":this._node.setFlexDirection(e?$l[e]:$l.row);break;case"flexGrow":this._node.setFlexGrow(this._style.flexGrow);break;case"flexShrink":this._node.setFlexShrink(this._style.flexShrink);break;case"flexWrap":this._node.setFlexWrap(e?eh[e]:eh.wrap);break;case"height":this._node.setHeight(this._style.height);break;case"justifyContent":this._node.setJustifyContent(e?th[e]:th["flex-start"]);break;case"gap":e!==void 0&&this._node.setGap(Xr.All,e);break;case"marginTop":this._node.setMargin(Ie.Top,e);break;case"marginBottom":this._node.setMargin(Ie.Top,e);break;case"marginLeft":this._node.setMargin(Ie.Left,e);break;case"marginRight":this._node.setMargin(Ie.Top,e);break;case"margin":this._node.setMargin(Ie.All,e);break;case"maxHeight":this._node.setMaxHeight(e);break;case"maxWidth":this._node.setMaxWidth(e);break;case"minHeight":this._node.setMinHeight(this._style.minHeight);break;case"minWidth":this._node.setMinWidth(this._style.minWidth);break;case"overflow":this._node.setOverflow(e?Ah[e]:Ah.visible);break;case"paddingTop":this._node.setPadding(Ie.Top,this._style.paddingTop);break;case"paddingBottom":this._node.setPadding(Ie.Bottom,this._style.paddingBottom);break;case"paddingLeft":this._node.setPadding(Ie.Left,this._style.paddingLeft);break;case"paddingRight":this._node.setPadding(Ie.Right,this._style.paddingRight);break;case"padding":this._node.setPadding(Ie.All,this._style.padding);break;case"top":this._node.setPosition(Ie.Top,this._style.top);break;case"bottom":this._node.setPosition(Ie.Bottom,this._style.bottom);break;case"left":this._node.setPosition(Ie.Left,this._style.left);break;case"right":this._node.setPosition(Ie.Right,this._style.right);break;case"position":this._node.setPositionType(e?ih[e]:ih.static);break;case"boxSizing":this._node.setBoxSizing(e?rh[e]:rh["content-box"]);break;case"width":this._node.setWidth(this._style.width);break}}};u(as,"_yoga");let jr=as;var KI=Object.getOwnPropertyDescriptor,YI=(r,A,e,t)=>{for(var i=t>1?void 0:t?KI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.FlexElement2D=class extends g.BaseElement2D{constructor(e,t=[]){super();u(this,"_layout",new jr(this));this.style=new Xl,this.setProperties(e).append(t)}get style(){return this._style}set style(e){var i;const t=(...s)=>{this.emit("updateStyleProperty",...s),this._updateStyleProperty(s[0],s[1],s[2],s[3])};e.on("updateProperty",t),(i=this._style)==null||i.off("updateProperty",t),this._style=e}get offsetLeft(){return this._layout.offsetLeft}get offsetTop(){return this._layout.offsetTop}get offsetWidth(){return this._layout.offsetWidth}get offsetHeight(){return this._layout.offsetHeight}_parented(e){super._parented(e),e._layout&&this._layout._node&&e._layout._node.insertChild(this._layout._node,e._layout._node.getChildCount())}_unparented(e){var t;super._unparented(e),(t=e._layout)!=null&&t._node&&e._layout._node.removeChild(this._layout._node)}_updateStyleProperty(e,t,i,s){super._updateStyleProperty(e,t,i,s),this._layout.updateStyleProperty(e,t,i,s),this._layout._node.isDirty()&&this.requestRelayout()}_updateTransform(){this.calculateLayout(void 0,void 0,fA.LTR);const{left:e,top:t,width:i,height:s}=this._layout.getComputedLayout();this.position.x=e,this.position.y=t,this.size.x=i,this.size.y=s,super._updateTransform()}calculateLayout(e,t,i){var n;const s=this.getParent();(n=s==null?void 0:s._layout)!=null&&n.calculateLayout?s==null||s._layout.calculateLayout(e,t,i):this._layout.calculateLayout(e,t,i)}},g.FlexElement2D=YI([ne("FlexElement2D")],g.FlexElement2D);var VI=Object.defineProperty,zI=Object.getOwnPropertyDescriptor,ke=(r,A,e,t)=>{for(var i=t>1?void 0:t?zI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&VI(A,e,i),i};function Oe(r){return function(A,e){Object.defineProperty(A.constructor.prototype,e,{get(){return r!=null&&r.method?(...t)=>(this.context[e].call(this.context,...t),r.redraw&&this.requestRedraw(),A):this.context[e]},set(t){this.context[e]=t},configurable:!0,enumerable:!0})}}g.Graphics2D=class extends g.Node2D{constructor(){super(...arguments);u(this,"_resetContext",!1);u(this,"lineCap");u(this,"lineJoin");u(this,"fillStyle");u(this,"strokeStyle");u(this,"lineWidth");u(this,"miterLimit")}drawCircle(e,t,i){return this.arc(e+i,t+i,i,0,it),this.fill(),this}drawEllipse(e,t,i,s){const n=i/2,o=s/2;return this.ellipse(e+n,t+o,n,o,0,0,it),this.fill(),this}},ke([Oe()],g.Graphics2D.prototype,"lineCap",2),ke([Oe()],g.Graphics2D.prototype,"lineJoin",2),ke([Oe()],g.Graphics2D.prototype,"fillStyle",2),ke([Oe()],g.Graphics2D.prototype,"strokeStyle",2),ke([Oe()],g.Graphics2D.prototype,"lineWidth",2),ke([Oe()],g.Graphics2D.prototype,"miterLimit",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"rect",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"fillRect",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"strokeRect",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"roundRect",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"ellipse",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"arc",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"beginPath",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"moveTo",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"lineTo",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"closePath",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"fill",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"stroke",2),g.Graphics2D=ke([ne("Graphics2D")],g.Graphics2D);var WI=Object.defineProperty,qI=Object.getOwnPropertyDescriptor,tr=(r,A,e,t)=>{for(var i=t>1?void 0:t?qI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&WI(A,e,i),i};g.Image2D=class extends g.Element2D{constructor(e,t=[]){super();u(this,"texture");u(this,"_frameIndex",0);u(this,"_complete",!1);u(this,"_wait",Promise.resolve());this.setProperties(e),this.append(t)}get currentFrameTexture(){var e,t;return(t=(e=this.texture)==null?void 0:e.frames[this._frameIndex])==null?void 0:t.texture}get textureDuration(){var e;return((e=this.texture)==null?void 0:e.duration)??0}get naturalWidth(){var e;return((e=this.currentFrameTexture)==null?void 0:e.realWidth)??0}get naturalHeight(){var e;return((e=this.currentFrameTexture)==null?void 0:e.realHeight)??0}get complete(){return this._complete}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._wait=this._load(t);break;case"srcRect":this.requestRedraw();break}}decode(){return this._wait}setResource(e){let t;if(e instanceof Cr?t=e:t=new Cr(e),this.texture=t.updateDuration(),this.currentFrameTexture&&(!this.style.width||!this.style.height)){const i=this.currentFrameTexture;this.style.width=i.realWidth,this.style.height=i.realHeight}return this}async _load(e){if(this._complete=!1,e)try{this.setResource(this.gif||e!=null&&e.includes(".gif")?await Gt.gif.load(e):await Gt.texture.load(e)),this.requestRedraw(),this.emit("load")}catch(t){console.warn(t),this.emit("error",t)}else this.texture=void 0;this._complete=!0}_getFrameCurrentTime(){const e=this.textureDuration;if(!e||!this._tree)return 0;const t=this._currentTime;return t<0?0:t%e}_updateFrameIndex(){if(!this.texture)return this;const e=this._getFrameCurrentTime(),t=this.texture.frames,i=t.length;if(i<=1&&this._frameIndex===0)return this;let s=i-1;for(let n=0,o=0;o<i;o++)if(n+=t[o].duration??0,n>=e){s=o;break}return this._frameIndex!==s&&(this._frameIndex=s,this.requestRedraw()),this}_process(e){this._updateFrameIndex(),super._process(e)}_drawContent(){const e=this.currentFrameTexture;if(e!=null&&e.valid){const{left:t=0,top:i=0,right:s=0,bottom:n=0}=this.srcRect??{},{width:o,height:a}=this.size;this.context.fillStyle=e;const l=Math.abs(1+(t+s))*o,h=Math.abs(1+(i+n))*a,c=1/l,f=1/h,I=t*o*c,d=i*a*f;this.context.uvTransform=new ct().scale(c,f).translate(I,d),this.shape.draw(),this.context.fill()}}_repaint(e){return super._repaint(e).map(t=>({...t,disableWrapMode:!0}))}},tr([Be()],g.Image2D.prototype,"texture",2),tr([M({default:""})],g.Image2D.prototype,"src",2),tr([M()],g.Image2D.prototype,"srcRect",2),tr([M({default:!1})],g.Image2D.prototype,"gif",2),g.Image2D=tr([ne("Image2D")],g.Image2D);class Zr extends g.Element2D{constructor(e,t=[]){super();u(this,"texture");this.setProperties(e).append(t)}_drawContent(){var e;if((e=this.texture)!=null&&e.valid){const{width:t,height:i}=this.size;this.context.fillStyle=this.texture,this.context.uvTransform=new ct().scale(1/t,1/i),this.shape.drawRect(),this.context.fill()}}}var XI=Object.defineProperty,jI=Object.getOwnPropertyDescriptor,sh=(r,A,e,t)=>{for(var i=t>1?void 0:t?jI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&XI(A,e,i),i};g.Lottie2D=class extends Zr{constructor(e,t=[]){super();u(this,"texture",new YA);u(this,"animation");this.setProperties(e),this.append(t)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._load();break}}_updateStyleProperty(e,t,i){switch(super._updateStyleProperty(e,t,i),e){case"width":this.texture.width=this.style.width;break;case"height":this.texture.height=this.style.height;break}}async _load(){this.animation=await Gt.lottie.load(this.src,this.texture.source),this.duration=this.animation.getDuration(!1)*1e3,this.texture.requestUpload(),this.requestRedraw()}_process(e){var t;(t=this.animation)==null||t.goToAndStop(this.currentTime,!1),this.texture.requestUpload(),this.requestRedraw(),super._process(e)}},sh([M({default:""})],g.Lottie2D.prototype,"src",2),g.Lottie2D=sh([ne("Lottie2D")],g.Lottie2D);var ZI=Object.defineProperty,$I=Object.getOwnPropertyDescriptor,ui=(r,A,e,t)=>{for(var i=t>1?void 0:t?$I(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ZI(A,e,i),i};const ep=new Set(Object.keys(Wn));g.Text2D=class extends Zr{constructor(e,t=[]){super();u(this,"texture",new YA);u(this,"base",new Vl);u(this,"measureResult");u(this,"_subTextsCount",0);this.setProperties(e),this.append(t),e!=null&&e.plugins&&e.plugins.forEach(i=>{this.base.use(i)})}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"content":case"effects":case"measureDOM":case"fonts":case"split":this._updateSplit(),this.requestRedraw();break}this._subTextsCount&&e==="effects"&&this._getSubTexts().forEach(n=>{n.setProperties({[e]:t})})}_updateBase(){this.base.style=this.style.toJSON(),this.emit("updateBase",this.base),this.base.requestUpdate()}_updateStyleProperty(e,t,i){switch(e){case"left":case"top":case"width":case"height":this.requestRedraw();break;default:super._updateStyleProperty(e,t,i);break}switch(e){case"width":this.split&&this._updateSubTexts();break}typeof e=="string"&&ep.has(e)&&(this._subTextsCount&&e!=="width"&&e!=="height"&&this._getSubTexts().forEach(s=>{s.style.setProperties({[e]:t})}),this.requestRedraw())}_getSubTexts(){return this.children.front.filter(e=>e instanceof g.Text2D)}_updateSubTexts(){var i;const e=this._getSubTexts();let t=0;this.split&&((i=this.updateMeasure().measureResult)==null||i.paragraphs.forEach(s=>{s.fragments.forEach(n=>{n.characters.forEach(o=>{const a=e[t];a&&(a.style.left=o.inlineBox.left,a.style.top=o.inlineBox.top),t++})})}))}measure(){return this._updateBase(),this.base.measure()}updateMeasure(){this.measureResult=this.measure();const{boundingBox:e}=this.measureResult,{left:t,top:i}=this.style;return this.position.x=t+Math.min(0,e.left),this.position.y=i+Math.min(0,e.top),this.size.width=e.width,this.size.height=e.height,this}_updateSplit(){this._subTextsCount&&(this.children.front.forEach(e=>this.removeChild(e)),this._subTextsCount=0),this.split&&this.measure().paragraphs.forEach(e=>{e.fragments.forEach(t=>{t.characters.forEach(i=>{this.append(new g.Text2D({internalMode:"front",style:{...i.computedStyle,left:i.inlineBox.x,top:i.inlineBox.y,width:0,height:0},content:i.content,effects:this.effects,fonts:this.fonts})),this._subTextsCount++})})})}_redraw(){return this.updateMeasure(),super._redraw()}_drawContent(){this.split||(this.base.render({pixelRatio:this.texture.pixelRatio,view:this.texture.source}),this.texture.requestUpload(),super._drawContent())}},ui([M({default:!1})],g.Text2D.prototype,"split",2),ui([M({alias:"base.content"})],g.Text2D.prototype,"content",2),ui([M({alias:"base.effects"})],g.Text2D.prototype,"effects",2),ui([Be({alias:"base.measureDOM"})],g.Text2D.prototype,"measureDOM",2),ui([Be({alias:"base.fonts"})],g.Text2D.prototype,"fonts",2),g.Text2D=ui([ne("Text2D")],g.Text2D);var tp=Object.defineProperty,Ap=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&tp(A,e,i),i};class jn extends g.Element2D{constructor(A,e=[]){super(),this.setProperties(A).append(e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"width":case"height":this.requestRedraw();break}}_drawCircle(A,e){this.context.arc(A,e,this.handleSize,0,Math.PI*2,!0),this.context.fillStyle=_e.WHITE,this.context.fill(),this.context.arc(A,e,this.handleSize,0,Math.PI*2,!0),this.context.strokeStyle="rgba(0, 0, 0, 0.2)",this.context.stroke()}_drawEllipse(A,e){this.context.roundRect(A-this.handleSize,e-this.handleSize*2,this.handleSize*2,this.handleSize*4,this.handleSize),this.context.fillStyle=_e.WHITE,this.context.fill(),this.context.roundRect(A-this.handleSize,e-this.handleSize*2,this.handleSize*2,this.handleSize*4,this.handleSize),this.context.strokeStyle="rgba(0, 0, 0, 0.2)",this.context.stroke()}_draw(){const{width:A,height:e}=this.getRect();this.context.rect(0,0,A,e),this.context.strokeStyle="#00FF00",this.context.stroke(),this._drawCircle(0,0),this._drawCircle(A,e),this._drawCircle(0,e),this._drawEllipse(0,e/2),this._drawCircle(A,0),this._drawEllipse(A,e/2)}}Ap([M({default:6})],jn.prototype,"handleSize");var ip=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,nh=(r,A,e,t)=>{for(var i=t>1?void 0:t?rp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&ip(A,e,i),i};g.Video2D=class extends Zr{constructor(e,t=[]){super();u(this,"_wait",Promise.resolve());this.setProperties(e),this.append(t)}get videoDuration(){var e;return(((e=this.texture)==null?void 0:e.duration)??0)*1e3}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._wait=this._load(t);break}}waitLoad(){return this._wait}async _load(e){this.texture=await Gt.video.load(e),(!this.style.width||!this.style.height)&&(this.style.width=this.texture.width,this.style.height=this.texture.height),this.requestRedraw()}_updateVideoCurrentTime(){let e=this._currentTime;if(e<0)return;const t=this.texture;if(!t)return;const i=t.duration;e=i?e%(i*1e3):0,!t.isPlaying&&!t.seeking&&(e=~~e/1e3,t.currentTime!==e&&(t.currentTime=e))}_process(e){this._updateVideoCurrentTime(),super._process(e)}},nh([M({default:""})],g.Video2D.prototype,"src",2),g.Video2D=nh([ne("Video2D")],g.Video2D);var sp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Ar=(r,A,e,t)=>{for(var i=t>1?void 0:t?np(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&sp(A,e,i),i};const oh=r=>r,ah=fi(.25,.1,.25,1),lh=fi(.42,0,1,1),hh=fi(0,0,.58,1),ch=fi(.42,0,.58,1);function fi(r,A,e,t){const s=3*r-3*e+1,n=3*e-6*r,o=3*r,a=3*A-3*t+1,l=3*t-6*A,h=3*A,c=C=>(3*s*C+2*n)*C+o,f=C=>((s*C+n)*C+o)*C,I=C=>((a*C+l)*C+h)*C;function d(C){let p=C,x,P;for(let v=0;v<8;v++){if(P=f(p)-C,Math.abs(P)<1e-6)return p;if(x=c(p),Math.abs(x)<1e-6)break;p-=P/x}let w=1,R=0;for(p=C;w>R;){if(P=f(p)-C,Math.abs(P)<1e-6)return p;P>0?w=p:R=p,p=(w+R)/2}return p}return C=>I(d(C))}const $r={linear:oh,ease:ah,easeIn:lh,easeOut:hh,easeInOut:ch};g.Animation=class extends g.TimelineNode{constructor(e,t=[]){super();u(this,"easing");u(this,"_keyframes",[]);u(this,"_isFirstUpdatePosition",!1);u(this,"_cachedProps",new xs);u(this,"_stoped",!1);this.setProperties(e).append(t)}_parented(e){super._parented(e),this._updateCachedProps()}_unparented(e){super._unparented(e),this.cancel()}_process(){this.canProcess()&&this.commitStyles()}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"effectMode":case"keyframes":this._updateKeyframes();break}}_getTargets(){var t;let e;switch(this.effectMode){case"sibling":e=((t=this.getParent())==null?void 0:t.children.internal.filter(i=>i instanceof g.CanvasItem))??[];break;case"parent":default:e=[this.getParent()].filter(Boolean);break}return e.map(i=>i.style)}_updateKeyframes(){const e=[],t=this.keyframes;for(let n=t.length,o=0;o<n;o++){const{offset:a=o===0?0:o/(n-1),easing:l="linear",...h}=t[o];e.push({offset:a,easing:this._parseEasing(l),props:h})}const i=e[0],s=e[e.length-1];i&&i.offset!==0&&e.unshift({offset:0,easing:this._parseEasing("linear"),props:{}}),s&&s.offset!==1&&e.push({offset:1,easing:this._parseEasing("linear"),props:{}}),this._keyframes=e,this._updateCachedProps()}commitStyles(){if(!this.keyframes.length)return;if(this._updateCurrentTime(),this.isInsideTimeRange())this._isFirstUpdatePosition||(this._isFirstUpdatePosition=!0,this._updateCachedProps());else{if(!this._isFirstUpdatePosition)return;this._isFirstUpdatePosition=!1}const e=this._getTargets(),t=1/e.length,i=this.currentTimeProgress;e.forEach((s,n)=>{const o=t===1?i:zt(0,Math.max(0,i-t*n)/t,1),a=this._cachedProps.get(s);if(!a)return;const l=this._parseKeyframes(o,a);l!=null&&l.length&&this._commitStyle(o,s,a,l[0],l[1])})}_updateCachedProps(){this.cancel(),this._getTargets().forEach(e=>{const t=new Map,i=this._keyframes;for(let s=i.length,n=0;n<s;n++)Object.keys(i[n].props).forEach(o=>{t.set(o,e[o])});this._cachedProps.set(e,t)})}_parseEasing(e){if(!e)return $r.linear;if(e in $r)return $r[e];const t=e.replace(/cubic-bezier\((.+)\)/,"$1").split(",").map(i=>Number(i));return fi(t[0],t[1],t[2],t[3])}_parseKeyframes(e,t){let i;const s=this._keyframes;for(let n=s.length,o=0;o<n;o++){const a=s[o],{offset:l,easing:h}=a,c={...a.props};if(i&&e<=l){const{offset:f,easing:I}=i,d={...i.props};return t.forEach((C,p)=>{(!(p in d)||d[p]===null)&&(d[p]=C),(!(p in c)||c[p]===null)&&(c[p]=C)}),[{offset:f,easing:I,props:d},{offset:l,easing:h,props:c}]}i=a}return null}_commitStyle(e,t,i,s,n){const{offset:o,easing:a,props:l}=s,{offset:h,props:c}=n,f=h-o,I=a((e-o)/f),d={width:t.width,height:t.height,fontSize:t.fontSize};i.forEach((C,p)=>{t[p]=this._getDiffValue(p,l[p],c[p],I,d)})}_getDiffValue(e,t,i,s,n){let o,a;if(t==="none"&&(t=void 0),i==="none"&&(i=void 0),t===void 0||i===void 0)if(t!==void 0)o=Ci(e,String(t),n),a=ks(o);else if(i!==void 0)a=Ci(e,String(i),n),o=ks(a);else return;else o=Ci(e,String(t),n),a=Ci(e,String(i),n);if(Array.isArray(o)&&Array.isArray(a)){const l=new Set,h={},c={};o.forEach(({name:I,args:d})=>{h[I]=d,l.add(I)}),a.forEach(({name:I,args:d})=>{c[I]=d,l.add(I)});let f="";return l.forEach(I=>{var x,P;const d=Math.max(((x=h[I])==null?void 0:x.length)??0,((P=c[I])==null?void 0:P.length)??0),C=h[I],p=c[I];f+=`${I}(${Array.from({length:d},(w,R)=>{const v=C==null?void 0:C[R],m=p==null?void 0:p[R],b=(v==null?void 0:v.normalizedIntValue)??0,D=(m==null?void 0:m.normalizedIntValue)??0;return Number.isNaN(b)||Number.isNaN(D)?(m==null?void 0:m.value)??0:Me(b,D,s)}).join(", ")}) `}),f}else if(!Array.isArray(o)&&!Array.isArray(a))return Number.isNaN(o.normalizedIntValue)||Number.isNaN(a.normalizedIntValue)?a.value:Me(o.normalizedIntValue,a.normalizedIntValue,s)}isPlaying(){return!this.paused&&this.isInsideTimeRange()}play(){return this._stoped?(this._stoped=!1,this.startTime=this.timelineCurrentTime):this.startTime=this.timelineCurrentTime-this.currentTime,this.paused=!1,!0}pause(){return this.paused=!0,!0}stop(){return this._stoped=!0,this.paused=!0,this._currentTime=0,!0}cancel(){this._getTargets().forEach(e=>{var t;(t=this._cachedProps.get(e))==null||t.forEach((i,s)=>{e[s]=i}),this._cachedProps.delete(e)})}},Ar([M({default:"parent"})],g.Animation.prototype,"effectMode",2),Ar([M({default:!1})],g.Animation.prototype,"loop",2),Ar([M({default:()=>[]})],g.Animation.prototype,"keyframes",2),Ar([M()],g.Animation.prototype,"easing",2),g.Animation=Ar([ne("Animation",{renderMode:"disabled",processMode:"pausable",processSortMode:"parent_before",duration:2e3})],g.Animation);const ls=class ls extends Jt{constructor(){super(...arguments);u(this,"playbackRate",1);u(this,"muted",!1);u(this,"volume",1);u(this,"paused",!1)}static get instance(){return this._instance||(this._instance=new ls),this._instance}refresh(){this.emit("refresh")}refreshPaused(){this.emit("refreshPaused")}get processors(){return console.warn("HTML Audio does not support processors"),[]}set processors(e){console.warn("HTML Audio does not support processors")}get audioContext(){return console.warn("HTML Audio does not support audioContext"),null}toggleMute(){return this.muted=!this.muted,this.refresh(),this.muted}togglePause(){return this.paused=!this.paused,this.refreshPaused(),this.paused}free(){this.removeAllListeners()}};u(ls,"_instance");let es=ls;const rr=class rr extends Jt{constructor(){super(...arguments);u(this,"_source",null);u(this,"_audio",null);u(this,"_end",0);u(this,"_pausedReal",!1);u(this,"_duration",0);u(this,"_start",0);u(this,"_playing",!1);u(this,"_paused",!1);u(this,"_playbackRate",1);u(this,"_volume",1);u(this,"_loop",!1);u(this,"_muted",!1);u(this,"_onUpdate",()=>{this._source&&(this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete())})}get progress(){var e;return(((e=this._source)==null?void 0:e.currentTime)??0)/this._duration}get paused(){return this._paused}set paused(e){this._paused!==e&&(this._paused=e,this.refreshPaused())}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate!==e&&(this._playbackRate=e,this.refresh())}get volume(){return this._volume}set volume(e){this._volume!==e&&(this._volume=e,this.refresh())}get loop(){return this._loop}set loop(e){this._loop!==e&&(this._loop=e,this.refresh())}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.refresh())}set(e,t){if(this[e]===void 0)throw new Error(`Property with name ${e} does not exist.`);switch(e){case"playbackRate":this.playbackRate=t;break;case"volume":this.volume=t;break;case"paused":this.paused=t;break;case"loop":this.loop=t;break;case"muted":this.muted=t;break}return this}_onPlay(){this._playing=!0}_onPause(){this._playing=!1}init(e){this._playing=!1,this._duration=e.source.duration;const t=this._source=e.source.cloneNode(!1);return t.src=e.parent.src,t.onplay=this._onPlay.bind(this),t.onpause=this._onPause.bind(this),e.context.on("refresh",this.refresh),e.context.on("refreshPaused",this.refreshPaused),this._audio=e,this}_stop(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())}stop(){this._stop(),this._source&&this.emit("stop")}get processors(){return console.warn("HTML Audio does not support processors"),[]}set processors(e){console.warn("HTML Audio does not support processors")}refresh(){if(!this._audio||!this._source)return;const e=this._audio.context,t=this._audio.parent;this._source.loop=this._loop||t.loop;const i=e.volume*(e.muted?0:1),s=t.volume*(t.muted?0:1),n=this._volume*(this._muted?0:1);this._source.volume=n*i*s,this._source.playbackRate=this._playbackRate*e.playbackRate*t.playbackRate}refreshPaused(){if(!this._source||!this._audio)return;const e=this._paused||this._audio.parent.paused||this._audio.context.paused;e!==this._pausedReal&&(this._pausedReal=e,e?(this._stop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,playbackRate:this._playbackRate,loop:this._loop})),this.emit("pause",e))}play(e={}){if(!this._source)return;const{start:t=0,end:i=0}=e;i&&console.assert(i>t,"End time is before start time"),e.playbackRate!==void 0&&(this._playbackRate=e.playbackRate),e.volume!==void 0&&(this._volume=e.volume),e.loop!==void 0&&(this._loop=e.loop),e.muted!==void 0&&(this._muted=e.muted),this.refresh(),this.loop&&i!==null&&(console.warn('Looping not support when specifying an "end" time'),this.loop=!1),this._start=t,this._end=i||this._duration,this._start=Math.max(0,this._start-rr.PADDING),this._end=Math.min(this._end+rr.PADDING,this._duration),this._source.onloadedmetadata=()=>{this._source&&(this._source.currentTime=t,this._source.onloadedmetadata=null,this.emit("progress",t,this._duration),Se.on(this._onUpdate))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")}_onComplete(){Se.off(this._onUpdate),this._stop(),this.emit("progress",1,this._duration),this.emit("end",this)}free(){Se.off(this._onUpdate),this.removeAllListeners();const e=this._source;e&&(e.onended=null,e.onplay=null,e.onpause=null,this._stop()),this._source=null,this._playbackRate=1,this._volume=1,this._loop=!1,this._end=0,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._audio&&(this._audio.context.off("refresh",this.refresh),this._audio.context.off("refreshPaused",this.refreshPaused),this._audio=null)}};u(rr,"PADDING",.1);let ts=rr;class gh{constructor(A){u(this,"source",new globalThis.Audio);u(this,"_src","");this.parent=A}get src(){return this._src}set src(A){this._src!==A&&(this._src=A,this.load())}get duration(){return this.source.duration}get isPlayable(){return!!this.source&&this.source.readyState===4}get context(){return es.instance}async load(){return new Promise(A=>{this.source.onload=()=>A(this),this.source.src=this._src,this.source.load()})}createSound(){return new ts}}class Zn extends Jt{constructor(e,t){super();u(this,"_processers",[]);this._input=e,this._output=t}get processors(){return this._processers}set processors(e){if(this._processers.forEach(t=>t.disconnect()),this._processers.length=0,this._input.connect(this._output),e.length){this._processers=e.slice(0),this._input.disconnect();let t;e.forEach(i=>{t?t.connect(i.destination):this._input.connect(i.destination),t=i}),t.connect(this._output)}}get destination(){return this._input}}class op{constructor(A,e=null){this.destination=A,this.source=e}connect(A){var e;(e=this.source)==null||e.connect(A)}disconnect(){var A;(A=this.source)==null||A.disconnect()}}function ap(){if(Ns)return new AudioContext;if(Fs){const r=globalThis.webkitAudioContext;return new r}else throw new Error("Failed to createAudioContext")}function lp(r,A,e){if(Ts)return new OfflineAudioContext(r,A,e);if(Go){const t=globalThis.webkitOfflineAudioContext;return new t(r,A,e)}else throw new Error("Failed to createOfflineAudioContext")}const hs=class hs extends Zn{constructor(){const e=ap(),t=lp(1,2,Ts?Math.max(8e3,Math.min(96e3,e.sampleRate)):44100),i=e.createDynamicsCompressor(),s=e.createAnalyser();s.connect(i),i.connect(e.destination);super(s,i);u(this,"_context");u(this,"_offlineContext");u(this,"_locked");u(this,"muted",!1);u(this,"volume",1);u(this,"playbackRate",1);u(this,"autoPause",!0);u(this,"_paused",!1);u(this,"_pausedOnBlur",!1);u(this,"_compressor");u(this,"_analyser");u(this,"_unlock",()=>{this._locked&&(this.playEmptySound(),this._context.state==="running"&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._locked=!1))});this._context=e,this._offlineContext=t,this._compressor=i,this._analyser=s,this._locked=e.state==="suspended"&&(Kt||To),yi&&(this._locked&&(this._unlock(),document.addEventListener("mousedown",this._unlock,!0),document.addEventListener("touchstart",this._unlock,!0),document.addEventListener("touchend",this._unlock,!0)),globalThis.addEventListener("focus",this._onFocus),globalThis.addEventListener("blur",this._onBlur))}static get instance(){return this._instance||(this._instance=new hs),this._instance}static get audioContext(){return this.instance.audioContext}static get offlineContext(){return this.instance.offlineContext}static setParamValue(e,t){this.instance.setParamValue(e,t)}static decode(e){return this.instance.decode(e)}get audioContext(){return this._context}get offlineContext(){return this._offlineContext}get paused(){return this._paused}set paused(e){e&&this._context.state==="running"?this._context.suspend():!e&&this._context.state==="suspended"&&this._context.resume(),this._paused=e}_onFocus(){if(!this.autoPause)return;const e=this._context.state;(e==="suspended"||e==="interrupted"||!this._locked)&&(this.paused=this._pausedOnBlur,this.refreshPaused())}_onBlur(){this.autoPause&&(this._locked||(this._pausedOnBlur=this._paused,this.paused=!0,this.refreshPaused()))}playEmptySound(){const e=this._context.createBufferSource();e.buffer=this._context.createBuffer(1,1,22050),e.connect(this._context.destination),e.start(0,0,0),e.context.state==="suspended"&&e.context.resume()}refresh(){this.emit("refresh")}refreshPaused(){this.emit("refreshPaused")}toggleMute(){return this.muted=!this.muted,this.refresh(),this.muted}togglePause(){return this.paused=!this.paused,this.refreshPaused(),this._paused}decode(e){return new Promise((t,i)=>{const s=o=>{i(new Error((o==null?void 0:o.message)||"Unable to decode file"))},n=this._offlineContext.decodeAudioData(e,t,s);n&&n.catch(s)})}setParamValue(e,t){e.setValueAtTime?e.setValueAtTime(t,this._context.currentTime):e.value=t}};u(hs,"_instance");let IA=hs;class uh extends Jt{constructor(){super(...arguments);u(this,"_audio",null);u(this,"_sourceNode",null);u(this,"_gain",null);u(this,"_progress",0);u(this,"_pausedReal",!1);u(this,"_paused",!1);u(this,"_volume",1);u(this,"_playbackRate",1);u(this,"_loop",!1);u(this,"_muted",!1);u(this,"_duration",0);u(this,"_end",0);u(this,"_elapsed",0);u(this,"_lastUpdate",this._now());u(this,"_processors",[]);u(this,"_onComplete",()=>{if(this._sourceNode){this._enableTicker(!1),this._sourceNode.onended=null,this._sourceNode.disconnect();try{this._sourceNode.buffer=null}catch(e){console.warn("Failed to set AudioBufferSourceNode.buffer to null:",e)}}this._sourceNode=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)});u(this,"_updateListener",()=>this._update())}get progress(){return this._progress}get paused(){return this._paused}set paused(e){this._paused!==e&&(this._paused=e,this.refreshPaused())}get volume(){return this._volume}set volume(e){this._volume!==e&&(this._volume=e,this.refresh())}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate!==e&&(this._playbackRate=e,this.refresh(),this._update(!0))}get loop(){return this._loop}set loop(e){this._loop!==e&&(this._loop=e,this.refresh())}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.refresh())}init(e){return this._audio=e,e.context.on("refresh",this.refresh),e.context.on("refreshPaused",this.refreshPaused),this}_now(){var e;return((e=this._audio)==null?void 0:e.context.audioContext.currentTime)??0}play(e={}){var o;if(!this._audio)return;const{end:t=0,start:i=0}=e;t&&console.assert(t>i,"End time is before start time"),this._end=t,this._elapsed=i,e.volume!==void 0&&(this._volume=e.volume),e.playbackRate!==void 0&&(this._playbackRate=e.playbackRate),e.muted!==void 0&&(this._muted=e.muted),e.loop!==void 0&&(this._loop=e.loop),e.processors!==void 0&&(this._processors=e.processors),this._paused=!1;const{source:s,gain:n}=this._audio.cloneSource();this._sourceNode=s,this._gain=n,this.refresh(),s.onended=this._onComplete.bind(this),this._duration=((o=s.buffer)==null?void 0:o.duration)??0,this._lastUpdate=this._now(),this._loop?(s.loopStart=i,s.loopEnd=t,s.start(0,i)):t?s.start(0,i,t-i):s.start(0,i),this.emit("start"),this._update(!0),this._enableTicker(!0)}_stop(){if(this._sourceNode){this._enableTicker(!1),this._sourceNode.onended=null,this._sourceNode.stop(0),this._sourceNode.disconnect();try{this._sourceNode.buffer=null}catch(e){console.warn("Failed to set AudioBufferSourceNode.buffer to null:",e)}this._sourceNode=null}}stop(){this._sourceNode&&(this._stop(),this.emit("stop"))}_update(e=!1){if(this._sourceNode){const t=this._now(),i=t-this._lastUpdate;if(i>0||e){this._elapsed+=i*this._sourceNode.playbackRate.value,this._lastUpdate=t;const s=this._duration;let n;if(this._sourceNode.loopStart){const o=this._sourceNode.loopEnd-this._sourceNode.loopStart;n=(this._sourceNode.loopStart+this._elapsed%o)/s}else n=this._elapsed%s/s;this._progress=n,this.emit("progress",n,s)}}}refresh(){if(!this._audio||!this._sourceNode)return;const e=this._audio.context,t=this._audio.parent;this._sourceNode.loop=this._loop||t.loop,e.setParamValue(this._gain.gain,this._volume*(this._muted?0:1)*t.volume*(t.muted?0:1)*e.volume*(e.muted?0:1)),e.setParamValue(this._sourceNode.playbackRate,this._playbackRate*t.playbackRate*e.playbackRate),this.applyProcessors()}applyProcessors(){if(this._sourceNode&&this._processors.length){this._sourceNode.disconnect();let e=this._sourceNode;this._processors.forEach(t=>{e.connect(t.destination),e=t}),e.connect(this._gain)}}refreshPaused(){if(!this._audio)return;const e=this._paused||this._audio.parent.paused||this._audio.context.paused;e!==this._pausedReal&&(this._pausedReal=e,e?(this._stop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,playbackRate:this._playbackRate,loop:this._loop,volume:this._volume})),this.emit("pause",e))}_enableTicker(e){Se.off(this._updateListener),e&&Se.on(this._updateListener)}free(){var e,t,i;this.removeAllListeners(),this._stop(),(e=this._gain)==null||e.disconnect(),this._gain=null,(t=this._audio)==null||t.context.off("refresh",this.refresh),(i=this._audio)==null||i.context.off("refreshPaused",this.refreshPaused),this._audio=null,this._processors.forEach(s=>s.disconnect()),this._processors.length=0,this._end=0,this._playbackRate=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1}}class fh extends Zn{constructor(e){const t=IA.audioContext,i=t.createBufferSource(),s=t.createGain(),n=t.createAnalyser();i.connect(n),n.connect(s),s.connect(IA.instance.destination);super(n,s);u(this,"_sourceBuffer");u(this,"_sourceNode");u(this,"_sourceLoad");u(this,"gain");u(this,"analyser");this.parent=e,this._sourceNode=i,this.gain=s,this.analyser=n}get context(){return IA.instance}get isPlayable(){return!!this._sourceNode.buffer}get duration(){var e;return((e=this._sourceNode.buffer)==null?void 0:e.duration)??0}get buffer(){return this._sourceNode.buffer}set buffer(e){this._sourceNode.buffer=e}async load(){return this._sourceLoad||(this._sourceLoad=new Promise(e=>{this._sourceBuffer?this._decode(this._sourceBuffer).then(()=>e(this)):this.parent.src?this._loadUrl(this.parent.src).then(()=>e(this)):e(this)})),this._sourceLoad}_loadUrl(e){return new Promise(t=>{fetch(e).then(i=>i.arrayBuffer()).then(i=>this._decode(i)).finally(()=>t(this))})}_decode(e){return Promise.resolve(e instanceof AudioBuffer?e:IA.decode(e)).then(t=>(this.parent.isLoaded=!0,this.buffer=t,t))}cloneSource(){const e=this.context,t=this._sourceNode,i=e.audioContext.createBufferSource(),s=e.audioContext.createGain();return i.buffer=t.buffer,i.loop=t.loop,e.setParamValue(i.playbackRate,t.playbackRate.value),i.connect(s),s.connect(this.destination),{source:i,gain:s}}createSound(){return new uh}}var hp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,gp=(r,A,e)=>A in r?hp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,up=(r,A,e,t)=>{for(var i=t>1?void 0:t?cp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},fp=(r,A,e)=>gp(r,A+"",e);g.Audio=class extends g.TimelineNode{constructor(e=""){super();u(this,"_sounds",[]);u(this,"_platformAudio",Lo?new fh(this):new gh(this));u(this,"_src");u(this,"isLoaded",!1);u(this,"_volume",1);u(this,"_muted",!1);u(this,"_loop",!1);u(this,"_playbackRate",1);u(this,"_isPlaying",!1);u(this,"multiple",!1);u(this,"start",0);u(this,"end",0);u(this,"_onComplete",e=>{if(this._sounds){const t=this._sounds.indexOf(e);t>-1&&this._sounds.splice(t,1),this._isPlaying=this._sounds.length>0}this._recycleSound(e)});u(this,"_prevTime",0);u(this,"_timer",0);this.src=e}get platformAudio(){return this._platformAudio}get src(){return this._src}set src(e){this._src!==e&&(this._src=e,this.load())}get isPlayable(){return this.isLoaded&&this._platformAudio.isPlayable}get audioDuration(){return this._platformAudio.duration*1e3}get volume(){return this._volume}set volume(e){this._volume!==e&&(this._volume=e,this.refresh())}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.refresh())}get loop(){return this._loop}set loop(e){this._loop!==e&&(this._loop=e,this.refresh())}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate!==e&&(this._playbackRate=e,this.refresh())}get isPlaying(){return this._isPlaying}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"paused":this.refreshPaused();break}}async load(){return await this._platformAudio.load(),this}pause(){return this._isPlaying=!1,this.paused=!0,this}resume(){return this._isPlaying=this._sounds.length>0,this.paused=!1,this}stop(){if(!this.isPlayable)return this;this._isPlaying=!1;for(let e=this._sounds.length-1;e>=0;e--)this._sounds[e].stop();return this}play(e={}){if(!this.isLoaded)return;this.multiple||this._removeSounds(),this._isPlaying=!0;const t=this._createSound();this._sounds.push(t),t.once("end",()=>{var n;(n=e.complete)==null||n.call(e),this._onComplete(t)}),t.once("stop",()=>this._onComplete(t));const i=((e==null?void 0:e.start)??this.start)/1e3,s=((e==null?void 0:e.end)??this.end)/1e3;return t.play({...e,start:i,end:s}),t}_removeSounds(){for(let e=this._sounds.length-1;e>=0;e--)this._recycleSound(this._sounds[e]);this._sounds.length=0}_createSound(){return g.Audio._soundPool.length>0?g.Audio._soundPool.pop().init(this._platformAudio):this._platformAudio.createSound().init(this._platformAudio)}refresh(){for(let e=this._sounds.length,t=0;t<e;t++)this._sounds[t].refresh()}refreshPaused(){for(let e=this._sounds.length,t=0;t<e;t++)this._sounds[t].refreshPaused()}_recycleSound(e){e.free(),g.Audio._soundPool.includes(e)||g.Audio._soundPool.push(e)}_process(e){var t;if(super._process(e),this.canProcess()){const i=((t=this._tree)==null?void 0:t.timeline.currentTime)??0;i-this._prevTime>0&&(this._timer||(this._setTimeStop(),this.play({start:this.start+(i-this.delay)%this.duration})),this._isPlaying&&this._setTimeStop()),this._prevTime=i}}_setTimeStop(){this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this.stop(),this._timer=0},100)}},fp(g.Audio,"_soundPool",[]),g.Audio=up([ne("Audio")],g.Audio);class dp extends g.Node2D{}var Ip=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,As=(r,A,e,t)=>{for(var i=t>1?void 0:t?pp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Ip(A,e,i),i};g.AudioWaveform=class extends g.Element2D{constructor(e={}){super();u(this,"src");u(this,"gap",0);u(this,"color","#000000");u(this,"_audioBuffer");u(this,"_src",yi?new _e(document.createElement("canvas")):void 0);u(this,"_needsUpdateTexture",!1);this.setProperties(e)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._loadSrc(t);break;case"gap":case"color":case"width":case"height":this._needsUpdateTexture=!0;break}}async _loadSrc(e){await globalThis.fetch(e).then(t=>t.arrayBuffer()).then(t=>IA.decode(t)).then(t=>{this._audioBuffer=t,this.syncTexture(!0)})}syncTexture(e=!1){var c,f;const t=this._audioBuffer;if(!t||!e&&!this._needsUpdateTexture)return;this._needsUpdateTexture=!1;const i=(c=this._src)==null?void 0:c.source;if(!i)return;const{width:s=0,height:n=0}=this.style;i.width=s,i.height=n;const o=i.getContext("2d");if(!o){console.warn("Failed to getContext('2d') in syncTexture");return}o.fillStyle=this.color;const a=t.getChannelData(0),l=Math.ceil(a.length/s),h=n/2;for(let I=1,d=-1,C=0;C<s;C++){for(let p=0;p<l;p++){const x=a[C*l+p];x<I&&(I=x),x>d&&(d=x)}if(!this.gap||C%(this.gap*2)===0){const p=C,x=(1+I)*h,P=this.gap||1,w=Math.max(1,(d-I)*h);o.fillRect(p,x,P,w),I=1,d=-1}}(f=this._src)==null||f.requestUpload(),this.requestRedraw()}_process(e){this.syncTexture(),super._process(e)}_drawSrc(){const e=this._src;e!=null&&e.valid&&(this.context.fillStyle=e,this.context.uvTransform=new ct().scale(1/this.style.width,1/this.style.height))}},As([M()],g.AudioWaveform.prototype,"src",2),As([M()],g.AudioWaveform.prototype,"gap",2),As([M()],g.AudioWaveform.prototype,"color",2),g.AudioWaveform=As([ne("AudioWaveform")],g.AudioWaveform);var Ep=Object.getOwnPropertyDescriptor,Bp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Ep(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Control=class extends g.Element2D{constructor(A,e=[]){super(),this._parentUpdateRect=this._parentUpdateRect.bind(this),this.setProperties(A),this.append(e)}_parented(A){super._parented(A),A.on("updateRect",this._parentUpdateRect)}_unparented(A){super._unparented(A),A.off("updateRect",this._parentUpdateRect)}_parentUpdateRect(){const A=this._parent.getRect();this.style.left=A.left,this.style.top=A.top,this.style.width=A.width,this.style.height=A.height}_input(A,e){super._input(A,e),this._guiInput(A,e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"width":case"height":case"left":case"top":this.emit("updateRect");break}}_guiInput(A,e){}},g.Control=Bp([ne("Control")],g.Control);var Cp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,pA=(r,A,e,t)=>{for(var i=t>1?void 0:t?Qp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Cp(A,e,i),i};g.Range=class extends g.Control{constructor(A,e=[]){super(),this.setProperties(A).append(e)}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"allowGreater":case"allowLesser":case"page":case"minValue":case"maxValue":case"step":case"value":this.requestRedraw();break}}},pA([M({default:!1})],g.Range.prototype,"allowGreater",2),pA([M({default:!1})],g.Range.prototype,"allowLesser",2),pA([M({default:1})],g.Range.prototype,"page",2),pA([M({default:0})],g.Range.prototype,"minValue",2),pA([M({default:100})],g.Range.prototype,"maxValue",2),pA([M({default:.01})],g.Range.prototype,"step",2),pA([M({default:0})],g.Range.prototype,"value",2),g.Range=pA([ne("Range")],g.Range);var yp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Tt=(r,A,e,t)=>{for(var i=t>1?void 0:t?mp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&yp(A,e,i),i};g.Ruler=class extends g.Control{constructor(e,t=[]){super();u(this,"texture",new YA);this.setProperties(e),this.append(t)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"offsetX":case"offsetY":case"thickness":case"markHeight":case"color":case"markBackgroundColor":case"markColor":case"gap":case"scale":this.requestRedraw();break}}_updateStyleProperty(e,t,i,s){switch(super._updateStyleProperty(e,t,i,s),e){case"width":case"height":this.texture[e]=t,this.requestRedraw();break}}_drawTexture(){const{width:e,height:t}=this.size,{offsetX:i,offsetY:s,thickness:n,markHeight:o,markBackgroundColor:a,markColor:l,color:h,gap:c,gapScale:f}=this,d=this.texture.source.getContext("2d");d.reset(),d.scale(this.texture.pixelRatio,this.texture.pixelRatio);const C=Math.round(i),p=Math.round(s);d.beginPath(),d.fillStyle=a||"#EEE",d.fillRect(0,0,e,n),d.fillRect(0,0,n,t),d.fill(),d.strokeStyle=l||"#000",d.moveTo(n,0),d.lineTo(n,t),d.moveTo(0,n),d.lineTo(e,n),d.stroke();const x=c,P=c*f;let w,R,v,m,b;for(x>=P?(w=x/P,R=Math.floor(w)*x/20,v=x/20*Math.floor(w)/w):(w=P/x,R=Math.floor(x/20/w),R>=2?R=Math.floor(R/2)*2:R=1,v=R*w),d.fillStyle=d.strokeStyle,m=C,b=0;m<e;b++,m+=v)d.moveTo(m,n-(b%5?o:2*o)),d.lineTo(m,n);for(m=C,b=0;m>n;b++,m-=v)d.moveTo(m,n-(b%5?o:2*o)),d.lineTo(m,n);let D=0;for(m=p,b=0;m>n;b++,m-=v)d.moveTo(n-(b%5?o:2*o),m),d.lineTo(n,m);for(m=p,b=0;m<t;b++,m+=v)d.moveTo(n-(b%5?o:2*o),m),d.lineTo(n,m);for(d.save(),d.fillStyle=h,d.scale(.8,.8),D=n-8,m=C,b=0;m<e;b++,m+=v)b%10===0&&d.fillText(String(Math.ceil(R*b)),m*1.25-3,D*1.25);for(m=C,b=0;m>n;b++,m-=v)b%10===0&&d.fillText(String(Math.ceil(-R*b)),m*1.25-3,D*1.25);for(D=0,m=p,b=0;m>n;b++,m-=v)b%10===0&&d.fillText(String(Math.ceil(R*b)),D*1.25,m*1.25+3);for(m=p,b=0;m<t;b++,m+=v)b%10===0&&d.fillText(String(Math.ceil(-R*b)),D*1.25,m*1.25+3);d.restore(),d.stroke(),this.texture.requestUpload()}_draw(){this._drawTexture();const e=this.texture;e!=null&&e.valid&&(this.context.fillStyle=e,this.context.uvTransform=new ct().scale(1/this.size.width,1/this.size.height),this.context.rect(0,0,e.width,e.height),this.context.fill())}},Tt([M({default:0})],g.Ruler.prototype,"offsetX",2),Tt([M({default:0})],g.Ruler.prototype,"offsetY",2),Tt([M({default:20})],g.Ruler.prototype,"thickness",2),Tt([M({default:3})],g.Ruler.prototype,"markHeight",2),Tt([M({default:"#b2b6bc"})],g.Ruler.prototype,"color",2),Tt([M({default:"#f9f9fa"})],g.Ruler.prototype,"markBackgroundColor",2),Tt([M({default:"#b2b6bc"})],g.Ruler.prototype,"markColor",2),Tt([M({default:300})],g.Ruler.prototype,"gap",2),Tt([M({default:1})],g.Ruler.prototype,"gapScale",2),g.Ruler=Tt([ne("Ruler")],g.Ruler);var wp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,dh=(r,A,e,t)=>{for(var i=t>1?void 0:t?vp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&wp(A,e,i),i};g.ScrollBar=class extends g.Range{constructor(A,e=[]){super(),this.setProperties(A).append(e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"width":case"height":case"left":case"top":this.requestRedraw();break}}_rect(){const{size:A,position:e}=this;let t,i,s,n,o;return this.direction==="vertical"?(s=10,n=A.height*(this.page/(this.maxValue-this.minValue)),t=e.left+A.width-s,i=A.height*(this.value/(this.maxValue-this.minValue)),o=s/2):(s=A.width*(this.page/(this.maxValue-this.minValue)),n=10,t=A.width*(this.value/(this.maxValue-this.minValue)),i=e.top+A.height-n,o=n/2),{left:t,top:i,width:s,height:n,radii:o}}_draw(){const{left:A,top:e,width:t,height:i,radii:s}=this._rect();this.context.roundRect(A,e,t,i,s),this.context.fillStyle=34,this.context.fill()}_pointerInput(A,e){var a,l;const{left:t,top:i,width:s,height:n}=this._rect(),o=A.x>=t&&A.x<t+s&&A.y>=i&&A.y<i+n;switch(e){case"pointerdown":case"pointermove":o?(a=this._tree)==null||a.input.setCursor("pointer"):(l=this._tree)==null||l.input.setCursor(void 0);break}return!1}},dh([M({default:"vertical"})],g.ScrollBar.prototype,"direction",2),g.ScrollBar=dh([ne("ScrollBar")],g.ScrollBar);var _p=Object.getOwnPropertyDescriptor,bp=(r,A,e,t)=>{for(var i=t>1?void 0:t?_p(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.XScrollBar=class extends g.ScrollBar{constructor(A,e=[]){super(),this.setProperties(A).append(e)}},g.XScrollBar=bp([ne("XScrollBar",{direction:"horizontal"})],g.XScrollBar);var Dp=Object.getOwnPropertyDescriptor,xp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Dp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.YScrollBar=class extends g.ScrollBar{constructor(A,e=[]){super(),this.setProperties(A).append(e)}},g.YScrollBar=xp([ne("YScrollBar",{direction:"vertical"})],g.YScrollBar);var Sp=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,is=(r,A,e,t)=>{for(var i=t>1?void 0:t?Mp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Sp(A,e,i),i};g.Scaler=class extends g.Node{get target(){var A;if((A=this.parent)!=null&&A.style)return this.parent}constructor(A,e=[]){super(),this.setProperties(A),this.append(e)}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"value":case"min":case"max":{this.value=zt(this.minValue,this.value,this.maxValue),this._updateScale();break}}}_updateScale(){const A=this.target;A&&(A.style.scaleX=this.value,A.style.scaleY=this.value,this.emit("updateScale",this.value))}_onWheel(A){if(!this.target)return;if(A.preventDefault(),!(A.wheelDeltaY?Math.abs(Math.abs(A.wheelDeltaY)-Math.abs(3*A.deltaY))<3:A.deltaMode===0)&&A.ctrlKey){A.preventDefault();let i=A.deltaY/(A.ctrlKey?1:100);i*=-.015,this.value+=i}}_input(A,e){switch(super._input(A,e),e){case"wheel":this._onWheel(A);break}}},is([M({default:1})],g.Scaler.prototype,"value",2),is([M({default:.05})],g.Scaler.prototype,"minValue",2),is([M({default:10})],g.Scaler.prototype,"maxValue",2),g.Scaler=is([ne("Scaler",{processMode:"disabled",renderMode:"disabled"})],g.Scaler);var Rp=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,kp=(r,A,e)=>A in r?Rp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Up=(r,A,e,t)=>{for(var i=t>1?void 0:t?Pp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},Np=(r,A,e)=>kp(r,A+"",e);g.KawaseTransition=class extends g.Transition{constructor(){super(...arguments);u(this,"blur",10);u(this,"quality",10)}apply(e,t){const i=this.currentTimeProgress;let s,n;i<.5?(s=0,n=(.5-i)/.5):(s=1,n=(i-.5)/.5);const o=this.blur,a=this.quality,l=t.width,h=t.height,c=[],f=[o];if(o>0){let P=o;const w=o/a;for(let R=1;R<a;R++)P-=w,f.push(P)}const I=1/l,d=1/h,C=[];let p;const x=a-1;for(let P=0;P<x;P++)p=f[P]+.5,C[0]=p*I,C[1]=p*d,c.push({offset:C});p=f[x]+.5,C[0]=p*I,C[1]=p*d,c.push({offset:C}),c.forEach(P=>{fe.draw(e,g.KawaseTransition.material,{sampler:s,progress:n,...P})})}},Np(g.KawaseTransition,"material",new Ce({vert:`attribute vec2 position;
863
+ </svg>`}function xI(){const r=new nA;return{name:"listStyle",pathSet:r,update:A=>{r.paths.length=0;const{paragraphs:e,isVertical:t,fontSize:i}=A,s=i*.45;e.forEach(n=>{var m;const{computedStyle:o}=n,{color:a,listStyleImage:l,listStyleColormap:c,listStyleSize:h,listStyleType:f}=o,I=Jn(c);let d=h,C;if(!ce(l))C=l;else if(!ce(f)){const b=i*.38/2;switch(d=d==="cover"?b*2:d,f){case"disc":C=DI(b,String(a));break}}if(!C)return;const p=gn(C),x=p.getBoundingBox(),P=(m=n.fragments[0])==null?void 0:m.characters[0];if(!P)return;const{inlineBox:w}=P,R=d==="cover"?1:Hn(d,{total:i,fontSize:i})/i,v=new Ke;if(t){const b=i/x.height*R;v.translate(-x.left,-x.top).rotate(Math.PI/2).scale(b,b).translate(w.left+(w.width-x.height*b)/2,w.top-s)}else{const b=i/x.height*R;v.translate(-x.left,-x.top).scale(b,b).translate(w.left-x.width*b-s,w.top+(w.height-x.height*b)/2)}r.paths.push(...p.paths.map(b=>{const D=b.clone();return D.applyTransform(v),D.style.fill&&D.style.fill in I&&(D.style.fill=I[D.style.fill]),D.style.stroke&&D.style.stroke in I&&(D.style.stroke=I[D.style.stroke]),D}))})}}}function SI(){return{name:"outline"}}const gA=new G,si=new Ke,uA=new Ke;function MI(){return{name:"render",getBoundingBox:r=>{const{characters:A,fontSize:e,effects:t}=r,i=[];return A.forEach(s=>{t==null||t.forEach(n=>{if(!s.glyphBox)return;const o=s.glyphBox.clone(),a=zn(r,n);gA.set(o.left,o.top),gA.applyMatrix3(a),o.left=gA.x,o.top=gA.y,gA.set(o.right,o.bottom),gA.applyMatrix3(a),o.width=gA.x-o.left,o.height=gA.y-o.top;const l=(n.shadowOffsetX??0)*e,c=(n.shadowOffsetY??0)*e,h=Math.max(.1,n.textStrokeWidth??0)*e;o.left+=l-h,o.top+=c-h,o.width+=h*2,o.height+=h*2,i.push(o)})}),i.length?he.from(...i):void 0},render:(r,A)=>{const{paragraphs:e,glyphBox:t,effects:i}=A;i?i.forEach(s=>{Wr(s,t,r),r.save();const[n,o,a,l,c,h]=zn(A,s).transpose().elements;r.transform(n,l,o,c,a,h),A.forEachCharacter(f=>{f.drawTo(r,s)}),r.restore()}):e.forEach(s=>{s.fragments.forEach(n=>{n.characters.forEach(o=>{o.drawTo(r)})})}),A.debug&&e.forEach(s=>{r.strokeRect(s.lineBox.x,s.lineBox.y,s.lineBox.width,s.lineBox.height)})}}}function zn(r,A){const{fontSize:e,glyphBox:t}=r,i=(A.translateX??0)*e,s=(A.translateY??0)*e,n=Math.PI*2,o=(A.skewX??0)/360*n,a=(A.skewY??0)/360*n,{left:l,top:c,width:h,height:f}=t,I=l+h/2,d=c+f/2;return si.identity(),uA.makeTranslation(i,s),si.multiply(uA),uA.makeTranslation(I,d),si.multiply(uA),uA.set(1,Math.tan(o),0,Math.tan(a),1,0,0,0,1),si.multiply(uA),uA.makeTranslation(-I,-d),si.multiply(uA),si.clone()}function RI(){const r=new nA;return{name:"textDecoration",pathSet:r,update:A=>{r.paths.length=0;const e=[];let t,i;A.forEachCharacter(s=>{const{computedStyle:n,isVertical:o,inlineBox:a,underlinePosition:l,underlineThickness:c,strikeoutPosition:h,strikeoutSize:f}=s,{color:I,textDecoration:d,writingMode:C}=n;if(ce(d))i=void 0;else{let p=!1;if((i==null?void 0:i.textDecoration)===d&&(i==null?void 0:i.writingMode)===C&&(i==null?void 0:i.color)===I&&(o?t[0].inlineBox.left===a.left:t[0].inlineBox.top===a.top))switch(d){case"underline":t[0].underlinePosition===l&&t[0].underlineThickness===c&&(p=!0);break;case"line-through":t[0].strikeoutPosition===h&&t[0].strikeoutSize===f&&(p=!0);break}p?t.push(s):(t=[],t.push(s),e.push(t)),i=n}}),e.forEach(s=>{const{computedStyle:n,isVertical:o,underlinePosition:a,underlineThickness:l,strikeoutPosition:c,strikeoutSize:h}=s[0],{color:f,textDecoration:I}=n,d=he.from(...s.map(b=>b.inlineBox)),{left:C,top:p,width:x,height:P}=d;let w=o?C+x:p;const R=o?-1:1;let v=0;switch(I){case"overline":v=l*2;break;case"underline":w+=R*a,v=l*2;break;case"line-through":w+=R*c,v=h*2;break}w-=v;let m;o?m=new Ne([{type:"M",x:w,y:p},{type:"L",x:w,y:p+P},{type:"L",x:w+v,y:p+P},{type:"L",x:w+v,y:p},{type:"Z"}],{fill:f}):m=new Ne([{type:"M",x:C,y:w},{type:"L",x:C+x,y:w},{type:"L",x:C+x,y:w+v},{type:"L",x:C,y:w+v},{type:"Z"}],{fill:f}),r.paths.push(m)})},render:(A,e)=>{const{effects:t,computedStyle:i}=e;t?t.forEach(s=>{A.save();const[n,o,a,l,c,h]=zn(e,s).transpose().elements;A.transform(n,l,o,c,a,h),r.paths.forEach(f=>{ii({ctx:A,path:f,fontSize:i.fontSize,...s})}),A.restore()}):r.paths.forEach(s=>{ii({ctx:A,path:s,fontSize:i.fontSize})})}}}const Wn=So();class zl extends vI{constructor(e={}){super();u(this,"debug");u(this,"content");u(this,"style");u(this,"effects");u(this,"measureDOM");u(this,"needsUpdate",!0);u(this,"computedStyle",{...Wn});u(this,"paragraphs",[]);u(this,"lineBox",new he);u(this,"rawGlyphBox",new he);u(this,"glyphBox",new he);u(this,"pathBox",new he);u(this,"boundingBox",new he);u(this,"measurer",new Yn);u(this,"plugins",new Map);u(this,"fonts");this.set(e)}get fontSize(){return this.computedStyle.fontSize}get isVertical(){return this.computedStyle.writingMode.includes("vertical")}get characters(){return this.paragraphs.flatMap(e=>e.fragments.flatMap(t=>t.characters))}set(e={}){this.debug=e.debug??!1,this.content=ur(e.content??""),this.style=e.style??{},this.measureDOM=e.measureDOM,this.effects=e.effects,this.fonts=e.fonts,this.use(_I()).use(SI()).use(xI()).use(RI()).use(bI()).use(MI()),(e.plugins??[]).forEach(t=>{this.use(t)}),this.updateParagraphs()}use(e){return this.plugins.set(e.name,e),this}forEachCharacter(e){return this.paragraphs.forEach((t,i)=>{t.fragments.forEach((s,n)=>{s.characters.forEach((o,a)=>{e(o,{paragraphIndex:i,fragmentIndex:n,characterIndex:a})})})}),this}async load(){await Promise.all(Array.from(this.plugins.values()).map(e=>{var t;return(t=e.load)==null?void 0:t.call(e,this)}))}updateParagraphs(){this.computedStyle={...Wn,...this.style};const{content:e,computedStyle:t}=this,i=[];return e.forEach(s=>{const{fragments:n,...o}=s,a=new wI(o,t);n.forEach(l=>{const{content:c,...h}=l;c!==void 0&&a.addFragment(c,h)}),i.push(a)}),this.paragraphs=i,this}createDOM(){return this.updateParagraphs(),this.measurer.createDOM(this.paragraphs,this.computedStyle)}measure(e=this.measureDOM){const t={paragraphs:this.paragraphs,lineBox:this.lineBox,rawGlyphBox:this.rawGlyphBox,glyphBox:this.glyphBox,pathBox:this.pathBox,boundingBox:this.boundingBox};this.updateParagraphs();const i=this.measurer.measure(this.paragraphs,this.computedStyle,e);this.paragraphs=i.paragraphs,this.lineBox=i.boundingBox,this.characters.forEach(s=>{s.update(this.fonts)}),this.rawGlyphBox=this.getGlyphBox(),Array.from(this.plugins.values()).sort((s,n)=>(s.updateOrder??0)-(n.updateOrder??0)).forEach(s=>{var n;(n=s.update)==null||n.call(s,this)}),this.glyphBox=this.getGlyphBox(),this.updatePathBox().updateBoundingBox();for(const s in t)i[s]=this[s],this[s]=t[s];return this.emit("measure",{text:this,result:i}),i}getGlyphBox(){const e=G.MAX,t=G.MIN;return this.characters.forEach(i=>{if(!i.getGlyphMinMax(e,t)){const{inlineBox:s}=i,{left:n,top:o,width:a,height:l}=s,c=new G(n,o),h=new G(n+a,o+l);e.min(c,h),t.max(c,h)}}),new he(e.x,e.y,t.x-e.x,t.y-e.y)}updatePathBox(){return this.pathBox=he.from(this.glyphBox,...Array.from(this.plugins.values()).map(e=>{var t;return e.getBoundingBox?e.getBoundingBox(this):(t=e.pathSet)==null?void 0:t.getBoundingBox()}).filter(Boolean)),this}updateBoundingBox(){return this.boundingBox=he.from(this.rawGlyphBox,this.lineBox,this.pathBox),this}requestUpdate(){return this.needsUpdate=!0,this}update(e=this.measureDOM){const t=this.measure(e);for(const i in t)this[i]=t[i];return this.emit("update",{text:this}),this.needsUpdate=!1,this}render(e){var n;const{view:t,pixelRatio:i=2}=e,s=t.getContext("2d");s&&(this.needsUpdate&&this.update(),dI(s,i,this.boundingBox),II(s,this),Array.from(this.plugins.values()).sort((o,a)=>(o.renderOrder??0)-(a.renderOrder??0)).forEach(o=>{var a;if(o.render)(a=o.render)==null||a.call(o,s,this);else if(o.pathSet){const l=this.computedStyle;o.pathSet.paths.forEach(c=>{ii({ctx:s,path:c,fontSize:l.fontSize})})}}),this.emit("render",{text:this,view:t,pixelRatio:i}),(n=e.onContext)==null||n.call(e,s))}toString(){return this.content.flatMap(e=>e.fragments.map(t=>t.content)).join("")}}var PI=Object.defineProperty,er=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&PI(A,e,i),i};class UA extends iA{constructor(e){super();u(this,"base",new zl);u(this,"texture",new YA);u(this,"measureResult");this.parent=e}setProperties(e){return super.setProperties(ce(e)?void 0:Ph(e))}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"content":case"effects":case"measureDOM":case"fonts":case"split":case"enabled":this.parent.requestRedraw();break}}_updateText(){this.base.style={justifyContent:"center",alignItems:"center",textAlign:"center",...this.parent.style.toJSON()},this.base.requestUpdate()}measure(){return this._updateText(),this.base.measure()}updateMeasure(){return this.measureResult=this.measure(),this}canDraw(){var e;return!!(this.enabled&&!/^\s*$/.test(this.base.toString())&&((e=this.texture)!=null&&e.valid))}draw(){var s,n;this.base.render({pixelRatio:this.texture.pixelRatio,view:this.texture.source}),this.texture.requestUpload();const e=((s=this.measureResult)==null?void 0:s.boundingBox.width)??this.parent.size.width,t=((n=this.measureResult)==null?void 0:n.boundingBox.height)??this.parent.size.height,i=this.parent.context;i.fillStyle=this.texture,i.uvTransform=new ht().scale(1/e,1/t),i.vertTransform=()=>{const o=this.parent,a=o.getTransformOrigin();return new ht().translate(-a.x,-a.y).scale(o.globalScale.x>0?1:-1,o.globalScale.y>0?1:-1).translate(a.x,a.y)},i.fill()}}er([M({default:!0})],UA.prototype,"enabled"),er([M({alias:"base.content"})],UA.prototype,"content"),er([M({alias:"base.effects"})],UA.prototype,"effects"),er([Ie({alias:"base.measureDOM"})],UA.prototype,"measureDOM"),er([Ie({alias:"base.fonts"})],UA.prototype,"fonts");var kI=Object.defineProperty,UI=Object.getOwnPropertyDescriptor,qn=(r,A,e,t)=>{for(var i=t>1?void 0:t?UI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&kI(A,e,i),i};g.Node2D=class extends g.CanvasItem{constructor(e,t=[]){super();u(this,"position",new ut().on("update",()=>this.updateGlobalTransform()));u(this,"scale",new ut(1,1).on("update",()=>this.updateGlobalTransform()));u(this,"skew",new ut().on("update",()=>this.updateGlobalTransform()));u(this,"transform",new ht);u(this,"globalPosition",new ut);u(this,"globalScale",new ut);u(this,"globalSkew",new ut);u(this,"globalTransform",new ht);u(this,"_parentTransformDirtyId");this.setProperties(e).append(t)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"rotation":this.updateGlobalTransform();break}}getTransformOrigin(){return new ut(0,0)}getTransform(e){const t=this.getTransformOrigin(),i=new ht;return i.translate(-t.x,-t.y).scale(this.scale.x,this.scale.y).skew(this.skew.x,this.skew.y).rotate(this.rotation),e==null||e(i),i.translate(this.position.x,this.position.y).translate(t.x,t.y),i}updateTransform(){this.transform.copy(this.getTransform())}updateGlobalTransform(){this.updateTransform();const e=this.getParent();e!=null&&e.globalTransform?(this._parentTransformDirtyId=e.globalTransform.dirtyId,this.globalScale.set(e.globalScale.x*this.scale.x,e.globalScale.y*this.scale.y),this.globalRotation=e.globalRotation+this.rotation,e.globalTransform.multiply(this.transform,this.globalTransform)):(this.globalScale.copy(this.scale),this.globalRotation=this.rotation,this.globalTransform.copy(this.transform));const[t,i,s,n,o,a]=this.globalTransform.toArray();this.globalPosition.set(s,a),this.globalSkew.x=Math.atan2(i,t)-this.globalRotation,this.globalSkew.y=Math.atan2(n,o)-this.globalRotation,this.requestRelayout()}_transformVertices(e,t){let i,s,n,o,a,l;if(t){const h=this.globalTransform.clone();h.multiply(typeof t=="function"?t==null?void 0:t():t),[i,s,n,o,a,l]=h.toArray()}else[i,s,n,o,a,l]=this.globalTransform.toArray();const c=e.slice();for(let h=e.length,f=0;f<h;f+=2){const I=e[f],d=e[f+1];c[f]=i*I+s*d+n,c[f+1]=o*I+a*d+l}return c}_relayout(e){return this.updateGlobalTransform(),super._relayout(e).map(t=>({...t,vertices:this._transformVertices(t.vertices,t.vertTransform)}))}_process(e){var i;super._process(e);const t=this.getParent();t!=null&&t.globalTransform&&this._parentTransformDirtyId!==((i=t==null?void 0:t.globalTransform)==null?void 0:i.dirtyId)&&this.requestRelayout()}},qn([Ie({default:0})],g.Node2D.prototype,"rotation",2),qn([Ie({default:0})],g.Node2D.prototype,"globalRotation",2),g.Node2D=qn([ne("Node2D")],g.Node2D);var NI=Object.getOwnPropertyDescriptor,FI=(r,A,e,t)=>{for(var i=t>1?void 0:t?NI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.BaseElement2D=class extends g.Node2D{constructor(e,t=[]){super();u(this,"size",new ut().on("update",()=>this.updateGlobalTransform()));u(this,"_background",new In(this));u(this,"_shape",new DA(this));u(this,"_fill",new qe(this));u(this,"_outline",new XA(this));u(this,"_foreground",new pn(this));u(this,"_text",new UA(this));u(this,"_shadow",new bA(this));this._updateStyleProperty=this._updateStyleProperty.bind(this),this.style=new Li,this.setProperties(e).append(t)}get style(){return this._style}set style(e){var i;const t=(...s)=>{this.emit("updateStyleProperty",...s),this._updateStyleProperty(s[0],s[1],s[2],s[3])};e.on("updateProperty",t),(i=this._style)==null||i.off("updateProperty",t),this._style=e}get background(){return this._background}set background(e){this._background.resetProperties().setProperties(e)}get shape(){return this._shape}set shape(e){this._shape.resetProperties().setProperties(e)}get fill(){return this._fill}set fill(e){this._fill.resetProperties().setProperties(e)}get outline(){return this._outline}set outline(e){this._outline.resetProperties().setProperties(e)}get foreground(){return this._foreground}set foreground(e){this._foreground.resetProperties().setProperties(e)}get text(){return this._text}set text(e){this._text.resetProperties().setProperties(e)}get shadow(){return this._shadow}set shadow(e){this._shadow.resetProperties().setProperties(e)}setProperties(e){if(e){const{style:t,text:i,shape:s,background:n,fill:o,outline:a,foreground:l,shadow:c,...h}=e;t&&this.style.setProperties(t),n&&this.background.setProperties(n),s&&this.shape.setProperties(s),o&&this.fill.setProperties(o),a&&this.outline.setProperties(a),i&&this.text.setProperties(i),l&&this.foreground.setProperties(l),c&&this.shadow.setProperties(c),super.setProperties(h)}return this}_updateStyleProperty(e,t,i,s){switch(e){case"width":case"height":this.mask instanceof g.BaseElement2D&&(this.mask.size.x=this.size.x,this.mask.size.y=this.size.y);break}switch(e){case"rotate":this.rotation=this.style.rotate*jo;break;case"scaleX":this.scale.x=this.style.scaleX;break;case"scaleY":this.scale.y=this.style.scaleY;break;case"skewX":this.skew.x=this.style.skewX;break;case"skewY":this.skew.y=this.style.skewY;break;case"transform":case"transformOrigin":this.updateGlobalTransform();break;case"opacity":this.opacity=this.style.opacity;break;case"visibility":this.visible=this.style.visibility==="visible";break;case"filter":this.requestRepaint();break;case"maskImage":this._updateMaskImage();break;case"borderRadius":this.requestRedraw();break;case"backgroundColor":this.background.color=this.style.backgroundColor;break;case"backgroundImage":this.background.image=this.style.backgroundImage;break;case"borderStyle":case"outlineStyle":this.outline.style=t;break;case"borderWidth":case"outlineWidth":this.outline.width=t;break;case"borderColor":case"outlineColor":this.outline.color=t;break}}_updateMaskImage(){const e="__$style.maskImage",t=this.style.maskImage;if(t&&t!=="none"){const i=this.getNode(e);i?i.src=t:this.appendChild(new g.MaskEffect({name:e,src:t}),"back")}else{const i=this.getNode(e);i&&this.removeChild(i)}}getTransformOrigin(){const{width:e,height:t}=this.size,[i,s]=Ba(this.style.transformOrigin);return new ut(i*e,s*t)}getTransform(e){const{width:t,height:i}=this.size;return super.getTransform(s=>{Ea(this.style.transform??"",t,i,s),e==null||e(s)})}updateGlobalTransform(){super.updateGlobalTransform(),this._updateOverflow()}getRect(){const{width:e,height:t}=this.size,i=0,s=0,n=i+e,o=s+t,[a,l,c,h,f,I]=this.globalTransform.toArray(),d=[[i,s],[i,o],[n,s],[n,o]].map(v=>[a*v[0]+l*v[1]+c,h*v[0]+f*v[1]+I]),C=d.map(v=>v[0]),p=d.map(v=>v[1]),x=Math.min(...C),P=Math.max(...C),w=Math.min(...p),R=Math.max(...p);return new Ys(x,w,P-x,R-w)}_updateOverflow(){if(this.style.overflow==="hidden"){const e=this.getRect();this.mask={x:e.x,y:e.y,width:e.width,height:e.height}}else this.mask=void 0}_draw(){var e,t,i,s,n;super._draw(),this._text.canDraw()&&this._text.updateMeasure(),this._background.canDraw()&&((e=this._tree)==null||e.log(this.name,"draw background"),this._shape.drawRect(),this._background.draw()),this._fill.canDraw()&&((t=this._tree)==null||t.log(this.name,"draw fill"),this._shape.draw(),this._fill.draw()),this._outline.canDraw()&&((i=this._tree)==null||i.log(this.name,"draw outline"),this._shape.draw(),this._outline.draw()),this._foreground.canDraw()&&((s=this._tree)==null||s.log(this.name,"draw foreground"),this._shape.drawRect(),this._foreground.draw()),this._text.canDraw()&&((n=this._tree)==null||n.log(this.name,"draw text"),this._shape.drawRect(),this._text.draw()),this._drawContent()}_drawContent(){}_repaint(e){const t=pa(this.style.filter);return super._repaint(e).map(i=>({...i,colorMatrix:t.toMatrix4().toArray(!0),colorMatrixOffset:t.toVector4().toArray()}))}canPointerEvents(){return this.style.pointerEvents!=="none"}input(e,t){for(let i=this._children.length-1;i>=0;i--)this._children[i].input(e,t);this.isVisibleInTree()&&this._input(e,t)}_pointerInput(e,t){const{width:i,height:s}=this.size;return e.x>=0&&e.x<i&&e.y>=0&&e.y<s}_input(e,t){switch(t){case"pointerdown":case"pointermove":case"pointerup":{if(this.canPointerEvents()){const{screenX:i,screenY:s}=e;if(i&&s){const[n,o]=this.globalTransform.inverse().applyToPoint(i,s);this._pointerInput({x:n,y:o},t)&&(e.target||(e.target=this),this.emit(t,e))}}break}}}toJSON(){const e=super.toJSON();return{...e,props:{...e.props,style:this.style.toJSON(),background:this.background.toJSON(),shape:this.shape.toJSON(),fill:this.fill.toJSON(),outline:this.outline.toJSON(),text:this.text.toJSON(),foreground:this.foreground.toJSON(),shadow:this.shadow.toJSON()}}}},g.BaseElement2D=FI([ne("BaseElement2D")],g.BaseElement2D);class Xn extends Li{constructor(A){super(),this.setProperties(A)}}const Wl={left:0,top:0,width:0,height:0};for(const r in Wl)hr(Xn,r,{default:Wl[r]});var TI=Object.getOwnPropertyDescriptor,GI=(r,A,e,t)=>{for(var i=t>1?void 0:t?TI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Element2D=class extends g.BaseElement2D{get style(){return this._style}set style(A){var t;const e=(...i)=>{this.emit("updateStyleProperty",...i),this._updateStyleProperty(i[0],i[1],i[2],i[3])};A.on("updateProperty",e),(t=this._style)==null||t.off("updateProperty",e),this._style=A}constructor(A,e=[]){super(),this.style=new Xn,this.setProperties(A).append(e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"left":this.position.x=Number(e);break;case"top":this.position.y=Number(e);break;case"width":this.size.width=Number(e);break;case"height":this.size.height=Number(e);break}}},g.Element2D=GI([ne("Element2D")],g.Element2D);var LI=(()=>{var r=typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:At&&At.tagName.toUpperCase()==="SCRIPT"&&At.src||new URL("index.js",document.baseURI).href;return function(A){A=A||{};var e;e||(e=typeof A<"u"?A:{});var t,i;e.ready=new Promise(function(E,B){t=E,i=B});var s=Object.assign({},e),n="";typeof document<"u"&&document.currentScript&&(n=document.currentScript.src),r&&(n=r),n.indexOf("blob:")!==0?n=n.substr(0,n.replace(/[?#].*/,"").lastIndexOf("/")+1):n="";var o=e.print||console.log.bind(console),a=e.printErr||console.warn.bind(console);Object.assign(e,s),s=null;var l;e.wasmBinary&&(l=e.wasmBinary),e.noExitRuntime,typeof WebAssembly!="object"&&Y("no native wasm support detected");var c,h=!1;function f(E,B,Q){Q=B+Q;for(var _="";!(B>=Q);){var S=E[B++];if(!S)break;if(S&128){var k=E[B++]&63;if((S&224)==192)_+=String.fromCharCode((S&31)<<6|k);else{var F=E[B++]&63;S=(S&240)==224?(S&15)<<12|k<<6|F:(S&7)<<18|k<<12|F<<6|E[B++]&63,65536>S?_+=String.fromCharCode(S):(S-=65536,_+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else _+=String.fromCharCode(S)}return _}var I,d,C,p,x,P,w,R,v;function m(){var E=c.buffer;I=E,e.HEAP8=d=new Int8Array(E),e.HEAP16=p=new Int16Array(E),e.HEAP32=P=new Int32Array(E),e.HEAPU8=C=new Uint8Array(E),e.HEAPU16=x=new Uint16Array(E),e.HEAPU32=w=new Uint32Array(E),e.HEAPF32=R=new Float32Array(E),e.HEAPF64=v=new Float64Array(E)}var b,D=[],z=[],Ae=[];function W(){var E=e.preRun.shift();D.unshift(E)}var K=0,te=null;function Y(E){throw e.onAbort&&e.onAbort(E),E="Aborted("+E+")",a(E),h=!0,E=new WebAssembly.RuntimeError(E+". Build with -sASSERTIONS for more info."),i(E),E}function L(E){return E.startsWith("data:application/octet-stream;base64,")}var se;if(se="data:application/octet-stream;base64,AGFzbQEAAAABugM3YAF/AGACf38AYAF/AX9gA39/fwBgAn98AGACf38Bf2ADf39/AX9gBH9/f30BfWADf398AGAAAGAEf39/fwBgAX8BfGACf38BfGAFf39/f38Bf2AAAX9gA39/fwF9YAZ/f31/fX8AYAV/f39/fwBgAn9/AX1gBX9/f319AX1gAX8BfWADf35/AX5gB39/f39/f38AYAZ/f39/f38AYAR/f39/AX9gBn9/f319fQF9YAR/f31/AGADf399AX1gBn98f39/fwF/YAR/fHx/AGACf30AYAh/f39/f39/fwBgDX9/f39/f39/f39/f38AYAp/f39/f39/f39/AGAFf39/f38BfGAEfHx/fwF9YA1/fX1/f399fX9/f39/AX9gB39/f319f38AYAJ+fwF/YAN/fX0BfWABfAF8YAN/fHwAYAR/f319AGAHf39/fX19fQF9YA1/fX99f31/fX19fX1/AX9gC39/f39/f399fX19AX9gCH9/f39/f319AGAEf39+fgBgB39/f39/f38Bf2ACfH8BfGAFf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ACIANrIgNBgAIgA0GAAkkiARsQKhogAUUEQANAIAAgBUGAAhAmIANBgAJrIgNB/wFLDQALCyAAIAUgAxAmCyAFQYACaiQAC/ICAgJ/AX4CQCACRQ0AIAAgAToAACAAIAJqIgNBAWsgAToAACACQQNJDQAgACABOgACIAAgAToAASADQQNrIAE6AAAgA0ECayABOgAAIAJBB0kNACAAIAE6AAMgA0EEayABOgAAIAJBCUkNACAAQQAgAGtBA3EiBGoiAyABQf8BcUGBgoQIbCIBNgIAIAMgAiAEa0F8cSIEaiICQQRrIAE2AgAgBEEJSQ0AIAMgATYCCCADIAE2AgQgAkEIayABNgIAIAJBDGsgATYCACAEQRlJDQAgAyABNgIYIAMgATYCFCADIAE2AhAgAyABNgIMIAJBEGsgATYCACACQRRrIAE2AgAgAkEYayABNgIAIAJBHGsgATYCACAEIANBBHFBGHIiBGsiAkEgSQ0AIAGtQoGAgIAQfiEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkEgayICQR9LDQALCyAAC4AEAQN/IAJBgARPBEAgACABIAIQFyAADwsgACACaiEDAkAgACABc0EDcUUEQAJAIABBA3FFBEAgACECDAELIAJFBEAgACECDAELIAAhAgNAIAIgAS0AADoAACABQQFqIQEgAkEBaiICQQNxRQ0BIAIgA0kNAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgACADQQRrIgRLBEAgACECD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EBcQRAQag7KAIAIQIMAQtBAUGAJxAMIQJBrDtBAToAAEGoOyACNgIACyACIAAgAUEAEBMLzQECA38CfSMAQRBrIgMkAEEBIQQgA0EIaiAAQfwAaiIFIAAgAUEBdGpBMmoiAS8BABAfAkACQCADKgIIIgcgAioCACIGXARAIAcgB1sEQCACLQAEIQIMAgsgBiAGXCEECyACLQAEIQIgBEUNACADLQAMIAJB/wFxRg0BCyAFIAEgBiACEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyADQRBqJAALDwAgASAAKAIAaiACOQMACw0AIAEgACgCAGorAwALCwAgAARAIAAQIwsLxwECBH8CfSMAQRBrIgIkACACQQhqIABB/ABqIgQgAEEeaiIFLwEAEB9BASEDAkACQCACKgIIIgcgASoCACIGXARAIAcgB1sEQCABLQAEIQEMAgsgBiAGXCEDCyABLQAEIQEgA0UNACACLQAMIAFB/wFxRg0BCyAEIAUgBiABEDkDQCAALQAAIgFBBHENASAAIAFBBHI6AAAgACgCECIBBEAgACABEQAACyAAQYCAgP4HNgKcASAAKALkAyIADQALCyACQRBqJAALlgMCA34CfyAAvSICQjSIp0H/D3EiBEH/D0YEQCAARAAAAAAAAPA/oiIAIACjDwsgAkIBhiIBQoCAgICAgIDw/wBYBEAgAEQAAAAAAAAAAKIgACABQoCAgICAgIDw/wBRGw8LAn4gBEUEQEEAIQQgAkIMhiIBQgBZBEADQCAEQQFrIQQgAUIBhiIBQgBZDQALCyACQQEgBGuthgwBCyACQv////////8Hg0KAgICAgICACIQLIQEgBEH/B0oEQANAAkAgAUKAgICAgICACH0iA0IAUw0AIAMiAUIAUg0AIABEAAAAAAAAAACiDwsgAUIBhiEBIARBAWsiBEH/B0oNAAtB/wchBAsCQCABQoCAgICAgIAIfSIDQgBTDQAgAyIBQgBSDQAgAEQAAAAAAAAAAKIPCyABQv////////8HWARAA0AgBEEBayEEIAFCgICAgICAgARUIQUgAUIBhi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EAIQMLIAIgA0ECdGogByAGkzgCnAMMAQsgBEECdEHcJWooAgAhACAIIAQgAyAGEEEgASAAQQJ0IgBqIgEqArwDkiEGIAAgAmogAigC9AMtABRBAnEEfSAGBSAGIAEqAswDkgs4ApwDCyAJQRBqJAALcAIBfwF9IwBBEGsiBCQAIARBCGogACABQQJ0QewlaigCACACEDZDAADAfyEFAkACQAJAIAQtAAxBAWsOAgABAgsgBCoCCCEFDAELIAQqAgggA5RDCtcjPJQhBQsgBEEQaiQAIAVDAAAAACAFIAVbGwscACAAIAFBCCACpyACQiCIpyADpyADQiCIpxAVCwUAEFgACzkAIABFBEBBAA8LAn8gAUGAf3FBgL8DRiABQf8ATXJFBEBB/DtBGTYCAEF/DAELIAAgAToAAEEBCwvEAgACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABQQlrDhIACgsMCgsCAwQFDAsMDAoLBwgJCyACIAIoAgAiAUEEajYCACAAIAEoAgA2AgAPCwALIAIgAigCACIBQQRqNgIAIAAgATIBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATMBADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATAAADcDAA8LIAIgAigCACIBQQRqNgIAIAAgATEAADcDAA8LAAsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKwMAOQMADwsgACACIAMRAQALDwsgAiACKAIAIgFBBGo2AgAgACABNAIANwMADwsgAiACKAIAIgFBBGo2AgAgACABNQIANwMADwsgAiACKAIAQQdqQXhxIgFBCGo2AgAgACABKQMANwMAC84BAgN/An0jAEEQayIDJABBASEEIANBCGogAEH8AGoiBSAAIAFBAXRqQegAaiIBLwEAEB8CQAJAIAMqAggiByACKgIAIgZcBEAgByAHWwRAIAItAAQhAgwCCyAGIAZcIQQLIAItAAQhAiAERQ0AIAMtAAwgAkH/AXFGDQELIAUgASAGIAIQOQNAIAAtAAAiAUEEcQ0BIAAgAUEEcjoAACAAKAIQIgEEQCAAIAERAAALIABBgICA/gc2ApwBIAAoAuQDIgANAAsLIAN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whAgwCCyAEQoCAgICAgICAQH0hAiADQoCAgICAgICACFINASACIARCAYN8IQIMAQsgA1AgBEKAgICAgIDA//8AVCAEQoCAgICAgMD//wBRG0UEQCAGQgSGIANCPIiEQv////////8Dg0KAgICAgICA/P8AhCECDAELQoCAgICAgID4/wAhAiAEQv///////7//wwBWDQBCACECIARCMIinIgBBkfcASQ0AIAMhAiAGQv///////z+DQoCAgICAgMAAhCIFIQcCQCAAQYH3AGsiAUHAAHEEQCACIAFBQGqthiEHQgAhAgwBCyABRQ0AIAcgAa0iBIYgAkHAACABa62IhCEHIAIgBIYhAgsgCCACNwMQIAggBzcDGAJAQYH4ACAAayIAQcAAcQRAIAUgAEFAaq2IIQNCACEFDAELIABFDQAgBUHAACAAa62GIAMgAK0iAoiEIQMgBSACiCEFCyAIIAM3AwAgCCAFNwMIIAgpAwhCBIYgCCkDACIDQjyIhCECIAgpAxAgCCkDGIRCAFKtIANC//////////8Pg4QiA0KBgICAgICAgAhaBEAgAkIBfCECDAELIANCgICAgICAgIAIUg0AIAJCAYMgAnwhAgsgCEEgaiQAIAkgAiAGQoCAgICAgICAgH+DhL85AwALmRgDEn8BfAN+IwBBsARrIgwkACAMQQA2AiwCQCABvSIZQgBTBEBBASERQZkJIRMgAZoiAb0hGQwBCyAEQYAQcQRAQQEhEUGcCSETDAELQZ8JQZoJIARBAXEiERshEyARRSEVCwJAIBlCgICAgICAgPj/AINCgICAgICAgPj/AFEEQCAAQSAgAiARQQNqIgMgBEH//3txECkgACATIBEQJiAAQe0VQdweIAVBIHEiBRtB4RpB4B4gBRsgASABYhtBAxAmIABBICACIAMgBEGAwABzECkgAyACIAIgA0gbIQoMAQsgDEEQaiESAkACfwJAIAEgDEEsahCMASIBIAGgIgFEAAAAAAAAAABiBEAgDCAMKAIsIgZBAWs2AiwgBUEgciIOQeEARw0BDAMLIAVBIHIiDkHhAEYNAiAMKAIsIQlBBiADIANBAEgbDAELIAwgBkEdayIJNgIsIAFEAAAAAAAAsEGiIQF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yACKgIIIgogAioCACILXAR/IAogClsNAyALIAtcBSADC0UNAiACLQAMIAItAARHDQILIABBAmohAEEBIQMgBCEGQQEhBCAGRQ0ACyABLwB6IgBBB3FFBEAgBS0AekEHcUUNAgsgCCAAECAiCiAHIAUvAHoQICILWw0BIAogClsNACALIAtcDQELIAFBFGogBUEUakHoABArGiABQfwAaiAFQfwAahCgAQNAIAEtAAAiAEEEcQ0BIAEgAEEEcjoAACABKAIQIgAEQCABIAARAAALIAFBgICA/gc2ApwBIAEoAuQDIgENAAsLIAJBEGokAAvGAwEEfyMAQaAEayICJAAgACgCBCEBIABBADYCBCABBEAgASABKAIAKAIEEQAACyAAKAIIIQEgAEEANgIIIAEEQCABIAEoAgAoAgQRAAALAkAgACgCACIAKALoAyAAKALsA0YEQCAAKALkAw0BIAAgAkEYaiAAKAL0AxBcIgEpAgA3AgAgACABKAIQNgIQIAAgASkCCDcCCCAAQRRqIAFBFGpB6AAQKxogACABKQKMATcCjAEgACABKQKEATcChAEgACABKQJ8NwJ8IAEoApQBIQQgAUEANgKUASAAKAKUASEDIAAgBDYClAEgAwRAIAMQWwsgAEGYAWogAUGYAWpB0AIQKxogACgC6AMiAwRAIAAgAzYC7AMgAxAjCyAAIAEoAugDNgLoAyAAIAEoAuwDNgLsAyAAIAEoAvADNgLwAyABQQA2AvADIAFCADcC6AMgACABKQL8AzcC/AMgACABKQL0AzcC9AMgACABKAKEBDYChAQgASgClAEhACABQQA2ApQBIAAEQCAAEFsLIAJBoARqJAAPCyACQfAcNgIQIABBBUHYJSACQRBqECwQJAALIAJB5hE2AgAgAEEFQdglIAIQLBAkAAsLAEEMEB4gABCiAQsLAEEMEB5BABCiAQsNACAAKAIALQAIQQFxCwoAIAAoAgAoAhQLGQAgAUH/AXEEQBACAAsgACgCACgCEEEBcQsYACAAKAIAIgAgAC0ACEH+AXEgAXI6AAgLJgAgASAAKAIAIgAoAhRHBEAgACABNgIUIAAgACgCDEEBajYCDAsLkgEBAn8jAEEQayICJAAg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sCxUTAAAAABMAAAAACQwAAAAAAAwAAAwAQYUtCwEQAEGRLQsVDwAAAAQPAAAAAAkQAAAAAAAQAAAQAEG/LQsBEgBByy0LHhEAAAAAEQAAAAAJEgAAAAAAEgAAEgAAGgAAABoaGgBBgi4LDhoAAAAaGhoAAAAAAAAJAEGzLgsBFABBvy4LFRcAAAAAFwAAAAAJFAAAAAAAFAAAFABB7S4LARYAQfkuCycVAAAAABUAAAAACRYAAAAAABYAABYAADAxMjM0NTY3ODlBQkNERUYAQcQvCwHSAEHsLwsI//////////8AQbAwCwkQIgEAAAAAAAUAQcQwCwHNAEHcMAsKzgAAAM8AAAD8HQBB9DALAQIAQYQxCwj//////////wBByDELAQUAQdQxCwHQAEHsMQsOzgAAANEAAAAIHgAAAAQAQYQyCwEBAEGUMgsF/////woAQdgyCwHT",!L(se)){var H=se;se=e.locateFile?e.locateFile(H,n):n+H}function q(){var E=se;try{if(E==se&&l)return new Uint8Array(l);if(L(E))try{var B=_E(E.slice(37)),Q=new Uint8Array(B.length);for(E=0;E<B.length;++E)Q[E]=B.charCodeAt(E);var _=Q}catch{throw Error("Converting base64 string to bytes failed.")}else _=void 0;var S=_;if(S)return S;throw"both async and sync fetching of the wasm failed"}catch(k){Y(k)}}function ie(){return l||typeof fetch!="function"?Promise.resolve().then(function(){return q()}):fetch(se,{credentials:"same-origin"}).then(function(E){if(!E.ok)throw"failed to load wasm binary file at '"+se+"'";return E.arrayBuffer()}).catch(function(){return q()})}function J(E){for(;0<E.length;)E.shift()(e)}function $(E){if(E===void 0)return"_unknown";E=E.replace(/[^a-zA-Z0-9_]/g,"$");var B=E.charCodeAt(0);return 48<=B&&57>=B?"_"+E:E}function N(E,B){return E=$(E),function(){return B.apply(this,arguments)}}var U=[{},{value:void 0},{value:null},{value:!0},{value:!1}],X=[];function ee(E){var B=Error,Q=N(E,function(_){this.name=E,this.message=_,_=Error(_).stack,_!==void 0&&(this.stack=this.toString()+`
864
+ `+_.replace(/^Error(:[^\n]*)?\n/,""))});return Q.prototype=Object.create(B.prototype),Q.prototype.constructor=Q,Q.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},Q}var oe=void 0;function j(E){throw new oe(E)}var Ee=E=>(E||j("Cannot use deleted val. handle = "+E),U[E].value),at=E=>{switch(E){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var B=X.length?X.pop():U.length;return U[B]={ga:1,value:E},B}},lt=void 0,He=void 0;function ge(E){for(var B="";C[E];)B+=He[C[E++]];return B}var we=[];function Je(){for(;we.length;){var E=we.pop();E.M.$=!1,E.delete()}}var We=void 0,xe={};function tt(E,B){for(B===void 0&&j("ptr should not be undefined");E.R;)B=E.ba(B),E=E.R;return B}var Ot={};function hs(E){E=kc(E);var B=ge(E);return tA(E),B}function Ao(E,B){var Q=Ot[E];return Q===void 0&&j(B+" has unknown type "+hs(E)),Q}function gs(){}var io=!1;function _c(E){--E.count.value,E.count.value===0&&(E.T?E.U.W(E.T):E.P.N.W(E.O))}function bc(E,B,Q){return B===Q?E:Q.R===void 0?null:(E=bc(E,B,Q.R),E===null?null:Q.na(E))}var Dc={};function nE(E,B){return B=tt(E,B),xe[B]}var xc=void 0;function us(E){throw new xc(E)}function fs(E,B){return B.P&&B.O||us("makeClassHandle requires ptr and ptrType"),!!B.U!=!!B.T&&us("Both smartPtrType and smartPtr must be specified"),B.count={value:1},Ii(Object.create(E,{M:{value:B}}))}function Ii(E){return typeof FinalizationRegistry>"u"?(Ii=B=>B,E):(io=new FinalizationRegistry(B=>{_c(B.M)}),Ii=B=>{var Q=B.M;return Q.T&&io.register(B,{M:Q},B),B},gs=B=>{io.unregister(B)},Ii(E))}var ds={};function ro(E){for(;E.length;){var B=E.pop();E.pop()(B)}}function sr(E){return this.fromWireType(P[E>>2])}var pi={},Is={};function CA(E,B,Q){function _(T){T=Q(T),T.length!==E.length&&us("Mismatched type converter count");for(var V=0;V<E.length;++V)$t(E[V],T[V])}E.forEach(function(T){Is[T]=B});var S=Array(B.length),k=[],F=0;B.forEach((T,V)=>{Ot.hasOwnProperty(T)?S[V]=Ot[T]:(k.push(T),pi.hasOwnProperty(T)||(pi[T]=[]),pi[T].push(()=>{S[V]=Ot[T],++F,F===k.length&&_(S)}))}),k.length===0&&_(S)}function so(E){switch(E){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+E)}}function $t(E,B,Q={}){if(!("argPackAdvance"in B))throw new TypeError("registerType registeredInstance requires argPackAdvance");var _=B.name;if(E||j('type "'+_+'" must have a positive integer typeid pointer'),Ot.hasOwnProperty(E)){if(Q.ua)return;j("Cannot register type '"+_+"' twice")}Ot[E]=B,delete Is[E],pi.hasOwnProperty(E)&&(B=pi[E],delete pi[E],B.forEach(S=>S()))}function no(E){j(E.M.P.N.name+" instance already deleted")}function QA(){}function oo(E,B,Q){if(E[B].S===void 0){var _=E[B];E[B]=function(){return E[B].S.hasOwnProperty(arguments.length)||j("Function '"+Q+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+E[B].S+")!"),E[B].S[arguments.length].apply(this,arguments)},E[B].S=[],E[B].S[_.Z]=_}}function oE(E,B){e.hasOwnProperty(E)?(j("Cannot register public name '"+E+"' twice"),oo(e,E,E),e.hasOwnProperty(void 0)&&j("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),e[E].S[void 0]=B):e[E]=B}function aE(E,B,Q,_,S,k,F,T){this.name=E,this.constructor=B,this.X=Q,this.W=_,this.R=S,this.pa=k,this.ba=F,this.na=T,this.ja=[]}function ao(E,B,Q){for(;B!==Q;)B.ba||j("Expected null or instance of "+Q.name+", got an instance of "+B.name),E=B.ba(E),B=B.R;return E}function lE(E,B){return B===null?(this.ea&&j("null is not a valid "+this.name),0):(B.M||j('Cannot pass "'+go(B)+'" as a '+this.name),B.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),ao(B.M.O,B.M.P.N,this.N))}function cE(E,B){if(B===null){if(this.ea&&j("null is not a valid "+this.name),this.da){var Q=this.fa();return E!==null&&E.push(this.W,Q),Q}return 0}if(B.M||j('Cannot pass "'+go(B)+'" as a '+this.name),B.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&B.M.P.ca&&j("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name),Q=ao(B.M.O,B.M.P.N,this.N),this.da)switch(B.M.T===void 0&&j("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:B.M.U===this?Q=B.M.T:j("Cannot convert argument of type "+(B.M.U?B.M.U.name:B.M.P.name)+" to parameter type "+this.name);break;case 1:Q=B.M.T;break;case 2:if(B.M.U===this)Q=B.M.T;else{var _=B.clone();Q=this.xa(Q,at(function(){_.delete()})),E!==null&&E.push(this.W,Q)}break;default:j("Unsupporting sharing policy")}return Q}function hE(E,B){return B===null?(this.ea&&j("null is not a valid "+this.name),0):(B.M||j('Cannot pass "'+go(B)+'" as a '+this.name),B.M.O||j("Cannot pass deleted object as a pointer of type "+this.name),B.M.P.ca&&j("Cannot convert argument of type "+B.M.P.name+" to parameter type "+this.name),ao(B.M.O,B.M.P.N,this.N))}function eA(E,B,Q,_){this.name=E,this.N=B,this.ea=Q,this.ca=_,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,B.R!==void 0?this.toWireType=cE:(this.toWireType=_?lE:hE,this.V=null)}function gE(E,B){e.hasOwnProperty(E)||us("Replacing nonexistant public symbol"),e[E]=B,e[E].Z=void 0}function uE(E,B){var Q=[];return function(){if(Q.length=0,Object.assign(Q,arguments),E.includes("j")){var _=e["dynCall_"+E];_=Q&&Q.length?_.apply(null,[B].concat(Q)):_.call(null,B)}else _=b.get(B).apply(null,Q);return _}}function Dt(E,B){E=ge(E);var Q=E.includes("j")?uE(E,B):b.get(B);return typeof Q!="function"&&j("unknown function pointer with signature "+E+": "+B),Q}var Sc=void 0;function ps(E,B){function Q(k){S[k]||Ot[k]||(Is[k]?Is[k].forEach(Q):(_.push(k),S[k]=!0))}var _=[],S={};throw B.forEach(Q),new Sc(E+": "+_.map(hs).join([", "]))}function lo(E,B,Q,_,S){var k=B.length;2>k&&j("argTypes array size mismatch! Must at least get return value and 'this' types!");var F=B[1]!==null&&Q!==null,T=!1;for(Q=1;Q<B.length;++Q)if(B[Q]!==null&&B[Q].V===void 0){T=!0;break}var V=B[0].name!=="void",O=k-2,Z=Array(O),re=[],ue=[];return function(){if(arguments.length!==O&&j("function "+E+" called with "+arguments.length+" arguments, expected "+O+" args!"),ue.length=0,re.length=F?2:1,re[0]=S,F){var Pe=B[1].toWireType(ue,this);re[1]=Pe}for(var de=0;de<O;++de)Z[de]=B[de+2].toWireType(ue,arguments[de]),re.push(Z[de]);if(de=_.apply(null,re),T)ro(ue);else for(var Et=F?1:2;Et<B.length;Et++){var xt=Et===1?Pe:Z[Et-2];B[Et].V!==null&&B[Et].V(xt)}return Pe=V?B[0].fromWireType(de):void 0,Pe}}function co(E,B){for(var Q=[],_=0;_<E;_++)Q.push(w[B+4*_>>2]);return Q}function ho(E){4<E&&--U[E].ga===0&&(U[E]=void 0,X.push(E))}function go(E){if(E===null)return"null";var B=typeof E;return B==="object"||B==="array"||B==="function"?E.toString():""+E}function fE(E,B){switch(B){case 2:return function(Q){return this.fromWireType(R[Q>>2])};case 3:return function(Q){return this.fromWireType(v[Q>>3])};default:throw new TypeError("Unknown float type: "+E)}}function dE(E,B,Q){switch(B){case 0:return Q?function(_){return d[_]}:function(_){return C[_]};case 1:return Q?function(_){return p[_>>1]}:function(_){return x[_>>1]};case 2:return Q?function(_){return P[_>>2]}:function(_){return w[_>>2]};default:throw new TypeError("Unknown integer type: "+E)}}function IE(E,B){for(var Q="",_=0;!(_>=B/2);++_){var S=p[E+2*_>>1];if(S==0)break;Q+=String.fromCharCode(S)}return Q}function pE(E,B,Q){if(Q===void 0&&(Q=2147483647),2>Q)return 0;Q-=2;var _=B;Q=Q<2*E.length?Q/2:E.length;for(var S=0;S<Q;++S)p[B>>1]=E.charCodeAt(S),B+=2;return p[B>>1]=0,B-_}function EE(E){return 2*E.length}function BE(E,B){for(var Q=0,_="";!(Q>=B/4);){var S=P[E+4*Q>>2];if(S==0)break;++Q,65536<=S?(S-=65536,_+=String.fromCharCode(55296|S>>10,56320|S&1023)):_+=String.fromCharCode(S)}return _}function CE(E,B,Q){if(Q===void 0&&(Q=2147483647),4>Q)return 0;var _=B;Q=_+Q-4;for(var S=0;S<E.length;++S){var k=E.charCodeAt(S);if(55296<=k&&57343>=k){var F=E.charCodeAt(++S);k=65536+((k&1023)<<10)|F&1023}if(P[B>>2]=k,B+=4,B+4>Q)break}return P[B>>2]=0,B-_}function QE(E){for(var B=0,Q=0;Q<E.length;++Q){var _=E.charCodeAt(Q);55296<=_&&57343>=_&&++Q,B+=4}return B}var yE={};function Mc(E){var B=yE[E];return B===void 0?ge(E):B}var Es=[];function mE(E){var B=Es.length;return Es.push(E),B}function wE(E,B){for(var Q=Array(E),_=0;_<E;++_)Q[_]=Ao(w[B+4*_>>2],"parameter "+_);return Q}var Rc=[],vE=[null,[],[]];oe=e.BindingError=ee("BindingError"),e.count_emval_handles=function(){for(var E=0,B=5;B<U.length;++B)U[B]!==void 0&&++E;return E},e.get_first_emval=function(){for(var E=5;E<U.length;++E)if(U[E]!==void 0)return U[E];return null},lt=e.PureVirtualError=ee("PureVirtualError");for(var Pc=Array(256),Bs=0;256>Bs;++Bs)Pc[Bs]=String.fromCharCode(Bs);He=Pc,e.getInheritedInstanceCount=function(){return Object.keys(xe).length},e.getLiveInheritedInstances=function(){var E=[],B;for(B in xe)xe.hasOwnProperty(B)&&E.push(xe[B]);return E},e.flushPendingDeletes=Je,e.setDelayFunction=function(E){We=E,we.length&&We&&We(Je)},xc=e.InternalError=ee("InternalError"),QA.prototype.isAliasOf=function(E){if(!(this instanceof QA&&E instanceof QA))return!1;var B=this.M.P.N,Q=this.M.O,_=E.M.P.N;for(E=E.M.O;B.R;)Q=B.ba(Q),B=B.R;for(;_.R;)E=_.ba(E),_=_.R;return B===_&&Q===E},QA.prototype.clone=function(){if(this.M.O||no(this),this.M.aa)return this.M.count.value+=1,this;var E=Ii,B=Object,Q=B.create,_=Object.getPrototypeOf(this),S=this.M;return E=E(Q.call(B,_,{M:{value:{count:S.count,$:S.$,aa:S.aa,O:S.O,P:S.P,T:S.T,U:S.U}}})),E.M.count.value+=1,E.M.$=!1,E},QA.prototype.delete=function(){this.M.O||no(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),gs(this),_c(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},QA.prototype.isDeleted=function(){return!this.M.O},QA.prototype.deleteLater=function(){return this.M.O||no(this),this.M.$&&!this.M.aa&&j("Object already scheduled for deletion"),we.push(this),we.length===1&&We&&We(Je),this.M.$=!0,this},eA.prototype.qa=function(E){return this.ka&&(E=this.ka(E)),E},eA.prototype.ha=function(E){this.W&&this.W(E)},eA.prototype.argPackAdvance=8,eA.prototype.readValueFromPointer=sr,eA.prototype.deleteObject=function(E){E!==null&&E.delete()},eA.prototype.fromWireType=function(E){function B(){return this.da?fs(this.N.X,{P:this.wa,O:Q,U:this,T:E}):fs(this.N.X,{P:this,O:E})}var Q=this.qa(E);if(!Q)return this.ha(E),null;var _=nE(this.N,Q);if(_!==void 0)return _.M.count.value===0?(_.M.O=Q,_.M.T=E,_.clone()):(_=_.clone(),this.ha(E),_);if(_=this.N.pa(Q),_=Dc[_],!_)return B.call(this);_=this.ca?_.la:_.pointerType;var S=bc(Q,this.N,_.N);return S===null?B.call(this):this.da?fs(_.N.X,{P:_,O:S,U:this,T:E}):fs(_.N.X,{P:_,O:S})},Sc=e.UnboundTypeError=ee("UnboundTypeError");var _E=typeof atob=="function"?atob:function(E){var B="",Q=0;E=E.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var _="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++)),S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++)),k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++)),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(E.charAt(Q++));_=_<<2|S>>4,S=(S&15)<<4|k>>2;var T=(k&3)<<6|F;B+=String.fromCharCode(_),k!==64&&(B+=String.fromCharCode(S)),F!==64&&(B+=String.fromCharCode(T))}while(Q<E.length);return B},bE={l:function(E,B,Q,_){Y("Assertion failed: "+(E?f(C,E):"")+", at: "+[B?B?f(C,B):"":"unknown filename",Q,_?_?f(C,_):"":"unknown function"])},q:function(E,B,Q){E=ge(E),B=Ao(B,"wrapper"),Q=Ee(Q);var _=[].slice,S=B.N,k=S.X,F=S.R.X,T=S.R.constructor;E=N(E,function(){S.R.ja.forEach((function(O){if(this[O]===F[O])throw new lt("Pure virtual function "+O+" must be implemented in JavaScript")}).bind(this)),Object.defineProperty(this,"__parent",{value:k}),this.__construct.apply(this,_.call(arguments))}),k.__construct=function(){this===k&&j("Pass correct 'this' to __construct");var O=T.implement.apply(void 0,[this].concat(_.call(arguments)));gs(O);var Z=O.M;O.notifyOnDestruction(),Z.aa=!0,Object.defineProperties(this,{M:{value:Z}}),Ii(this),O=Z.O,O=tt(S,O),xe.hasOwnProperty(O)?j("Tried to register registered instance: "+O):xe[O]=this},k.__destruct=function(){this===k&&j("Pass correct 'this' to __destruct"),gs(this);var O=this.M.O;O=tt(S,O),xe.hasOwnProperty(O)?delete xe[O]:j("Tried to unregister unregistered instance: "+O)},E.prototype=Object.create(k);for(var V in Q)E.prototype[V]=Q[V];return at(E)},j:function(E){var B=ds[E];delete ds[E];var Q=B.fa,_=B.W,S=B.ia,k=S.map(F=>F.ta).concat(S.map(F=>F.za));CA([E],k,F=>{var T={};return S.forEach((V,O)=>{var Z=F[O],re=V.ra,ue=V.sa,Pe=F[O+S.length],de=V.ya,Et=V.Aa;T[V.oa]={read:xt=>Z.fromWireType(re(ue,xt)),write:(xt,nr)=>{var AA=[];de(Et,xt,Pe.toWireType(AA,nr)),ro(AA)}}}),[{name:B.name,fromWireType:function(V){var O={},Z;for(Z in T)O[Z]=T[Z].read(V);return _(V),O},toWireType:function(V,O){for(var Z in T)if(!(Z in O))throw new TypeError('Missing field: "'+Z+'"');var re=Q();for(Z in T)T[Z].write(re,O[Z]);return V!==null&&V.push(_,re),re},argPackAdvance:8,readValueFromPointer:sr,V:_}]})},v:function(){},B:function(E,B,Q,_,S){var k=so(Q);B=ge(B),$t(E,{name:B,fromWireType:function(F){return!!F},toWireType:function(F,T){return T?_:S},argPackAdvance:8,readValueFromPointer:function(F){if(Q===1)var T=d;else if(Q===2)T=p;else if(Q===4)T=P;else throw new TypeError("Unknown boolean type size: "+B);return this.fromWireType(T[F>>k])},V:null})},f:function(E,B,Q,_,S,k,F,T,V,O,Z,re,ue){Z=ge(Z),k=Dt(S,k),T&&(T=Dt(F,T)),O&&(O=Dt(V,O)),ue=Dt(re,ue);var Pe=$(Z);oE(Pe,function(){ps("Cannot construct "+Z+" due to unbound types",[_])}),CA([E,B,Q],_?[_]:[],function(de){if(de=de[0],_)var Et=de.N,xt=Et.X;else xt=QA.prototype;de=N(Pe,function(){if(Object.getPrototypeOf(this)!==nr)throw new oe("Use 'new' to construct "+Z);if(AA.Y===void 0)throw new oe(Z+" has no accessible constructor");var Fc=AA.Y[arguments.length];if(Fc===void 0)throw new oe("Tried to invoke ctor of "+Z+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(AA.Y).toString()+") parameters instead!");return Fc.apply(this,arguments)});var nr=Object.create(xt,{constructor:{value:de}});de.prototype=nr;var AA=new aE(Z,de,nr,ue,Et,k,T,O);Et=new eA(Z,AA,!0,!1),xt=new eA(Z+"*",AA,!1,!1);var Nc=new eA(Z+" const*",AA,!1,!0);return Dc[E]={pointerType:xt,la:Nc},gE(Pe,de),[Et,xt,Nc]})},d:function(E,B,Q,_,S,k,F){var T=co(Q,_);B=ge(B),k=Dt(S,k),CA([],[E],function(V){function O(){ps("Cannot call "+Z+" due to unbound types",T)}V=V[0];var Z=V.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]);var re=V.N.constructor;return re[B]===void 0?(O.Z=Q-1,re[B]=O):(oo(re,B,Z),re[B].S[Q-1]=O),CA([],T,function(ue){return ue=lo(Z,[ue[0],null].concat(ue.slice(1)),null,k,F),re[B].S===void 0?(ue.Z=Q-1,re[B]=ue):re[B].S[Q-1]=ue,[]}),[]})},p:function(E,B,Q,_,S,k){0<B||Y();var F=co(B,Q);S=Dt(_,S),CA([],[E],function(T){T=T[0];var V="constructor "+T.name;if(T.N.Y===void 0&&(T.N.Y=[]),T.N.Y[B-1]!==void 0)throw new oe("Cannot register multiple constructors with identical number of parameters ("+(B-1)+") for class '"+T.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return T.N.Y[B-1]=()=>{ps("Cannot construct "+T.name+" due to unbound types",F)},CA([],F,function(O){return O.splice(1,0,null),T.N.Y[B-1]=lo(V,O,null,S,k),[]}),[]})},a:function(E,B,Q,_,S,k,F,T){var V=co(Q,_);B=ge(B),k=Dt(S,k),CA([],[E],function(O){function Z(){ps("Cannot call "+re+" due to unbound types",V)}O=O[0];var re=O.name+"."+B;B.startsWith("@@")&&(B=Symbol[B.substring(2)]),T&&O.N.ja.push(B);var ue=O.N.X,Pe=ue[B];return Pe===void 0||Pe.S===void 0&&Pe.className!==O.name&&Pe.Z===Q-2?(Z.Z=Q-2,Z.className=O.name,ue[B]=Z):(oo(ue,B,re),ue[B].S[Q-2]=Z),CA([],V,function(de){return de=lo(re,de,O,k,F),ue[B].S===void 0?(de.Z=Q-2,ue[B]=de):ue[B].S[Q-2]=de,[]}),[]})},A:function(E,B){B=ge(B),$t(E,{name:B,fromWireType:function(Q){var _=Ee(Q);return ho(Q),_},toWireType:function(Q,_){return at(_)},argPackAdvance:8,readValueFromPointer:sr,V:null})},n:function(E,B,Q){Q=so(Q),B=ge(B),$t(E,{name:B,fromWireType:function(_){return _},toWireType:function(_,S){return S},argPackAdvance:8,readValueFromPointer:fE(B,Q),V:null})},e:function(E,B,Q,_,S){B=ge(B),S===-1&&(S=4294967295),S=so(Q);var k=T=>T;if(_===0){var F=32-8*Q;k=T=>T<<F>>>F}Q=B.includes("unsigned")?function(T,V){return V>>>0}:function(T,V){return V},$t(E,{name:B,fromWireType:k,toWireType:Q,argPackAdvance:8,readValueFromPointer:dE(B,S,_!==0),V:null})},b:function(E,B,Q){function _(k){k>>=2;var F=w;return new S(I,F[k+1],F[k])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][B];Q=ge(Q),$t(E,{name:Q,fromWireType:_,argPackAdvance:8,readValueFromPointer:_},{ua:!0})},o:function(E,B){B=ge(B);var Q=B==="std::string";$t(E,{name:B,fromWireType:function(_){var S=w[_>>2],k=_+4;if(Q)for(var F=k,T=0;T<=S;++T){var V=k+T;if(T==S||C[V]==0){if(F=F?f(C,F,V-F):"",O===void 0)var O=F;else O+="\0",O+=F;F=V+1}}else{for(O=Array(S),T=0;T<S;++T)O[T]=String.fromCharCode(C[k+T]);O=O.join("")}return tA(_),O},toWireType:function(_,S){S instanceof ArrayBuffer&&(S=new Uint8Array(S));var k,F=typeof S=="string";if(F||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int8Array||j("Cannot pass non-string to std::string"),Q&&F){var T=0;for(k=0;k<S.length;++k){var V=S.charCodeAt(k);127>=V?T++:2047>=V?T+=2:55296<=V&&57343>=V?(T+=4,++k):T+=3}k=T}else k=S.length;if(T=uo(4+k+1),V=T+4,w[T>>2]=k,Q&&F){if(F=V,V=k+1,k=C,0<V){V=F+V-1;for(var O=0;O<S.length;++O){var Z=S.charCodeAt(O);if(55296<=Z&&57343>=Z){var re=S.charCodeAt(++O);Z=65536+((Z&1023)<<10)|re&1023}if(127>=Z){if(F>=V)break;k[F++]=Z}else{if(2047>=Z){if(F+1>=V)break;k[F++]=192|Z>>6}else{if(65535>=Z){if(F+2>=V)break;k[F++]=224|Z>>12}else{if(F+3>=V)break;k[F++]=240|Z>>18,k[F++]=128|Z>>12&63}k[F++]=128|Z>>6&63}k[F++]=128|Z&63}}k[F]=0}}else if(F)for(F=0;F<k;++F)O=S.charCodeAt(F),255<O&&(tA(V),j("String has UTF-16 code units that do not fit in 8 bits")),C[V+F]=O;else for(F=0;F<k;++F)C[V+F]=S[F];return _!==null&&_.push(tA,T),T},argPackAdvance:8,readValueFromPointer:sr,V:function(_){tA(_)}})},i:function(E,B,Q){if(Q=ge(Q),B===2)var _=IE,S=pE,k=EE,F=()=>x,T=1;else B===4&&(_=BE,S=CE,k=QE,F=()=>w,T=2);$t(E,{name:Q,fromWireType:function(V){for(var O=w[V>>2],Z=F(),re,ue=V+4,Pe=0;Pe<=O;++Pe){var de=V+4+Pe*B;(Pe==O||Z[de>>T]==0)&&(ue=_(ue,de-ue),re===void 0?re=ue:(re+="\0",re+=ue),ue=de+B)}return tA(V),re},toWireType:function(V,O){typeof O!="string"&&j("Cannot pass non-string to C++ string type "+Q);var Z=k(O),re=uo(4+Z+B);return w[re>>2]=Z>>T,S(O,re+4,Z+B),V!==null&&V.push(tA,re),re},argPackAdvance:8,readValueFromPointer:sr,V:function(V){tA(V)}})},k:function(E,B,Q,_,S,k){ds[E]={name:ge(B),fa:Dt(Q,_),W:Dt(S,k),ia:[]}},h:function(E,B,Q,_,S,k,F,T,V,O){ds[E].ia.push({oa:ge(B),ta:Q,ra:Dt(_,S),sa:k,za:F,ya:Dt(T,V),Aa:O})},C:function(E,B){B=ge(B),$t(E,{va:!0,name:B,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(E,B,Q,_,S){E=Es[E],B=Ee(B),Q=Mc(Q);var k=[];return w[_>>2]=at(k),E(B,Q,k,S)},t:function(E,B,Q,_){E=Es[E],B=Ee(B),Q=Mc(Q),E(B,Q,null,_)},g:ho,m:function(E,B){var Q=wE(E,B),_=Q[0];B=_.name+"_$"+Q.slice(1).map(function(F){return F.name}).join("_")+"$";var S=Rc[B];if(S!==void 0)return S;var k=Array(E-1);return S=mE((F,T,V,O)=>{for(var Z=0,re=0;re<E-1;++re)k[re]=Q[re+1].readValueFromPointer(O+Z),Z+=Q[re+1].argPackAdvance;for(F=F[T].apply(F,k),re=0;re<E-1;++re)Q[re+1].ma&&Q[re+1].ma(k[re]);if(!_.va)return _.toWireType(V,F)}),Rc[B]=S},D:function(E){4<E&&(U[E].ga+=1)},r:function(E){var B=Ee(E);ro(B),ho(E)},c:function(){Y("")},x:function(E,B,Q){C.copyWithin(E,B,B+Q)},w:function(E){var B=C.length;if(E>>>=0,2147483648<E)return!1;for(var Q=1;4>=Q;Q*=2){var _=B*(1+.2/Q);_=Math.min(_,E+100663296);var S=Math;_=Math.max(E,_),S=S.min.call(S,2147483648,_+(65536-_%65536)%65536);e:{try{c.grow(S-I.byteLength+65535>>>16),m();var k=1;break e}catch{}k=void 0}if(k)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(E,B,Q,_){for(var S=0,k=0;k<Q;k++){var F=w[B>>2],T=w[B+4>>2];B+=8;for(var V=0;V<T;V++){var O=C[F+V],Z=vE[E];O===0||O===10?((E===1?o:a)(f(Z,0)),Z.length=0):Z.push(O)}S+=T}return w[_>>2]=S,0}};(function(){function E(S){e.asm=S.exports,c=e.asm.E,m(),b=e.asm.J,z.unshift(e.asm.F),K--,e.monitorRunDependencies&&e.monitorRunDependencies(K),K==0&&te&&(S=te,te=null,S())}function B(S){E(S.instance)}function Q(S){return ie().then(function(k){return WebAssembly.instantiate(k,_)}).then(function(k){return k}).then(S,function(k){a("failed to asynchronously prepare wasm: "+k),Y(k)})}var _={a:bE};if(K++,e.monitorRunDependencies&&e.monitorRunDependencies(K),e.instantiateWasm)try{return e.instantiateWasm(_,E)}catch(S){a("Module.instantiateWasm callback failed with error: "+S),i(S)}return function(){return l||typeof WebAssembly.instantiateStreaming!="function"||L(se)||typeof fetch!="function"?Q(B):fetch(se,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,_).then(B,function(k){return a("wasm streaming compile failed: "+k),a("falling back to ArrayBuffer instantiation"),Q(B)})})}().catch(i),{}})(),e.___wasm_call_ctors=function(){return(e.___wasm_call_ctors=e.asm.F).apply(null,arguments)};var kc=e.___getTypeName=function(){return(kc=e.___getTypeName=e.asm.G).apply(null,arguments)};e.__embind_initialize_bindings=function(){return(e.__embind_initialize_bindings=e.asm.H).apply(null,arguments)};var uo=e._malloc=function(){return(uo=e._malloc=e.asm.I).apply(null,arguments)},tA=e._free=function(){return(tA=e._free=e.asm.K).apply(null,arguments)};e.dynCall_jiji=function(){return(e.dynCall_jiji=e.asm.L).apply(null,arguments)};var Cs;te=function E(){Cs||Uc(),Cs||(te=E)};function Uc(){function E(){if(!Cs&&(Cs=!0,e.calledRun=!0,!h)){if(J(z),t(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;){var B=e.postRun.shift();Ae.unshift(B)}J(Ae)}}if(!(0<K)){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)W();J(D),0<K||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),E()},1)):E())}}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return Uc(),A.ready}})();let Le=function(r){return r[r.Auto=0]="Auto",r[r.FlexStart=1]="FlexStart",r[r.Center=2]="Center",r[r.FlexEnd=3]="FlexEnd",r[r.Stretch=4]="Stretch",r[r.Baseline=5]="Baseline",r[r.SpaceBetween=6]="SpaceBetween",r[r.SpaceAround=7]="SpaceAround",r[r.SpaceEvenly=8]="SpaceEvenly",r}({}),qr=function(r){return r[r.BorderBox=0]="BorderBox",r[r.ContentBox=1]="ContentBox",r}({}),ql=function(r){return r[r.Width=0]="Width",r[r.Height=1]="Height",r}({}),fA=function(r){return r[r.Inherit=0]="Inherit",r[r.LTR=1]="LTR",r[r.RTL=2]="RTL",r}({}),ni=function(r){return r[r.Flex=0]="Flex",r[r.None=1]="None",r[r.Contents=2]="Contents",r}({}),pe=function(r){return r[r.Left=0]="Left",r[r.Top=1]="Top",r[r.Right=2]="Right",r[r.Bottom=3]="Bottom",r[r.Start=4]="Start",r[r.End=5]="End",r[r.Horizontal=6]="Horizontal",r[r.Vertical=7]="Vertical",r[r.All=8]="All",r}({}),oi=function(r){return r[r.None=0]="None",r[r.StretchFlexBasis=1]="StretchFlexBasis",r[r.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",r[r.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",r[r.All=2147483647]="All",r[r.Classic=2147483646]="Classic",r}({}),OI=function(r){return r[r.WebFlexBasis=0]="WebFlexBasis",r}({}),dA=function(r){return r[r.Column=0]="Column",r[r.ColumnReverse=1]="ColumnReverse",r[r.Row=2]="Row",r[r.RowReverse=3]="RowReverse",r}({}),Xr=function(r){return r[r.Column=0]="Column",r[r.Row=1]="Row",r[r.All=2]="All",r}({}),mt=function(r){return r[r.FlexStart=0]="FlexStart",r[r.Center=1]="Center",r[r.FlexEnd=2]="FlexEnd",r[r.SpaceBetween=3]="SpaceBetween",r[r.SpaceAround=4]="SpaceAround",r[r.SpaceEvenly=5]="SpaceEvenly",r}({}),ai=function(r){return r[r.Error=0]="Error",r[r.Warn=1]="Warn",r[r.Info=2]="Info",r[r.Debug=3]="Debug",r[r.Verbose=4]="Verbose",r[r.Fatal=5]="Fatal",r}({}),jn=function(r){return r[r.Undefined=0]="Undefined",r[r.Exactly=1]="Exactly",r[r.AtMost=2]="AtMost",r}({}),Xl=function(r){return r[r.Default=0]="Default",r[r.Text=1]="Text",r}({}),li=function(r){return r[r.Visible=0]="Visible",r[r.Hidden=1]="Hidden",r[r.Scroll=2]="Scroll",r}({}),ci=function(r){return r[r.Static=0]="Static",r[r.Relative=1]="Relative",r[r.Absolute=2]="Absolute",r}({}),Ft=function(r){return r[r.Undefined=0]="Undefined",r[r.Point=1]="Point",r[r.Percent=2]="Percent",r[r.Auto=3]="Auto",r}({}),hi=function(r){return r[r.NoWrap=0]="NoWrap",r[r.Wrap=1]="Wrap",r[r.WrapReverse=2]="WrapReverse",r}({});const HI={ALIGN_AUTO:Le.Auto,ALIGN_FLEX_START:Le.FlexStart,ALIGN_CENTER:Le.Center,ALIGN_FLEX_END:Le.FlexEnd,ALIGN_STRETCH:Le.Stretch,ALIGN_BASELINE:Le.Baseline,ALIGN_SPACE_BETWEEN:Le.SpaceBetween,ALIGN_SPACE_AROUND:Le.SpaceAround,ALIGN_SPACE_EVENLY:Le.SpaceEvenly,BOX_SIZING_BORDER_BOX:qr.BorderBox,BOX_SIZING_CONTENT_BOX:qr.ContentBox,DIMENSION_WIDTH:ql.Width,DIMENSION_HEIGHT:ql.Height,DIRECTION_INHERIT:fA.Inherit,DIRECTION_LTR:fA.LTR,DIRECTION_RTL:fA.RTL,DISPLAY_FLEX:ni.Flex,DISPLAY_NONE:ni.None,DISPLAY_CONTENTS:ni.Contents,EDGE_LEFT:pe.Left,EDGE_TOP:pe.Top,EDGE_RIGHT:pe.Right,EDGE_BOTTOM:pe.Bottom,EDGE_START:pe.Start,EDGE_END:pe.End,EDGE_HORIZONTAL:pe.Horizontal,EDGE_VERTICAL:pe.Vertical,EDGE_ALL:pe.All,ERRATA_NONE:oi.None,ERRATA_STRETCH_FLEX_BASIS:oi.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:oi.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:oi.AbsolutePercentAgainstInnerSize,ERRATA_ALL:oi.All,ERRATA_CLASSIC:oi.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:OI.WebFlexBasis,FLEX_DIRECTION_COLUMN:dA.Column,FLEX_DIRECTION_COLUMN_REVERSE:dA.ColumnReverse,FLEX_DIRECTION_ROW:dA.Row,FLEX_DIRECTION_ROW_REVERSE:dA.RowReverse,GUTTER_COLUMN:Xr.Column,GUTTER_ROW:Xr.Row,GUTTER_ALL:Xr.All,JUSTIFY_FLEX_START:mt.FlexStart,JUSTIFY_CENTER:mt.Center,JUSTIFY_FLEX_END:mt.FlexEnd,JUSTIFY_SPACE_BETWEEN:mt.SpaceBetween,JUSTIFY_SPACE_AROUND:mt.SpaceAround,JUSTIFY_SPACE_EVENLY:mt.SpaceEvenly,LOG_LEVEL_ERROR:ai.Error,LOG_LEVEL_WARN:ai.Warn,LOG_LEVEL_INFO:ai.Info,LOG_LEVEL_DEBUG:ai.Debug,LOG_LEVEL_VERBOSE:ai.Verbose,LOG_LEVEL_FATAL:ai.Fatal,MEASURE_MODE_UNDEFINED:jn.Undefined,MEASURE_MODE_EXACTLY:jn.Exactly,MEASURE_MODE_AT_MOST:jn.AtMost,NODE_TYPE_DEFAULT:Xl.Default,NODE_TYPE_TEXT:Xl.Text,OVERFLOW_VISIBLE:li.Visible,OVERFLOW_HIDDEN:li.Hidden,OVERFLOW_SCROLL:li.Scroll,POSITION_TYPE_STATIC:ci.Static,POSITION_TYPE_RELATIVE:ci.Relative,POSITION_TYPE_ABSOLUTE:ci.Absolute,UNIT_UNDEFINED:Ft.Undefined,UNIT_POINT:Ft.Point,UNIT_PERCENT:Ft.Percent,UNIT_AUTO:Ft.Auto,WRAP_NO_WRAP:hi.NoWrap,WRAP_WRAP:hi.Wrap,WRAP_WRAP_REVERSE:hi.WrapReverse};function JI(r){function A(i,s,n){const o=i[s];i[s]=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return n.call(this,o,...l)}}for(const i of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){const s={[Ft.Point]:r.Node.prototype[i],[Ft.Percent]:r.Node.prototype[`${i}Percent`],[Ft.Auto]:r.Node.prototype[`${i}Auto`]};A(r.Node.prototype,i,function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];const c=a.pop();let h,f;if(c==="auto")h=Ft.Auto,f=void 0;else if(typeof c=="object")h=c.unit,f=c.valueOf();else if(h=typeof c=="string"&&c.endsWith("%")?Ft.Percent:Ft.Point,f=parseFloat(c),c!==void 0&&!Number.isNaN(c)&&Number.isNaN(f))throw new Error(`Invalid value ${c} for ${i}`);if(!s[h])throw new Error(`Failed to execute "${i}": Unsupported unit '${c}'`);return f!==void 0?s[h].call(this,...a,f):s[h].call(this,...a)})}function e(i){return r.MeasureCallback.implement({measure:function(){const{width:s,height:n}=i(...arguments);return{width:s??NaN,height:n??NaN}}})}A(r.Node.prototype,"setMeasureFunc",function(i,s){return s?i.call(this,e(s)):this.unsetMeasureFunc()});function t(i){return r.DirtiedCallback.implement({dirtied:i})}return A(r.Node.prototype,"setDirtiedFunc",function(i,s){i.call(this,t(s))}),A(r.Config.prototype,"free",function(){r.Config.destroy(this)}),A(r.Node,"create",(i,s)=>s?r.Node.createWithConfig(s):r.Node.createDefault()),A(r.Node.prototype,"free",function(){r.Node.destroy(this)}),A(r.Node.prototype,"freeRecursive",function(){for(let i=0,s=this.getChildCount();i<s;++i)this.getChild(0).freeRecursive();this.free()}),A(r.Node.prototype,"calculateLayout",function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:fA.LTR;return i.call(this,s,n,o)}),{Config:r.Config,Node:r.Node,...HI}}async function KI(){return JI(await LI())}class jl extends Li{constructor(A){super(),this.setProperties(A)}}const gi={auto:Le.Auto,"flex-start":Le.FlexStart,center:Le.Center,"flex-end":Le.FlexEnd,stretch:Le.Stretch,baseline:Le.Baseline,"space-between":Le.SpaceBetween,"space-around":Le.SpaceAround,"space-evenly":Le.SpaceEvenly},Zl={none:ni.None,flex:ni.Flex,contents:ni.Contents},$l={inherit:fA.Inherit,ltr:fA.LTR,rtl:fA.RTL},ec={column:dA.Column,"column-reverse":dA.ColumnReverse,row:dA.Row,"row-reverse":dA.RowReverse},tc={"no-wrap":hi.NoWrap,wrap:hi.Wrap,"Wrap-reverse":hi.WrapReverse},Ac={"flex-start":mt.FlexStart,center:mt.Center,"flex-end":mt.FlexEnd,"space-between":mt.SpaceBetween,"space-around":mt.SpaceAround,"space-evenly":mt.SpaceEvenly},ic={visible:li.Visible,hidden:li.Hidden,scroll:li.Scroll},rc={static:ci.Static,relative:ci.Relative,absolute:ci.Absolute},sc={"border-box":qr.BorderBox,"content-box":qr.ContentBox},as=class as{constructor(A){u(this,"_node",as._yoga.Node.create());this._element=A}static async load(){this._yoga=await KI()}get _style(){return this._element.style}get offsetLeft(){return this._node.getComputedLeft()}get offsetTop(){return this._node.getComputedTop()}get offsetWidth(){return this._node.getComputedWidth()}get offsetHeight(){return this._node.getComputedHeight()}calculateLayout(A,e,t){return this._node.calculateLayout(A,e,t)}getComputedLayout(){return this._node.getComputedLayout()}updateStyleProperty(A,e,t,i){switch(A){case"alignContent":this._node.setAlignContent(e?gi[e]:gi["flex-start"]);break;case"alignItems":this._node.setAlignItems(e?gi[e]:gi["flex-start"]);break;case"alignSelf":this._node.setAlignSelf(e?gi[e]:gi["flex-start"]);break;case"aspectRatio":this._node.setAspectRatio(e);break;case"borderTop":this._node.setBorder(pe.Top,this._style.borderWidth);break;case"borderBottom":this._node.setBorder(pe.Bottom,this._style.borderWidth);break;case"borderLeft":this._node.setBorder(pe.Left,this._style.borderWidth);break;case"borderRight":this._node.setBorder(pe.Right,this._style.borderWidth);break;case"border":this._node.setBorder(pe.All,this._style.borderWidth);break;case"direction":this._node.setDirection(e?$l[e]:$l.inherit);break;case"display":this._node.setDisplay(e?Zl[e]:Zl.flex);break;case"flex":this._node.setFlex(this._style.flex);break;case"flexBasis":this._node.setFlexBasis(this._style.flexBasis);break;case"flexDirection":this._node.setFlexDirection(e?ec[e]:ec.row);break;case"flexGrow":this._node.setFlexGrow(this._style.flexGrow);break;case"flexShrink":this._node.setFlexShrink(this._style.flexShrink);break;case"flexWrap":this._node.setFlexWrap(e?tc[e]:tc.wrap);break;case"height":this._node.setHeight(this._style.height);break;case"justifyContent":this._node.setJustifyContent(e?Ac[e]:Ac["flex-start"]);break;case"gap":e!==void 0&&this._node.setGap(Xr.All,e);break;case"marginTop":this._node.setMargin(pe.Top,e);break;case"marginBottom":this._node.setMargin(pe.Top,e);break;case"marginLeft":this._node.setMargin(pe.Left,e);break;case"marginRight":this._node.setMargin(pe.Top,e);break;case"margin":this._node.setMargin(pe.All,e);break;case"maxHeight":this._node.setMaxHeight(e);break;case"maxWidth":this._node.setMaxWidth(e);break;case"minHeight":this._node.setMinHeight(this._style.minHeight);break;case"minWidth":this._node.setMinWidth(this._style.minWidth);break;case"overflow":this._node.setOverflow(e?ic[e]:ic.visible);break;case"paddingTop":this._node.setPadding(pe.Top,this._style.paddingTop);break;case"paddingBottom":this._node.setPadding(pe.Bottom,this._style.paddingBottom);break;case"paddingLeft":this._node.setPadding(pe.Left,this._style.paddingLeft);break;case"paddingRight":this._node.setPadding(pe.Right,this._style.paddingRight);break;case"padding":this._node.setPadding(pe.All,this._style.padding);break;case"top":this._node.setPosition(pe.Top,this._style.top);break;case"bottom":this._node.setPosition(pe.Bottom,this._style.bottom);break;case"left":this._node.setPosition(pe.Left,this._style.left);break;case"right":this._node.setPosition(pe.Right,this._style.right);break;case"position":this._node.setPositionType(e?rc[e]:rc.static);break;case"boxSizing":this._node.setBoxSizing(e?sc[e]:sc["content-box"]);break;case"width":this._node.setWidth(this._style.width);break}}};u(as,"_yoga");let jr=as;var YI=Object.getOwnPropertyDescriptor,VI=(r,A,e,t)=>{for(var i=t>1?void 0:t?YI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.FlexElement2D=class extends g.BaseElement2D{constructor(e,t=[]){super();u(this,"_layout",new jr(this));this.style=new jl,this.setProperties(e).append(t)}get style(){return this._style}set style(e){var i;const t=(...s)=>{this.emit("updateStyleProperty",...s),this._updateStyleProperty(s[0],s[1],s[2],s[3])};e.on("updateProperty",t),(i=this._style)==null||i.off("updateProperty",t),this._style=e}get offsetLeft(){return this._layout.offsetLeft}get offsetTop(){return this._layout.offsetTop}get offsetWidth(){return this._layout.offsetWidth}get offsetHeight(){return this._layout.offsetHeight}_parented(e){super._parented(e),e._layout&&this._layout._node&&e._layout._node.insertChild(this._layout._node,e._layout._node.getChildCount())}_unparented(e){var t;super._unparented(e),(t=e._layout)!=null&&t._node&&e._layout._node.removeChild(this._layout._node)}_updateStyleProperty(e,t,i,s){super._updateStyleProperty(e,t,i,s),this._layout.updateStyleProperty(e,t,i,s),this._layout._node.isDirty()&&this.requestRelayout()}updateTransform(){this.calculateLayout(void 0,void 0,fA.LTR);const{left:e,top:t,width:i,height:s}=this._layout.getComputedLayout();this.position.x=e,this.position.y=t,this.size.x=i,this.size.y=s,super.updateTransform()}calculateLayout(e,t,i){var n;const s=this.getParent();(n=s==null?void 0:s._layout)!=null&&n.calculateLayout?s==null||s._layout.calculateLayout(e,t,i):this._layout.calculateLayout(e,t,i)}},g.FlexElement2D=VI([ne("FlexElement2D")],g.FlexElement2D);var zI=Object.defineProperty,WI=Object.getOwnPropertyDescriptor,ke=(r,A,e,t)=>{for(var i=t>1?void 0:t?WI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&zI(A,e,i),i};function Oe(r){return function(A,e){Object.defineProperty(A.constructor.prototype,e,{get(){return r!=null&&r.method?(...t)=>(this.context[e].call(this.context,...t),r.redraw&&this.requestRedraw(),A):this.context[e]},set(t){this.context[e]=t},configurable:!0,enumerable:!0})}}g.Graphics2D=class extends g.Node2D{constructor(){super(...arguments);u(this,"_resetContext",!1);u(this,"lineCap");u(this,"lineJoin");u(this,"fillStyle");u(this,"strokeStyle");u(this,"lineWidth");u(this,"miterLimit")}drawCircle(e,t,i){return this.arc(e+i,t+i,i,0,it),this.fill(),this}drawEllipse(e,t,i,s){const n=i/2,o=s/2;return this.ellipse(e+n,t+o,n,o,0,0,it),this.fill(),this}},ke([Oe()],g.Graphics2D.prototype,"lineCap",2),ke([Oe()],g.Graphics2D.prototype,"lineJoin",2),ke([Oe()],g.Graphics2D.prototype,"fillStyle",2),ke([Oe()],g.Graphics2D.prototype,"strokeStyle",2),ke([Oe()],g.Graphics2D.prototype,"lineWidth",2),ke([Oe()],g.Graphics2D.prototype,"miterLimit",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"rect",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"fillRect",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"strokeRect",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"roundRect",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"ellipse",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"arc",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"beginPath",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"moveTo",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"lineTo",2),ke([Oe({method:!0})],g.Graphics2D.prototype,"closePath",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"fill",2),ke([Oe({method:!0,redraw:!0})],g.Graphics2D.prototype,"stroke",2),g.Graphics2D=ke([ne("Graphics2D")],g.Graphics2D);var qI=Object.defineProperty,XI=Object.getOwnPropertyDescriptor,tr=(r,A,e,t)=>{for(var i=t>1?void 0:t?XI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&qI(A,e,i),i};g.Image2D=class extends g.Element2D{constructor(e,t=[]){super();u(this,"texture");u(this,"_frameIndex",0);u(this,"_complete",!1);u(this,"_wait",Promise.resolve());this.setProperties(e),this.append(t)}get currentFrameTexture(){var e,t;return(t=(e=this.texture)==null?void 0:e.frames[this._frameIndex])==null?void 0:t.texture}get textureDuration(){var e;return((e=this.texture)==null?void 0:e.duration)??0}get naturalWidth(){var e;return((e=this.currentFrameTexture)==null?void 0:e.realWidth)??0}get naturalHeight(){var e;return((e=this.currentFrameTexture)==null?void 0:e.realHeight)??0}get complete(){return this._complete}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._wait=this._load(t);break;case"srcRect":this.requestRedraw();break}}decode(){return this._wait}setResource(e){let t;if(e instanceof Cr?t=e:t=new Cr(e),this.texture=t.updateDuration(),this.currentFrameTexture&&(!this.style.width||!this.style.height)){const i=this.currentFrameTexture;this.style.width=i.realWidth,this.style.height=i.realHeight}return this}async _load(e){if(this._complete=!1,e)try{this.setResource(this.gif||e!=null&&e.includes(".gif")?await Gt.gif.load(e):await Gt.texture.load(e)),this.requestRedraw(),this.emit("load")}catch(t){console.warn(t),this.emit("error",t)}else this.texture=void 0;this._complete=!0}_getFrameCurrentTime(){const e=this.textureDuration;if(!e||!this._tree)return 0;const t=this._currentTime;return t<0?0:t%e}_updateFrameIndex(){if(!this.texture)return this;const e=this._getFrameCurrentTime(),t=this.texture.frames,i=t.length;if(i<=1&&this._frameIndex===0)return this;let s=i-1;for(let n=0,o=0;o<i;o++)if(n+=t[o].duration??0,n>=e){s=o;break}return this._frameIndex!==s&&(this._frameIndex=s,this.requestRedraw()),this}_process(e){this._updateFrameIndex(),super._process(e)}_drawContent(){const e=this.currentFrameTexture;if(e!=null&&e.valid){const{left:t=0,top:i=0,right:s=0,bottom:n=0}=this.srcRect??{},{width:o,height:a}=this.size;this.context.fillStyle=e;const l=Math.abs(1+(t+s))*o,c=Math.abs(1+(i+n))*a,h=1/l,f=1/c,I=t*o*h,d=i*a*f;this.context.uvTransform=new ht().scale(h,f).translate(I,d),this.shape.draw(),this.context.fill()}}_repaint(e){return super._repaint(e).map(t=>({...t,disableWrapMode:!0}))}},tr([Ie()],g.Image2D.prototype,"texture",2),tr([M({default:""})],g.Image2D.prototype,"src",2),tr([M()],g.Image2D.prototype,"srcRect",2),tr([M({default:!1})],g.Image2D.prototype,"gif",2),g.Image2D=tr([ne("Image2D")],g.Image2D);class Zr extends g.Element2D{constructor(e,t=[]){super();u(this,"texture");this.setProperties(e).append(t)}_drawContent(){var e;if((e=this.texture)!=null&&e.valid){const{width:t,height:i}=this.size;this.context.fillStyle=this.texture,this.context.uvTransform=new ht().scale(1/t,1/i),this.shape.drawRect(),this.context.fill()}}}var jI=Object.defineProperty,ZI=Object.getOwnPropertyDescriptor,nc=(r,A,e,t)=>{for(var i=t>1?void 0:t?ZI(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&jI(A,e,i),i};g.Lottie2D=class extends Zr{constructor(e,t=[]){super();u(this,"texture",new YA);u(this,"animation");this.setProperties(e),this.append(t)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._load();break}}_updateStyleProperty(e,t,i){switch(super._updateStyleProperty(e,t,i),e){case"width":this.texture.width=this.style.width;break;case"height":this.texture.height=this.style.height;break}}async _load(){this.animation=await Gt.lottie.load(this.src,this.texture.source),this.duration=this.animation.getDuration(!1)*1e3,this.texture.requestUpload(),this.requestRedraw()}_process(e){var t;(t=this.animation)==null||t.goToAndStop(this.currentTime,!1),this.texture.requestUpload(),this.requestRedraw(),super._process(e)}},nc([M({default:""})],g.Lottie2D.prototype,"src",2),g.Lottie2D=nc([ne("Lottie2D")],g.Lottie2D);var $I=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,ui=(r,A,e,t)=>{for(var i=t>1?void 0:t?ep(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&$I(A,e,i),i};const tp=new Set(Object.keys(Wn));g.Text2D=class extends Zr{constructor(e,t=[]){super();u(this,"texture",new YA);u(this,"base",new zl);u(this,"measureResult");u(this,"_subTextsCount",0);this.setProperties(e),this.append(t),e!=null&&e.plugins&&e.plugins.forEach(i=>{this.base.use(i)})}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"content":case"effects":case"measureDOM":case"fonts":case"split":this._updateSplit(),this.requestRedraw();break}this._subTextsCount&&e==="effects"&&this._getSubTexts().forEach(n=>{n.setProperties({[e]:t})})}_updateBase(){this.base.style=this.style.toJSON(),this.emit("updateBase",this.base),this.base.requestUpdate()}_updateStyleProperty(e,t,i){switch(e){case"left":case"top":case"width":case"height":this.requestRedraw();break;default:super._updateStyleProperty(e,t,i);break}switch(e){case"width":this.split&&this._updateSubTexts();break}typeof e=="string"&&tp.has(e)&&(this._subTextsCount&&e!=="width"&&e!=="height"&&this._getSubTexts().forEach(s=>{s.style.setProperties({[e]:t})}),this.requestRedraw())}_getSubTexts(){return this.children.front.filter(e=>e instanceof g.Text2D)}_updateSubTexts(){var i;const e=this._getSubTexts();let t=0;this.split&&((i=this.updateMeasure().measureResult)==null||i.paragraphs.forEach(s=>{s.fragments.forEach(n=>{n.characters.forEach(o=>{const a=e[t];a&&(a.style.left=o.inlineBox.left,a.style.top=o.inlineBox.top),t++})})}))}measure(){return this._updateBase(),this.base.measure()}updateMeasure(){this.measureResult=this.measure();const{boundingBox:e}=this.measureResult,{left:t,top:i}=this.style;return this.position.x=t+Math.min(0,e.left),this.position.y=i+Math.min(0,e.top),this.size.width=e.width,this.size.height=e.height,this}_updateSplit(){this._subTextsCount&&(this.children.front.forEach(e=>this.removeChild(e)),this._subTextsCount=0),this.split&&this.measure().paragraphs.forEach(e=>{e.fragments.forEach(t=>{t.characters.forEach(i=>{this.append(new g.Text2D({internalMode:"front",style:{...i.computedStyle,left:i.inlineBox.x,top:i.inlineBox.y,width:0,height:0},content:i.content,effects:this.effects,fonts:this.fonts})),this._subTextsCount++})})})}_redraw(){return this.updateMeasure(),super._redraw()}_drawContent(){this.split||(this.base.render({pixelRatio:this.texture.pixelRatio,view:this.texture.source}),this.texture.requestUpload(),super._drawContent())}},ui([M({default:!1})],g.Text2D.prototype,"split",2),ui([M({alias:"base.content"})],g.Text2D.prototype,"content",2),ui([M({alias:"base.effects"})],g.Text2D.prototype,"effects",2),ui([Ie({alias:"base.measureDOM"})],g.Text2D.prototype,"measureDOM",2),ui([Ie({alias:"base.fonts"})],g.Text2D.prototype,"fonts",2),g.Text2D=ui([ne("Text2D")],g.Text2D);var Ap=Object.defineProperty,ip=(r,A,e,t)=>{for(var i=void 0,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(A,e,i)||i);return i&&Ap(A,e,i),i};class Zn extends g.Element2D{constructor(A,e=[]){super(),this.setProperties(A).append(e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"width":case"height":this.requestRedraw();break}}_drawCircle(A,e){this.context.arc(A,e,this.handleSize,0,Math.PI*2,!0),this.context.fillStyle=_e.WHITE,this.context.fill(),this.context.arc(A,e,this.handleSize,0,Math.PI*2,!0),this.context.strokeStyle="rgba(0, 0, 0, 0.2)",this.context.stroke()}_drawEllipse(A,e){this.context.roundRect(A-this.handleSize,e-this.handleSize*2,this.handleSize*2,this.handleSize*4,this.handleSize),this.context.fillStyle=_e.WHITE,this.context.fill(),this.context.roundRect(A-this.handleSize,e-this.handleSize*2,this.handleSize*2,this.handleSize*4,this.handleSize),this.context.strokeStyle="rgba(0, 0, 0, 0.2)",this.context.stroke()}_draw(){const{width:A,height:e}=this.getRect();this.context.rect(0,0,A,e),this.context.strokeStyle="#00FF00",this.context.stroke(),this._drawCircle(0,0),this._drawCircle(A,e),this._drawCircle(0,e),this._drawEllipse(0,e/2),this._drawCircle(A,0),this._drawEllipse(A,e/2)}}ip([M({default:6})],Zn.prototype,"handleSize");var rp=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,oc=(r,A,e,t)=>{for(var i=t>1?void 0:t?sp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&rp(A,e,i),i};g.Video2D=class extends Zr{constructor(e,t=[]){super();u(this,"_wait",Promise.resolve());this.setProperties(e),this.append(t)}get videoDuration(){var e;return(((e=this.texture)==null?void 0:e.duration)??0)*1e3}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._wait=this._load(t);break}}waitLoad(){return this._wait}async _load(e){this.texture=await Gt.video.load(e),(!this.style.width||!this.style.height)&&(this.style.width=this.texture.width,this.style.height=this.texture.height),this.requestRedraw()}_updateVideoCurrentTime(){let e=this._currentTime;if(e<0)return;const t=this.texture;if(!t)return;const i=t.duration;e=i?e%(i*1e3):0,!t.isPlaying&&!t.seeking&&(e=~~e/1e3,t.currentTime!==e&&(t.currentTime=e))}_process(e){this._updateVideoCurrentTime(),super._process(e)}},oc([M({default:""})],g.Video2D.prototype,"src",2),g.Video2D=oc([ne("Video2D")],g.Video2D);var np=Object.defineProperty,op=Object.getOwnPropertyDescriptor,Ar=(r,A,e,t)=>{for(var i=t>1?void 0:t?op(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&np(A,e,i),i};const ac=r=>r,lc=fi(.25,.1,.25,1),cc=fi(.42,0,1,1),hc=fi(0,0,.58,1),gc=fi(.42,0,.58,1);function fi(r,A,e,t){const s=3*r-3*e+1,n=3*e-6*r,o=3*r,a=3*A-3*t+1,l=3*t-6*A,c=3*A,h=C=>(3*s*C+2*n)*C+o,f=C=>((s*C+n)*C+o)*C,I=C=>((a*C+l)*C+c)*C;function d(C){let p=C,x,P;for(let v=0;v<8;v++){if(P=f(p)-C,Math.abs(P)<1e-6)return p;if(x=h(p),Math.abs(x)<1e-6)break;p-=P/x}let w=1,R=0;for(p=C;w>R;){if(P=f(p)-C,Math.abs(P)<1e-6)return p;P>0?w=p:R=p,p=(w+R)/2}return p}return C=>I(d(C))}const $r={linear:ac,ease:lc,easeIn:cc,easeOut:hc,easeInOut:gc};g.Animation=class extends g.TimelineNode{constructor(e,t=[]){super();u(this,"easing");u(this,"_keyframes",[]);u(this,"_isFirstUpdatePosition",!1);u(this,"_cachedProps",new xs);u(this,"_stoped",!1);this.setProperties(e).append(t)}_parented(e){super._parented(e),this._updateCachedProps()}_unparented(e){super._unparented(e),this.cancel()}_process(){this.canProcess()&&this.commitStyles()}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"effectMode":case"keyframes":this._updateKeyframes();break}}_getTargets(){var t;let e;switch(this.effectMode){case"sibling":e=((t=this.getParent())==null?void 0:t.children.internal.filter(i=>i instanceof g.CanvasItem))??[];break;case"parent":default:e=[this.getParent()].filter(Boolean);break}return e.map(i=>i.style)}_updateKeyframes(){const e=[],t=this.keyframes;for(let n=t.length,o=0;o<n;o++){const{offset:a=o===0?0:o/(n-1),easing:l="linear",...c}=t[o];e.push({offset:a,easing:this._parseEasing(l),props:c})}const i=e[0],s=e[e.length-1];i&&i.offset!==0&&e.unshift({offset:0,easing:this._parseEasing("linear"),props:{}}),s&&s.offset!==1&&e.push({offset:1,easing:this._parseEasing("linear"),props:{}}),this._keyframes=e,this._updateCachedProps()}commitStyles(){if(!this.keyframes.length)return;if(this._updateCurrentTime(),this.isInsideTimeRange())this._isFirstUpdatePosition||(this._isFirstUpdatePosition=!0,this._updateCachedProps());else{if(!this._isFirstUpdatePosition)return;this._isFirstUpdatePosition=!1}const e=this._getTargets(),t=1/e.length,i=this.currentTimeProgress;e.forEach((s,n)=>{const o=t===1?i:zt(0,Math.max(0,i-t*n)/t,1),a=this._cachedProps.get(s);if(!a)return;const l=this._parseKeyframes(o,a);l!=null&&l.length&&this._commitStyle(o,s,a,l[0],l[1])})}_updateCachedProps(){this.cancel(),this._getTargets().forEach(e=>{const t=new Map,i=this._keyframes;for(let s=i.length,n=0;n<s;n++)Object.keys(i[n].props).forEach(o=>{t.set(o,e[o])});this._cachedProps.set(e,t)})}_parseEasing(e){if(!e)return $r.linear;if(e in $r)return $r[e];const t=e.replace(/cubic-bezier\((.+)\)/,"$1").split(",").map(i=>Number(i));return fi(t[0],t[1],t[2],t[3])}_parseKeyframes(e,t){let i;const s=this._keyframes;for(let n=s.length,o=0;o<n;o++){const a=s[o],{offset:l,easing:c}=a,h={...a.props};if(i&&e<=l){const{offset:f,easing:I}=i,d={...i.props};return t.forEach((C,p)=>{(!(p in d)||d[p]===null)&&(d[p]=C),(!(p in h)||h[p]===null)&&(h[p]=C)}),[{offset:f,easing:I,props:d},{offset:l,easing:c,props:h}]}i=a}return null}_commitStyle(e,t,i,s,n){const{offset:o,easing:a,props:l}=s,{offset:c,props:h}=n,f=c-o,I=a((e-o)/f),d={width:t.width,height:t.height,fontSize:t.fontSize};i.forEach((C,p)=>{t[p]=this._getDiffValue(p,l[p],h[p],I,d)})}_getDiffValue(e,t,i,s,n){let o,a;if(t==="none"&&(t=void 0),i==="none"&&(i=void 0),t===void 0||i===void 0)if(t!==void 0)o=Ci(e,String(t),n),a=ks(o);else if(i!==void 0)a=Ci(e,String(i),n),o=ks(a);else return;else o=Ci(e,String(t),n),a=Ci(e,String(i),n);if(Array.isArray(o)&&Array.isArray(a)){const l=new Set,c={},h={};o.forEach(({name:I,args:d})=>{c[I]=d,l.add(I)}),a.forEach(({name:I,args:d})=>{h[I]=d,l.add(I)});let f="";return l.forEach(I=>{var x,P;const d=Math.max(((x=c[I])==null?void 0:x.length)??0,((P=h[I])==null?void 0:P.length)??0),C=c[I],p=h[I];f+=`${I}(${Array.from({length:d},(w,R)=>{const v=C==null?void 0:C[R],m=p==null?void 0:p[R],b=(v==null?void 0:v.normalizedIntValue)??0,D=(m==null?void 0:m.normalizedIntValue)??0;return Number.isNaN(b)||Number.isNaN(D)?(m==null?void 0:m.value)??0:Me(b,D,s)}).join(", ")}) `}),f}else if(!Array.isArray(o)&&!Array.isArray(a))return Number.isNaN(o.normalizedIntValue)||Number.isNaN(a.normalizedIntValue)?a.value:Me(o.normalizedIntValue,a.normalizedIntValue,s)}isPlaying(){return!this.paused&&this.isInsideTimeRange()}play(){return this._stoped?(this._stoped=!1,this.startTime=this.timelineCurrentTime):this.startTime=this.timelineCurrentTime-this.currentTime,this.paused=!1,!0}pause(){return this.paused=!0,!0}stop(){return this._stoped=!0,this.paused=!0,this._currentTime=0,!0}cancel(){this._getTargets().forEach(e=>{var t;(t=this._cachedProps.get(e))==null||t.forEach((i,s)=>{e[s]=i}),this._cachedProps.delete(e)})}},Ar([M({default:"parent"})],g.Animation.prototype,"effectMode",2),Ar([M({default:!1})],g.Animation.prototype,"loop",2),Ar([M({default:()=>[]})],g.Animation.prototype,"keyframes",2),Ar([M()],g.Animation.prototype,"easing",2),g.Animation=Ar([ne("Animation",{renderMode:"disabled",processMode:"pausable",processSortMode:"parent_before",duration:2e3})],g.Animation);const ls=class ls extends Jt{constructor(){super(...arguments);u(this,"playbackRate",1);u(this,"muted",!1);u(this,"volume",1);u(this,"paused",!1)}static get instance(){return this._instance||(this._instance=new ls),this._instance}refresh(){this.emit("refresh")}refreshPaused(){this.emit("refreshPaused")}get processors(){return console.warn("HTML Audio does not support processors"),[]}set processors(e){console.warn("HTML Audio does not support processors")}get audioContext(){return console.warn("HTML Audio does not support audioContext"),null}toggleMute(){return this.muted=!this.muted,this.refresh(),this.muted}togglePause(){return this.paused=!this.paused,this.refreshPaused(),this.paused}free(){this.removeAllListeners()}};u(ls,"_instance");let es=ls;const rr=class rr extends Jt{constructor(){super(...arguments);u(this,"_source",null);u(this,"_audio",null);u(this,"_end",0);u(this,"_pausedReal",!1);u(this,"_duration",0);u(this,"_start",0);u(this,"_playing",!1);u(this,"_paused",!1);u(this,"_playbackRate",1);u(this,"_volume",1);u(this,"_loop",!1);u(this,"_muted",!1);u(this,"_onUpdate",()=>{this._source&&(this.emit("progress",this.progress,this._duration),this._source.currentTime>=this._end&&!this._source.loop&&this._onComplete())})}get progress(){var e;return(((e=this._source)==null?void 0:e.currentTime)??0)/this._duration}get paused(){return this._paused}set paused(e){this._paused!==e&&(this._paused=e,this.refreshPaused())}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate!==e&&(this._playbackRate=e,this.refresh())}get volume(){return this._volume}set volume(e){this._volume!==e&&(this._volume=e,this.refresh())}get loop(){return this._loop}set loop(e){this._loop!==e&&(this._loop=e,this.refresh())}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.refresh())}set(e,t){if(this[e]===void 0)throw new Error(`Property with name ${e} does not exist.`);switch(e){case"playbackRate":this.playbackRate=t;break;case"volume":this.volume=t;break;case"paused":this.paused=t;break;case"loop":this.loop=t;break;case"muted":this.muted=t;break}return this}_onPlay(){this._playing=!0}_onPause(){this._playing=!1}init(e){this._playing=!1,this._duration=e.source.duration;const t=this._source=e.source.cloneNode(!1);return t.src=e.parent.src,t.onplay=this._onPlay.bind(this),t.onpause=this._onPause.bind(this),e.context.on("refresh",this.refresh),e.context.on("refreshPaused",this.refreshPaused),this._audio=e,this}_stop(){this._source&&this._playing&&(this._source.onended=null,this._source.pause())}stop(){this._stop(),this._source&&this.emit("stop")}get processors(){return console.warn("HTML Audio does not support processors"),[]}set processors(e){console.warn("HTML Audio does not support processors")}refresh(){if(!this._audio||!this._source)return;const e=this._audio.context,t=this._audio.parent;this._source.loop=this._loop||t.loop;const i=e.volume*(e.muted?0:1),s=t.volume*(t.muted?0:1),n=this._volume*(this._muted?0:1);this._source.volume=n*i*s,this._source.playbackRate=this._playbackRate*e.playbackRate*t.playbackRate}refreshPaused(){if(!this._source||!this._audio)return;const e=this._paused||this._audio.parent.paused||this._audio.context.paused;e!==this._pausedReal&&(this._pausedReal=e,e?(this._stop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._source.currentTime,end:this._end,volume:this._volume,playbackRate:this._playbackRate,loop:this._loop})),this.emit("pause",e))}play(e={}){if(!this._source)return;const{start:t=0,end:i=0}=e;i&&console.assert(i>t,"End time is before start time"),e.playbackRate!==void 0&&(this._playbackRate=e.playbackRate),e.volume!==void 0&&(this._volume=e.volume),e.loop!==void 0&&(this._loop=e.loop),e.muted!==void 0&&(this._muted=e.muted),this.refresh(),this.loop&&i!==null&&(console.warn('Looping not support when specifying an "end" time'),this.loop=!1),this._start=t,this._end=i||this._duration,this._start=Math.max(0,this._start-rr.PADDING),this._end=Math.min(this._end+rr.PADDING,this._duration),this._source.onloadedmetadata=()=>{this._source&&(this._source.currentTime=t,this._source.onloadedmetadata=null,this.emit("progress",t,this._duration),Se.on(this._onUpdate))},this._source.onended=this._onComplete.bind(this),this._source.play(),this.emit("start")}_onComplete(){Se.off(this._onUpdate),this._stop(),this.emit("progress",1,this._duration),this.emit("end",this)}free(){Se.off(this._onUpdate),this.removeAllListeners();const e=this._source;e&&(e.onended=null,e.onplay=null,e.onpause=null,this._stop()),this._source=null,this._playbackRate=1,this._volume=1,this._loop=!1,this._end=0,this._start=0,this._duration=0,this._playing=!1,this._pausedReal=!1,this._paused=!1,this._muted=!1,this._audio&&(this._audio.context.off("refresh",this.refresh),this._audio.context.off("refreshPaused",this.refreshPaused),this._audio=null)}};u(rr,"PADDING",.1);let ts=rr;class uc{constructor(A){u(this,"source",new globalThis.Audio);u(this,"_src","");this.parent=A}get src(){return this._src}set src(A){this._src!==A&&(this._src=A,this.load())}get duration(){return this.source.duration}get isPlayable(){return!!this.source&&this.source.readyState===4}get context(){return es.instance}async load(){return new Promise(A=>{this.source.onload=()=>A(this),this.source.src=this._src,this.source.load()})}createSound(){return new ts}}class $n extends Jt{constructor(e,t){super();u(this,"_processers",[]);this._input=e,this._output=t}get processors(){return this._processers}set processors(e){if(this._processers.forEach(t=>t.disconnect()),this._processers.length=0,this._input.connect(this._output),e.length){this._processers=e.slice(0),this._input.disconnect();let t;e.forEach(i=>{t?t.connect(i.destination):this._input.connect(i.destination),t=i}),t.connect(this._output)}}get destination(){return this._input}}class ap{constructor(A,e=null){this.destination=A,this.source=e}connect(A){var e;(e=this.source)==null||e.connect(A)}disconnect(){var A;(A=this.source)==null||A.disconnect()}}function lp(){if(Ns)return new AudioContext;if(Fs){const r=globalThis.webkitAudioContext;return new r}else throw new Error("Failed to createAudioContext")}function cp(r,A,e){if(Ts)return new OfflineAudioContext(r,A,e);if(Lo){const t=globalThis.webkitOfflineAudioContext;return new t(r,A,e)}else throw new Error("Failed to createOfflineAudioContext")}const cs=class cs extends $n{constructor(){const e=lp(),t=cp(1,2,Ts?Math.max(8e3,Math.min(96e3,e.sampleRate)):44100),i=e.createDynamicsCompressor(),s=e.createAnalyser();s.connect(i),i.connect(e.destination);super(s,i);u(this,"_context");u(this,"_offlineContext");u(this,"_locked");u(this,"muted",!1);u(this,"volume",1);u(this,"playbackRate",1);u(this,"autoPause",!0);u(this,"_paused",!1);u(this,"_pausedOnBlur",!1);u(this,"_compressor");u(this,"_analyser");u(this,"_unlock",()=>{this._locked&&(this.playEmptySound(),this._context.state==="running"&&(document.removeEventListener("mousedown",this._unlock,!0),document.removeEventListener("touchend",this._unlock,!0),document.removeEventListener("touchstart",this._unlock,!0),this._locked=!1))});this._context=e,this._offlineContext=t,this._compressor=i,this._analyser=s,this._locked=e.state==="suspended"&&(Kt||Go),yi&&(this._locked&&(this._unlock(),document.addEventListener("mousedown",this._unlock,!0),document.addEventListener("touchstart",this._unlock,!0),document.addEventListener("touchend",this._unlock,!0)),globalThis.addEventListener("focus",this._onFocus),globalThis.addEventListener("blur",this._onBlur))}static get instance(){return this._instance||(this._instance=new cs),this._instance}static get audioContext(){return this.instance.audioContext}static get offlineContext(){return this.instance.offlineContext}static setParamValue(e,t){this.instance.setParamValue(e,t)}static decode(e){return this.instance.decode(e)}get audioContext(){return this._context}get offlineContext(){return this._offlineContext}get paused(){return this._paused}set paused(e){e&&this._context.state==="running"?this._context.suspend():!e&&this._context.state==="suspended"&&this._context.resume(),this._paused=e}_onFocus(){if(!this.autoPause)return;const e=this._context.state;(e==="suspended"||e==="interrupted"||!this._locked)&&(this.paused=this._pausedOnBlur,this.refreshPaused())}_onBlur(){this.autoPause&&(this._locked||(this._pausedOnBlur=this._paused,this.paused=!0,this.refreshPaused()))}playEmptySound(){const e=this._context.createBufferSource();e.buffer=this._context.createBuffer(1,1,22050),e.connect(this._context.destination),e.start(0,0,0),e.context.state==="suspended"&&e.context.resume()}refresh(){this.emit("refresh")}refreshPaused(){this.emit("refreshPaused")}toggleMute(){return this.muted=!this.muted,this.refresh(),this.muted}togglePause(){return this.paused=!this.paused,this.refreshPaused(),this._paused}decode(e){return new Promise((t,i)=>{const s=o=>{i(new Error((o==null?void 0:o.message)||"Unable to decode file"))},n=this._offlineContext.decodeAudioData(e,t,s);n&&n.catch(s)})}setParamValue(e,t){e.setValueAtTime?e.setValueAtTime(t,this._context.currentTime):e.value=t}};u(cs,"_instance");let IA=cs;class fc extends Jt{constructor(){super(...arguments);u(this,"_audio",null);u(this,"_sourceNode",null);u(this,"_gain",null);u(this,"_progress",0);u(this,"_pausedReal",!1);u(this,"_paused",!1);u(this,"_volume",1);u(this,"_playbackRate",1);u(this,"_loop",!1);u(this,"_muted",!1);u(this,"_duration",0);u(this,"_end",0);u(this,"_elapsed",0);u(this,"_lastUpdate",this._now());u(this,"_processors",[]);u(this,"_onComplete",()=>{if(this._sourceNode){this._enableTicker(!1),this._sourceNode.onended=null,this._sourceNode.disconnect();try{this._sourceNode.buffer=null}catch(e){console.warn("Failed to set AudioBufferSourceNode.buffer to null:",e)}}this._sourceNode=null,this._progress=1,this.emit("progress",1,this._duration),this.emit("end",this)});u(this,"_updateListener",()=>this._update())}get progress(){return this._progress}get paused(){return this._paused}set paused(e){this._paused!==e&&(this._paused=e,this.refreshPaused())}get volume(){return this._volume}set volume(e){this._volume!==e&&(this._volume=e,this.refresh())}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate!==e&&(this._playbackRate=e,this.refresh(),this._update(!0))}get loop(){return this._loop}set loop(e){this._loop!==e&&(this._loop=e,this.refresh())}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.refresh())}init(e){return this._audio=e,e.context.on("refresh",this.refresh),e.context.on("refreshPaused",this.refreshPaused),this}_now(){var e;return((e=this._audio)==null?void 0:e.context.audioContext.currentTime)??0}play(e={}){var o;if(!this._audio)return;const{end:t=0,start:i=0}=e;t&&console.assert(t>i,"End time is before start time"),this._end=t,this._elapsed=i,e.volume!==void 0&&(this._volume=e.volume),e.playbackRate!==void 0&&(this._playbackRate=e.playbackRate),e.muted!==void 0&&(this._muted=e.muted),e.loop!==void 0&&(this._loop=e.loop),e.processors!==void 0&&(this._processors=e.processors),this._paused=!1;const{source:s,gain:n}=this._audio.cloneSource();this._sourceNode=s,this._gain=n,this.refresh(),s.onended=this._onComplete.bind(this),this._duration=((o=s.buffer)==null?void 0:o.duration)??0,this._lastUpdate=this._now(),this._loop?(s.loopStart=i,s.loopEnd=t,s.start(0,i)):t?s.start(0,i,t-i):s.start(0,i),this.emit("start"),this._update(!0),this._enableTicker(!0)}_stop(){if(this._sourceNode){this._enableTicker(!1),this._sourceNode.onended=null,this._sourceNode.stop(0),this._sourceNode.disconnect();try{this._sourceNode.buffer=null}catch(e){console.warn("Failed to set AudioBufferSourceNode.buffer to null:",e)}this._sourceNode=null}}stop(){this._sourceNode&&(this._stop(),this.emit("stop"))}_update(e=!1){if(this._sourceNode){const t=this._now(),i=t-this._lastUpdate;if(i>0||e){this._elapsed+=i*this._sourceNode.playbackRate.value,this._lastUpdate=t;const s=this._duration;let n;if(this._sourceNode.loopStart){const o=this._sourceNode.loopEnd-this._sourceNode.loopStart;n=(this._sourceNode.loopStart+this._elapsed%o)/s}else n=this._elapsed%s/s;this._progress=n,this.emit("progress",n,s)}}}refresh(){if(!this._audio||!this._sourceNode)return;const e=this._audio.context,t=this._audio.parent;this._sourceNode.loop=this._loop||t.loop,e.setParamValue(this._gain.gain,this._volume*(this._muted?0:1)*t.volume*(t.muted?0:1)*e.volume*(e.muted?0:1)),e.setParamValue(this._sourceNode.playbackRate,this._playbackRate*t.playbackRate*e.playbackRate),this.applyProcessors()}applyProcessors(){if(this._sourceNode&&this._processors.length){this._sourceNode.disconnect();let e=this._sourceNode;this._processors.forEach(t=>{e.connect(t.destination),e=t}),e.connect(this._gain)}}refreshPaused(){if(!this._audio)return;const e=this._paused||this._audio.parent.paused||this._audio.context.paused;e!==this._pausedReal&&(this._pausedReal=e,e?(this._stop(),this.emit("paused")):(this.emit("resumed"),this.play({start:this._elapsed%this._duration,end:this._end,playbackRate:this._playbackRate,loop:this._loop,volume:this._volume})),this.emit("pause",e))}_enableTicker(e){Se.off(this._updateListener),e&&Se.on(this._updateListener)}free(){var e,t,i;this.removeAllListeners(),this._stop(),(e=this._gain)==null||e.disconnect(),this._gain=null,(t=this._audio)==null||t.context.off("refresh",this.refresh),(i=this._audio)==null||i.context.off("refreshPaused",this.refreshPaused),this._audio=null,this._processors.forEach(s=>s.disconnect()),this._processors.length=0,this._end=0,this._playbackRate=1,this._volume=1,this._loop=!1,this._elapsed=0,this._duration=0,this._paused=!1,this._muted=!1,this._pausedReal=!1}}class dc extends $n{constructor(e){const t=IA.audioContext,i=t.createBufferSource(),s=t.createGain(),n=t.createAnalyser();i.connect(n),n.connect(s),s.connect(IA.instance.destination);super(n,s);u(this,"_sourceBuffer");u(this,"_sourceNode");u(this,"_sourceLoad");u(this,"gain");u(this,"analyser");this.parent=e,this._sourceNode=i,this.gain=s,this.analyser=n}get context(){return IA.instance}get isPlayable(){return!!this._sourceNode.buffer}get duration(){var e;return((e=this._sourceNode.buffer)==null?void 0:e.duration)??0}get buffer(){return this._sourceNode.buffer}set buffer(e){this._sourceNode.buffer=e}async load(){return this._sourceLoad||(this._sourceLoad=new Promise(e=>{this._sourceBuffer?this._decode(this._sourceBuffer).then(()=>e(this)):this.parent.src?this._loadUrl(this.parent.src).then(()=>e(this)):e(this)})),this._sourceLoad}_loadUrl(e){return new Promise(t=>{fetch(e).then(i=>i.arrayBuffer()).then(i=>this._decode(i)).finally(()=>t(this))})}_decode(e){return Promise.resolve(e instanceof AudioBuffer?e:IA.decode(e)).then(t=>(this.parent.isLoaded=!0,this.buffer=t,t))}cloneSource(){const e=this.context,t=this._sourceNode,i=e.audioContext.createBufferSource(),s=e.audioContext.createGain();return i.buffer=t.buffer,i.loop=t.loop,e.setParamValue(i.playbackRate,t.playbackRate.value),i.connect(s),s.connect(this.destination),{source:i,gain:s}}createSound(){return new fc}}var hp=Object.defineProperty,gp=Object.getOwnPropertyDescriptor,up=(r,A,e)=>A in r?hp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,fp=(r,A,e,t)=>{for(var i=t>1?void 0:t?gp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},dp=(r,A,e)=>up(r,A+"",e);g.Audio=class extends g.TimelineNode{constructor(e=""){super();u(this,"_sounds",[]);u(this,"_platformAudio",Oo?new dc(this):new uc(this));u(this,"_src");u(this,"isLoaded",!1);u(this,"_volume",1);u(this,"_muted",!1);u(this,"_loop",!1);u(this,"_playbackRate",1);u(this,"_isPlaying",!1);u(this,"multiple",!1);u(this,"start",0);u(this,"end",0);u(this,"_onComplete",e=>{if(this._sounds){const t=this._sounds.indexOf(e);t>-1&&this._sounds.splice(t,1),this._isPlaying=this._sounds.length>0}this._recycleSound(e)});u(this,"_prevTime",0);u(this,"_timer",0);this.src=e}get platformAudio(){return this._platformAudio}get src(){return this._src}set src(e){this._src!==e&&(this._src=e,this.load())}get isPlayable(){return this.isLoaded&&this._platformAudio.isPlayable}get audioDuration(){return this._platformAudio.duration*1e3}get volume(){return this._volume}set volume(e){this._volume!==e&&(this._volume=e,this.refresh())}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.refresh())}get loop(){return this._loop}set loop(e){this._loop!==e&&(this._loop=e,this.refresh())}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate!==e&&(this._playbackRate=e,this.refresh())}get isPlaying(){return this._isPlaying}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"paused":this.refreshPaused();break}}async load(){return await this._platformAudio.load(),this}pause(){return this._isPlaying=!1,this.paused=!0,this}resume(){return this._isPlaying=this._sounds.length>0,this.paused=!1,this}stop(){if(!this.isPlayable)return this;this._isPlaying=!1;for(let e=this._sounds.length-1;e>=0;e--)this._sounds[e].stop();return this}play(e={}){if(!this.isLoaded)return;this.multiple||this._removeSounds(),this._isPlaying=!0;const t=this._createSound();this._sounds.push(t),t.once("end",()=>{var n;(n=e.complete)==null||n.call(e),this._onComplete(t)}),t.once("stop",()=>this._onComplete(t));const i=((e==null?void 0:e.start)??this.start)/1e3,s=((e==null?void 0:e.end)??this.end)/1e3;return t.play({...e,start:i,end:s}),t}_removeSounds(){for(let e=this._sounds.length-1;e>=0;e--)this._recycleSound(this._sounds[e]);this._sounds.length=0}_createSound(){return g.Audio._soundPool.length>0?g.Audio._soundPool.pop().init(this._platformAudio):this._platformAudio.createSound().init(this._platformAudio)}refresh(){for(let e=this._sounds.length,t=0;t<e;t++)this._sounds[t].refresh()}refreshPaused(){for(let e=this._sounds.length,t=0;t<e;t++)this._sounds[t].refreshPaused()}_recycleSound(e){e.free(),g.Audio._soundPool.includes(e)||g.Audio._soundPool.push(e)}_process(e){var t;if(super._process(e),this.canProcess()){const i=((t=this._tree)==null?void 0:t.timeline.currentTime)??0;i-this._prevTime>0&&(this._timer||(this._setTimeStop(),this.play({start:this.start+(i-this.delay)%this.duration})),this._isPlaying&&this._setTimeStop()),this._prevTime=i}}_setTimeStop(){this._timer&&clearTimeout(this._timer),this._timer=setTimeout(()=>{this.stop(),this._timer=0},100)}},dp(g.Audio,"_soundPool",[]),g.Audio=fp([ne("Audio")],g.Audio);class Ip extends g.Node2D{}var pp=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,As=(r,A,e,t)=>{for(var i=t>1?void 0:t?Ep(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&pp(A,e,i),i};g.AudioWaveform=class extends g.Element2D{constructor(e={}){super();u(this,"src");u(this,"gap",0);u(this,"color","#000000");u(this,"_audioBuffer");u(this,"_src",yi?new _e(document.createElement("canvas")):void 0);u(this,"_needsUpdateTexture",!1);this.setProperties(e)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"src":this._loadSrc(t);break;case"gap":case"color":case"width":case"height":this._needsUpdateTexture=!0;break}}async _loadSrc(e){await globalThis.fetch(e).then(t=>t.arrayBuffer()).then(t=>IA.decode(t)).then(t=>{this._audioBuffer=t,this.syncTexture(!0)})}syncTexture(e=!1){var h,f;const t=this._audioBuffer;if(!t||!e&&!this._needsUpdateTexture)return;this._needsUpdateTexture=!1;const i=(h=this._src)==null?void 0:h.source;if(!i)return;const{width:s=0,height:n=0}=this.style;i.width=s,i.height=n;const o=i.getContext("2d");if(!o){console.warn("Failed to getContext('2d') in syncTexture");return}o.fillStyle=this.color;const a=t.getChannelData(0),l=Math.ceil(a.length/s),c=n/2;for(let I=1,d=-1,C=0;C<s;C++){for(let p=0;p<l;p++){const x=a[C*l+p];x<I&&(I=x),x>d&&(d=x)}if(!this.gap||C%(this.gap*2)===0){const p=C,x=(1+I)*c,P=this.gap||1,w=Math.max(1,(d-I)*c);o.fillRect(p,x,P,w),I=1,d=-1}}(f=this._src)==null||f.requestUpload(),this.requestRedraw()}_process(e){this.syncTexture(),super._process(e)}_drawSrc(){const e=this._src;e!=null&&e.valid&&(this.context.fillStyle=e,this.context.uvTransform=new ht().scale(1/this.style.width,1/this.style.height))}},As([M()],g.AudioWaveform.prototype,"src",2),As([M()],g.AudioWaveform.prototype,"gap",2),As([M()],g.AudioWaveform.prototype,"color",2),g.AudioWaveform=As([ne("AudioWaveform")],g.AudioWaveform);var Bp=Object.getOwnPropertyDescriptor,Cp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Bp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.Control=class extends g.Element2D{constructor(A,e=[]){super(),this._parentUpdateRect=this._parentUpdateRect.bind(this),this.setProperties(A),this.append(e)}_parented(A){super._parented(A),A.on("updateRect",this._parentUpdateRect)}_unparented(A){super._unparented(A),A.off("updateRect",this._parentUpdateRect)}_parentUpdateRect(){const A=this._parent.getRect();this.style.left=A.left,this.style.top=A.top,this.style.width=A.width,this.style.height=A.height}_input(A,e){super._input(A,e),this._guiInput(A,e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"width":case"height":case"left":case"top":this.emit("updateRect");break}}_guiInput(A,e){}},g.Control=Cp([ne("Control")],g.Control);var Qp=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,pA=(r,A,e,t)=>{for(var i=t>1?void 0:t?yp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Qp(A,e,i),i};g.Range=class extends g.Control{constructor(A,e=[]){super(),this.setProperties(A).append(e)}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"allowGreater":case"allowLesser":case"page":case"minValue":case"maxValue":case"step":case"value":this.requestRedraw();break}}},pA([M({default:!1})],g.Range.prototype,"allowGreater",2),pA([M({default:!1})],g.Range.prototype,"allowLesser",2),pA([M({default:1})],g.Range.prototype,"page",2),pA([M({default:0})],g.Range.prototype,"minValue",2),pA([M({default:100})],g.Range.prototype,"maxValue",2),pA([M({default:.01})],g.Range.prototype,"step",2),pA([M({default:0})],g.Range.prototype,"value",2),g.Range=pA([ne("Range")],g.Range);var mp=Object.defineProperty,wp=Object.getOwnPropertyDescriptor,Tt=(r,A,e,t)=>{for(var i=t>1?void 0:t?wp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&mp(A,e,i),i};g.Ruler=class extends g.Control{constructor(e,t=[]){super();u(this,"texture",new YA);this.setProperties(e),this.append(t)}_updateProperty(e,t,i,s){switch(super._updateProperty(e,t,i,s),e){case"offsetX":case"offsetY":case"thickness":case"markHeight":case"color":case"markBackgroundColor":case"markColor":case"gap":case"scale":this.requestRedraw();break}}_updateStyleProperty(e,t,i,s){switch(super._updateStyleProperty(e,t,i,s),e){case"width":case"height":this.texture[e]=t,this.requestRedraw();break}}_drawTexture(){const{width:e,height:t}=this.size,{offsetX:i,offsetY:s,thickness:n,markHeight:o,markBackgroundColor:a,markColor:l,color:c,gap:h,gapScale:f}=this,d=this.texture.source.getContext("2d");d.reset(),d.scale(this.texture.pixelRatio,this.texture.pixelRatio);const C=Math.round(i),p=Math.round(s);d.beginPath(),d.fillStyle=a||"#EEE",d.fillRect(0,0,e,n),d.fillRect(0,0,n,t),d.fill(),d.strokeStyle=l||"#000",d.moveTo(n,0),d.lineTo(n,t),d.moveTo(0,n),d.lineTo(e,n),d.stroke();const x=h,P=h*f;let w,R,v,m,b;for(x>=P?(w=x/P,R=Math.floor(w)*x/20,v=x/20*Math.floor(w)/w):(w=P/x,R=Math.floor(x/20/w),R>=2?R=Math.floor(R/2)*2:R=1,v=R*w),d.fillStyle=d.strokeStyle,m=C,b=0;m<e;b++,m+=v)d.moveTo(m,n-(b%5?o:2*o)),d.lineTo(m,n);for(m=C,b=0;m>n;b++,m-=v)d.moveTo(m,n-(b%5?o:2*o)),d.lineTo(m,n);let D=0;for(m=p,b=0;m>n;b++,m-=v)d.moveTo(n-(b%5?o:2*o),m),d.lineTo(n,m);for(m=p,b=0;m<t;b++,m+=v)d.moveTo(n-(b%5?o:2*o),m),d.lineTo(n,m);for(d.save(),d.fillStyle=c,d.scale(.8,.8),D=n-8,m=C,b=0;m<e;b++,m+=v)b%10===0&&d.fillText(String(Math.ceil(R*b)),m*1.25-3,D*1.25);for(m=C,b=0;m>n;b++,m-=v)b%10===0&&d.fillText(String(Math.ceil(-R*b)),m*1.25-3,D*1.25);for(D=0,m=p,b=0;m>n;b++,m-=v)b%10===0&&d.fillText(String(Math.ceil(R*b)),D*1.25,m*1.25+3);for(m=p,b=0;m<t;b++,m+=v)b%10===0&&d.fillText(String(Math.ceil(-R*b)),D*1.25,m*1.25+3);d.restore(),d.stroke(),this.texture.requestUpload()}_draw(){this._drawTexture();const e=this.texture;e!=null&&e.valid&&(this.context.fillStyle=e,this.context.uvTransform=new ht().scale(1/this.size.width,1/this.size.height),this.context.rect(0,0,e.width,e.height),this.context.fill())}},Tt([M({default:0})],g.Ruler.prototype,"offsetX",2),Tt([M({default:0})],g.Ruler.prototype,"offsetY",2),Tt([M({default:20})],g.Ruler.prototype,"thickness",2),Tt([M({default:3})],g.Ruler.prototype,"markHeight",2),Tt([M({default:"#b2b6bc"})],g.Ruler.prototype,"color",2),Tt([M({default:"#f9f9fa"})],g.Ruler.prototype,"markBackgroundColor",2),Tt([M({default:"#b2b6bc"})],g.Ruler.prototype,"markColor",2),Tt([M({default:300})],g.Ruler.prototype,"gap",2),Tt([M({default:1})],g.Ruler.prototype,"gapScale",2),g.Ruler=Tt([ne("Ruler")],g.Ruler);var vp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,Ic=(r,A,e,t)=>{for(var i=t>1?void 0:t?_p(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&vp(A,e,i),i};g.ScrollBar=class extends g.Range{constructor(A,e=[]){super(),this.setProperties(A).append(e)}_updateStyleProperty(A,e,t,i){switch(super._updateStyleProperty(A,e,t,i),A){case"width":case"height":case"left":case"top":this.requestRedraw();break}}_rect(){const{size:A,position:e}=this;let t,i,s,n,o;return this.direction==="vertical"?(s=10,n=A.height*(this.page/(this.maxValue-this.minValue)),t=e.left+A.width-s,i=A.height*(this.value/(this.maxValue-this.minValue)),o=s/2):(s=A.width*(this.page/(this.maxValue-this.minValue)),n=10,t=A.width*(this.value/(this.maxValue-this.minValue)),i=e.top+A.height-n,o=n/2),{left:t,top:i,width:s,height:n,radii:o}}_draw(){const{left:A,top:e,width:t,height:i,radii:s}=this._rect();this.context.roundRect(A,e,t,i,s),this.context.fillStyle=34,this.context.fill()}_pointerInput(A,e){var a,l;const{left:t,top:i,width:s,height:n}=this._rect(),o=A.x>=t&&A.x<t+s&&A.y>=i&&A.y<i+n;switch(e){case"pointerdown":case"pointermove":o?(a=this._tree)==null||a.input.setCursor("pointer"):(l=this._tree)==null||l.input.setCursor(void 0);break}return!1}},Ic([M({default:"vertical"})],g.ScrollBar.prototype,"direction",2),g.ScrollBar=Ic([ne("ScrollBar")],g.ScrollBar);var bp=Object.getOwnPropertyDescriptor,Dp=(r,A,e,t)=>{for(var i=t>1?void 0:t?bp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.XScrollBar=class extends g.ScrollBar{constructor(A,e=[]){super(),this.setProperties(A).append(e)}},g.XScrollBar=Dp([ne("XScrollBar",{direction:"horizontal"})],g.XScrollBar);var xp=Object.getOwnPropertyDescriptor,Sp=(r,A,e,t)=>{for(var i=t>1?void 0:t?xp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i};g.YScrollBar=class extends g.ScrollBar{constructor(A,e=[]){super(),this.setProperties(A).append(e)}},g.YScrollBar=Sp([ne("YScrollBar",{direction:"vertical"})],g.YScrollBar);var Mp=Object.defineProperty,Rp=Object.getOwnPropertyDescriptor,is=(r,A,e,t)=>{for(var i=t>1?void 0:t?Rp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=(t?n(A,e,i):n(i))||i);return t&&i&&Mp(A,e,i),i};g.Scaler=class extends g.Node{get target(){var A;if((A=this.parent)!=null&&A.style)return this.parent}constructor(A,e=[]){super(),this.setProperties(A),this.append(e)}_updateProperty(A,e,t,i){switch(super._updateProperty(A,e,t,i),A){case"value":case"min":case"max":{this.value=zt(this.minValue,this.value,this.maxValue),this._updateScale();break}}}_updateScale(){const A=this.target;A&&(A.style.scaleX=this.value,A.style.scaleY=this.value,this.emit("updateScale",this.value))}_onWheel(A){if(!this.target)return;if(A.preventDefault(),!(A.wheelDeltaY?Math.abs(Math.abs(A.wheelDeltaY)-Math.abs(3*A.deltaY))<3:A.deltaMode===0)&&A.ctrlKey){A.preventDefault();let i=A.deltaY/(A.ctrlKey?1:100);i*=-.015,this.value+=i}}_input(A,e){switch(super._input(A,e),e){case"wheel":this._onWheel(A);break}}},is([M({default:1})],g.Scaler.prototype,"value",2),is([M({default:.05})],g.Scaler.prototype,"minValue",2),is([M({default:10})],g.Scaler.prototype,"maxValue",2),g.Scaler=is([ne("Scaler",{processMode:"disabled",renderMode:"disabled"})],g.Scaler);var Pp=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,Up=(r,A,e)=>A in r?Pp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Np=(r,A,e,t)=>{for(var i=t>1?void 0:t?kp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},Fp=(r,A,e)=>Up(r,A+"",e);g.KawaseTransition=class extends g.Transition{constructor(){super(...arguments);u(this,"blur",10);u(this,"quality",10)}apply(e,t){const i=this.currentTimeProgress;let s,n;i<.5?(s=0,n=(.5-i)/.5):(s=1,n=(i-.5)/.5);const o=this.blur,a=this.quality,l=t.width,c=t.height,h=[],f=[o];if(o>0){let P=o;const w=o/a;for(let R=1;R<a;R++)P-=w,f.push(P)}const I=1/l,d=1/c,C=[];let p;const x=a-1;for(let P=0;P<x;P++)p=f[P]+.5,C[0]=p*I,C[1]=p*d,h.push({offset:C});p=f[x]+.5,C[0]=p*I,C[1]=p*d,h.push({offset:C}),h.forEach(P=>{fe.draw(e,g.KawaseTransition.material,{sampler:s,progress:n,...P})})}},Fp(g.KawaseTransition,"material",new Ce({vert:`attribute vec2 position;
865
865
  attribute vec2 uv;
866
866
  varying vec2 vUv;
867
867
  void main() {
@@ -882,7 +882,7 @@ void main(void) {
882
882
  color += texture2D(sampler, vec2(vUv.x - offset1.x, vUv.y - offset1.y));
883
883
  color *= 0.25;
884
884
  gl_FragColor = color;
885
- }`})),g.KawaseTransition=Up([ne("KawaseTransition")],g.KawaseTransition);var Fp=Object.defineProperty,Tp=Object.getOwnPropertyDescriptor,Gp=(r,A,e)=>A in r?Fp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Lp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Tp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},Op=(r,A,e)=>Gp(r,A+"",e);g.LeftEraseTransition=class extends g.Transition{apply(A){fe.draw(A,g.LeftEraseTransition.material,{previous:0,next:1,progress:this.currentTimeProgress})}},Op(g.LeftEraseTransition,"material",new Ce({vert:`attribute vec2 position;
885
+ }`})),g.KawaseTransition=Np([ne("KawaseTransition")],g.KawaseTransition);var Tp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,Lp=(r,A,e)=>A in r?Tp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Op=(r,A,e,t)=>{for(var i=t>1?void 0:t?Gp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},Hp=(r,A,e)=>Lp(r,A+"",e);g.LeftEraseTransition=class extends g.Transition{apply(A){fe.draw(A,g.LeftEraseTransition.material,{previous:0,next:1,progress:this.currentTimeProgress})}},Hp(g.LeftEraseTransition,"material",new Ce({vert:`attribute vec2 position;
886
886
  attribute vec2 uv;
887
887
  varying vec2 vUv;
888
888
  void main() {
@@ -907,7 +907,7 @@ void main() {
907
907
  mixPercent = 1.0;
908
908
  }
909
909
  gl_FragColor = mix(src2Color, src1Color, mixPercent);
910
- }`})),g.LeftEraseTransition=Lp([ne("LeftEraseTransition")],g.LeftEraseTransition);var Hp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,Kp=(r,A,e)=>A in r?Hp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Yp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Jp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},Vp=(r,A,e)=>Kp(r,A+"",e);g.TiltShiftTransition=class extends g.Transition{constructor(){super(...arguments);u(this,"blur",100);u(this,"gradientBlur",600)}apply(e,t){const i=this.currentTimeProgress;let s,n;i<.5?(s=0,n=(.5-i)/.5):(s=1,n=(i-.5)/.5);const o=t.width,a=t.height,l=[0,a/2],h=[600,a/2],c=[o,a],f=h[0]-l[0],I=h[1]-l[1],d=Math.sqrt(f*f+I*I);fe.draw(e,g.TiltShiftTransition.material,{sampler:s,progress:n,blur:this.blur,gradientBlur:this.gradientBlur,start:l,end:h,delta:[f/d,I/d],texSize:c}),fe.draw(e,g.TiltShiftTransition.material,{sampler:s,progress:n,blur:this.blur,gradientBlur:this.gradientBlur,start:l,end:h,delta:[-I/d,f/d],texSize:c})}},Vp(g.TiltShiftTransition,"material",new Ce({vert:`attribute vec2 position;
910
+ }`})),g.LeftEraseTransition=Op([ne("LeftEraseTransition")],g.LeftEraseTransition);var Jp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Yp=(r,A,e)=>A in r?Jp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Vp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Kp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},zp=(r,A,e)=>Yp(r,A+"",e);g.TiltShiftTransition=class extends g.Transition{constructor(){super(...arguments);u(this,"blur",100);u(this,"gradientBlur",600)}apply(e,t){const i=this.currentTimeProgress;let s,n;i<.5?(s=0,n=(.5-i)/.5):(s=1,n=(i-.5)/.5);const o=t.width,a=t.height,l=[0,a/2],c=[600,a/2],h=[o,a],f=c[0]-l[0],I=c[1]-l[1],d=Math.sqrt(f*f+I*I);fe.draw(e,g.TiltShiftTransition.material,{sampler:s,progress:n,blur:this.blur,gradientBlur:this.gradientBlur,start:l,end:c,delta:[f/d,I/d],texSize:h}),fe.draw(e,g.TiltShiftTransition.material,{sampler:s,progress:n,blur:this.blur,gradientBlur:this.gradientBlur,start:l,end:c,delta:[-I/d,f/d],texSize:h})}},zp(g.TiltShiftTransition,"material",new Ce({vert:`attribute vec2 position;
911
911
  attribute vec2 uv;
912
912
  varying vec2 vUv;
913
913
  void main() {
@@ -951,7 +951,7 @@ void main(void) {
951
951
  color.rgb /= color.a + 0.00001;
952
952
 
953
953
  gl_FragColor = color;
954
- }`})),g.TiltShiftTransition=Yp([ne("TiltShiftTransition")],g.TiltShiftTransition);var zp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,qp=(r,A,e)=>A in r?zp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,Xp=(r,A,e,t)=>{for(var i=t>1?void 0:t?Wp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},jp=(r,A,e)=>qp(r,A+"",e);g.TwistTransition=class extends g.Transition{constructor(){super(...arguments);u(this,"radius");u(this,"angle",4);u(this,"padding",20);u(this,"offset")}apply(e,t){const i=this.currentTimeProgress;let s,n;i<.5?(s=0,n=(.5-i)/.5):(s=1,n=(i-.5)/.5);const o=t.width,a=t.height;fe.draw(e,g.TwistTransition.material,{sampler:s,progress:n,filterArea:[o,a,0,0],radius:this.radius??o,angle:this.angle,padding:this.padding,offset:this.offset??[o/2,a/2]})}},jp(g.TwistTransition,"material",new Ce({vert:`attribute vec2 position;
954
+ }`})),g.TiltShiftTransition=Vp([ne("TiltShiftTransition")],g.TiltShiftTransition);var Wp=Object.defineProperty,qp=Object.getOwnPropertyDescriptor,Xp=(r,A,e)=>A in r?Wp(r,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[A]=e,jp=(r,A,e,t)=>{for(var i=t>1?void 0:t?qp(A,e):A,s=r.length-1,n;s>=0;s--)(n=r[s])&&(i=n(i)||i);return i},Zp=(r,A,e)=>Xp(r,A+"",e);g.TwistTransition=class extends g.Transition{constructor(){super(...arguments);u(this,"radius");u(this,"angle",4);u(this,"padding",20);u(this,"offset")}apply(e,t){const i=this.currentTimeProgress;let s,n;i<.5?(s=0,n=(.5-i)/.5):(s=1,n=(i-.5)/.5);const o=t.width,a=t.height;fe.draw(e,g.TwistTransition.material,{sampler:s,progress:n,filterArea:[o,a,0,0],radius:this.radius??o,angle:this.angle,padding:this.padding,offset:this.offset??[o/2,a/2]})}},Zp(g.TwistTransition,"material",new Ce({vert:`attribute vec2 position;
955
955
  attribute vec2 uv;
956
956
  varying vec2 vUv;
957
957
  void main() {
@@ -997,4 +997,4 @@ void main(void) {
997
997
  coord = twist(coord, radius - (progress * radius));
998
998
  coord = unmapCoord(coord);
999
999
  gl_FragColor = texture2D(sampler, coord);
1000
- }`})),g.TwistTransition=Xp([ne("TwistTransition")],g.TwistTransition);class Ih extends rA{install(A){const e=async t=>{const{decodeFrames:i}=await import("modern-gif");return await A.fetch(t).then(s=>s.arrayBuffer()).then(s=>i(s)).then(s=>new Cr(s.map(n=>({duration:n.delay,texture:new Ws(n.data,n.width,n.height)}))))};return this.load=t=>A.loadBy(t,()=>e(t)),["image/gif"].forEach(t=>{A.register(t,e)}),A.gif=this,this}}class ph extends rA{install(A){const e=t=>A.fetch(t).then(i=>i.json());return this.load=t=>A.loadBy(t,()=>e(t)),["json"].forEach(t=>{A.register(t,e)}),A.json=this,this}}class Eh extends rA{install(A){const e=async(t,i)=>(await import("lottie-web").then(n=>n.default)).loadAnimation({container:null,renderer:"canvas",rendererSettings:{context:i.getContext("2d")},loop:!1,autoplay:!1,animationData:await A.fetch(t).then(n=>n.json())});return this.load=(t,i)=>A.loadBy(t,()=>e(t,i)),["lottie"].forEach(t=>{A.register(t,e)}),A.lottie=this,this}}class Bh extends rA{install(A){const e=async t=>await A.fetch(t).then(i=>i.text());return this.load=t=>A.loadBy(t,()=>e(t)),A.text=this,this}}class Ch extends rA{install(A){const e=t=>A.fetchImageBitmap(t,{premultiplyAlpha:"premultiply"}).then(i=>new _e(i));return this.load=t=>A.loadBy(t,()=>e(t)),["image/gif","image/jpeg","image/png","image/tiff","image/vnd.wap.wbmp","image/x-icon","image/x-jng","image/x-ms-bmp","image/svg+xml","image/webp"].forEach(t=>{A.register(t,e)}),A.texture=this,this}}class Qh extends rA{install(A){const e=t=>new ma(t).load();return this.load=t=>A.loadBy(t,()=>e(t)),["video/3gpp","video/mpeg","video/quicktime","video/x-flv","video/x-mng","video/x-ms-asf","video/x-ms-wmv","video/x-msvideo","video/mp4"].forEach(t=>{A.register(t,e)}),A.video=this,this}}const Zp=Object.entries({"text/html":["html","htm","shtml"],"text/css":["css"],"text/xml":["xml"],"image/gif":["gif"],"image/jpeg":["jpeg","jpg"],"application/x-javascript":["js"],"application/atom+xml":["atom"],"application/rss+xml":["rss"],"text/mathml":["mml"],"text/plain":["txt"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/x-component":["htc"],"image/png":["png"],"image/tiff":["tif","tiff"],"image/vnd.wap.wbmp":["wbmp"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-ms-bmp":["bmp"],"image/svg+xml":["svg"],"image/webp":["webp"],"application/java-archive":["jar","war","ear"],"application/mac-binhex40":["hqx"],"application/msword":["doc"],"application/pdf":["pdf"],"application/postscript":["ps","eps","ai"],"application/rtf":["rtf"],"application/vnd.ms-excel":["xls"],"application/vnd.ms-powerpoint":["ppt"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/x-7z-compressed":["7z"],"application/x-cocoa":["cco"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-makeself":["run"],"application/x-perl":["pl","pm"],"application/x-pilot":["prc","pdb"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-sea":["sea"],"application/x-shockwave-flash":["swf"],"application/x-stuffit":["sit"],"application/x-tcl":["tcl","tk"],"application/x-x509-ca-cert":["der","pem","crt"],"application/x-xpinstall":["xpi"],"application/xhtml+xml":["xhtml"],"application/zip":["zip"],"application/octet-stream":["bin","exe","dll","deb","dmg","eot","iso","img","msi","msp","msm"],"audio/midi":["mid","midi","kar"],"audio/mpeg":["mp3"],"audio/ogg":["ogg"],"audio/x-realaudio":["ra"],"video/3gpp":["3gpp","3gp"],"video/mpeg":["mpeg","mpg"],"video/quicktime":["mov"],"video/x-flv":["flv"],"video/x-mng":["mng"],"video/x-ms-asf":["asx","asf"],"video/x-ms-wmv":["wmv"],"video/x-msvideo":["avi"],"video/mp4":["m4v","mp4"]});function $p(r){for(const[A,e]of Zp)if(e.includes(r))return A}async function eE(r){var e,t;let A;if(r.startsWith("data:"))A=(e=r.match(/^data:(.+?);/))==null?void 0:e[1];else if(r.startsWith("http")){const i=(t=r.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim();i&&(A=$p(i))}return A??await fetch(r).then(i=>i.headers.get("Content-Type"))??""}const rs="WeakRef"in globalThis;class yh{constructor(){u(this,"defaultHandler",A=>this.fetch(A));u(this,"_handlers",new Map);u(this,"_handleing",new Map);u(this,"_handled",new Map);u(this,"_gc",rs?new FinalizationRegistry(A=>{const e=this.get(A);e&&"free"in e&&e.free(),this._handled.delete(A)}):void 0);rs||Se.on(this.gc.bind(this),{sort:2})}use(A){return A.install(this),this}register(A,e){return this._handlers.set(A,e),this}fetch(A){return fetch(A)}_fixSVG(A){var a;let e;A.includes(";base64,")?e=atob(A.split(",")[1]):e=decodeURIComponent(A.split(",")[1]);const t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement,i=t.getAttribute("width"),s=t.getAttribute("height"),n=i&&/^[\d.]+$/.test(i),o=s&&/^[\d.]+$/.test(s);if(!n||!o){const l=(a=t.getAttribute("viewBox"))==null?void 0:a.split(" ").map(h=>Number(h));n||t.setAttribute("width",String(l?l[2]-l[0]:512)),o||t.setAttribute("height",String(l?l[3]-l[1]:512))}return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t.outerHTML)}`}async fetchImageBitmap(A,e){return A.startsWith("http")?await this.fetch(A).then(t=>t.blob()).then(t=>t.type==="image/svg+xml"?t.text().then(i=>this.fetchImageBitmap(this._fixSVG(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(i)}`),e)):createImageBitmap(t,e)):(A.startsWith("data:image/svg+xml;")&&(A=this._fixSVG(A)),new Promise(t=>{const i=new Image;i.src=A,i.onload=()=>{i.decode().finally(()=>{t(i)})}}).then(t=>createImageBitmap(t,e)))}get(A){let e=this._handled.get(A);return rs&&e instanceof WeakRef&&(e=e.deref(),e||this._handleing.delete(A)),e}set(A,e){let t=e;rs&&typeof e=="object"&&(this._gc.register(e,A),t=new WeakRef(e)),this._handled.set(A,t)}async loadBy(A,e){const t=this.get(A)??this._handleing.get(A);if(t)return t;const i=e().then(s=>(this.set(A,s),s)).finally(()=>{this._handleing.delete(A)});return this._handleing.set(A,i),i}async load(A,e){return this.loadBy(A,async()=>{const t=await eE(A);return(this._handlers.get(t)??this.defaultHandler)(A,e)})}async waitUntilLoad(){await Promise.all(Array.from(this._handleing.values()))}gc(){this._handled.forEach((A,e)=>{const t=this.get(e);t&&"free"in t&&t.free()}),this._handled.clear()}}const Gt=new yh().use(new fa).use(new Ih).use(new ph).use(new Eh).use(new Bh).use(new Ch).use(new Qh);class tE extends g.Control{constructor(){super();u(this,"_pointerStart");u(this,"_pointerOffset");u(this,"selected");u(this,"dragging");u(this,"hovered");u(this,"hover",new g.Element2D({name:"hover",internalMode:"back",style:{visibility:"hidden",outlineStyle:"solid",outlineColor:"#00FF00FF",outlineWidth:2,pointerEvents:"none"}}));u(this,"transformRect",new jn({name:"transformRect",internalMode:"back",style:{visibility:"hidden",pointerEvents:"none"}}));u(this,"scaler",new g.Scaler({internalMode:"back"}).on("updateScale",e=>{this.ruler.gapScale=e,this._updateScrollbars(),this._updateSelectionRect()}));u(this,"xScrollBar",new g.XScrollBar({internalMode:"back",style:{visibility:"hidden"}}));u(this,"yScrollBar",new g.YScrollBar({internalMode:"back",style:{visibility:"hidden"}}));u(this,"drawboard",new g.Element2D({name:"drawboard",style:{width:500,height:500,backgroundColor:"#FFFFFFFF",overflow:"hidden",pointerEvents:"none",boxShadow:"2px 2px 2px 1px rgba(0, 0, 0, 0.2)"}},[this.scaler]));u(this,"ruler",new g.Ruler({name:"ruler",offsetX:100,offsetY:100,style:{pointerEvents:"none"}},[this.drawboard,this.hover,this.transformRect,this.xScrollBar,this.yScrollBar]));this._onPointerdown=this._onPointerdown.bind(this),this._onPointermove=this._onPointermove.bind(this),this._onPointerup=this._onPointerup.bind(this),this.append(this.ruler)}_updateStyleProperty(e,t,i,s){switch(super._updateStyleProperty(e,t,i,s),e){case"width":this.drawboard.style.left=(this.size.width-this.drawboard.size.width)/2,this.ruler.offsetX=this.drawboard.style.left;break;case"height":this.drawboard.style.top=(this.size.height-this.drawboard.size.height)/2,this.ruler.offsetY=this.drawboard.style.top;break}}_guiInput(e,t){switch(super._guiInput(e,t),t){case"pointerdown":this._onPointerdown(e);break;case"pointermove":this._onPointermove(e);break;case"pointerup":this._onPointerup();break}}_onPointerdown(e){let t=e.target;t!=null&&t.is(this)&&(t=void 0),t!=null&&t.is(this.transformRect)&&(t=this.selected),this._pointerOffset={x:e.offsetX,y:e.offsetY},this.selected=t,this.dragging=t,t instanceof g.Element2D?this._pointerStart=t.style.clone():this._pointerStart=void 0,this._updateHover(),this._updateSelectionRect()}_onPointermove(e){let t=e.target;t!=null&&t.is(this)&&(t=void 0),t!=null&&t.is(this.transformRect)&&(t=this.selected);const{selected:i,dragging:s,_pointerStart:n,_pointerOffset:o}=this;i&&(t!=null&&t.is(i))?this.hovered=void 0:this.hovered=t;const a=o?{x:e.offsetX-o.x,y:e.offsetY-o.y}:{x:0,y:0};s&&n&&(s.style.left=n.left+a.x/this.scaler.value,s.style.top=n.top+a.y/this.scaler.value,s.update()),this._updateHover(),this._updateSelectionRect()}_onPointerup(){this.dragging=void 0,this._updateHover(),this._updateSelectionRect()}_copyGlobalTransform(e,t){e.style.visibility="visible",e.style.width=t.globalScale.x*t.size.x,e.style.height=t.globalScale.y*t.size.y,e.style.left=t.globalPosition.x,e.style.top=t.globalPosition.y,e.style.rotate=t.globalRotation,e.update()}_updateHover(){const e=this.hovered;e instanceof g.Element2D?(this.hover.style.visibility="visible",this._copyGlobalTransform(this.hover,e),this.hover.requestRedraw()):this.hover.style.visibility="hidden"}_updateSelectionRect(){this.selected?(this.transformRect.style.visibility="visible",this._copyGlobalTransform(this.transformRect,this.selected)):this.transformRect.style.visibility="hidden"}_updateScrollbars(){const e=this.ruler.gapScale,t=this.drawboard.size.height*e,i=this.drawboard.size.width*e;t>this.size.height?(this.yScrollBar.style.visibility="visible",this.yScrollBar.maxValue=t,this.yScrollBar.page=this.size.height):this.yScrollBar.style.visibility="hidden",i>this.size.width?(this.xScrollBar.style.visibility="visible",this.xScrollBar.maxValue=i,this.xScrollBar.page=this.size.width):this.xScrollBar.style.visibility="hidden"}}const mh={alpha:!0,stencil:!0,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};class wh extends Ni{constructor(e={}){var I,d;const{debug:t=!1,view:i,width:s,height:n,pixelRatio:o=Gs,backgroundColor:a=0,autoResize:l,autoStart:h,timeline:c,...f}=e;super(c);u(this,"renderer");u(this,"_resizeObserver",No?new ResizeObserver(e=>{const t=e[0];if(t.target===this.view){const{inlineSize:i,blockSize:s}=Array.isArray(t.contentBoxSize)?t.contentBoxSize[0]:t.contentBoxSize;this.resize(i,s)}}):void 0);this.debug=t,this.renderer=new ua(i,{...mh,...f}),this._setupInput(),this.pixelRatio=o,this.backgroundColor=a,l?(!i&&this.renderer.view&&(this.renderer.view.style.width="100%",this.renderer.view.style.height="100%"),this.enableAutoResize(l)):this.resize(s||this.gl.drawingBufferWidth||((I=this.view)==null?void 0:I.clientWidth)||200,n||this.gl.drawingBufferHeight||((d=this.view)==null?void 0:d.clientHeight)||200,!i),h&&this.start()}get view(){return this.renderer.view}get gl(){return this.renderer.gl}get screen(){return this.renderer.screen}get width(){return this.screen.width}get height(){return this.screen.height}get pixelRatio(){return this.renderer.pixelRatio}set pixelRatio(e){this.renderer.pixelRatio=e,this.resize(this.width,this.height),this.view&&(this.view.dataset.pixelRatio=String(e))}_setupInput(){return this.view&&(this.input.setTarget(this.view),["pointerdown","pointerover","pointermove","pointerup","wheel"].forEach(e=>{this.input.on(e,t=>{this.root.input(t,e),this.emit(e,t)})})),this}enableAutoResize(e=!0){var t,i;return this.view&&(e?(t=this._resizeObserver)==null||t.observe(this.view):(i=this._resizeObserver)==null||i.unobserve(this.view)),this}resize(e,t,i=!1){return this.renderer.resize(e,t,i),this.root.width=e,this.root.height=t,this.root.requestUpload(),this.render(),this}nextTick(){return Rs()}async waitUntilLoad(){await Gt.waitUntilLoad(),await this.nextTick()}async waitAndRender(e=0){await Gt.waitUntilLoad(),this._process(e),await this.nextTick(),this._render(this.renderer)}render(e=0){this._process(e),this._render(this.renderer)}async start(){await this.waitAndRender(),super.start(e=>{this._process(e),this._render(this.renderer)})}free(){super.free(),this.enableAutoResize(!1),this.renderer.free()}toPixels(){return this.renderer.toPixels()}toImageData(){return new ImageData(this.toPixels(),this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}toCanvas2D(){var s,n;const e=this.toImageData(),t=document.createElement("canvas");t.width=e.width,t.height=e.height,(s=t.getContext("2d"))==null||s.putImageData(e,0,0);const i=document.createElement("canvas");return i.width=this.width,i.height=this.height,(n=i.getContext("2d"))==null||n.drawImage(t,0,0,t.width,t.height,0,0,i.width,i.height),i}}let Lt;const $n=[];let eo=!1;async function AE(r=100){if(!eo){for(eo=!0;$n.length;){const A=$n.shift();if(A)try{await A()}catch(e){console.error(e)}else await new Promise(e=>setTimeout(e,r))}eo=!1}}async function iE(r){var n;const{data:A,width:e,height:t,debug:i=!1,time:s=0}=r;return Lt??(Lt=new wh({width:1,height:1,preserveDrawingBuffer:!0})),Lt.debug=i,Lt.root.removeChildren(),Lt.timeline.currentTime=s,Lt.resize(e,t,!0),(Array.isArray(A)?A:[A]).forEach(o=>{o instanceof g.Node?(o.parent=void 0,Lt.root.appendChild(o)):Lt.root.appendChild(g.Node.parse(o))}),await((n=r.onBeforeRender)==null?void 0:n.call(r,Lt)),await Lt.waitAndRender(),Lt.toCanvas2D()}async function rE(r){return new Promise(A=>{$n.push(async()=>A(await iE(r))),AE()})}g.AnimatedTexture=Cr,g.Assets=yh,g.AudioPipeline=Zn,g.AudioProcessor=op,g.AudioSpectrum=dp,g.BaseElement2DBackground=In,g.BaseElement2DFill=qe,g.BaseElement2DForeground=pn,g.BaseElement2DOutline=XA,g.BaseElement2DShadow=bA,g.BaseElement2DShape=DA,g.BaseElement2DStyle=Li,g.BaseElement2DText=UA,g.CanvasContext=rl,g.CanvasItemEditor=tE,g.CanvasTexture=YA,g.Color=Vt,g.ColorMatrix=Js,g.ColorTexture=Qa,g.CoreObject=iA,g.DEG_TO_RAD=Xo,g.DEVICE_PIXEL_RATIO=Gs,g.EffectMaterial=Br,g.Element2DStyle=qn,g.Engine=wh,g.EventEmitter=Jt,g.FlexElement2DStyle=Xl,g.FlexLayout=jr,g.FontLoader=fa,g.GIFLoader=Ih,g.Geometry=Er,g.GradientTexture=Qr,g.HTMLAudio=gh,g.HTMLAudioContext=es,g.HTMLSound=ts,g.IN_BROWSER=yi,g.ImageTexture=lg,g.IndexBuffer=HA,g.Input=Wo,g.InputEvent=Ir,g.JSONLoader=ph,g.Loader=rA,g.LottieLoader=Eh,g.MainLoop=pr,g.Material=Ce,g.Matrix=Mt,g.Matrix2=Vc,g.Matrix3=Ks,g.Matrix4=qo,g.MouseInputEvent=Hs,g.PI=dr,g.PI_2=it,g.PixelsTexture=Ws,g.PointerInputEvent=zo,g.Projection2D=Zo,g.QuadGeometry=eg,g.QuadUvGeometry=fe,g.RAD_TO_DEG=Kc,g.RawWeakMap=Os,g.Rect2=Ys,g.RefCounted=Mo,g.Renderer=ea,g.Resource=Yt,g.SUPPORTS_AUDIO_CONTEXT=Ns,g.SUPPORTS_CLICK_EVENTS=To,g.SUPPORTS_CREATE_IMAGE_BITMAP=Us,g.SUPPORTS_IMAGE_BITMAP=Uo,g.SUPPORTS_MOUSE_EVENTS=Lc,g.SUPPORTS_OFFLINE_AUDIO_CONTEXT=Ts,g.SUPPORTS_POINTER_EVENTS=LA,g.SUPPORTS_RESIZE_OBSERVER=No,g.SUPPORTS_TOUCH_EVENTS=Kt,g.SUPPORTS_WEBGL2=ko,g.SUPPORTS_WEBKIT_AUDIO_CONTEXT=Fs,g.SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT=Go,g.SUPPORTS_WEB_AUDIO=Lo,g.SUPPORTS_WHEEL_EVENTS=Fo,g.SceneTree=Ni,g.TextLoader=Bh,g.Texture2D=_e,g.TextureLoader=Ch,g.TextureRect2D=Zr,g.Ticker=Se,g.Transform2D=ct,g.TransformRect2D=jn,g.UvGeometry=rg,g.UvMaterial=JA,g.Vector=wt,g.Vector2=ut,g.Vector3=zc,g.Vector4=jo,g.VertexAttribute=ft,g.VertexBuffer=Wt,g.VideoLoader=Qh,g.VideoTexture=ma,g.ViewportTexture=Xs,g.WebAudio=fh,g.WebAudioContext=IA,g.WebGLBatch2DModule=ia,g.WebGLBlendMode=OA,g.WebGLBufferModule=ra,g.WebGLFramebufferModule=sa,g.WebGLMaskModule=na,g.WebGLModule=Ct,g.WebGLProgramModule=oa,g.WebGLRenderer=ua,g.WebGLScissorModule=aa,g.WebGLState=mA,g.WebGLStateModule=Aa,g.WebGLStencilModule=la,g.WebGLTextureModule=ha,g.WebGLVertexArrayModule=ca,g.WebGLViewportModule=ga,g.WebSound=uh,g.WheelInputEvent=mi,g.assets=Gt,g.clamp=zt,g.clampFrag=fl,g.createHTMLCanvas=Ko,g.createNode=Pc,g.crossOrigin=Vo,g.cubicBezier=fi,g.curves=Yc,g.customNode=ne,g.customNodes=fr,g.defaultOptions=mh,g.determineCrossOrigin=Yo,g.ease=ah,g.easeIn=lh,g.easeInOut=ch,g.easeOut=hh,g.frag=ul,g.getDefaultCssPropertyValue=ks,g.isCanvasElement=Ho,g.isElementNode=Ls,g.isImageElement=Oc,g.isPow2=Ps,g.isVideoElement=Oo,g.isWebgl2=Jo,g.lerp=Me,g.linear=oh,g.log2=zs,g.mapWebGLBlendModes=ta,g.nextPow2=Vs,g.nextTick=Rs,g.parseCSSFilter=Ia,g.parseCSSTransform=pa,g.parseCSSTransformOrigin=Ea,g.parseCssFunctions=Qi,g.parseCssProperty=Ci,g.protectedProperty=Be,g.render=rE,g.timingFunctions=$r,g.uid=Ro,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
1000
+ }`})),g.TwistTransition=jp([ne("TwistTransition")],g.TwistTransition);class pc extends rA{install(A){const e=async t=>{const{decodeFrames:i}=await import("modern-gif");return await A.fetch(t).then(s=>s.arrayBuffer()).then(s=>i(s)).then(s=>new Cr(s.map(n=>({duration:n.delay,texture:new Ws(n.data,n.width,n.height)}))))};return this.load=t=>A.loadBy(t,()=>e(t)),["image/gif"].forEach(t=>{A.register(t,e)}),A.gif=this,this}}class Ec extends rA{install(A){const e=t=>A.fetch(t).then(i=>i.json());return this.load=t=>A.loadBy(t,()=>e(t)),["json"].forEach(t=>{A.register(t,e)}),A.json=this,this}}class Bc extends rA{install(A){const e=async(t,i)=>(await import("lottie-web").then(n=>n.default)).loadAnimation({container:null,renderer:"canvas",rendererSettings:{context:i.getContext("2d")},loop:!1,autoplay:!1,animationData:await A.fetch(t).then(n=>n.json())});return this.load=(t,i)=>A.loadBy(t,()=>e(t,i)),["lottie"].forEach(t=>{A.register(t,e)}),A.lottie=this,this}}class Cc extends rA{install(A){const e=async t=>await A.fetch(t).then(i=>i.text());return this.load=t=>A.loadBy(t,()=>e(t)),A.text=this,this}}class Qc extends rA{install(A){const e=t=>A.fetchImageBitmap(t,{premultiplyAlpha:"premultiply"}).then(i=>new _e(i));return this.load=t=>A.loadBy(t,()=>e(t)),["image/gif","image/jpeg","image/png","image/tiff","image/vnd.wap.wbmp","image/x-icon","image/x-jng","image/x-ms-bmp","image/svg+xml","image/webp"].forEach(t=>{A.register(t,e)}),A.texture=this,this}}class yc extends rA{install(A){const e=t=>new wa(t).load();return this.load=t=>A.loadBy(t,()=>e(t)),["video/3gpp","video/mpeg","video/quicktime","video/x-flv","video/x-mng","video/x-ms-asf","video/x-ms-wmv","video/x-msvideo","video/mp4"].forEach(t=>{A.register(t,e)}),A.video=this,this}}const $p=Object.entries({"text/html":["html","htm","shtml"],"text/css":["css"],"text/xml":["xml"],"image/gif":["gif"],"image/jpeg":["jpeg","jpg"],"application/x-javascript":["js"],"application/atom+xml":["atom"],"application/rss+xml":["rss"],"text/mathml":["mml"],"text/plain":["txt"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/x-component":["htc"],"image/png":["png"],"image/tiff":["tif","tiff"],"image/vnd.wap.wbmp":["wbmp"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-ms-bmp":["bmp"],"image/svg+xml":["svg"],"image/webp":["webp"],"application/java-archive":["jar","war","ear"],"application/mac-binhex40":["hqx"],"application/msword":["doc"],"application/pdf":["pdf"],"application/postscript":["ps","eps","ai"],"application/rtf":["rtf"],"application/vnd.ms-excel":["xls"],"application/vnd.ms-powerpoint":["ppt"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/x-7z-compressed":["7z"],"application/x-cocoa":["cco"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-makeself":["run"],"application/x-perl":["pl","pm"],"application/x-pilot":["prc","pdb"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-sea":["sea"],"application/x-shockwave-flash":["swf"],"application/x-stuffit":["sit"],"application/x-tcl":["tcl","tk"],"application/x-x509-ca-cert":["der","pem","crt"],"application/x-xpinstall":["xpi"],"application/xhtml+xml":["xhtml"],"application/zip":["zip"],"application/octet-stream":["bin","exe","dll","deb","dmg","eot","iso","img","msi","msp","msm"],"audio/midi":["mid","midi","kar"],"audio/mpeg":["mp3"],"audio/ogg":["ogg"],"audio/x-realaudio":["ra"],"video/3gpp":["3gpp","3gp"],"video/mpeg":["mpeg","mpg"],"video/quicktime":["mov"],"video/x-flv":["flv"],"video/x-mng":["mng"],"video/x-ms-asf":["asx","asf"],"video/x-ms-wmv":["wmv"],"video/x-msvideo":["avi"],"video/mp4":["m4v","mp4"]});function eE(r){for(const[A,e]of $p)if(e.includes(r))return A}async function tE(r){var e,t;let A;if(r.startsWith("data:"))A=(e=r.match(/^data:(.+?);/))==null?void 0:e[1];else if(r.startsWith("http")){const i=(t=r.split(/[#?]/)[0].split(".").pop())==null?void 0:t.trim();i&&(A=eE(i))}return A??await fetch(r).then(i=>i.headers.get("Content-Type"))??""}const rs="WeakRef"in globalThis;class mc{constructor(){u(this,"defaultHandler",A=>this.fetch(A));u(this,"_handlers",new Map);u(this,"_handleing",new Map);u(this,"_handled",new Map);u(this,"_gc",rs?new FinalizationRegistry(A=>{const e=this.get(A);e&&"free"in e&&e.free(),this._handled.delete(A)}):void 0);rs||Se.on(this.gc.bind(this),{sort:2})}use(A){return A.install(this),this}register(A,e){return this._handlers.set(A,e),this}fetch(A){return fetch(A)}_fixSVG(A){var a;let e;A.includes(";base64,")?e=atob(A.split(",")[1]):e=decodeURIComponent(A.split(",")[1]);const t=new DOMParser().parseFromString(e,"image/svg+xml").documentElement,i=t.getAttribute("width"),s=t.getAttribute("height"),n=i&&/^[\d.]+$/.test(i),o=s&&/^[\d.]+$/.test(s);if(!n||!o){const l=(a=t.getAttribute("viewBox"))==null?void 0:a.split(" ").map(c=>Number(c));n||t.setAttribute("width",String(l?l[2]-l[0]:512)),o||t.setAttribute("height",String(l?l[3]-l[1]:512))}return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t.outerHTML)}`}async fetchImageBitmap(A,e){return A.startsWith("http")?await this.fetch(A).then(t=>t.blob()).then(t=>t.type==="image/svg+xml"?t.text().then(i=>this.fetchImageBitmap(this._fixSVG(`data:image/svg+xml;charset=utf-8,${encodeURIComponent(i)}`),e)):createImageBitmap(t,e)):(A.startsWith("data:image/svg+xml;")&&(A=this._fixSVG(A)),new Promise(t=>{const i=new Image;i.src=A,i.onload=()=>{i.decode().finally(()=>{t(i)})}}).then(t=>createImageBitmap(t,e)))}get(A){let e=this._handled.get(A);return rs&&e instanceof WeakRef&&(e=e.deref(),e||this._handleing.delete(A)),e}set(A,e){let t=e;rs&&typeof e=="object"&&(this._gc.register(e,A),t=new WeakRef(e)),this._handled.set(A,t)}async loadBy(A,e){const t=this.get(A)??this._handleing.get(A);if(t)return t;const i=e().then(s=>(this.set(A,s),s)).finally(()=>{this._handleing.delete(A)});return this._handleing.set(A,i),i}async load(A,e){return this.loadBy(A,async()=>{const t=await tE(A);return(this._handlers.get(t)??this.defaultHandler)(A,e)})}async waitUntilLoad(){await Promise.all(Array.from(this._handleing.values()))}gc(){this._handled.forEach((A,e)=>{const t=this.get(e);t&&"free"in t&&t.free()}),this._handled.clear()}}const Gt=new mc().use(new da).use(new pc).use(new Ec).use(new Bc).use(new Cc).use(new Qc).use(new yc);class AE extends g.Control{constructor(){super();u(this,"_pointerStart");u(this,"_pointerOffset");u(this,"selected");u(this,"dragging");u(this,"hovered");u(this,"hover",new g.Element2D({name:"hover",internalMode:"back",style:{visibility:"hidden",outlineStyle:"solid",outlineColor:"#00FF00FF",outlineWidth:2,pointerEvents:"none"}}));u(this,"transformRect",new Zn({name:"transformRect",internalMode:"back",style:{visibility:"hidden",pointerEvents:"none"}}));u(this,"scaler",new g.Scaler({internalMode:"back"}).on("updateScale",e=>{this.ruler.gapScale=e,this._updateScrollbars(),this._updateSelectionRect()}));u(this,"xScrollBar",new g.XScrollBar({internalMode:"back",style:{visibility:"hidden"}}));u(this,"yScrollBar",new g.YScrollBar({internalMode:"back",style:{visibility:"hidden"}}));u(this,"drawboard",new g.Element2D({name:"drawboard",style:{width:500,height:500,backgroundColor:"#FFFFFFFF",overflow:"hidden",pointerEvents:"none",boxShadow:"2px 2px 2px 1px rgba(0, 0, 0, 0.2)"}},[this.scaler]));u(this,"ruler",new g.Ruler({name:"ruler",offsetX:100,offsetY:100,style:{pointerEvents:"none"}},[this.drawboard,this.hover,this.transformRect,this.xScrollBar,this.yScrollBar]));this._onPointerdown=this._onPointerdown.bind(this),this._onPointermove=this._onPointermove.bind(this),this._onPointerup=this._onPointerup.bind(this),this.append(this.ruler)}_updateStyleProperty(e,t,i,s){switch(super._updateStyleProperty(e,t,i,s),e){case"width":this.drawboard.style.left=(this.size.width-this.drawboard.size.width)/2,this.ruler.offsetX=this.drawboard.style.left;break;case"height":this.drawboard.style.top=(this.size.height-this.drawboard.size.height)/2,this.ruler.offsetY=this.drawboard.style.top;break}}_guiInput(e,t){switch(super._guiInput(e,t),t){case"pointerdown":this._onPointerdown(e);break;case"pointermove":this._onPointermove(e);break;case"pointerup":this._onPointerup();break}}_onPointerdown(e){let t=e.target;t!=null&&t.is(this)&&(t=void 0),t!=null&&t.is(this.transformRect)&&(t=this.selected),this._pointerOffset={x:e.offsetX,y:e.offsetY},this.selected=t,this.dragging=t,t instanceof g.Element2D?this._pointerStart=t.style.clone():this._pointerStart=void 0,this._updateHover(),this._updateSelectionRect()}_onPointermove(e){let t=e.target;t!=null&&t.is(this)&&(t=void 0),t!=null&&t.is(this.transformRect)&&(t=this.selected);const{selected:i,dragging:s,_pointerStart:n,_pointerOffset:o}=this;i&&(t!=null&&t.is(i))?this.hovered=void 0:this.hovered=t;const a=o?{x:e.offsetX-o.x,y:e.offsetY-o.y}:{x:0,y:0};s&&n&&(s.style.left=n.left+a.x/this.scaler.value,s.style.top=n.top+a.y/this.scaler.value,s.update()),this._updateHover(),this._updateSelectionRect()}_onPointerup(){this.dragging=void 0,this._updateHover(),this._updateSelectionRect()}_copyGlobalTransform(e,t){e.style.visibility="visible",e.style.width=t.globalScale.x*t.size.x,e.style.height=t.globalScale.y*t.size.y,e.style.left=t.globalPosition.x,e.style.top=t.globalPosition.y,e.style.rotate=t.globalRotation,e.update()}_updateHover(){const e=this.hovered;e instanceof g.Element2D?(this.hover.style.visibility="visible",this._copyGlobalTransform(this.hover,e),this.hover.requestRedraw()):this.hover.style.visibility="hidden"}_updateSelectionRect(){this.selected?(this.transformRect.style.visibility="visible",this._copyGlobalTransform(this.transformRect,this.selected)):this.transformRect.style.visibility="hidden"}_updateScrollbars(){const e=this.ruler.gapScale,t=this.drawboard.size.height*e,i=this.drawboard.size.width*e;t>this.size.height?(this.yScrollBar.style.visibility="visible",this.yScrollBar.maxValue=t,this.yScrollBar.page=this.size.height):this.yScrollBar.style.visibility="hidden",i>this.size.width?(this.xScrollBar.style.visibility="visible",this.xScrollBar.maxValue=i,this.xScrollBar.page=this.size.width):this.xScrollBar.style.visibility="hidden"}}const wc={alpha:!0,stencil:!0,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};class vc extends Ni{constructor(e={}){var I,d;const{debug:t=!1,view:i,width:s,height:n,pixelRatio:o=Gs,backgroundColor:a=0,autoResize:l,autoStart:c,timeline:h,...f}=e;super(h);u(this,"renderer");u(this,"_resizeObserver",Fo?new ResizeObserver(e=>{const t=e[0];if(t.target===this.view){const{inlineSize:i,blockSize:s}=Array.isArray(t.contentBoxSize)?t.contentBoxSize[0]:t.contentBoxSize;this.resize(i,s)}}):void 0);this.debug=t,this.renderer=new fa(i,{...wc,...f}),this._setupInput(),this.pixelRatio=o,this.backgroundColor=a,l?(!i&&this.renderer.view&&(this.renderer.view.style.width="100%",this.renderer.view.style.height="100%"),this.enableAutoResize(l)):this.resize(s||this.gl.drawingBufferWidth||((I=this.view)==null?void 0:I.clientWidth)||200,n||this.gl.drawingBufferHeight||((d=this.view)==null?void 0:d.clientHeight)||200,!i),c&&this.start()}get view(){return this.renderer.view}get gl(){return this.renderer.gl}get screen(){return this.renderer.screen}get width(){return this.screen.width}get height(){return this.screen.height}get pixelRatio(){return this.renderer.pixelRatio}set pixelRatio(e){this.renderer.pixelRatio=e,this.resize(this.width,this.height),this.view&&(this.view.dataset.pixelRatio=String(e))}_setupInput(){return this.view&&(this.input.setTarget(this.view),["pointerdown","pointerover","pointermove","pointerup","wheel"].forEach(e=>{this.input.on(e,t=>{this.root.input(t,e),this.emit(e,t)})})),this}enableAutoResize(e=!0){var t,i;return this.view&&(e?(t=this._resizeObserver)==null||t.observe(this.view):(i=this._resizeObserver)==null||i.unobserve(this.view)),this}resize(e,t,i=!1){return this.renderer.resize(e,t,i),this.root.width=e,this.root.height=t,this.root.requestUpload(),this.render(),this}nextTick(){return Rs()}async waitUntilLoad(){await Gt.waitUntilLoad(),await this.nextTick()}async waitAndRender(e=0){await Gt.waitUntilLoad(),this._process(e),await this.nextTick(),this._render(this.renderer)}render(e=0){this._process(e),this._render(this.renderer)}async start(){await this.waitAndRender(),super.start(e=>{this._process(e),this._render(this.renderer)})}free(){super.free(),this.enableAutoResize(!1),this.renderer.free()}toPixels(){return this.renderer.toPixels()}toImageData(){return new ImageData(this.toPixels(),this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}toCanvas2D(){var s,n;const e=this.toImageData(),t=document.createElement("canvas");t.width=e.width,t.height=e.height,(s=t.getContext("2d"))==null||s.putImageData(e,0,0);const i=document.createElement("canvas");return i.width=this.width,i.height=this.height,(n=i.getContext("2d"))==null||n.drawImage(t,0,0,t.width,t.height,0,0,i.width,i.height),i}}let Lt;const eo=[];let to=!1;async function iE(r=100){if(!to){for(to=!0;eo.length;){const A=eo.shift();if(A)try{await A()}catch(e){console.error(e)}else await new Promise(e=>setTimeout(e,r))}to=!1}}async function rE(r){var n;const{data:A,width:e,height:t,debug:i=!1,time:s=0}=r;return Lt??(Lt=new vc({width:1,height:1,preserveDrawingBuffer:!0})),Lt.debug=i,Lt.root.removeChildren(),Lt.timeline.currentTime=s,Lt.resize(e,t,!0),(Array.isArray(A)?A:[A]).forEach(o=>{o instanceof g.Node?(o.parent=void 0,Lt.root.appendChild(o)):Lt.root.appendChild(g.Node.parse(o))}),await((n=r.onBeforeRender)==null?void 0:n.call(r,Lt)),await Lt.waitAndRender(),Lt.toCanvas2D()}async function sE(r){return new Promise(A=>{eo.push(async()=>A(await rE(r))),iE()})}g.AnimatedTexture=Cr,g.Assets=mc,g.AudioPipeline=$n,g.AudioProcessor=ap,g.AudioSpectrum=Ip,g.BaseElement2DBackground=In,g.BaseElement2DFill=qe,g.BaseElement2DForeground=pn,g.BaseElement2DOutline=XA,g.BaseElement2DShadow=bA,g.BaseElement2DShape=DA,g.BaseElement2DStyle=Li,g.BaseElement2DText=UA,g.CanvasContext=sl,g.CanvasItemEditor=AE,g.CanvasTexture=YA,g.Color=Vt,g.ColorMatrix=Js,g.ColorTexture=ya,g.CoreObject=iA,g.DEG_TO_RAD=jo,g.DEVICE_PIXEL_RATIO=Gs,g.EffectMaterial=Br,g.Element2DStyle=Xn,g.Engine=vc,g.EventEmitter=Jt,g.FlexElement2DStyle=jl,g.FlexLayout=jr,g.FontLoader=da,g.GIFLoader=pc,g.Geometry=Er,g.GradientTexture=Qr,g.HTMLAudio=uc,g.HTMLAudioContext=es,g.HTMLSound=ts,g.IN_BROWSER=yi,g.ImageTexture=cg,g.IndexBuffer=HA,g.Input=qo,g.InputEvent=Ir,g.JSONLoader=Ec,g.Loader=rA,g.LottieLoader=Bc,g.MainLoop=pr,g.Material=Ce,g.Matrix=Mt,g.Matrix2=zh,g.Matrix3=Ks,g.Matrix4=Xo,g.MouseInputEvent=Hs,g.PI=dr,g.PI_2=it,g.PixelsTexture=Ws,g.PointerInputEvent=Wo,g.Projection2D=$o,g.QuadGeometry=tg,g.QuadUvGeometry=fe,g.RAD_TO_DEG=Yh,g.RawWeakMap=Os,g.Rect2=Ys,g.RefCounted=Ro,g.Renderer=ta,g.Resource=Yt,g.SUPPORTS_AUDIO_CONTEXT=Ns,g.SUPPORTS_CLICK_EVENTS=Go,g.SUPPORTS_CREATE_IMAGE_BITMAP=Us,g.SUPPORTS_IMAGE_BITMAP=No,g.SUPPORTS_MOUSE_EVENTS=Oh,g.SUPPORTS_OFFLINE_AUDIO_CONTEXT=Ts,g.SUPPORTS_POINTER_EVENTS=LA,g.SUPPORTS_RESIZE_OBSERVER=Fo,g.SUPPORTS_TOUCH_EVENTS=Kt,g.SUPPORTS_WEBGL2=Uo,g.SUPPORTS_WEBKIT_AUDIO_CONTEXT=Fs,g.SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT=Lo,g.SUPPORTS_WEB_AUDIO=Oo,g.SUPPORTS_WHEEL_EVENTS=To,g.SceneTree=Ni,g.TextLoader=Cc,g.Texture2D=_e,g.TextureLoader=Qc,g.TextureRect2D=Zr,g.Ticker=Se,g.Transform2D=ht,g.TransformRect2D=Zn,g.UvGeometry=sg,g.UvMaterial=JA,g.Vector=wt,g.Vector2=ut,g.Vector3=Wh,g.Vector4=Zo,g.VertexAttribute=ft,g.VertexBuffer=Wt,g.VideoLoader=yc,g.VideoTexture=wa,g.ViewportTexture=Xs,g.WebAudio=dc,g.WebAudioContext=IA,g.WebGLBatch2DModule=ra,g.WebGLBlendMode=OA,g.WebGLBufferModule=sa,g.WebGLFramebufferModule=na,g.WebGLMaskModule=oa,g.WebGLModule=Ct,g.WebGLProgramModule=aa,g.WebGLRenderer=fa,g.WebGLScissorModule=la,g.WebGLState=mA,g.WebGLStateModule=ia,g.WebGLStencilModule=ca,g.WebGLTextureModule=ha,g.WebGLVertexArrayModule=ga,g.WebGLViewportModule=ua,g.WebSound=fc,g.WheelInputEvent=mi,g.assets=Gt,g.clamp=zt,g.clampFrag=dl,g.createHTMLCanvas=Yo,g.createNode=kh,g.crossOrigin=zo,g.cubicBezier=fi,g.curves=Vh,g.customNode=ne,g.customNodes=fr,g.defaultOptions=wc,g.determineCrossOrigin=Vo,g.ease=lc,g.easeIn=cc,g.easeInOut=gc,g.easeOut=hc,g.frag=fl,g.getDefaultCssPropertyValue=ks,g.isCanvasElement=Jo,g.isElementNode=Ls,g.isImageElement=Hh,g.isPow2=Ps,g.isVideoElement=Ho,g.isWebgl2=Ko,g.lerp=Me,g.linear=ac,g.log2=zs,g.mapWebGLBlendModes=Aa,g.nextPow2=Vs,g.nextTick=Rs,g.parseCSSFilter=pa,g.parseCSSTransform=Ea,g.parseCSSTransformOrigin=Ba,g.parseCssFunctions=Qi,g.parseCssProperty=Ci,g.protectedProperty=Ie,g.render=sE,g.timingFunctions=$r,g.uid=Po,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});