diff --git a/index.js b/index.js index cac08c9..8fd7eaf 100644 --- a/index.js +++ b/index.js @@ -1,21 +1,21 @@ -"use strict";(()=>{var wa=Object.create;var Ks=Object.defineProperty;var ka=Object.getOwnPropertyDescriptor;var Ja=Object.getOwnPropertyNames;var za=Object.getPrototypeOf,Qa=Object.prototype.hasOwnProperty;var r2=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,s)=>(typeof require<"u"?require:n)[s]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var h2=(t,n)=>()=>(t&&(n=t(t=0)),n);var Wt=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),a2=(t,n)=>{for(var s in n)Ks(t,s,{get:n[s],enumerable:!0})},V_=(t,n,s,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let _ of Ja(n))!Qa.call(t,_)&&_!==s&&Ks(t,_,{get:()=>n[_],enumerable:!(p=ka(n,_))||p.enumerable});return t};var Vt=(t,n,s)=>(s=t!=null?wa(za(t)):{},V_(n||!t||!t.__esModule?Ks(s,"default",{value:t,enumerable:!0}):s,t)),m2=t=>V_(Ks({},"__esModule",{value:!0}),t);var o0={};a2(o0,{Component:()=>me,Fragment:()=>Ot,cloneElement:()=>l2,createContext:()=>v1,createElement:()=>Ee,createRef:()=>b1,h:()=>Ee,hydrate:()=>vs,isValidElement:()=>Q_,options:()=>_t,render:()=>Rn,toChildArray:()=>Ce});function $e(t,n){for(var s in n)t[s]=n[s];return t}function q_(t){var n=t.parentNode;n&&n.removeChild(t)}function Ee(t,n,s){var p,_,i,u={};for(i in n)i=="key"?p=n[i]:i=="ref"?_=n[i]:u[i]=n[i];if(arguments.length>2&&(u.children=arguments.length>3?P1.call(arguments,2):s),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)u[i]===void 0&&(u[i]=t.defaultProps[i]);return K1(t,u,p,_,null)}function K1(t,n,s,p,_){var i={type:t,props:n,key:s,ref:p,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:_??++z_};return _==null&&_t.vnode!=null&&_t.vnode(i),i}function b1(){return{current:null}}function Ot(t){return t.children}function me(t,n){this.props=t,this.context=n}function H1(t,n){if(n==null)return t.__?H1(t.__,t.__.__k.indexOf(t)+1):null;for(var s;nn&&dn.sort(u2));Hs.__r=0}function e0(t,n,s,p,_,i,u,l,S,U,L){var G,V,Q,w,Z,mt,nt,ut,st,ct=0,gt=p&&p.__k||X_,Mt=gt.length,Ct=Mt,qt=n.length;for(s.__k=[],G=0;G0?K1(w.type,w.props,w.key,w.ref?w.ref:null,w.__v):w)!=null?(w.__=s,w.__b=s.__b+1,(ut=$a(w,gt,nt=G+ct,Ct))===-1?Q=Vn:(Q=gt[ut]||Vn,gt[ut]=void 0,Ct--),E2(t,w,Q,_,i,u,l,S,U,L),Z=w.__e,(V=w.ref)&&Q.ref!=V&&(Q.ref&&y2(Q.ref,null,w),L.push(V,w.__c||Z,w)),Z!=null&&(mt==null&&(mt=Z),(st=Q===Vn||Q.__v===null)?ut==-1&&ct--:ut!==nt&&(ut===nt+1?ct++:ut>nt?Ct>qt-nt?ct+=ut-nt:ct--:ct=ut(S!=null?1:0))for(;u>=0||l=0){if((S=n[u])&&_==S.key&&i===S.type)return u;u--}if(l2&&(l.children=arguments.length>3?P1.call(arguments,2):s),K1(t.type,l,p||t.key,_||t.ref,null)}function v1(t,n){var s={__c:n="__cC"+$_++,__:t,Consumer:function(p,_){return p.children(_)},Provider:function(p){var _,i;return this.getChildContext||(_=[],(i={})[n]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(u){this.props.value!==u.value&&_.some(function(l){l.__e=!0,c2(l)})},this.sub=function(u){_.push(u);var l=u.componentWillUnmount;u.componentWillUnmount=function(){_.splice(_.indexOf(u),1),l&&l.call(u)}}),p.children}};return s.Provider.__=s.Consumer.contextType=s}var P1,_t,z_,Q_,dn,x_,Z_,u2,$_,Vn,X_,Za,bs,Mn=h2(()=>{Vn={},X_=[],Za=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bs=Array.isArray;P1=X_.slice,_t={__e:function(t,n,s,p){for(var _,i,u;n=n.__;)if((_=n.__c)&&!_.__)try{if((i=_.constructor)&&i.getDerivedStateFromError!=null&&(_.setState(i.getDerivedStateFromError(t)),u=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(t,p||{}),u=_.__d),u)return _.__E=_}catch(l){t=l}throw t}},z_=0,Q_=function(t){return t!=null&&t.constructor===void 0},me.prototype.setState=function(t,n){var s;s=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$e({},this.state),typeof t=="function"&&(t=t($e({},s),this.props)),t&&$e(s,t),t!=null&&this.__v&&(n&&this._sb.push(n),c2(this))},me.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),c2(this))},me.prototype.render=Ot,dn=[],Z_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u2=function(t,n){return t.__v.__b-n.__v.__b},Hs.__r=0,$_=0});var E0={};a2(E0,{useCallback:()=>xs,useContext:()=>ws,useDebugValue:()=>ks,useEffect:()=>Y1,useErrorBoundary:()=>c0,useId:()=>Js,useImperativeHandle:()=>Vs,useLayoutEffect:()=>Bn,useMemo:()=>kn,useReducer:()=>F1,useRef:()=>Ws,useState:()=>wn});function Tn(t,n){_t.__h&&_t.__h(Pt,t,xn||n),xn=0;var s=Pt.__H||(Pt.__H={__:[],__h:[]});return t>=s.__.length&&s.__.push({__V:Fs}),s.__[t]}function wn(t){return xn=1,F1(A0,t)}function F1(t,n,s){var p=Tn(Xe++,2);if(p.t=t,!p.__c&&(p.__=[s?s(n):A0(void 0,n),function(l){var S=p.__N?p.__N[0]:p.__[0],U=p.t(S,l);S!==U&&(p.__N=[U,p.__[1]],p.__c.setState({}))}],p.__c=Pt,!Pt.u)){var _=function(l,S,U){if(!p.__c.__H)return!0;var L=p.__c.__H.__.filter(function(V){return V.__c});if(L.every(function(V){return!V.__N}))return!i||i.call(this,l,S,U);var G=!1;return L.forEach(function(V){if(V.__N){var Q=V.__[0];V.__=V.__N,V.__N=void 0,Q!==V.__[0]&&(G=!0)}}),!(!G&&p.__c.props===l)&&(!i||i.call(this,l,S,U))};Pt.u=!0;var i=Pt.shouldComponentUpdate,u=Pt.componentWillUpdate;Pt.componentWillUpdate=function(l,S,U){if(this.__e){var L=i;i=void 0,_(l,S,U),i=L}u&&u.call(this,l,S,U)},Pt.shouldComponentUpdate=_}return p.__N||p.__}function Y1(t,n){var s=Tn(Xe++,3);!_t.__s&&S2(s.__H,n)&&(s.__=t,s.i=n,Pt.__H.__h.push(s))}function Bn(t,n){var s=Tn(Xe++,4);!_t.__s&&S2(s.__H,n)&&(s.__=t,s.i=n,Pt.__h.push(s))}function Ws(t){return xn=5,kn(function(){return{current:t}},[])}function Vs(t,n,s){xn=6,Bn(function(){return typeof t=="function"?(t(n()),function(){return t(null)}):t?(t.current=n(),function(){return t.current=null}):void 0},s==null?s:s.concat(t))}function kn(t,n){var s=Tn(Xe++,7);return S2(s.__H,n)?(s.__V=t(),s.i=n,s.__h=t,s.__V):s.__}function xs(t,n){return xn=8,kn(function(){return t},n)}function ws(t){var n=Pt.context[t.__c],s=Tn(Xe++,9);return s.c=t,n?(s.__==null&&(s.__=!0,n.sub(Pt)),n.props.value):t.__}function ks(t,n){_t.useDebugValue&&_t.useDebugValue(n?n(t):t)}function c0(t){var n=Tn(Xe++,10),s=wn();return n.__=t,Pt.componentDidCatch||(Pt.componentDidCatch=function(p,_){n.__&&n.__(p,_),s[1](p)}),[s[0],function(){s[1](void 0)}]}function Js(){var t=Tn(Xe++,11);if(!t.__){for(var n=Pt.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;var s=n.__m||(n.__m=[0,0]);t.__="P"+s[0]+"-"+s[1]++}return t.__}function em(){for(var t;t=u0.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ys),t.__H.__h.forEach(N2),t.__H.__h=[]}catch(n){t.__H.__h=[],_t.__e(n,t.__v)}}function nm(t){var n,s=function(){clearTimeout(p),m0&&cancelAnimationFrame(n),setTimeout(t)},p=setTimeout(s,100);m0&&(n=requestAnimationFrame(s))}function Ys(t){var n=Pt,s=t.__c;typeof s=="function"&&(t.__c=void 0,s()),Pt=n}function N2(t){var n=Pt;t.__c=t.__(),Pt=n}function S2(t,n){return!t||t.length!==n.length||n.some(function(s,p){return s!==t[p]})}function A0(t,n){return typeof n=="function"?n(t):n}var Xe,Pt,j2,_0,xn,u0,Fs,i0,g0,r0,h0,a0,m0,zs=h2(()=>{Mn();xn=0,u0=[],Fs=[],i0=_t.__b,g0=_t.__r,r0=_t.diffed,h0=_t.__c,a0=_t.unmount;_t.__b=function(t){Pt=null,i0&&i0(t)},_t.__r=function(t){g0&&g0(t),Xe=0;var n=(Pt=t.__c).__H;n&&(j2===Pt?(n.__h=[],Pt.__h=[],n.__.forEach(function(s){s.__N&&(s.__=s.__N),s.__V=Fs,s.__N=s.i=void 0})):(n.__h.forEach(Ys),n.__h.forEach(N2),n.__h=[],Xe=0)),j2=Pt},_t.diffed=function(t){r0&&r0(t);var n=t.__c;n&&n.__H&&(n.__H.__h.length&&(u0.push(n)!==1&&_0===_t.requestAnimationFrame||((_0=_t.requestAnimationFrame)||nm)(em)),n.__H.__.forEach(function(s){s.i&&(s.__H=s.i),s.__V!==Fs&&(s.__=s.__V),s.i=void 0,s.__V=Fs})),j2=Pt=null},_t.__c=function(t,n){n.some(function(s){try{s.__h.forEach(Ys),s.__h=s.__h.filter(function(p){return!p.__||N2(p)})}catch(p){n.some(function(_){_.__h&&(_.__h=[])}),n=[],_t.__e(p,s.__v)}}),h0&&h0(t,n)},_t.unmount=function(t){a0&&a0(t);var n,s=t.__c;s&&s.__H&&(s.__H.__.forEach(function(p){try{Ys(p)}catch(_){n=_}}),s.__H=void 0,n&&_t.__e(n,s.__v))};m0=typeof requestAnimationFrame=="function"});var $0={};a2($0,{Children:()=>G0,Component:()=>me,Fragment:()=>Ot,PureComponent:()=>Qs,StrictMode:()=>w0,Suspense:()=>W1,SuspenseList:()=>Jn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>P0,cloneElement:()=>F0,createContext:()=>v1,createElement:()=>Ee,createFactory:()=>b0,createPortal:()=>L0,createRef:()=>b1,default:()=>ym,findDOMNode:()=>W0,flushSync:()=>x0,forwardRef:()=>B0,hydrate:()=>H0,isElement:()=>Q0,isFragment:()=>v0,isValidElement:()=>V1,lazy:()=>O0,memo:()=>T0,render:()=>K0,startTransition:()=>M2,unmountComponentAtNode:()=>Y0,unstable_batchedUpdates:()=>V0,useCallback:()=>xs,useContext:()=>ws,useDebugValue:()=>ks,useDeferredValue:()=>k0,useEffect:()=>Y1,useErrorBoundary:()=>c0,useId:()=>Js,useImperativeHandle:()=>Vs,useInsertionEffect:()=>z0,useLayoutEffect:()=>Bn,useMemo:()=>kn,useReducer:()=>F1,useRef:()=>Ws,useState:()=>wn,useSyncExternalStore:()=>Z0,useTransition:()=>J0,version:()=>Em});function M0(t,n){for(var s in n)t[s]=n[s];return t}function d2(t,n){for(var s in t)if(s!=="__source"&&!(s in n))return!0;for(var p in n)if(p!=="__source"&&t[p]!==n[p])return!0;return!1}function f2(t,n){return t===n&&(t!==0||1/t==1/n)||t!=t&&n!=n}function Qs(t){this.props=t}function T0(t,n){function s(_){var i=this.props.ref,u=i==_.ref;return!u&&i&&(i.call?i(null):i.current=null),n?!n(this.props,_)||!u:d2(this.props,_)}function p(_){return this.shouldComponentUpdate=s,Ee(t,_)}return p.displayName="Memo("+(t.displayName||t.name)+")",p.prototype.isReactComponent=!0,p.__f=!0,p}function B0(t){function n(s){var p=M0({},s);return delete p.ref,t(p,s.ref||null)}return n.$$typeof=sm,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}function I0(t,n,s){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),t.__c.__H=null),(t=M0({},t)).__c!=null&&(t.__c.__P===s&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(p){return I0(p,n,s)})),t}function D0(t,n,s){return t&&s&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(p){return D0(p,n,s)}),t.__c&&t.__c.__P===n&&(t.__e&&s.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=s)),t}function W1(){this.__u=0,this.t=null,this.__b=null}function U0(t){var n=t.__.__c;return n&&n.__a&&n.__a(t)}function O0(t){var n,s,p;function _(i){if(n||(n=t()).then(function(u){s=u.default||u},function(u){p=u}),p)throw p;if(!s)throw n;return Ee(s,i)}return _.displayName="Lazy",_.__f=!0,_}function Jn(){this.u=null,this.o=null}function om(t){return this.getChildContext=function(){return t.context},t.children}function _m(t){var n=this,s=t.i;n.componentWillUnmount=function(){Rn(null,n.l),n.l=null,n.i=null},n.i&&n.i!==s&&n.componentWillUnmount(),n.l||(n.i=s,n.l={nodeType:1,parentNode:s,childNodes:[],appendChild:function(p){this.childNodes.push(p),n.i.appendChild(p)},insertBefore:function(p,_){this.childNodes.push(p),n.i.appendChild(p)},removeChild:function(p){this.childNodes.splice(this.childNodes.indexOf(p)>>>1,1),n.i.removeChild(p)}}),Rn(Ee(om,{context:n.context},t.__v),n.l)}function L0(t,n){var s=Ee(_m,{__v:t,i:n});return s.containerInfo=n,s}function K0(t,n,s){return n.__k==null&&(n.textContent=""),Rn(t,n),typeof s=="function"&&s(),t?t.__c:null}function H0(t,n,s){return vs(t,n),typeof s=="function"&&s(),t?t.__c:null}function mm(){}function um(){return this.cancelBubble}function cm(){return this.defaultPrevented}function b0(t){return Ee.bind(null,t)}function V1(t){return!!t&&t.$$typeof===C0}function v0(t){return V1(t)&&t.type===Ot}function F0(t){return V1(t)?l2.apply(null,arguments):t}function Y0(t){return!!t.__k&&(Rn(null,t),!0)}function W0(t){return t&&(t.base||t.nodeType===1&&t)||null}function M2(t){t()}function k0(t){return t}function J0(){return[!1,M2]}function Z0(t,n){var s=n(),p=wn({h:{__:s,v:n}}),_=p[0].h,i=p[1];return Bn(function(){_.__=s,_.v=n,f2(_.__,n())||i({h:_})},[t,s,n]),Y1(function(){return f2(_.__,_.v())||i({h:_}),t(function(){f2(_.__,_.v())||i({h:_})})},[t]),s}var y0,sm,l0,G0,pm,j0,N0,C0,im,gm,rm,hm,am,S0,R2,Am,f0,d0,R0,P0,Em,V0,x0,w0,z0,Q0,ym,X0=h2(()=>{Mn();Mn();zs();zs();(Qs.prototype=new me).isPureReactComponent=!0,Qs.prototype.shouldComponentUpdate=function(t,n){return d2(this.props,t)||d2(this.state,n)};y0=_t.__b;_t.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),y0&&y0(t)};sm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;l0=function(t,n){return t==null?null:Ce(Ce(t).map(n))},G0={map:l0,forEach:l0,count:function(t){return t?Ce(t).length:0},only:function(t){var n=Ce(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:Ce},pm=_t.__e;_t.__e=function(t,n,s,p){if(t.then){for(var _,i=n;i=i.__;)if((_=i.__c)&&_.__c)return n.__e==null&&(n.__e=s.__e,n.__k=s.__k),_.__c(t,n)}pm(t,n,s,p)};j0=_t.unmount;_t.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&t.__h===!0&&(t.type=null),j0&&j0(t)},(W1.prototype=new me).__c=function(t,n){var s=n.__c,p=this;p.t==null&&(p.t=[]),p.t.push(s);var _=U0(p.__v),i=!1,u=function(){i||(i=!0,s.__R=null,_?_(l):l())};s.__R=u;var l=function(){if(!--p.__u){if(p.state.__a){var U=p.state.__a;p.__v.__k[0]=D0(U,U.__c.__P,U.__c.__O)}var L;for(p.setState({__a:p.__b=null});L=p.t.pop();)L.forceUpdate()}},S=n.__h===!0;p.__u++||S||p.setState({__a:p.__b=p.__v.__k[0]}),t.then(u,u)},W1.prototype.componentWillUnmount=function(){this.t=[]},W1.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var s=document.createElement("div"),p=this.__v.__k[0].__c;this.__v.__k[0]=I0(this.__b,s,p.__O=p.__P)}this.__b=null}var _=n.__a&&Ee(Ot,null,t.fallback);return _&&(_.__h=null),[Ee(Ot,null,n.__a?null:t.children),_]};N0=function(t,n,s){if(++s[1]===s[0]&&t.o.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(s=t.u;s;){for(;s.length>3;)s.pop()();if(s[1]{var{render:lm,hydrate:jm,unmountComponentAtNode:Nm}=(X0(),m2($0));function q0(t){return{render(n){lm(n,t)},unmount(){Nm(t)}}}T2.createRoot=q0;T2.hydrateRoot=function(t,n){return jm(n,t),q0(t)}});var re=Wt(Tt=>{var at=(Mn(),m2(o0)),se=(zs(),m2(E0));function mi(t,n){for(var s in n)t[s]=n[s];return t}function P2(t,n){for(var s in t)if(s!=="__source"&&!(s in n))return!0;for(var p in n)if(p!=="__source"&&t[p]!==n[p])return!0;return!1}function H2(t,n){return t===n&&(t!==0||1/t==1/n)||t!=t&&n!=n}function Xs(t){this.props=t}function ui(t,n){function s(_){var i=this.props.ref,u=i==_.ref;return!u&&i&&(i.call?i(null):i.current=null),n?!n(this.props,_)||!u:P2(this.props,_)}function p(_){return this.shouldComponentUpdate=s,at.createElement(t,_)}return p.displayName="Memo("+(t.displayName||t.name)+")",p.prototype.isReactComponent=!0,p.__f=!0,p}(Xs.prototype=new at.Component).isPureReactComponent=!0,Xs.prototype.shouldComponentUpdate=function(t,n){return P2(this.props,t)||P2(this.state,n)};var pi=at.options.__b;at.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),pi&&pi(t)};var Tm=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ci(t){function n(s){var p=mi({},s);return delete p.ref,t(p,s.ref||null)}return n.$$typeof=Tm,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}var oi=function(t,n){return t==null?null:at.toChildArray(at.toChildArray(t).map(n))},Ai={map:oi,forEach:oi,count:function(t){return t?at.toChildArray(t).length:0},only:function(t){var n=at.toChildArray(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:at.toChildArray},Bm=at.options.__e;at.options.__e=function(t,n,s,p){if(t.then){for(var _,i=n;i=i.__;)if((_=i.__c)&&_.__c)return n.__e==null&&(n.__e=s.__e,n.__k=s.__k),_.__c(t,n)}Bm(t,n,s,p)};var _i=at.options.unmount;function Ei(t,n,s){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),t.__c.__H=null),(t=mi({},t)).__c!=null&&(t.__c.__P===s&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(p){return Ei(p,n,s)})),t}function yi(t,n,s){return t&&s&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(p){return yi(p,n,s)}),t.__c&&t.__c.__P===n&&(t.__e&&s.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=s)),t}function J1(){this.__u=0,this.t=null,this.__b=null}function li(t){var n=t.__.__c;return n&&n.__a&&n.__a(t)}function ji(t){var n,s,p;function _(i){if(n||(n=t()).then(function(u){s=u.default||u},function(u){p=u}),p)throw p;if(!s)throw n;return at.createElement(s,i)}return _.displayName="Lazy",_.__f=!0,_}function zn(){this.u=null,this.o=null}at.options.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&t.__h===!0&&(t.type=null),_i&&_i(t)},(J1.prototype=new at.Component).__c=function(t,n){var s=n.__c,p=this;p.t==null&&(p.t=[]),p.t.push(s);var _=li(p.__v),i=!1,u=function(){i||(i=!0,s.__R=null,_?_(l):l())};s.__R=u;var l=function(){if(!--p.__u){if(p.state.__a){var U=p.state.__a;p.__v.__k[0]=yi(U,U.__c.__P,U.__c.__O)}var L;for(p.setState({__a:p.__b=null});L=p.t.pop();)L.forceUpdate()}},S=n.__h===!0;p.__u++||S||p.setState({__a:p.__b=p.__v.__k[0]}),t.then(u,u)},J1.prototype.componentWillUnmount=function(){this.t=[]},J1.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var s=document.createElement("div"),p=this.__v.__k[0].__c;this.__v.__k[0]=Ei(this.__b,s,p.__O=p.__P)}this.__b=null}var _=n.__a&&at.createElement(at.Fragment,null,t.fallback);return _&&(_.__h=null),[at.createElement(at.Fragment,null,n.__a?null:t.children),_]};var ii=function(t,n,s){if(++s[1]===s[0]&&t.o.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(s=t.u;s;){for(;s.length>3;)s.pop()();if(s[1]>>1,1),n.i.removeChild(p)}}),at.render(at.createElement(Gm,{context:n.context},t.__v),n.l)}function Ni(t,n){var s=at.createElement(Im,{__v:t,i:n});return s.containerInfo=n,s}(zn.prototype=new at.Component).__a=function(t){var n=this,s=li(n.__v),p=n.o.get(t);return p[0]++,function(_){var i=function(){n.props.revealOrder?(p.push(_),ii(n,t,p)):_()};s?s(i):i()}},zn.prototype.render=function(t){this.u=null,this.o=new Map;var n=at.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&n.reverse();for(var s=n.length;s--;)this.o.set(n[s],this.u=[1,0,this.u]);return t.children},zn.prototype.componentDidUpdate=zn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(n,s){ii(t,s,n)})};var Si=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Dm=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Um=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Om=/[A-Z0-9]/g,Lm=typeof document<"u",Cm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function fi(t,n,s){return n.__k==null&&(n.textContent=""),at.render(t,n),typeof s=="function"&&s(),t?t.__c:null}function di(t,n,s){return at.hydrate(t,n),typeof s=="function"&&s(),t?t.__c:null}at.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(at.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var gi=at.options.event;function Km(){}function Hm(){return this.cancelBubble}function Pm(){return this.defaultPrevented}at.options.event=function(t){return gi&&(t=gi(t)),t.persist=Km,t.isPropagationStopped=Hm,t.isDefaultPrevented=Pm,t.nativeEvent=t};var b2,bm={enumerable:!1,configurable:!0,get:function(){return this.class}},ri=at.options.vnode;at.options.vnode=function(t){typeof t.type=="string"&&function(n){var s=n.props,p=n.type,_={};for(var i in s){var u=s[i];if(!(i==="value"&&"defaultValue"in s&&u==null||Lm&&i==="children"&&p==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in s&&s.value==null?i="value":i==="download"&&u===!0?u="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||p!=="input"&&p!=="textarea"||Cm(s.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Um.test(i)?i=l:p.indexOf("-")===-1&&Dm.test(i)?i=i.replace(Om,"-$&").toLowerCase():u===null&&(u=void 0):l=i="oninput",l==="oninput"&&_[i=l]&&(i="oninputCapture"),_[i]=u}}p=="select"&&_.multiple&&Array.isArray(_.value)&&(_.value=at.toChildArray(s.children).forEach(function(S){S.props.selected=_.value.indexOf(S.props.value)!=-1})),p=="select"&&_.defaultValue!=null&&(_.value=at.toChildArray(s.children).forEach(function(S){S.props.selected=_.multiple?_.defaultValue.indexOf(S.props.value)!=-1:_.defaultValue==S.props.value})),s.class&&!s.className?(_.class=s.class,Object.defineProperty(_,"className",bm)):(s.className&&!s.class||s.class&&s.className)&&(_.class=_.className=s.className),n.props=_}(t),t.$$typeof=Si,ri&&ri(t)};var hi=at.options.__r;at.options.__r=function(t){hi&&hi(t),b2=t.__c};var ai=at.options.diffed;at.options.diffed=function(t){ai&&ai(t);var n=t.props,s=t.__e;s!=null&&t.type==="textarea"&&"value"in n&&n.value!==s.value&&(s.value=n.value==null?"":n.value),b2=null};var Ri={ReactCurrentDispatcher:{current:{readContext:function(t){return b2.__n[t.__c].props.value}}}};function Mi(t){return at.createElement.bind(null,t)}function z1(t){return!!t&&t.$$typeof===Si}function Ti(t){return z1(t)&&t.type===at.Fragment}function Bi(t){return z1(t)?at.cloneElement.apply(null,arguments):t}function Gi(t){return!!t.__k&&(at.render(null,t),!0)}function Ii(t){return t&&(t.base||t.nodeType===1&&t)||null}var Di=function(t,n){return t(n)},Ui=function(t,n){return t(n)},Oi=at.Fragment;function v2(t){t()}function Li(t){return t}function Ci(){return[!1,v2]}var Ki=se.useLayoutEffect,Hi=z1;function Pi(t,n){var s=n(),p=se.useState({p:{__:s,h:n}}),_=p[0].p,i=p[1];return se.useLayoutEffect(function(){_.__=s,_.h=n,H2(_.__,n())||i({p:_})},[t,s,n]),se.useEffect(function(){return H2(_.__,_.h())||i({p:_}),t(function(){H2(_.__,_.h())||i({p:_})})},[t]),s}var vm={useState:se.useState,useId:se.useId,useReducer:se.useReducer,useEffect:se.useEffect,useLayoutEffect:se.useLayoutEffect,useInsertionEffect:Ki,useTransition:Ci,useDeferredValue:Li,useSyncExternalStore:Pi,startTransition:v2,useRef:se.useRef,useImperativeHandle:se.useImperativeHandle,useMemo:se.useMemo,useCallback:se.useCallback,useContext:se.useContext,useDebugValue:se.useDebugValue,version:"17.0.2",Children:Ai,render:fi,hydrate:di,unmountComponentAtNode:Gi,createPortal:Ni,createElement:at.createElement,createContext:at.createContext,createFactory:Mi,cloneElement:Bi,createRef:at.createRef,Fragment:at.Fragment,isValidElement:z1,isElement:Hi,isFragment:Ti,findDOMNode:Ii,Component:at.Component,PureComponent:Xs,memo:ui,forwardRef:ci,flushSync:Ui,unstable_batchedUpdates:Di,StrictMode:Oi,Suspense:J1,SuspenseList:zn,lazy:ji,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ri};Object.defineProperty(Tt,"Component",{enumerable:!0,get:function(){return at.Component}}),Object.defineProperty(Tt,"Fragment",{enumerable:!0,get:function(){return at.Fragment}}),Object.defineProperty(Tt,"createContext",{enumerable:!0,get:function(){return at.createContext}}),Object.defineProperty(Tt,"createElement",{enumerable:!0,get:function(){return at.createElement}}),Object.defineProperty(Tt,"createRef",{enumerable:!0,get:function(){return at.createRef}}),Tt.Children=Ai,Tt.PureComponent=Xs,Tt.StrictMode=Oi,Tt.Suspense=J1,Tt.SuspenseList=zn,Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ri,Tt.cloneElement=Bi,Tt.createFactory=Mi,Tt.createPortal=Ni,Tt.default=vm,Tt.findDOMNode=Ii,Tt.flushSync=Ui,Tt.forwardRef=ci,Tt.hydrate=di,Tt.isElement=Hi,Tt.isFragment=Ti,Tt.isValidElement=z1,Tt.lazy=ji,Tt.memo=ui,Tt.render=fi,Tt.startTransition=v2,Tt.unmountComponentAtNode=Gi,Tt.unstable_batchedUpdates=Di,Tt.useDeferredValue=Li,Tt.useInsertionEffect=Ki,Tt.useSyncExternalStore=Pi,Tt.useTransition=Ci,Tt.version="17.0.2",Object.keys(se).forEach(function(t){t==="default"||Tt.hasOwnProperty(t)||Object.defineProperty(Tt,t,{enumerable:!0,get:function(){return se[t]}})})});var vi=Wt(bi=>{"use strict";var Qn=re();function Fm(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Ym=typeof Object.is=="function"?Object.is:Fm,Wm=Qn.useState,Vm=Qn.useEffect,xm=Qn.useLayoutEffect,wm=Qn.useDebugValue;function km(t,n){var s=n(),p=Wm({inst:{value:s,getSnapshot:n}}),_=p[0].inst,i=p[1];return xm(function(){_.value=s,_.getSnapshot=n,F2(_)&&i({inst:_})},[t,s,n]),Vm(function(){return F2(_)&&i({inst:_}),t(function(){F2(_)&&i({inst:_})})},[t]),wm(s),s}function F2(t){var n=t.getSnapshot;t=t.value;try{var s=n();return!Ym(t,s)}catch{return!0}}function Jm(t,n){return n()}var zm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jm:km;bi.useSyncExternalStore=Qn.useSyncExternalStore!==void 0?Qn.useSyncExternalStore:zm});var Yi=Wt((l6,Fi)=>{"use strict";Fi.exports=vi()});var ke=Wt((f6,qs)=>{(function(){"use strict";var t={}.hasOwnProperty,n="[native code]";function s(){for(var p=[],_=0;_{var Y2=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(n){n=n||{};var s;s||(s=typeof n<"u"?n:{});var p,_;s.ready=new Promise(function(o,g){p=o,_=g}),function(o){o.Vd=o.Vd||[],o.Vd.push(function(){o.MakeSWCanvasSurface=function(g){var h=g;if(h.tagName!=="CANVAS"&&(h=document.getElementById(g),!h))throw"Canvas with id "+g+" was not found";return(g=o.MakeSurface(h.width,h.height))&&(g.Nd=h),g},o.MakeCanvasSurface||(o.MakeCanvasSurface=o.MakeSWCanvasSurface),o.MakeSurface=function(g,h){var A={width:g,height:h,colorType:o.ColorType.RGBA_8888,alphaType:o.AlphaType.Unpremul,colorSpace:o.ColorSpace.SRGB},y=g*h*4,R=o._malloc(y);return(A=o.Surface._makeRasterDirect(A,R,4*g))&&(A.Nd=null,A.Ef=g,A.Af=h,A.Cf=y,A.af=R,A.getCanvas().clear(o.TRANSPARENT)),A},o.MakeRasterDirectSurface=function(g,h,A){return o.Surface._makeRasterDirect(g,h.byteOffset,A)},o.Surface.prototype.flush=function(g){if(o.Od(this.Md),this._flush(),this.Nd){var h=new Uint8ClampedArray(o.HEAPU8.buffer,this.af,this.Cf);h=new ImageData(h,this.Ef,this.Af),g?this.Nd.getContext("2d").putImageData(h,0,0,g[0],g[1],g[2]-g[0],g[3]-g[1]):this.Nd.getContext("2d").putImageData(h,0,0)}},o.Surface.prototype.dispose=function(){this.af&&o._free(this.af),this.delete()},o.Od=o.Od||function(){},o.Se=o.Se||function(){return null}})}(s),function(o){o.Vd=o.Vd||[],o.Vd.push(function(){function g(M,B,C){return M&&M.hasOwnProperty(B)?M[B]:C}function h(M){var B=Yn(Re);return Re[B]=M,B}function A(M){return M.naturalHeight||M.videoHeight||M.displayHeight||M.height}function y(M){return M.naturalWidth||M.videoWidth||M.displayWidth||M.width}function R(M,B,C,J){return M.bindTexture(M.TEXTURE_2D,B),J||C.alphaType!==o.AlphaType.Premul||M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),B}function O(M,B,C){C||B.alphaType!==o.AlphaType.Premul||M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),M.bindTexture(M.TEXTURE_2D,null)}o.GetWebGLContext=function(M,B){if(!M)throw"null canvas passed into makeWebGLContext";var C={alpha:g(B,"alpha",1),depth:g(B,"depth",1),stencil:g(B,"stencil",8),antialias:g(B,"antialias",0),premultipliedAlpha:g(B,"premultipliedAlpha",1),preserveDrawingBuffer:g(B,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:g(B,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:g(B,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:g(B,"enableExtensionsByDefault",1),explicitSwapControl:g(B,"explicitSwapControl",0),renderViaOffscreenBackBuffer:g(B,"renderViaOffscreenBackBuffer",0)};if(C.majorVersion=B&&B.majorVersion?B.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,C.explicitSwapControl)throw"explicitSwapControl is not supported";return M=ja(M,C),M?(G_(M),St.ge.getExtension("WEBGL_debug_renderer_info"),M):0},o.deleteContext=function(M){St===Ve[M]&&(St=null),typeof JSEvents=="object"&&JSEvents.ug(Ve[M].ge.canvas),Ve[M]&&Ve[M].ge.canvas&&(Ve[M].ge.canvas.yf=void 0),Ve[M]=null},o._setTextureCleanup({deleteTexture:function(M,B){var C=Re[B];C&&Ve[M].ge.deleteTexture(C),Re[B]=null}}),o.MakeWebGLContext=function(M){if(!this.Od(M))return null;var B=this._MakeGrContext();if(!B)return null;B.Md=M;var C=B.delete.bind(B);return B.delete=function(){o.Od(this.Md),C()}.bind(B),St.ef=B},o.MakeGrContext=o.MakeWebGLContext,o.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){o.Od(this.Md),this._getResourceCacheLimitBytes()},o.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){o.Od(this.Md),this._getResourceCacheUsageBytes()},o.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){o.Od(this.Md),this._releaseResourcesAndAbandonContext()},o.GrDirectContext.prototype.setResourceCacheLimitBytes=function(M){o.Od(this.Md),this._setResourceCacheLimitBytes(M)},o.MakeOnScreenGLSurface=function(M,B,C,J,$,pt){return!this.Od(M.Md)||(B=$===void 0||pt===void 0?this._MakeOnScreenGLSurface(M,B,C,J):this._MakeOnScreenGLSurface(M,B,C,J,$,pt),!B)?null:(B.Md=M.Md,B)},o.MakeRenderTarget=function(){var M=arguments[0];if(!this.Od(M.Md))return null;if(arguments.length===3){var B=this._MakeRenderTargetWH(M,arguments[1],arguments[2]);if(!B)return null}else if(arguments.length===2){if(B=this._MakeRenderTargetII(M,arguments[1]),!B)return null}else return null;return B.Md=M.Md,B},o.MakeWebGLCanvasSurface=function(M,B,C){B=B||null;var J=M,$=typeof OffscreenCanvas<"u"&&J instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&J instanceof HTMLCanvasElement||$||(J=document.getElementById(M),J)))throw"Canvas with id "+M+" was not found";if(M=this.GetWebGLContext(J,C),!M||0>M)throw"failed to create webgl context: err "+M;return M=this.MakeWebGLContext(M),B=this.MakeOnScreenGLSurface(M,J.width,J.height,B),B||(B=J.cloneNode(!0),J.parentNode.replaceChild(B,J),B.classList.add("ck-replaced"),o.MakeSWCanvasSurface(B))},o.MakeCanvasSurface=o.MakeWebGLCanvasSurface,o.Surface.prototype.makeImageFromTexture=function(M,B){return o.Od(this.Md),M=h(M),(B=this._makeImageFromTexture(this.Md,M,B))&&(B.Le=M),B},o.Surface.prototype.makeImageFromTextureSource=function(M,B,C){B||(B={height:A(M),width:y(M),colorType:o.ColorType.RGBA_8888,alphaType:C?o.AlphaType.Premul:o.AlphaType.Unpremul}),B.colorSpace||(B.colorSpace=o.ColorSpace.SRGB),o.Od(this.Md);var J=St.ge;return C=R(J,J.createTexture(),B,C),St.version===2?J.texImage2D(J.TEXTURE_2D,0,J.RGBA,B.width,B.height,0,J.RGBA,J.UNSIGNED_BYTE,M):J.texImage2D(J.TEXTURE_2D,0,J.RGBA,J.RGBA,J.UNSIGNED_BYTE,M),O(J,B),this._resetContext(),this.makeImageFromTexture(C,B)},o.Surface.prototype.updateTextureFromSource=function(M,B,C){if(M.Le){o.Od(this.Md);var J=M.getImageInfo(),$=St.ge,pt=R($,Re[M.Le],J,C);St.version===2?$.texImage2D($.TEXTURE_2D,0,$.RGBA,y(B),A(B),0,$.RGBA,$.UNSIGNED_BYTE,B):$.texImage2D($.TEXTURE_2D,0,$.RGBA,$.RGBA,$.UNSIGNED_BYTE,B),O($,J,C),this._resetContext(),Re[M.Le]=null,M.Le=h(pt),J.colorSpace=M.getColorSpace(),B=this._makeImageFromTexture(this.Md,M.Le,J),C=M.Ld.Td,$=M.Ld.$d,M.Ld.Td=B.Ld.Td,M.Ld.$d=B.Ld.$d,B.Ld.Td=C,B.Ld.$d=$,B.delete(),J.colorSpace.delete()}},o.MakeLazyImageFromTextureSource=function(M,B,C){B||(B={height:A(M),width:y(M),colorType:o.ColorType.RGBA_8888,alphaType:C?o.AlphaType.Premul:o.AlphaType.Unpremul}),B.colorSpace||(B.colorSpace=o.ColorSpace.SRGB);var J={makeTexture:function(){var $=St,pt=$.ge,v=R(pt,pt.createTexture(),B,C);return $.version===2?pt.texImage2D(pt.TEXTURE_2D,0,pt.RGBA,B.width,B.height,0,pt.RGBA,pt.UNSIGNED_BYTE,M):pt.texImage2D(pt.TEXTURE_2D,0,pt.RGBA,pt.RGBA,pt.UNSIGNED_BYTE,M),O(pt,B,C),h(v)},freeSrc:function(){}};return M.constructor.name==="VideoFrame"&&(J.freeSrc=function(){M.close()}),o.Image._makeFromGenerator(B,J)},o.Od=function(M){return M?G_(M):!1},o.Se=function(){return St&&St.ef&&!St.ef.isDeleted()?St.ef:null}})}(s),function(o){function g(m,r,E,N,D){for(var P=0;P>>0}function R(m){if(m&&m._ck)return m;if(m instanceof Float32Array){for(var r=Math.floor(m.length/4),E=new Uint32Array(r),N=0;Nx;x++)o.HEAPF32[D+N]=m[P][x],N++;m=E}else m=Bt;r.ce=m}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof m;return r}function $(m){if(!m)return Bt;var r=n2.toTypedArray();if(m.length){if(m.length===6||m.length===9)return C(m,"HEAPF32",rn),m.length===6&&o.HEAPF32.set(Va,6+rn/4),rn;if(m.length===16)return r[0]=m[0],r[1]=m[1],r[2]=m[3],r[3]=m[4],r[4]=m[5],r[5]=m[7],r[6]=m[12],r[7]=m[13],r[8]=m[15],rn;throw"invalid matrix size"}if(m.m11===void 0)throw"invalid matrix argument";return r[0]=m.m11,r[1]=m.m21,r[2]=m.m41,r[3]=m.m12,r[4]=m.m22,r[5]=m.m42,r[6]=m.m14,r[7]=m.m24,r[8]=m.m44,rn}function pt(m){if(!m)return Bt;var r=s2.toTypedArray();if(m.length){if(m.length!==16&&m.length!==6&&m.length!==9)throw"invalid matrix size";return m.length===16?C(m,"HEAPF32",Wn):(r.fill(0),r[0]=m[0],r[1]=m[1],r[3]=m[2],r[4]=m[3],r[5]=m[4],r[7]=m[5],r[10]=1,r[12]=m[6],r[13]=m[7],r[15]=m[8],m.length===6&&(r[12]=0,r[13]=0,r[15]=1),Wn)}if(m.m11===void 0)throw"invalid matrix argument";return r[0]=m.m11,r[1]=m.m21,r[2]=m.m31,r[3]=m.m41,r[4]=m.m12,r[5]=m.m22,r[6]=m.m32,r[7]=m.m42,r[8]=m.m13,r[9]=m.m23,r[10]=m.m33,r[11]=m.m43,r[12]=m.m14,r[13]=m.m24,r[14]=m.m34,r[15]=m.m44,Wn}function v(m,r){return C(m,"HEAPF32",r||fn)}function it(m,r,E,N){var D=p2.toTypedArray();return D[0]=m,D[1]=r,D[2]=E,D[3]=N,fn}function ft(m){for(var r=new Float32Array(4),E=0;4>E;E++)r[E]=o.HEAPF32[m/4+E];return r}function dt(m,r){return C(m,"HEAPF32",r||ee)}function ae(m,r){return C(m,"HEAPF32",r||g2)}function Me(){for(var m=0,r=0;r>>0},o.Color4f=function(m,r,E,N){return N===void 0&&(N=1),Float32Array.of(m,r,E,N)},Object.defineProperty(o,"TRANSPARENT",{get:function(){return o.Color4f(0,0,0,0)}}),Object.defineProperty(o,"BLACK",{get:function(){return o.Color4f(0,0,0,1)}}),Object.defineProperty(o,"WHITE",{get:function(){return o.Color4f(1,1,1,1)}}),Object.defineProperty(o,"RED",{get:function(){return o.Color4f(1,0,0,1)}}),Object.defineProperty(o,"GREEN",{get:function(){return o.Color4f(0,1,0,1)}}),Object.defineProperty(o,"BLUE",{get:function(){return o.Color4f(0,0,1,1)}}),Object.defineProperty(o,"YELLOW",{get:function(){return o.Color4f(1,1,0,1)}}),Object.defineProperty(o,"CYAN",{get:function(){return o.Color4f(0,1,1,1)}}),Object.defineProperty(o,"MAGENTA",{get:function(){return o.Color4f(1,0,1,1)}}),o.getColorComponents=function(m){return[Math.floor(255*m[0]),Math.floor(255*m[1]),Math.floor(255*m[2]),m[3]]},o.parseColorString=function(m,r){if(m=m.toLowerCase(),m.startsWith("#")){switch(r=255,m.length){case 9:r=parseInt(m.slice(7,9),16);case 7:var E=parseInt(m.slice(1,3),16),N=parseInt(m.slice(3,5),16),D=parseInt(m.slice(5,7),16);break;case 5:r=17*parseInt(m.slice(4,5),16);case 4:E=17*parseInt(m.slice(1,2),16),N=17*parseInt(m.slice(2,3),16),D=17*parseInt(m.slice(3,4),16)}return o.Color(E,N,D,r/255)}return m.startsWith("rgba")?(m=m.slice(5,-1),m=m.split(","),o.Color(+m[0],+m[1],+m[2],O(m[3]))):m.startsWith("rgb")?(m=m.slice(4,-1),m=m.split(","),o.Color(+m[0],+m[1],+m[2],O(m[3]))):m.startsWith("gray(")||m.startsWith("hsl")||!r||(m=r[m],m===void 0)?o.BLACK:m},o.multiplyByAlpha=function(m,r){return m=m.slice(),m[3]=Math.max(0,Math.min(m[3]*r,1)),m},o.Malloc=function(m,r){var E=o._malloc(r*m.BYTES_PER_ELEMENT);return{_ck:!0,length:r,byteOffset:E,re:null,subarray:function(N,D){return N=this.toTypedArray().subarray(N,D),N._ck=!0,N},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new m(o.HEAPU8.buffer,E,r),this.re._ck=!0,this.re)}}},o.Free=function(m){o._free(m.byteOffset),m.byteOffset=Bt,m.toTypedArray=null,m.re=null};var rn=Bt,n2,Wn=Bt,s2,fn=Bt,p2,xe,ee=Bt,P_,hn=Bt,b_,o2=Bt,v_,_2=Bt,i2,Cs=Bt,F_,g2=Bt,Y_,W_=Bt,Va=Float32Array.of(0,0,1),Bt=0;o.onRuntimeInitialized=function(){function m(r,E,N,D,P,x,tt){x||(x=4*D.width,D.colorType===o.ColorType.RGBA_F16?x*=2:D.colorType===o.ColorType.RGBA_F32&&(x*=4));var Et=x*D.height,ht=P?P.byteOffset:o._malloc(Et);if(tt?!r._readPixels(D,ht,x,E,N,tt):!r._readPixels(D,ht,x,E,N))return P||o._free(ht),null;if(P)return P.toTypedArray();switch(D.colorType){case o.ColorType.RGBA_8888:case o.ColorType.RGBA_F16:r=new Uint8Array(o.HEAPU8.buffer,ht,Et).slice();break;case o.ColorType.RGBA_F32:r=new Float32Array(o.HEAPU8.buffer,ht,Et).slice();break;default:return null}return o._free(ht),r}p2=o.Malloc(Float32Array,4),fn=p2.byteOffset,s2=o.Malloc(Float32Array,16),Wn=s2.byteOffset,n2=o.Malloc(Float32Array,9),rn=n2.byteOffset,F_=o.Malloc(Float32Array,12),g2=F_.byteOffset,Y_=o.Malloc(Float32Array,12),W_=Y_.byteOffset,xe=o.Malloc(Float32Array,4),ee=xe.byteOffset,P_=o.Malloc(Float32Array,4),hn=P_.byteOffset,b_=o.Malloc(Float32Array,3),o2=b_.byteOffset,v_=o.Malloc(Float32Array,3),_2=v_.byteOffset,i2=o.Malloc(Int32Array,4),Cs=i2.byteOffset,o.ColorSpace.SRGB=o.ColorSpace._MakeSRGB(),o.ColorSpace.DISPLAY_P3=o.ColorSpace._MakeDisplayP3(),o.ColorSpace.ADOBE_RGB=o.ColorSpace._MakeAdobeRGB(),o.GlyphRunFlags={IsWhiteSpace:o._GlyphRunFlags_isWhiteSpace},o.Path.MakeFromCmds=function(r){var E=C(r,"HEAPF32"),N=o.Path._MakeFromCmds(E,r.length);return B(E,r),N},o.Path.MakeFromVerbsPointsWeights=function(r,E,N){var D=C(r,"HEAPU8"),P=C(E,"HEAPF32"),x=C(N,"HEAPF32"),tt=o.Path._MakeFromVerbsPointsWeights(D,r.length,P,E.length,x,N&&N.length||0);return B(D,r),B(P,E),B(x,N),tt},o.Path.prototype.addArc=function(r,E,N){return r=dt(r),this._addArc(r,E,N),this},o.Path.prototype.addCircle=function(r,E,N,D){return this._addCircle(r,E,N,!!D),this},o.Path.prototype.addOval=function(r,E,N){return N===void 0&&(N=1),r=dt(r),this._addOval(r,!!E,N),this},o.Path.prototype.addPath=function(){var r=Array.prototype.slice.call(arguments),E=r[0],N=!1;if(typeof r[r.length-1]=="boolean"&&(N=r.pop()),r.length===1)this._addPath(E,1,0,0,0,1,0,0,0,1,N);else if(r.length===2)r=r[1],this._addPath(E,r[0],r[1],r[2],r[3],r[4],r[5],r[6]||0,r[7]||0,r[8]||1,N);else if(r.length===7||r.length===10)this._addPath(E,r[1],r[2],r[3],r[4],r[5],r[6],r[7]||0,r[8]||0,r[9]||1,N);else return null;return this},o.Path.prototype.addPoly=function(r,E){var N=C(r,"HEAPF32");return this._addPoly(N,r.length/2,E),B(N,r),this},o.Path.prototype.addRect=function(r,E){return r=dt(r),this._addRect(r,!!E),this},o.Path.prototype.addRRect=function(r,E){return r=ae(r),this._addRRect(r,!!E),this},o.Path.prototype.addVerbsPointsWeights=function(r,E,N){var D=C(r,"HEAPU8"),P=C(E,"HEAPF32"),x=C(N,"HEAPF32");this._addVerbsPointsWeights(D,r.length,P,E.length,x,N&&N.length||0),B(D,r),B(P,E),B(x,N)},o.Path.prototype.arc=function(r,E,N,D,P,x){return r=o.LTRBRect(r-N,E-N,r+N,E+N),P=(P-D)/Math.PI*180-360*!!x,x=new o.Path,x.addArc(r,D/Math.PI*180,P),this.addPath(x,!0),x.delete(),this},o.Path.prototype.arcToOval=function(r,E,N,D){return r=dt(r),this._arcToOval(r,E,N,D),this},o.Path.prototype.arcToRotated=function(r,E,N,D,P,x,tt){return this._arcToRotated(r,E,N,!!D,!!P,x,tt),this},o.Path.prototype.arcToTangent=function(r,E,N,D,P){return this._arcToTangent(r,E,N,D,P),this},o.Path.prototype.close=function(){return this._close(),this},o.Path.prototype.conicTo=function(r,E,N,D,P){return this._conicTo(r,E,N,D,P),this},o.Path.prototype.computeTightBounds=function(r){this._computeTightBounds(ee);var E=xe.toTypedArray();return r?(r.set(E),r):E.slice()},o.Path.prototype.cubicTo=function(r,E,N,D,P,x){return this._cubicTo(r,E,N,D,P,x),this},o.Path.prototype.dash=function(r,E,N){return this._dash(r,E,N)?this:null},o.Path.prototype.getBounds=function(r){this._getBounds(ee);var E=xe.toTypedArray();return r?(r.set(E),r):E.slice()},o.Path.prototype.lineTo=function(r,E){return this._lineTo(r,E),this},o.Path.prototype.moveTo=function(r,E){return this._moveTo(r,E),this},o.Path.prototype.offset=function(r,E){return this._transform(1,0,r,0,1,E,0,0,1),this},o.Path.prototype.quadTo=function(r,E,N,D){return this._quadTo(r,E,N,D),this},o.Path.prototype.rArcTo=function(r,E,N,D,P,x,tt){return this._rArcTo(r,E,N,D,P,x,tt),this},o.Path.prototype.rConicTo=function(r,E,N,D,P){return this._rConicTo(r,E,N,D,P),this},o.Path.prototype.rCubicTo=function(r,E,N,D,P,x){return this._rCubicTo(r,E,N,D,P,x),this},o.Path.prototype.rLineTo=function(r,E){return this._rLineTo(r,E),this},o.Path.prototype.rMoveTo=function(r,E){return this._rMoveTo(r,E),this},o.Path.prototype.rQuadTo=function(r,E,N,D){return this._rQuadTo(r,E,N,D),this},o.Path.prototype.stroke=function(r){return r=r||{},r.width=r.width||1,r.miter_limit=r.miter_limit||4,r.cap=r.cap||o.StrokeCap.Butt,r.join=r.join||o.StrokeJoin.Miter,r.precision=r.precision||1,this._stroke(r)?this:null},o.Path.prototype.transform=function(){if(arguments.length===1){var r=arguments[0];this._transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6]||0,r[7]||0,r[8]||1)}else if(arguments.length===6||arguments.length===9)r=arguments,this._transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6]||0,r[7]||0,r[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},o.Path.prototype.trim=function(r,E,N){return this._trim(r,E,!!N)?this:null},o.Image.prototype.encodeToBytes=function(r,E){var N=o.Se();return r=r||o.ImageFormat.PNG,E=E||100,N?this._encodeToBytes(r,E,N):this._encodeToBytes(r,E)},o.Image.prototype.makeShaderCubic=function(r,E,N,D,P){return P=$(P),this._makeShaderCubic(r,E,N,D,P)},o.Image.prototype.makeShaderOptions=function(r,E,N,D,P){return P=$(P),this._makeShaderOptions(r,E,N,D,P)},o.Image.prototype.readPixels=function(r,E,N,D,P){var x=o.Se();return m(this,r,E,N,D,P,x)},o.Canvas.prototype.clear=function(r){o.Od(this.Md),r=v(r),this._clear(r)},o.Canvas.prototype.clipRRect=function(r,E,N){o.Od(this.Md),r=ae(r),this._clipRRect(r,E,N)},o.Canvas.prototype.clipRect=function(r,E,N){o.Od(this.Md),r=dt(r),this._clipRect(r,E,N)},o.Canvas.prototype.concat=function(r){o.Od(this.Md),r=pt(r),this._concat(r)},o.Canvas.prototype.drawArc=function(r,E,N,D,P){o.Od(this.Md),r=dt(r),this._drawArc(r,E,N,D,P)},o.Canvas.prototype.drawAtlas=function(r,E,N,D,P,x,tt){if(r&&D&&E&&N&&E.length===N.length){o.Od(this.Md),P||(P=o.BlendMode.SrcOver);var Et=C(E,"HEAPF32"),ht=C(N,"HEAPF32"),It=N.length/4,I=C(R(x),"HEAPU32");if(tt&&"B"in tt&&"C"in tt)this._drawAtlasCubic(r,ht,Et,I,It,P,tt.B,tt.C,D);else{let k=o.FilterMode.Linear,lt=o.MipmapMode.None;tt&&(k=tt.filter,"mipmap"in tt&&(lt=tt.mipmap)),this._drawAtlasOptions(r,ht,Et,I,It,P,k,lt,D)}B(Et,E),B(ht,N),B(I,x)}},o.Canvas.prototype.drawCircle=function(r,E,N,D){o.Od(this.Md),this._drawCircle(r,E,N,D)},o.Canvas.prototype.drawColor=function(r,E){o.Od(this.Md),r=v(r),E!==void 0?this._drawColor(r,E):this._drawColor(r)},o.Canvas.prototype.drawColorInt=function(r,E){o.Od(this.Md),this._drawColorInt(r,E||o.BlendMode.SrcOver)},o.Canvas.prototype.drawColorComponents=function(r,E,N,D,P){o.Od(this.Md),r=it(r,E,N,D),P!==void 0?this._drawColor(r,P):this._drawColor(r)},o.Canvas.prototype.drawDRRect=function(r,E,N){o.Od(this.Md),r=ae(r,g2),E=ae(E,W_),this._drawDRRect(r,E,N)},o.Canvas.prototype.drawImage=function(r,E,N,D){o.Od(this.Md),this._drawImage(r,E,N,D||null)},o.Canvas.prototype.drawImageCubic=function(r,E,N,D,P,x){o.Od(this.Md),this._drawImageCubic(r,E,N,D,P,x||null)},o.Canvas.prototype.drawImageOptions=function(r,E,N,D,P,x){o.Od(this.Md),this._drawImageOptions(r,E,N,D,P,x||null)},o.Canvas.prototype.drawImageNine=function(r,E,N,D,P){o.Od(this.Md),E=C(E,"HEAP32",Cs),N=dt(N),this._drawImageNine(r,E,N,D,P||null)},o.Canvas.prototype.drawImageRect=function(r,E,N,D,P){o.Od(this.Md),dt(E,ee),dt(N,hn),this._drawImageRect(r,ee,hn,D,!!P)},o.Canvas.prototype.drawImageRectCubic=function(r,E,N,D,P,x){o.Od(this.Md),dt(E,ee),dt(N,hn),this._drawImageRectCubic(r,ee,hn,D,P,x||null)},o.Canvas.prototype.drawImageRectOptions=function(r,E,N,D,P,x){o.Od(this.Md),dt(E,ee),dt(N,hn),this._drawImageRectOptions(r,ee,hn,D,P,x||null)},o.Canvas.prototype.drawLine=function(r,E,N,D,P){o.Od(this.Md),this._drawLine(r,E,N,D,P)},o.Canvas.prototype.drawOval=function(r,E){o.Od(this.Md),r=dt(r),this._drawOval(r,E)},o.Canvas.prototype.drawPaint=function(r){o.Od(this.Md),this._drawPaint(r)},o.Canvas.prototype.drawParagraph=function(r,E,N){o.Od(this.Md),this._drawParagraph(r,E,N)},o.Canvas.prototype.drawPatch=function(r,E,N,D,P){if(24>r.length)throw"Need 12 cubic points";if(E&&4>E.length)throw"Need 4 colors";if(N&&8>N.length)throw"Need 4 shader coordinates";o.Od(this.Md);let x=C(r,"HEAPF32"),tt=E?C(R(E),"HEAPU32"):Bt,Et=N?C(N,"HEAPF32"):Bt;D||(D=o.BlendMode.Modulate),this._drawPatch(x,tt,Et,D,P),B(Et,N),B(tt,E),B(x,r)},o.Canvas.prototype.drawPath=function(r,E){o.Od(this.Md),this._drawPath(r,E)},o.Canvas.prototype.drawPicture=function(r){o.Od(this.Md),this._drawPicture(r)},o.Canvas.prototype.drawPoints=function(r,E,N){o.Od(this.Md);var D=C(E,"HEAPF32");this._drawPoints(r,D,E.length/2,N),B(D,E)},o.Canvas.prototype.drawRRect=function(r,E){o.Od(this.Md),r=ae(r),this._drawRRect(r,E)},o.Canvas.prototype.drawRect=function(r,E){o.Od(this.Md),r=dt(r),this._drawRect(r,E)},o.Canvas.prototype.drawRect4f=function(r,E,N,D,P){o.Od(this.Md),this._drawRect4f(r,E,N,D,P)},o.Canvas.prototype.drawShadow=function(r,E,N,D,P,x,tt){o.Od(this.Md);var Et=C(P,"HEAPF32"),ht=C(x,"HEAPF32");E=C(E,"HEAPF32",o2),N=C(N,"HEAPF32",_2),this._drawShadow(r,E,N,D,Et,ht,tt),B(Et,P),B(ht,x)},o.getShadowLocalBounds=function(r,E,N,D,P,x,tt){return r=$(r),N=C(N,"HEAPF32",o2),D=C(D,"HEAPF32",_2),this._getShadowLocalBounds(r,E,N,D,P,x,ee)?(E=xe.toTypedArray(),tt?(tt.set(E),tt):E.slice()):null},o.Canvas.prototype.drawTextBlob=function(r,E,N,D){o.Od(this.Md),this._drawTextBlob(r,E,N,D)},o.Canvas.prototype.drawVertices=function(r,E,N){o.Od(this.Md),this._drawVertices(r,E,N)},o.Canvas.prototype.getDeviceClipBounds=function(r){this._getDeviceClipBounds(Cs);var E=i2.toTypedArray();return r?r.set(E):r=E.slice(),r},o.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Wn);for(var r=Wn,E=Array(16),N=0;16>N;N++)E[N]=o.HEAPF32[r/4+N];return E},o.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(rn);for(var r=Array(9),E=0;9>E;E++)r[E]=o.HEAPF32[rn/4+E];return r},o.Canvas.prototype.makeSurface=function(r){return r=this._makeSurface(r),r.Md=this.Md,r},o.Canvas.prototype.readPixels=function(r,E,N,D,P){return o.Od(this.Md),m(this,r,E,N,D,P)},o.Canvas.prototype.saveLayer=function(r,E,N,D){return E=dt(E),this._saveLayer(r||null,E,N||null,D||0)},o.Canvas.prototype.writePixels=function(r,E,N,D,P,x,tt,Et){if(r.byteLength%(E*N))throw"pixels length must be a multiple of the srcWidth * srcHeight";o.Od(this.Md);var ht=r.byteLength/(E*N);x=x||o.AlphaType.Unpremul,tt=tt||o.ColorType.RGBA_8888,Et=Et||o.ColorSpace.SRGB;var It=ht*E;return ht=C(r,"HEAPU8"),E=this._writePixels({width:E,height:N,colorType:tt,alphaType:x,colorSpace:Et},ht,It,D,P),B(ht,r),E},o.ColorFilter.MakeBlend=function(r,E,N){return r=v(r),N=N||o.ColorSpace.SRGB,o.ColorFilter._MakeBlend(r,E,N)},o.ColorFilter.MakeMatrix=function(r){if(!r||r.length!==20)throw"invalid color matrix";var E=C(r,"HEAPF32"),N=o.ColorFilter._makeMatrix(E);return B(E,r),N},o.ContourMeasure.prototype.getPosTan=function(r,E){return this._getPosTan(r,ee),r=xe.toTypedArray(),E?(E.set(r),E):r.slice()},o.ImageFilter.MakeDropShadow=function(r,E,N,D,P,x){return P=v(P,fn),o.ImageFilter._MakeDropShadow(r,E,N,D,P,x)},o.ImageFilter.MakeDropShadowOnly=function(r,E,N,D,P,x){return P=v(P,fn),o.ImageFilter._MakeDropShadowOnly(r,E,N,D,P,x)},o.ImageFilter.MakeImage=function(r,E,N,D){if(N=dt(N,ee),D=dt(D,hn),"B"in E&&"C"in E)return o.ImageFilter._MakeImageCubic(r,E.B,E.C,N,D);let P=E.filter,x=o.MipmapMode.None;return"mipmap"in E&&(x=E.mipmap),o.ImageFilter._MakeImageOptions(r,P,x,N,D)},o.ImageFilter.MakeMatrixTransform=function(r,E,N){if(r=$(r),"B"in E&&"C"in E)return o.ImageFilter._MakeMatrixTransformCubic(r,E.B,E.C,N);let D=E.filter,P=o.MipmapMode.None;return"mipmap"in E&&(P=E.mipmap),o.ImageFilter._MakeMatrixTransformOptions(r,D,P,N)},o.Paint.prototype.getColor=function(){return this._getColor(fn),ft(fn)},o.Paint.prototype.setColor=function(r,E){E=E||null,r=v(r),this._setColor(r,E)},o.Paint.prototype.setColorComponents=function(r,E,N,D,P){P=P||null,r=it(r,E,N,D),this._setColor(r,P)},o.Path.prototype.getPoint=function(r,E){return this._getPoint(r,ee),r=xe.toTypedArray(),E?(E[0]=r[0],E[1]=r[1],E):r.slice(0,2)},o.Picture.prototype.makeShader=function(r,E,N,D,P){return D=$(D),P=dt(P),this._makeShader(r,E,N,D,P)},o.PictureRecorder.prototype.beginRecording=function(r){return r=dt(r),this._beginRecording(r)},o.Surface.prototype.getCanvas=function(){var r=this._getCanvas();return r.Md=this.Md,r},o.Surface.prototype.makeImageSnapshot=function(r){return o.Od(this.Md),r=C(r,"HEAP32",Cs),this._makeImageSnapshot(r)},o.Surface.prototype.makeSurface=function(r){return o.Od(this.Md),r=this._makeSurface(r),r.Md=this.Md,r},o.Surface.prototype.Df=function(r,E){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){o.Od(this.Md),r(this.He),this.flush(E)}.bind(this))},o.Surface.prototype.requestAnimationFrame||(o.Surface.prototype.requestAnimationFrame=o.Surface.prototype.Df),o.Surface.prototype.zf=function(r,E){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){o.Od(this.Md),r(this.He),this.flush(E),this.dispose()}.bind(this))},o.Surface.prototype.drawOnce||(o.Surface.prototype.drawOnce=o.Surface.prototype.zf),o.PathEffect.MakeDash=function(r,E){if(E||(E=0),!r.length||r.length%2===1)throw"Intervals array must have even length";var N=C(r,"HEAPF32");return E=o.PathEffect._MakeDash(N,r.length,E),B(N,r),E},o.PathEffect.MakeLine2D=function(r,E){return E=$(E),o.PathEffect._MakeLine2D(r,E)},o.PathEffect.MakePath2D=function(r,E){return r=$(r),o.PathEffect._MakePath2D(r,E)},o.Shader.MakeColor=function(r,E){return E=E||null,r=v(r),o.Shader._MakeColor(r,E)},o.Shader.Blend=o.Shader.MakeBlend,o.Shader.Color=o.Shader.MakeColor,o.Shader.MakeLinearGradient=function(r,E,N,D,P,x,tt,Et){Et=Et||null;var ht=J(N),It=C(D,"HEAPF32");tt=tt||0,x=$(x);var I=xe.toTypedArray();return I.set(r),I.set(E,2),r=o.Shader._MakeLinearGradient(ee,ht.ce,ht.colorType,It,ht.count,P,tt,x,Et),B(ht.ce,N),D&&B(It,D),r},o.Shader.MakeRadialGradient=function(r,E,N,D,P,x,tt,Et){Et=Et||null;var ht=J(N),It=C(D,"HEAPF32");return tt=tt||0,x=$(x),r=o.Shader._MakeRadialGradient(r[0],r[1],E,ht.ce,ht.colorType,It,ht.count,P,tt,x,Et),B(ht.ce,N),D&&B(It,D),r},o.Shader.MakeSweepGradient=function(r,E,N,D,P,x,tt,Et,ht,It){It=It||null;var I=J(N),k=C(D,"HEAPF32");return tt=tt||0,Et=Et||0,ht=ht||360,x=$(x),r=o.Shader._MakeSweepGradient(r,E,I.ce,I.colorType,k,I.count,P,Et,ht,tt,x,It),B(I.ce,N),D&&B(k,D),r},o.Shader.MakeTwoPointConicalGradient=function(r,E,N,D,P,x,tt,Et,ht,It){It=It||null;var I=J(P),k=C(x,"HEAPF32");ht=ht||0,Et=$(Et);var lt=xe.toTypedArray();return lt.set(r),lt.set(N,2),r=o.Shader._MakeTwoPointConicalGradient(ee,E,D,I.ce,I.colorType,k,I.count,tt,ht,Et,It),B(I.ce,P),x&&B(k,x),r},o.Vertices.prototype.bounds=function(r){this._bounds(ee);var E=xe.toTypedArray();return r?(r.set(E),r):E.slice()},o.Vd&&o.Vd.forEach(function(r){r()})},o.computeTonalColors=function(m){var r=C(m.ambient,"HEAPF32"),E=C(m.spot,"HEAPF32");this._computeTonalColors(r,E);var N={ambient:ft(r),spot:ft(E)};return B(r,m.ambient),B(E,m.spot),N},o.LTRBRect=function(m,r,E,N){return Float32Array.of(m,r,E,N)},o.XYWHRect=function(m,r,E,N){return Float32Array.of(m,r,m+E,r+N)},o.LTRBiRect=function(m,r,E,N){return Int32Array.of(m,r,E,N)},o.XYWHiRect=function(m,r,E,N){return Int32Array.of(m,r,m+E,r+N)},o.RRectXY=function(m,r,E){return Float32Array.of(m[0],m[1],m[2],m[3],r,E,r,E,r,E,r,E)},o.MakeAnimatedImageFromEncoded=function(m){m=new Uint8Array(m);var r=o._malloc(m.byteLength);return o.HEAPU8.set(m,r),(m=o._decodeAnimatedImage(r,m.byteLength))?m:null},o.MakeImageFromEncoded=function(m){m=new Uint8Array(m);var r=o._malloc(m.byteLength);return o.HEAPU8.set(m,r),(m=o._decodeImage(r,m.byteLength))?m:null};var L1=null;o.MakeImageFromCanvasImageSource=function(m){var r=m.width,E=m.height;L1||(L1=document.createElement("canvas")),L1.width=r,L1.height=E;var N=L1.getContext("2d",{wg:!0});return N.drawImage(m,0,0),m=N.getImageData(0,0,r,E),o.MakeImage({width:r,height:E,alphaType:o.AlphaType.Unpremul,colorType:o.ColorType.RGBA_8888,colorSpace:o.ColorSpace.SRGB},m.data,4*r)},o.MakeImage=function(m,r,E){var N=o._malloc(r.length);return o.HEAPU8.set(r,N),o._MakeImage(m,N,r.length,E)},o.MakeVertices=function(m,r,E,N,D,P){var x=D&&D.length||0,tt=0;return E&&E.length&&(tt|=1),N&&N.length&&(tt|=2),P===void 0||P||(tt|=4),m=new o._VerticesBuilder(m,r.length/2,x,tt),C(r,"HEAPF32",m.positions()),m.texCoords()&&C(E,"HEAPF32",m.texCoords()),m.colors()&&C(R(N),"HEAPU32",m.colors()),m.indices()&&C(D,"HEAPU16",m.indices()),m.detach()},o.Matrix={},o.Matrix.identity=function(){return h(3)},o.Matrix.invert=function(m){var r=m[0]*m[4]*m[8]+m[1]*m[5]*m[6]+m[2]*m[3]*m[7]-m[2]*m[4]*m[6]-m[1]*m[3]*m[8]-m[0]*m[5]*m[7];return r?[(m[4]*m[8]-m[5]*m[7])/r,(m[2]*m[7]-m[1]*m[8])/r,(m[1]*m[5]-m[2]*m[4])/r,(m[5]*m[6]-m[3]*m[8])/r,(m[0]*m[8]-m[2]*m[6])/r,(m[2]*m[3]-m[0]*m[5])/r,(m[3]*m[7]-m[4]*m[6])/r,(m[1]*m[6]-m[0]*m[7])/r,(m[0]*m[4]-m[1]*m[3])/r]:null},o.Matrix.mapPoints=function(m,r){for(var E=0;ED;D+=5){for(var P=0;4>P;P++)E[N++]=m[D]*r[P]+m[D+1]*r[P+5]+m[D+2]*r[P+10]+m[D+3]*r[P+15];E[N++]=m[D]*r[4]+m[D+1]*r[9]+m[D+2]*r[14]+m[D+3]*r[19]+m[D+4]}return E},function(m){m.Vd=m.Vd||[],m.Vd.push(function(){function r(I){if(!I||!I.length)return[];for(var k=[],lt=0;ltr?(o._free(m),null):(D=new Uint16Array(o.HEAPU8.buffer,m,r),E?(E.set(D),o._free(m),E):(E=Uint16Array.from(D),o._free(m),E))},o.Font.prototype.getGlyphIntercepts=function(m,r,E,N){var D=C(m,"HEAPU16"),P=C(r,"HEAPF32");return this._getGlyphIntercepts(D,m.length,!(m&&m._ck),P,r.length,!(r&&r._ck),E,N)},o.Font.prototype.getGlyphWidths=function(m,r,E){var N=C(m,"HEAPU16"),D=o._malloc(4*m.length);return this._getGlyphWidthBounds(N,m.length,D,Bt,r||null),r=new Float32Array(o.HEAPU8.buffer,D,m.length),B(N,m),E?(E.set(r),o._free(D),E):(m=Float32Array.from(r),o._free(D),m)},o.FontMgr.FromData=function(){if(!arguments.length)return null;var m=arguments;if(m.length===1&&Array.isArray(m[0])&&(m=arguments[0]),!m.length)return null;for(var r=[],E=[],N=0;Nr?(o._free(m),null):(D=new Uint16Array(o.HEAPU8.buffer,m,r),E?(E.set(D),o._free(m),E):(E=Uint16Array.from(D),o._free(m),E))},o.TextBlob.MakeOnPath=function(m,r,E,N){if(m&&m.length&&r&&r.countPoints()){if(r.countPoints()===1)return this.MakeFromText(m,E);N||(N=0);var D=E.getGlyphIDs(m);D=E.getGlyphWidths(D);var P=[];r=new o.ContourMeasureIter(r,!1,1);for(var x=r.next(),tt=new Float32Array(4),Et=0;Etx.length()){if(x.delete(),x=r.next(),!x){m=m.substring(0,Et);break}N=ht/2}x.getPosTan(N,tt);var It=tt[2],I=tt[3];P.push(It,I,tt[0]-ht/2*It,tt[1]-ht/2*I),N+=ht/2}return m=this.MakeFromRSXform(m,P,E),x&&x.delete(),r.delete(),m}},o.TextBlob.MakeFromRSXform=function(m,r,E){var N=$t(m)+1,D=o._malloc(N);return Kt(m,Dt,D,N),m=C(r,"HEAPF32"),E=o.TextBlob._MakeFromRSXform(D,N-1,m,E),o._free(D),E||null},o.TextBlob.MakeFromRSXformGlyphs=function(m,r,E){var N=C(m,"HEAPU16");return r=C(r,"HEAPF32"),E=o.TextBlob._MakeFromRSXformGlyphs(N,2*m.length,r,E),B(N,m),E||null},o.TextBlob.MakeFromGlyphs=function(m,r){var E=C(m,"HEAPU16");return r=o.TextBlob._MakeFromGlyphs(E,2*m.length,r),B(E,m),r||null},o.TextBlob.MakeFromText=function(m,r){var E=$t(m)+1,N=o._malloc(E);return Kt(m,Dt,N,E),m=o.TextBlob._MakeFromText(N,E-1,r),o._free(N),m||null},o.MallocGlyphIDs=function(m){return o.Malloc(Uint16Array,m)}}),o.Vd=o.Vd||[],o.Vd.push(function(){o.MakePicture=function(m){m=new Uint8Array(m);var r=o._malloc(m.byteLength);return o.HEAPU8.set(m,r),(m=o._MakePicture(r,m.byteLength))?m:null}}),o.Vd=o.Vd||[],o.Vd.push(function(){o.RuntimeEffect.Make=function(m,r){return o.RuntimeEffect._Make(m,{onError:r||function(E){console.log("RuntimeEffect error",E)}})},o.RuntimeEffect.prototype.makeShader=function(m,r){var E=!m._ck,N=C(m,"HEAPF32");return r=$(r),this._makeShader(N,4*m.length,E,r)},o.RuntimeEffect.prototype.makeShaderWithChildren=function(m,r,E){var N=!m._ck,D=C(m,"HEAPF32");E=$(E);for(var P=[],x=0;xj||1=j||!j||(this.Ke=j,this.Qd.setStrokeWidth(j))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(j){0>=j||!j||this.Qd.setStrokeMiter(j)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(j){0>j||!isFinite(j)||(this.we=j)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return r(this.Je)},set:function(j){this.Je=E(j)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(j){isFinite(j)&&(this.xe=j)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(j){isFinite(j)&&(this.ye=j)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return r(this.he)},set:function(j){typeof j=="string"?this.he=E(j):j.ue&&(this.he=j)}}),this.arc=function(j,T,F,W,z,X){k(this.Sd,j,T,F,F,0,W,z,X)},this.arcTo=function(j,T,F,W,z){ht(this.Sd,j,T,F,W,z)},this.beginPath=function(){this.Sd.delete(),this.Sd=new o.Path},this.bezierCurveTo=function(j,T,F,W,z,X){var ot=this.Sd;m([j,T,F,W,z,X])&&(ot.isEmpty()&&ot.moveTo(j,T),ot.cubicTo(j,T,F,W,z,X))},this.clearRect=function(j,T,F,W){this.Qd.setStyle(o.PaintStyle.Fill),this.Qd.setBlendMode(o.BlendMode.Clear),this.Nd.drawRect(o.XYWHRect(j,T,F,W),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(j,T){typeof j=="string"?(T=j,j=this.Sd):j&&j.$e&&(j=j.Wd),j||(j=this.Sd),j=j.copy(),T&&T.toLowerCase()==="evenodd"?j.setFillType(o.FillType.EvenOdd):j.setFillType(o.FillType.Winding),this.Nd.clipPath(j,o.ClipOp.Intersect,!0),j.delete()},this.closePath=function(){It(this.Sd)},this.createImageData=function(){if(arguments.length===1){var j=arguments[0];return new tt(new Uint8ClampedArray(4*j.width*j.height),j.width,j.height)}if(arguments.length===2){j=arguments[0];var T=arguments[1];return new tt(new Uint8ClampedArray(4*j*T),j,T)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(j,T,F,W){if(m(arguments)){var z=new Et(j,T,F,W);return this.Ce.push(z),z}},this.createPattern=function(j,T){return j=new Xt(j,T),this.Ce.push(j),j},this.createRadialGradient=function(j,T,F,W,z,X){if(m(arguments)){var ot=new Ae(j,T,F,W,z,X);return this.Ce.push(ot),ot}},this.drawImage=function(j){j instanceof x&&(j=j.tf());var T=this.Pe();if(arguments.length===3||arguments.length===5)var F=o.XYWHRect(arguments[1],arguments[2],arguments[3]||j.width(),arguments[4]||j.height()),W=o.XYWHRect(0,0,j.width(),j.height());else if(arguments.length===9)F=o.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),W=o.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Nd.drawImageRect(j,W,F,T,!1),T.dispose()},this.ellipse=function(j,T,F,W,z,X,ot,Ft){k(this.Sd,j,T,F,W,z,X,ot,Ft)},this.Pe=function(){var j=this.Qd.copy();if(j.setStyle(o.PaintStyle.Fill),A(this.be)){var T=o.multiplyByAlpha(this.be,this.ke);j.setColor(T)}else T=this.be.ue(this.Ud),j.setColor(o.Color(0,0,0,this.ke)),j.setShader(T);return j.dispose=function(){this.delete()},j},this.fill=function(j,T){if(typeof j=="string"?(T=j,j=this.Sd):j&&j.$e&&(j=j.Wd),T==="evenodd")this.Sd.setFillType(o.FillType.EvenOdd);else{if(T!=="nonzero"&&T)throw"invalid fill rule";this.Sd.setFillType(o.FillType.Winding)}j||(j=this.Sd),T=this.Pe();var F=this.ze(T);F&&(this.Nd.save(),this.se(),this.Nd.drawPath(j,F),this.Nd.restore(),F.dispose()),this.Nd.drawPath(j,T),T.dispose()},this.fillRect=function(j,T,F,W){var z=this.Pe(),X=this.ze(z);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(o.XYWHRect(j,T,F,W),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(o.XYWHRect(j,T,F,W),z),z.dispose()},this.fillText=function(j,T,F){var W=this.Pe();j=o.TextBlob.MakeFromText(j,this.ne);var z=this.ze(W);z&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(j,T,F,z),this.Nd.restore(),z.dispose()),this.Nd.drawTextBlob(j,T,F,W),j.delete(),W.dispose()},this.getImageData=function(j,T,F,W){return(j=this.Nd.readPixels(j,T,{width:F,height:W,colorType:o.ColorType.RGBA_8888,alphaType:o.AlphaType.Unpremul,colorSpace:o.ColorSpace.SRGB}))?new tt(new Uint8ClampedArray(j.buffer),F,W):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(j){var T=o.Matrix.invert(this.Ud);return o.Matrix.mapPoints(T,j),j},this.isPointInPath=function(j,T,F){var W=arguments;if(W.length===3)var z=this.Sd;else if(W.length===4)z=W[0],j=W[1],T=W[2],F=W[3];else throw"invalid arg count, need 3 or 4, got "+W.length;return!isFinite(j)||!isFinite(T)||(F=F||"nonzero",F!=="nonzero"&&F!=="evenodd")?!1:(W=this.nf([j,T]),j=W[0],T=W[1],z.setFillType(F==="nonzero"?o.FillType.Winding:o.FillType.EvenOdd),z.contains(j,T))},this.isPointInStroke=function(j,T){var F=arguments;if(F.length===2)var W=this.Sd;else if(F.length===3)W=F[0],j=F[1],T=F[2];else throw"invalid arg count, need 2 or 3, got "+F.length;return!isFinite(j)||!isFinite(T)?!1:(F=this.nf([j,T]),j=F[0],T=F[1],W=W.copy(),W.setFillType(o.FillType.Winding),W.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),F=W.contains(j,T),W.delete(),F)},this.lineTo=function(j,T){lt(this.Sd,j,T)},this.measureText=function(j){j=this.ne.getGlyphIDs(j),j=this.ne.getGlyphWidths(j);let T=0;for(let F of j)T+=F;return{width:T}},this.moveTo=function(j,T){var F=this.Sd;m([j,T])&&F.moveTo(j,T)},this.putImageData=function(j,T,F,W,z,X,ot){if(m([T,F,W,z,X,ot])){if(W===void 0)this.Nd.writePixels(j.data,j.width,j.height,T,F);else if(W=W||0,z=z||0,X=X||j.width,ot=ot||j.height,0>X&&(W+=X,X=Math.abs(X)),0>ot&&(z+=ot,ot=Math.abs(ot)),0>W&&(X+=W,W=0),0>z&&(ot+=z,z=0),!(0>=X||0>=ot)){j=o.MakeImage({width:j.width,height:j.height,alphaType:o.AlphaType.Unpremul,colorType:o.ColorType.RGBA_8888,colorSpace:o.ColorSpace.SRGB},j.data,4*j.width);var Ft=o.XYWHRect(W,z,X,ot);T=o.XYWHRect(T+W,F+z,X,ot),F=o.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(F),this.Nd.drawImageRect(j,Ft,T,null,!1),this.Nd.restore(),j.delete()}}},this.quadraticCurveTo=function(j,T,F,W){var z=this.Sd;m([j,T,F,W])&&(z.isEmpty()&&z.moveTo(j,T),z.quadTo(j,T,F,W))},this.rect=function(j,T,F,W){var z=this.Sd;j=o.XYWHRect(j,T,F,W),m(j)&&z.addRect(j)},this.resetTransform=function(){this.Sd.transform(this.Ud);var j=o.Matrix.invert(this.Ud);this.Nd.concat(j),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var j=this.mf.pop();if(j){var T=o.Matrix.multiply(this.Ud,o.Matrix.invert(j.Gf));this.Sd.transform(T),this.Qd.delete(),this.Qd=j.$f,this.ve=j.Yf,this.Ke=j.mg,this.he=j.lg,this.be=j.fs,this.xe=j.jg,this.ye=j.kg,this.we=j.dg,this.Je=j.ig,this.ke=j.Nf,this.Pd=j.Of,this.Ie=j.Zf,this.Qe=j.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(j){if(isFinite(j)){var T=o.Matrix.rotated(-j);this.Sd.transform(T),this.Nd.rotate(j/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var j=this.be.te();this.Ce.push(j)}else j=this.be;if(this.he.te){var T=this.he.te();this.Ce.push(T)}else T=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:T,fs:j,jg:this.xe,kg:this.ye,dg:this.we,ig:this.Je,Nf:this.ke,Zf:this.Ie,Of:this.Pd,$f:this.Qd.copy(),Mf:this.Qe}),this.Nd.save()},this.scale=function(j,T){if(m(arguments)){var F=o.Matrix.scaled(1/j,1/T);this.Sd.transform(F),this.Nd.scale(j,T),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(j){for(var T=0;Tj[T])return;j.length%2===1&&Array.prototype.push.apply(j,j),this.ve=j},this.setTransform=function(j,T,F,W,z,X){m(arguments)&&(this.resetTransform(),this.transform(j,T,F,W,z,X))},this.se=function(){var j=o.Matrix.invert(this.Ud);this.Nd.concat(j),this.Nd.concat(o.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(j){var T=o.multiplyByAlpha(this.Je,this.ke);if(!o.getColorComponents(T)[3]||!(this.we||this.ye||this.xe))return null;j=j.copy(),j.setColor(T);var F=o.MaskFilter.MakeBlur(o.BlurStyle.Normal,this.we/2,!1);return j.setMaskFilter(F),j.dispose=function(){F.delete(),this.delete()},j},this.bf=function(){var j=this.Qd.copy();if(j.setStyle(o.PaintStyle.Stroke),A(this.he)){var T=o.multiplyByAlpha(this.he,this.ke);j.setColor(T)}else T=this.he.ue(this.Ud),j.setColor(o.Color(0,0,0,this.ke)),j.setShader(T);if(j.setStrokeWidth(this.Ke),this.ve.length){var F=o.PathEffect.MakeDash(this.ve,this.Ie);j.setPathEffect(F)}return j.dispose=function(){F&&F.delete(),this.delete()},j},this.stroke=function(j){j=j?j.Wd:this.Sd;var T=this.bf(),F=this.ze(T);F&&(this.Nd.save(),this.se(),this.Nd.drawPath(j,F),this.Nd.restore(),F.dispose()),this.Nd.drawPath(j,T),T.dispose()},this.strokeRect=function(j,T,F,W){var z=this.bf(),X=this.ze(z);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(o.XYWHRect(j,T,F,W),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(o.XYWHRect(j,T,F,W),z),z.dispose()},this.strokeText=function(j,T,F){var W=this.bf();j=o.TextBlob.MakeFromText(j,this.ne);var z=this.ze(W);z&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(j,T,F,z),this.Nd.restore(),z.dispose()),this.Nd.drawTextBlob(j,T,F,W),j.delete(),W.dispose()},this.translate=function(j,T){if(m(arguments)){var F=o.Matrix.translated(-j,-T);this.Sd.transform(F),this.Nd.translate(j,T),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(j,T,F,W,z,X){j=[j,F,z,T,W,X,0,0,1],T=o.Matrix.invert(j),this.Sd.transform(T),this.Nd.concat(j),this.Ud=this.Nd.getTotalMatrix()},this.addHitRegion=function(){},this.clearHitRegions=function(){},this.drawFocusIfNeeded=function(){},this.removeHitRegion=function(){},this.scrollPathIntoView=function(){},Object.defineProperty(this,"canvas",{value:null,writable:!1})}function P(q){this.cf=q,this.Md=new D(q.getCanvas()),this.Re=[],this.decodeImage=function(j){if(j=o.MakeImageFromEncoded(j),!j)throw"Invalid input";return this.Re.push(j),new x(j)},this.loadFont=function(j,T){if(j=o.Typeface.MakeFreeTypeFaceFromData(j),!j)return null;this.Re.push(j);var F=(T.style||"normal")+"|"+(T.variant||"normal")+"|"+(T.weight||"normal");T=T.family,wt[T]||(wt[T]={"*":j}),wt[T][F]=j},this.makePath2D=function(j){return j=new Ht(j),this.Re.push(j.Wd),j},this.getContext=function(j){return j==="2d"?this.Md:null},this.toDataURL=function(j,T){this.cf.flush();var F=this.cf.makeImageSnapshot();if(F){j=j||"image/png";var W=o.ImageFormat.PNG;if(j==="image/jpeg"&&(W=o.ImageFormat.JPEG),T=F.encodeToBytes(W,T||.92)){if(F.delete(),j="data:"+j+";base64,",typeof Buffer<"u")T=Buffer.from(T).toString("base64");else{F=0,W=T.length;for(var z="",X;FW||1W);X++);this.ae.splice(X,0,W),this.de.splice(X,0,z)}},this.te=function(){var W=new Et(q,j,T,F);return W.de=this.de.slice(),W.ae=this.ae.slice(),W},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(W){var z=[q,j,T,F];o.Matrix.mapPoints(W,z),W=z[0];var X=z[1],ot=z[2];return z=z[3],this.me(),this.Yd=o.Shader.MakeLinearGradient([W,X],[ot,z],this.de,this.ae,o.TileMode.Clamp)}}function ht(q,j,T,F,W,z){if(m([j,T,F,W,z])){if(0>z)throw"radii cannot be negative";q.isEmpty()&&q.moveTo(j,T),q.arcToTangent(j,T,F,W,z)}}function It(q){if(!q.isEmpty()){var j=q.getBounds();(j[3]-j[1]||j[2]-j[0])&&q.close()}}function I(q,j,T,F,W,z,X){X=(X-z)/Math.PI*180,z=z/Math.PI*180,j=o.LTRBRect(j-F,T-W,j+F,T+W),1e-5>Math.abs(Math.abs(X)-360)?(T=X/2,q.arcToOval(j,z,T,!1),q.arcToOval(j,z+T,T,!1)):q.arcToOval(j,z,X,!1)}function k(q,j,T,F,W,z,X,ot,Ft){if(m([j,T,F,W,z,X,ot])){if(0>F||0>W)throw"radii cannot be negative";var Yt=2*Math.PI,we=X%Yt;0>we&&(we+=Yt);var C1=we-X;X=we,ot+=C1,!Ft&&ot-X>=Yt?ot=X+Yt:Ft&&X-ot>=Yt?ot=X-Yt:!Ft&&X>ot?ot=X+(Yt-(X-ot)%Yt):Ft&&XX||1X);Ft++);this.ae.splice(Ft,0,X),this.de.splice(Ft,0,ot)}},this.te=function(){var X=new Ae(q,j,T,F,W,z);return X.de=this.de.slice(),X.ae=this.ae.slice(),X},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(X){var ot=[q,j,F,W];o.Matrix.mapPoints(X,ot);var Ft=ot[0],Yt=ot[1],we=ot[2];ot=ot[3];var C1=(Math.abs(X[0])+Math.abs(X[4]))/2;return X=T*C1,C1*=z,this.me(),this.Yd=o.Shader.MakeTwoPointConicalGradient([Ft,Yt],X,[we,ot],C1,this.de,this.ae,o.TileMode.Clamp)}}o._testing={};var Te={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};o._testing.parseColor=E,o._testing.colorToString=r;var Le=RegExp("(italic|oblique|normal|)\\s*(small-caps|normal|)\\s*(bold|bolder|lighter|[1-9]00|normal|)\\s*([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)"),wt={"Noto Mono":{"*":null},monospace:{"*":null}};o._testing.parseFontString=N,o.MakeCanvas=function(q,j){return(q=o.MakeSurface(q,j))?new P(q):null},o.ImageData=function(){if(arguments.length===2){var q=arguments[0],j=arguments[1];return new tt(new Uint8ClampedArray(4*q*j),q,j)}if(arguments.length===3){var T=arguments[0];if(T.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(q=arguments[1],j=arguments[2],T%4)throw"bytes must be given in a multiple of 4";if(T%q)throw"bytes must divide evenly by width";if(j&&j!==T/(4*q))throw"invalid height given";return new tt(T,q,T/(4*q))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(s);var i=Object.assign({},s),u="./this.program",l=(o,g)=>{throw g},S=typeof window=="object",U=typeof importScripts=="function",L=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",G="",V,Q,w,Z,mt,nt;L?(G=U?r2("path").dirname(G)+"/":__dirname+"/",nt=()=>{mt||(Z=r2("fs"),mt=r2("path"))},V=function(o,g){return nt(),o=mt.normalize(o),Z.readFileSync(o,g?void 0:"utf8")},w=o=>(o=V(o,!0),o.buffer||(o=new Uint8Array(o)),o),Q=(o,g,h)=>{nt(),o=mt.normalize(o),Z.readFile(o,function(A,y){A?h(A):g(y.buffer)})},1{if(Mt)throw process.exitCode=o,g;g instanceof H_||st("exiting due to exception: "+g),process.exit(o)},s.inspect=function(){return"[Emscripten Module object]"}):(S||U)&&(U?G=self.location.href:typeof document<"u"&&document.currentScript&&(G=document.currentScript.src),t&&(G=t),G.indexOf("blob:")!==0?G=G.substr(0,G.replace(/[?#].*/,"").lastIndexOf("/")+1):G="",V=o=>{var g=new XMLHttpRequest;return g.open("GET",o,!1),g.send(null),g.responseText},U&&(w=o=>{var g=new XMLHttpRequest;return g.open("GET",o,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),Q=(o,g,h)=>{var A=new XMLHttpRequest;A.open("GET",o,!0),A.responseType="arraybuffer",A.onload=()=>{A.status==200||A.status==0&&A.response?g(A.response):h()},A.onerror=h,A.send(null)});var ut=s.print||console.log.bind(console),st=s.printErr||console.warn.bind(console);Object.assign(s,i),i=null,s.thisProgram&&(u=s.thisProgram),s.quit&&(l=s.quit);var ct=0,gt;s.wasmBinary&&(gt=s.wasmBinary);var Mt=s.noExitRuntime||!0;typeof WebAssembly!="object"&&N1("no native wasm support detected");var Ct,qt=!1,rt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Nt(o,g,h){var A=g+h;for(h=g;o[h]&&!(h>=A);)++h;if(16y?A+=String.fromCharCode(y):(y-=65536,A+=String.fromCharCode(55296|y>>10,56320|y&1023))}}else A+=String.fromCharCode(y)}return A}function yt(o,g){return o?Nt(Dt,o,g):""}function Kt(o,g,h,A){if(!(0=O){var M=o.charCodeAt(++R);O=65536+((O&1023)<<10)|M&1023}if(127>=O){if(h>=A)break;g[h++]=O}else{if(2047>=O){if(h+1>=A)break;g[h++]=192|O>>6}else{if(65535>=O){if(h+2>=A)break;g[h++]=224|O>>12}else{if(h+3>=A)break;g[h++]=240|O>>18,g[h++]=128|O>>12&63}g[h++]=128|O>>6&63}g[h++]=128|O&63}}return g[h]=0,h-y}function $t(o){for(var g=0,h=0;h=A&&(A=65536+((A&1023)<<10)|o.charCodeAt(++h)&1023),127>=A?++g:g=2047>=A?g+2:65535>=A?g+3:g+4}return g}var Ne=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function Qe(o,g){for(var h=o>>1,A=h+g/2;!(h>=A)&&bn[h];)++h;if(h<<=1,32=g/2);++A){var y=pn[o+2*A>>1];if(y==0)break;h+=String.fromCharCode(y)}return h}function ve(o,g,h){if(h===void 0&&(h=2147483647),2>h)return 0;h-=2;var A=g;h=h<2*o.length?h/2:o.length;for(var y=0;y>1]=o.charCodeAt(y),g+=2;return pn[g>>1]=0,g-A}function $h(o){return 2*o.length}function Xh(o,g){for(var h=0,A="";!(h>=g/4);){var y=et[o+4*h>>2];if(y==0)break;++h,65536<=y?(y-=65536,A+=String.fromCharCode(55296|y>>10,56320|y&1023)):A+=String.fromCharCode(y)}return A}function qh(o,g,h){if(h===void 0&&(h=2147483647),4>h)return 0;var A=g;h=A+h-4;for(var y=0;y=R){var O=o.charCodeAt(++y);R=65536+((R&1023)<<10)|O&1023}if(et[g>>2]=R,g+=4,g+4>h)break}return et[g>>2]=0,g-A}function ta(o){for(var g=0,h=0;h=A&&++h,g+=4}return g}var Pp,Fe,Dt,pn,bn,et,bt,At,e_;function n_(){var o=Ct.buffer;Pp=o,s.HEAP8=Fe=new Int8Array(o),s.HEAP16=pn=new Int16Array(o),s.HEAP32=et=new Int32Array(o),s.HEAPU8=Dt=new Uint8Array(o),s.HEAPU16=bn=new Uint16Array(o),s.HEAPU32=bt=new Uint32Array(o),s.HEAPF32=At=new Float32Array(o),s.HEAPF64=e_=new Float64Array(o)}var s_,p_=[],o_=[],__=[];function ea(){var o=s.preRun.shift();p_.unshift(o)}var yn=0,bp=null,j1=null;function N1(o){throw s.onAbort&&s.onAbort(o),o="Aborted("+o+")",st(o),qt=!0,o=new WebAssembly.RuntimeError(o+". Build with -sASSERTIONS for more info."),_(o),o}function i_(){return Se.startsWith("data:application/octet-stream;base64,")}var Se;if(Se="canvaskit.wasm",!i_()){var g_=Se;Se=s.locateFile?s.locateFile(g_,G):G+g_}function r_(){var o=Se;try{if(o==Se&>)return new Uint8Array(gt);if(w)return w(o);throw"both async and sync fetching of the wasm failed"}catch(g){N1(g)}}function na(){if(!gt&&(S||U)){if(typeof fetch=="function"&&!Se.startsWith("file://"))return fetch(Se,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+Se+"'";return o.arrayBuffer()}).catch(function(){return r_()});if(Q)return new Promise(function(o,g){Q(Se,function(h){o(new Uint8Array(h))},g)})}return Promise.resolve().then(function(){return r_()})}function vp(o){for(;0>2])}var vn={},ln={},ys={};function h_(o){if(o===void 0)return"_unknown";o=o.replace(/[^a-zA-Z0-9_]/g,"$");var g=o.charCodeAt(0);return 48<=g&&57>=g?"_"+o:o}function Yp(o,g){return o=h_(o),function(){return g.apply(this,arguments)}}function Wp(o){var g=Error,h=Yp(o,function(A){this.name=o,this.message=A,A=Error(A).stack,A!==void 0&&(this.stack=this.toString()+` -`+A.replace(/^Error(:[^\n]*)?\n/,""))});return h.prototype=Object.create(g.prototype),h.prototype.constructor=h,h.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},h}var a_=void 0;function ls(o){throw new a_(o)}function Ie(o,g,h){function A(M){M=h(M),M.length!==o.length&&ls("Mismatched type converter count");for(var B=0;B{ln.hasOwnProperty(M)?y[B]=ln[M]:(R.push(M),vn.hasOwnProperty(M)||(vn[M]=[]),vn[M].push(()=>{y[B]=ln[M],++O,O===R.length&&A(y)}))}),R.length===0&&A(y)}function js(o){switch(o){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+o)}}var m_=void 0;function Qt(o){for(var g="";Dt[o];)g+=m_[Dt[o++]];return g}var Fn=void 0;function Ut(o){throw new Fn(o)}function Ye(o,g,h={}){if(!("argPackAdvance"in g))throw new TypeError("registerType registeredInstance requires argPackAdvance");var A=g.name;if(o||Ut('type "'+A+'" must have a positive integer typeid pointer'),ln.hasOwnProperty(o)){if(h.Vf)return;Ut("Cannot register type '"+A+"' twice")}ln[o]=g,delete ys[o],vn.hasOwnProperty(o)&&(g=vn[o],delete vn[o],g.forEach(y=>y()))}function Vp(o){Ut(o.Ld.Xd.Rd.name+" instance already deleted")}var xp=!1;function u_(){}function c_(o){--o.count.value,o.count.value===0&&(o.$d?o.fe.le(o.$d):o.Xd.Rd.le(o.Td))}function A_(o,g,h){return g===h?o:h.ie===void 0?null:(o=A_(o,g,h.ie),o===null?null:h.Jf(o))}var E_={},f1=[];function wp(){for(;f1.length;){var o=f1.pop();o.Ld.Fe=!1,o.delete()}}var d1=void 0,R1={};function sa(o,g){for(g===void 0&&Ut("ptr should not be undefined");o.ie;)g=o.Oe(g),o=o.ie;return R1[g]}function Ns(o,g){return g.Xd&&g.Td||ls("makeClassHandle requires ptr and ptrType"),!!g.fe!=!!g.$d&&ls("Both smartPtrType and smartPtr must be specified"),g.count={value:1},M1(Object.create(o,{Ld:{value:g}}))}function M1(o){return typeof FinalizationRegistry>"u"?(M1=g=>g,o):(xp=new FinalizationRegistry(g=>{c_(g.Ld)}),M1=g=>{var h=g.Ld;return h.$d&&xp.register(g,{Ld:h},g),g},u_=g=>{xp.unregister(g)},M1(o))}function on(){}function kp(o,g,h){if(o[g].Zd===void 0){var A=o[g];o[g]=function(){return o[g].Zd.hasOwnProperty(arguments.length)||Ut("Function '"+h+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+o[g].Zd+")!"),o[g].Zd[arguments.length].apply(this,arguments)},o[g].Zd=[],o[g].Zd[A.De]=A}}function Jp(o,g,h){s.hasOwnProperty(o)?((h===void 0||s[o].Zd!==void 0&&s[o].Zd[h]!==void 0)&&Ut("Cannot register public name '"+o+"' twice"),kp(s,o,o),s.hasOwnProperty(h)&&Ut("Cannot register multiple overloads of a function with the same number of arguments ("+h+")!"),s[o].Zd[h]=g):(s[o]=g,h!==void 0&&(s[o].tg=h))}function pa(o,g,h,A,y,R,O,M){this.name=o,this.constructor=g,this.Ge=h,this.le=A,this.ie=y,this.Pf=R,this.Oe=O,this.Jf=M,this.bg=[]}function zp(o,g,h){for(;g!==h;)g.Oe||Ut("Expected null or instance of "+h.name+", got an instance of "+g.name),o=g.Oe(o),g=g.ie;return o}function oa(o,g){return g===null?(this.ff&&Ut("null is not a valid "+this.name),0):(g.Ld||Ut('Cannot pass "'+$p(g)+'" as a '+this.name),g.Ld.Td||Ut("Cannot pass deleted object as a pointer of type "+this.name),zp(g.Ld.Td,g.Ld.Xd.Rd,this.Rd))}function _a(o,g){if(g===null){if(this.ff&&Ut("null is not a valid "+this.name),this.Ue){var h=this.gf();return o!==null&&o.push(this.le,h),h}return 0}if(g.Ld||Ut('Cannot pass "'+$p(g)+'" as a '+this.name),g.Ld.Td||Ut("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&g.Ld.Xd.Te&&Ut("Cannot convert argument of type "+(g.Ld.fe?g.Ld.fe.name:g.Ld.Xd.name)+" to parameter type "+this.name),h=zp(g.Ld.Td,g.Ld.Xd.Rd,this.Rd),this.Ue)switch(g.Ld.$d===void 0&&Ut("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:g.Ld.fe===this?h=g.Ld.$d:Ut("Cannot convert argument of type "+(g.Ld.fe?g.Ld.fe.name:g.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:h=g.Ld.$d;break;case 2:if(g.Ld.fe===this)h=g.Ld.$d;else{var A=g.clone();h=this.cg(h,de(function(){A.delete()})),o!==null&&o.push(this.le,h)}break;default:Ut("Unsupporting sharing policy")}return h}function ia(o,g){return g===null?(this.ff&&Ut("null is not a valid "+this.name),0):(g.Ld||Ut('Cannot pass "'+$p(g)+'" as a '+this.name),g.Ld.Td||Ut("Cannot pass deleted object as a pointer of type "+this.name),g.Ld.Xd.Te&&Ut("Cannot convert argument of type "+g.Ld.Xd.name+" to parameter type "+this.name),zp(g.Ld.Td,g.Ld.Xd.Rd,this.Rd))}function We(o,g,h,A,y,R,O,M,B,C,J){this.name=o,this.Rd=g,this.ff=h,this.Te=A,this.Ue=y,this.ag=R,this.hg=O,this.vf=M,this.gf=B,this.cg=C,this.le=J,y||g.ie!==void 0?this.toWireType=_a:(this.toWireType=A?oa:ia,this.ee=null)}function y_(o,g,h){s.hasOwnProperty(o)||ls("Replacing nonexistant public symbol"),s[o].Zd!==void 0&&h!==void 0?s[o].Zd[h]=g:(s[o]=g,s[o].De=h)}function ga(o,g){var h=[];return function(){if(h.length=0,Object.assign(h,arguments),o.includes("j")){var A=s["dynCall_"+o];A=h&&h.length?A.apply(null,[g].concat(h)):A.call(null,g)}else A=te(g).apply(null,h);return A}}function pe(o,g){o=Qt(o);var h=o.includes("j")?ga(o,g):te(g);return typeof h!="function"&&Ut("unknown function pointer with signature "+o+": "+g),h}var l_=void 0;function j_(o){o=K_(o);var g=Qt(o);return Ze(o),g}function T1(o,g){function h(R){y[R]||ln[R]||(ys[R]?ys[R].forEach(h):(A.push(R),y[R]=!0))}var A=[],y={};throw g.forEach(h),new l_(o+": "+A.map(j_).join([", "]))}function Ss(o,g,h,A,y){var R=g.length;2>R&&Ut("argTypes array size mismatch! Must at least get return value and 'this' types!");var O=g[1]!==null&&h!==null,M=!1;for(h=1;h>2]);return h}var Qp=[],De=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Zp(o){4(o||Ut("Cannot use deleted val. handle = "+o),De[o].value),de=o=>{switch(o){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var g=Qp.length?Qp.pop():De.length;return De[g]={hf:1,value:o},g}};function ra(o,g,h){switch(g){case 0:return function(A){return this.fromWireType((h?Fe:Dt)[A])};case 1:return function(A){return this.fromWireType((h?pn:bn)[A>>1])};case 2:return function(A){return this.fromWireType((h?et:bt)[A>>2])};default:throw new TypeError("Unknown integer type: "+o)}}function B1(o,g){var h=ln[o];return h===void 0&&Ut(g+" has unknown type "+j_(o)),h}function $p(o){if(o===null)return"null";var g=typeof o;return g==="object"||g==="array"||g==="function"?o.toString():""+o}function ha(o,g){switch(g){case 2:return function(h){return this.fromWireType(At[h>>2])};case 3:return function(h){return this.fromWireType(e_[h>>3])};default:throw new TypeError("Unknown float type: "+o)}}function aa(o,g,h){switch(g){case 0:return h?function(A){return Fe[A]}:function(A){return Dt[A]};case 1:return h?function(A){return pn[A>>1]}:function(A){return bn[A>>1]};case 2:return h?function(A){return et[A>>2]}:function(A){return bt[A>>2]};default:throw new TypeError("Unknown integer type: "+o)}}var ma={};function ds(o){var g=ma[o];return g===void 0?Qt(o):g}var Rs=[];function N_(){function o(g){g.$$$embind_global$$$=g;var h=typeof $$$embind_global$$$=="object"&&g.$$$embind_global$$$==g;return h||delete g.$$$embind_global$$$,h}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&o(global)?$$$embind_global$$$=global:typeof self=="object"&&o(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function ua(o){var g=Rs.length;return Rs.push(o),g}function ca(o,g){for(var h=Array(o),A=0;A>2],"parameter "+A);return h}var S_=[];function Aa(o){var g=Array(o+1);return function(h,A,y){g[0]=h;for(var R=0;R>2],"parameter "+R);g[R+1]=O.readValueFromPointer(y),y+=O.argPackAdvance}return h=new(h.bind.apply(h,g)),de(h)}}var f_={},d_;d_=L?()=>{var o=process.hrtime();return 1e3*o[0]+o[1]/1e6}:()=>performance.now();function Ea(o){var g=o.getExtension("ANGLE_instanced_arrays");g&&(o.vertexAttribDivisor=function(h,A){g.vertexAttribDivisorANGLE(h,A)},o.drawArraysInstanced=function(h,A,y,R){g.drawArraysInstancedANGLE(h,A,y,R)},o.drawElementsInstanced=function(h,A,y,R,O){g.drawElementsInstancedANGLE(h,A,y,R,O)})}function ya(o){var g=o.getExtension("OES_vertex_array_object");g&&(o.createVertexArray=function(){return g.createVertexArrayOES()},o.deleteVertexArray=function(h){g.deleteVertexArrayOES(h)},o.bindVertexArray=function(h){g.bindVertexArrayOES(h)},o.isVertexArray=function(h){return g.isVertexArrayOES(h)})}function la(o){var g=o.getExtension("WEBGL_draw_buffers");g&&(o.drawBuffers=function(h,A){g.drawBuffersWEBGL(h,A)})}var R_=1,Ms=[],Ue=[],Ts=[],G1=[],Re=[],Oe=[],_n=[],Ve=[],jn=[],Nn=[],M_={},T_={},B_=4;function vt(o){Bs||(Bs=o)}function Yn(o){for(var g=R_++,h=o.length;h"u"||g.Kf)&&Sa(A),h}function G_(o){return St=Ve[o],s.rg=K=St&&St.ge,!(o&&!K)}function Sa(o){if(o||(o=St),!o.Wf){o.Wf=!0;var g=o.ge;Ea(g),ya(g),la(g),g.qf=g.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),g.uf=g.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=o.version&&(g.rf=g.getExtension("EXT_disjoint_timer_query_webgl2")),(2>o.version||!g.rf)&&(g.rf=g.getExtension("EXT_disjoint_timer_query")),g.sg=g.getExtension("WEBGL_multi_draw"),(g.getSupportedExtensions()||[]).forEach(function(h){h.includes("lose_context")||h.includes("debug")||g.getExtension(h)})}}var St,Bs,Gs=[];function Sn(o,g,h,A){for(var y=0;y>2]=O}}function I_(o,g,h){if(g){var A=void 0;switch(o){case 36346:A=1;break;case 36344:h!=0&&h!=1&&vt(1280);return;case 34814:case 36345:A=0;break;case 34466:var y=K.getParameter(34467);A=y?y.length:0;break;case 33309:if(2>St.version){vt(1282);return}A=2*(K.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>St.version){vt(1280);return}A=o==33307?3:0}if(A===void 0)switch(y=K.getParameter(o),typeof y){case"number":A=y;break;case"boolean":A=y?1:0;break;case"string":vt(1280);return;case"object":if(y===null)switch(o){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:A=0;break;default:vt(1280);return}else{if(y instanceof Float32Array||y instanceof Uint32Array||y instanceof Int32Array||y instanceof Array){for(o=0;o>2]=y[o];break;case 2:At[g+4*o>>2]=y[o];break;case 4:Fe[g+o>>0]=y[o]?1:0}return}try{A=y.name|0}catch(R){vt(1280),st("GL_INVALID_ENUM in glGet"+h+"v: Unknown object returned from WebGL getParameter("+o+")! (error: "+R+")");return}}break;default:vt(1280),st("GL_INVALID_ENUM in glGet"+h+"v: Native code calling glGet"+h+"v("+o+") and it returns "+y+" of type "+typeof y+"!");return}switch(h){case 1:h=A,bt[g>>2]=h,bt[g+4>>2]=(h-bt[g>>2])/4294967296;break;case 0:et[g>>2]=A;break;case 2:At[g>>2]=A;break;case 4:Fe[g>>0]=A?1:0}}else vt(1281)}function I1(o){var g=$t(o)+1,h=Os(g);return Kt(o,Dt,h,g),h}function D_(o){return o.slice(-1)=="]"&&o.lastIndexOf("[")}function Is(o){return o-=5120,o==0?Fe:o==1?Dt:o==2?pn:o==4?et:o==6?At:o==5||o==28922||o==28520||o==30779||o==30782?bt:bn}function Xp(o,g,h,A,y){o=Is(o);var R=31-Math.clz32(o.BYTES_PER_ELEMENT),O=B_;return o.subarray(y>>R,y+A*(h*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[g-6402]||1)*(1<>R)}function Lt(o){var g=K.Hf;if(g){var h=g.Ne[o];return typeof h=="number"&&(g.Ne[o]=h=K.getUniformLocation(g,g.wf[o]+(0ae?-1:0dt-v.getDate())it-=dt-v.getDate()+1,v.setDate(1),11>ft?v.setMonth(ft+1):(v.setMonth(0),v.setFullYear(v.getFullYear()+1));else{v.setDate(v.getDate()+it);break}}return ft=new Date(v.getFullYear()+1,0,4),it=M(new Date(v.getFullYear(),0,4)),ft=M(ft),0>=O(it,v)?0>=O(ft,v)?v.getFullYear()+1:v.getFullYear():v.getFullYear()-1}var C=et[A+40>>2];A={pg:et[A>>2],og:et[A+4>>2],Ye:et[A+8>>2],jf:et[A+12>>2],Ze:et[A+16>>2],qe:et[A+20>>2],je:et[A+24>>2],pe:et[A+28>>2],vg:et[A+32>>2],ng:et[A+36>>2],qg:C?yt(C):""},h=yt(h),C={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var J in C)h=h.replace(new RegExp(J,"g"),C[J]);var $="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),pt="January February March April May June July August September October November December".split(" ");C={"%a":function(v){return $[v.je].substring(0,3)},"%A":function(v){return $[v.je]},"%b":function(v){return pt[v.Ze].substring(0,3)},"%B":function(v){return pt[v.Ze]},"%C":function(v){return R((v.qe+1900)/100|0,2)},"%d":function(v){return R(v.jf,2)},"%e":function(v){return y(v.jf,2," ")},"%g":function(v){return B(v).toString().substring(2)},"%G":function(v){return B(v)},"%H":function(v){return R(v.Ye,2)},"%I":function(v){return v=v.Ye,v==0?v=12:12v.Ye?"AM":"PM"},"%S":function(v){return R(v.pg,2)},"%t":function(){return" "},"%u":function(v){return v.je||7},"%U":function(v){return R(Math.floor((v.pe+7-v.je)/7),2)},"%V":function(v){var it=Math.floor((v.pe+7-(v.je+6)%7)/7);if(2>=(v.je+371-v.pe-2)%7&&it++,it)it==53&&(ft=(v.je+371-v.pe)%7,ft==4||ft==3&&Ds(v.qe)||(it=1));else{it=52;var ft=(v.je+7-v.pe-1)%7;(ft==4||ft==5&&Ds(v.qe%400-1))&&it++}return R(it,2)},"%w":function(v){return v.je},"%W":function(v){return R(Math.floor((v.pe+7-(v.je+6)%7)/7),2)},"%y":function(v){return(v.qe+1900).toString().substring(2)},"%Y":function(v){return v.qe+1900},"%z":function(v){v=v.ng;var it=0<=v;return v=Math.abs(v)/60,(it?"+":"-")+("0000"+(v/60*100+v%60)).slice(-4)},"%Z":function(v){return v.qg},"%%":function(){return"%"}},h=h.replace(/%%/g,"\0\0");for(J in C)h.includes(J)&&(h=h.replace(new RegExp(J,"g"),C[J](A)));return h=h.replace(/\0\0/g,"%"),J=Ta(h),J.length>g?0:(Fe.set(J,o),J.length-1)}a_=s.InternalError=Wp("InternalError");for(var C_=Array(256),Us=0;256>Us;++Us)C_[Us]=String.fromCharCode(Us);m_=C_,Fn=s.BindingError=Wp("BindingError"),on.prototype.isAliasOf=function(o){if(!(this instanceof on&&o instanceof on))return!1;var g=this.Ld.Xd.Rd,h=this.Ld.Td,A=o.Ld.Xd.Rd;for(o=o.Ld.Td;g.ie;)h=g.Oe(h),g=g.ie;for(;A.ie;)o=A.Oe(o),A=A.ie;return g===A&&h===o},on.prototype.clone=function(){if(this.Ld.Td||Vp(this),this.Ld.Me)return this.Ld.count.value+=1,this;var o=M1,g=Object,h=g.create,A=Object.getPrototypeOf(this),y=this.Ld;return o=o(h.call(g,A,{Ld:{value:{count:y.count,Fe:y.Fe,Me:y.Me,Td:y.Td,Xd:y.Xd,$d:y.$d,fe:y.fe}}})),o.Ld.count.value+=1,o.Ld.Fe=!1,o},on.prototype.delete=function(){this.Ld.Td||Vp(this),this.Ld.Fe&&!this.Ld.Me&&Ut("Object already scheduled for deletion"),u_(this),c_(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},on.prototype.isDeleted=function(){return!this.Ld.Td},on.prototype.deleteLater=function(){return this.Ld.Td||Vp(this),this.Ld.Fe&&!this.Ld.Me&&Ut("Object already scheduled for deletion"),f1.push(this),f1.length===1&&d1&&d1(wp),this.Ld.Fe=!0,this},s.getInheritedInstanceCount=function(){return Object.keys(R1).length},s.getLiveInheritedInstances=function(){var o=[],g;for(g in R1)R1.hasOwnProperty(g)&&o.push(R1[g]);return o},s.flushPendingDeletes=wp,s.setDelayFunction=function(o){d1=o,f1.length&&d1&&d1(wp)},We.prototype.Qf=function(o){return this.vf&&(o=this.vf(o)),o},We.prototype.pf=function(o){this.le&&this.le(o)},We.prototype.argPackAdvance=8,We.prototype.readValueFromPointer=S1,We.prototype.deleteObject=function(o){o!==null&&o.delete()},We.prototype.fromWireType=function(o){function g(){return this.Ue?Ns(this.Rd.Ge,{Xd:this.ag,Td:h,fe:this,$d:o}):Ns(this.Rd.Ge,{Xd:this,Td:o})}var h=this.Qf(o);if(!h)return this.pf(o),null;var A=sa(this.Rd,h);if(A!==void 0)return A.Ld.count.value===0?(A.Ld.Td=h,A.Ld.$d=o,A.clone()):(A=A.clone(),this.pf(o),A);if(A=this.Rd.Pf(h),A=E_[A],!A)return g.call(this);A=this.Te?A.Ff:A.pointerType;var y=A_(h,this.Rd,A.Rd);return y===null?g.call(this):this.Ue?Ns(A.Rd.Ge,{Xd:A,Td:y,fe:this,$d:o}):Ns(A.Rd.Ge,{Xd:A,Td:y})},l_=s.UnboundTypeError=Wp("UnboundTypeError"),s.count_emval_handles=function(){for(var o=0,g=5;gce;++ce)Gs.push(Array(ce));var Ra=new Float32Array(288);for(ce=0;288>ce;++ce)gn[ce]=Ra.subarray(0,ce+1);var Ma=new Int32Array(288);for(ce=0;288>ce;++ce)D1[ce]=Ma.subarray(0,ce+1);function Ta(o){var g=Array($t(o)+1);return Kt(o,g,0,g.length),g}var Ba={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(o){var g=Es[o];delete Es[o];var h=g.gf,A=g.le,y=g.sf,R=y.map(O=>O.Tf).concat(y.map(O=>O.fg));Ie([o],R,O=>{var M={};return y.forEach((B,C)=>{var J=O[C],$=B.Rf,pt=B.Sf,v=O[C+y.length],it=B.eg,ft=B.gg;M[B.Lf]={read:dt=>J.fromWireType($(pt,dt)),write:(dt,ae)=>{var Me=[];it(ft,dt,v.toWireType(Me,ae)),Fp(Me)}}}),[{name:g.name,fromWireType:function(B){var C={},J;for(J in M)C[J]=M[J].read(B);return A(B),C},toWireType:function(B,C){for(var J in M)if(!(J in C))throw new TypeError('Missing field: "'+J+'"');var $=h();for(J in M)M[J].write($,C[J]);return B!==null&&B.push(A,$),$},argPackAdvance:8,readValueFromPointer:S1,ee:A}]})},qb:function(){},Hb:function(o,g,h,A,y){var R=js(h);g=Qt(g),Ye(o,{name:g,fromWireType:function(O){return!!O},toWireType:function(O,M){return M?A:y},argPackAdvance:8,readValueFromPointer:function(O){if(h===1)var M=Fe;else if(h===2)M=pn;else if(h===4)M=et;else throw new TypeError("Unknown boolean type size: "+g);return this.fromWireType(M[O>>R])},ee:null})},q:function(o,g,h,A,y,R,O,M,B,C,J,$,pt){J=Qt(J),R=pe(y,R),M&&(M=pe(O,M)),C&&(C=pe(B,C)),pt=pe($,pt);var v=h_(J);Jp(v,function(){T1("Cannot construct "+J+" due to unbound types",[A])}),Ie([o,g,h],A?[A]:[],function(it){if(it=it[0],A)var ft=it.Rd,dt=ft.Ge;else dt=on.prototype;it=Yp(v,function(){if(Object.getPrototypeOf(this)!==ae)throw new Fn("Use 'new' to construct "+J);if(Me.oe===void 0)throw new Fn(J+" has no accessible constructor");var O1=Me.oe[arguments.length];if(O1===void 0)throw new Fn("Tried to invoke ctor of "+J+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Me.oe).toString()+") parameters instead!");return O1.apply(this,arguments)});var ae=Object.create(dt,{constructor:{value:it}});it.prototype=ae;var Me=new pa(J,it,ae,pt,ft,R,M,C);ft=new We(J,Me,!0,!1,!1),dt=new We(J+"*",Me,!1,!1,!1);var U1=new We(J+" const*",Me,!1,!0,!1);return E_[o]={pointerType:dt,Ff:U1},y_(v,it),[ft,dt,U1]})},h:function(o,g,h,A,y,R,O){var M=fs(h,A);g=Qt(g),R=pe(y,R),Ie([],[o],function(B){function C(){T1("Cannot call "+J+" due to unbound types",M)}B=B[0];var J=B.name+"."+g;g.startsWith("@@")&&(g=Symbol[g.substring(2)]);var $=B.Rd.constructor;return $[g]===void 0?(C.De=h-1,$[g]=C):(kp($,g,J),$[g].Zd[h-1]=C),Ie([],M,function(pt){return pt=[pt[0],null].concat(pt.slice(1)),pt=Ss(J,pt,null,R,O),$[g].Zd===void 0?(pt.De=h-1,$[g]=pt):$[g].Zd[h-1]=pt,[]}),[]})},B:function(o,g,h,A,y,R){0{T1("Cannot construct "+M.name+" due to unbound types",O)},Ie([],O,function(C){return C.splice(1,0,null),M.Rd.oe[g-1]=Ss(B,C,null,y,R),[]}),[]})},b:function(o,g,h,A,y,R,O,M){var B=fs(h,A);g=Qt(g),R=pe(y,R),Ie([],[o],function(C){function J(){T1("Cannot call "+$+" due to unbound types",B)}C=C[0];var $=C.name+"."+g;g.startsWith("@@")&&(g=Symbol[g.substring(2)]),M&&C.Rd.bg.push(g);var pt=C.Rd.Ge,v=pt[g];return v===void 0||v.Zd===void 0&&v.className!==C.name&&v.De===h-2?(J.De=h-2,J.className=C.name,pt[g]=J):(kp(pt,g,$),pt[g].Zd[h-2]=J),Ie([],B,function(it){return it=Ss($,it,C,R,O),pt[g].Zd===void 0?(it.De=h-2,pt[g]=it):pt[g].Zd[h-2]=it,[]}),[]})},u:function(o,g,h){o=Qt(o),Ie([],[g],function(A){return A=A[0],s[o]=A.fromWireType(h),[]})},Gb:function(o,g){g=Qt(g),Ye(o,{name:g,fromWireType:function(h){var A=fe(h);return Zp(h),A},toWireType:function(h,A){return de(A)},argPackAdvance:8,readValueFromPointer:S1,ee:null})},n:function(o,g,h,A){function y(){}h=js(h),g=Qt(g),y.values={},Ye(o,{name:g,constructor:y,fromWireType:function(R){return this.constructor.values[R]},toWireType:function(R,O){return O.value},argPackAdvance:8,readValueFromPointer:ra(g,h,A),ee:null}),Jp(g,y)},e:function(o,g,h){var A=B1(o,"enum");g=Qt(g),o=A.constructor,A=Object.create(A.constructor.prototype,{value:{value:h},constructor:{value:Yp(A.name+"_"+g,function(){})}}),o.values[h]=A,o[g]=A},Y:function(o,g,h){h=js(h),g=Qt(g),Ye(o,{name:g,fromWireType:function(A){return A},toWireType:function(A,y){return y},argPackAdvance:8,readValueFromPointer:ha(g,h),ee:null})},y:function(o,g,h,A,y,R){var O=fs(g,h);o=Qt(o),y=pe(A,y),Jp(o,function(){T1("Cannot call "+o+" due to unbound types",O)},g-1),Ie([],O,function(M){return M=[M[0],null].concat(M.slice(1)),y_(o,Ss(o,M,null,y,R),g-1),[]})},E:function(o,g,h,A,y){g=Qt(g),y===-1&&(y=4294967295),y=js(h);var R=M=>M;if(A===0){var O=32-8*h;R=M=>M<>>O}h=g.includes("unsigned")?function(M,B){return B>>>0}:function(M,B){return B},Ye(o,{name:g,fromWireType:R,toWireType:h,argPackAdvance:8,readValueFromPointer:aa(g,y,A!==0),ee:null})},v:function(o,g,h){function A(R){R>>=2;var O=bt;return new y(Pp,O[R+1],O[R])}var y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][g];h=Qt(h),Ye(o,{name:h,fromWireType:A,argPackAdvance:8,readValueFromPointer:A},{Vf:!0})},t:function(o,g,h,A,y,R,O,M,B,C,J,$){h=Qt(h),R=pe(y,R),M=pe(O,M),C=pe(B,C),$=pe(J,$),Ie([o],[g],function(pt){return pt=pt[0],[new We(h,pt.Rd,!1,!1,!0,pt,A,R,M,C,$)]})},X:function(o,g){g=Qt(g);var h=g==="std::string";Ye(o,{name:g,fromWireType:function(A){var y=bt[A>>2],R=A+4;if(h)for(var O=R,M=0;M<=y;++M){var B=R+M;if(M==y||Dt[B]==0){if(O=yt(O,B-O),C===void 0)var C=O;else C+=String.fromCharCode(0),C+=O;O=B+1}}else{for(C=Array(y),M=0;M>2]=O,h&&R)Kt(y,Dt,B,O+1);else if(R)for(R=0;Rbn,M=1;else g===4&&(A=Xh,y=qh,R=ta,O=()=>bt,M=2);Ye(o,{name:h,fromWireType:function(B){for(var C=bt[B>>2],J=O(),$,pt=B+4,v=0;v<=C;++v){var it=B+4+v*g;(v==C||J[it>>M]==0)&&(pt=A(pt,it-pt),$===void 0?$=pt:($+=String.fromCharCode(0),$+=pt),pt=it+g)}return Ze(B),$},toWireType:function(B,C){typeof C!="string"&&Ut("Cannot pass non-string to C++ string type "+h);var J=R(C),$=Os(4+J+g);return bt[$>>2]=J>>M,y(C,$+4,J+g),B!==null&&B.push(Ze,$),$},argPackAdvance:8,readValueFromPointer:S1,ee:function(B){Ze(B)}})},D:function(o,g,h,A,y,R){Es[o]={name:Qt(g),gf:pe(h,A),le:pe(y,R),sf:[]}},g:function(o,g,h,A,y,R,O,M,B,C){Es[o].sf.push({Lf:Qt(g),Tf:h,Rf:pe(A,y),Sf:R,fg:O,eg:pe(M,B),gg:C})},Ib:function(o,g){g=Qt(g),Ye(o,{Xf:!0,name:g,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(o,g,h){o=fe(o),g=B1(g,"emval::as");var A=[],y=de(A);return bt[h>>2]=y,g.toWireType(A,o)},$:function(o,g,h,A,y){o=Rs[o],g=fe(g),h=ds(h);var R=[];return bt[A>>2]=de(R),o(g,h,R,y)},A:function(o,g,h,A){o=Rs[o],g=fe(g),h=ds(h),o(g,h,null,A)},f:Zp,M:function(o){return o===0?de(N_()):(o=ds(o),de(N_()[o]))},z:function(o,g){var h=ca(o,g),A=h[0];g=A.name+"_$"+h.slice(1).map(function(O){return O.name}).join("_")+"$";var y=S_[g];if(y!==void 0)return y;var R=Array(o-1);return y=ua((O,M,B,C)=>{for(var J=0,$=0;$>>0)+4294967296*A)},ka:function(o,g,h,A){K.colorMask(!!o,!!g,!!h,!!A)},la:function(o){K.compileShader(Oe[o])},ma:function(o,g,h,A,y,R,O,M){2<=St.version?K.Ee||!O?K.compressedTexImage2D(o,g,h,A,y,R,O,M):K.compressedTexImage2D(o,g,h,A,y,R,Dt,M,O):K.compressedTexImage2D(o,g,h,A,y,R,M?Dt.subarray(M,M+O):null)},na:function(o,g,h,A,y,R,O,M,B){2<=St.version?K.Ee||!M?K.compressedTexSubImage2D(o,g,h,A,y,R,O,M,B):K.compressedTexSubImage2D(o,g,h,A,y,R,O,Dt,B,M):K.compressedTexSubImage2D(o,g,h,A,y,R,O,B?Dt.subarray(B,B+M):null)},Zb:function(o,g,h,A,y){K.copyBufferSubData(o,g,h,A,y)},oa:function(o,g,h,A,y,R,O,M){K.copyTexSubImage2D(o,g,h,A,y,R,O,M)},pa:function(){var o=Yn(Ue),g=K.createProgram();return g.name=o,g.Xe=g.Ve=g.We=0,g.kf=1,Ue[o]=g,o},qa:function(o){var g=Yn(Oe);return Oe[g]=K.createShader(o),g},ra:function(o){K.cullFace(o)},sa:function(o,g){for(var h=0;h>2],y=Ms[A];y&&(K.deleteBuffer(y),y.name=0,Ms[A]=null,A==K.df&&(K.df=0),A==K.Ee&&(K.Ee=0))}},hc:function(o,g){for(var h=0;h>2],y=Ts[A];y&&(K.deleteFramebuffer(y),y.name=0,Ts[A]=null)}},ta:function(o){if(o){var g=Ue[o];g?(K.deleteProgram(g),g.name=0,Ue[o]=null):vt(1281)}},ic:function(o,g){for(var h=0;h>2],y=G1[A];y&&(K.deleteRenderbuffer(y),y.name=0,G1[A]=null)}},Sb:function(o,g){for(var h=0;h>2],y=jn[A];y&&(K.deleteSampler(y),y.name=0,jn[A]=null)}},ua:function(o){if(o){var g=Oe[o];g?(K.deleteShader(g),Oe[o]=null):vt(1281)}},_b:function(o){if(o){var g=Nn[o];g?(K.deleteSync(g),g.name=0,Nn[o]=null):vt(1281)}},va:function(o,g){for(var h=0;h>2],y=Re[A];y&&(K.deleteTexture(y),y.name=0,Re[A]=null)}},Dc:function(o,g){for(var h=0;h>2];K.deleteVertexArray(_n[A]),_n[A]=null}},yc:function(o,g){for(var h=0;h>2];K.deleteVertexArray(_n[A]),_n[A]=null}},wa:function(o){K.depthMask(!!o)},xa:function(o){K.disable(o)},ya:function(o){K.disableVertexAttribArray(o)},za:function(o,g,h){K.drawArrays(o,g,h)},Ac:function(o,g,h,A){K.drawArraysInstanced(o,g,h,A)},vc:function(o,g,h,A,y){K.qf.drawArraysInstancedBaseInstanceWEBGL(o,g,h,A,y)},tc:function(o,g){for(var h=Gs[o],A=0;A>2];K.drawBuffers(h)},Aa:function(o,g,h,A){K.drawElements(o,g,h,A)},Bc:function(o,g,h,A,y){K.drawElementsInstanced(o,g,h,A,y)},wc:function(o,g,h,A,y,R,O){K.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(o,g,h,A,y,R,O)},nc:function(o,g,h,A,y,R){K.drawElements(o,A,y,R)},Ba:function(o){K.enable(o)},Ca:function(o){K.enableVertexAttribArray(o)},Xb:function(o,g){return(o=K.fenceSync(o,g))?(g=Yn(Nn),o.name=g,Nn[g]=o,g):0},Da:function(){K.finish()},Ea:function(){K.flush()},jc:function(o,g,h,A){K.framebufferRenderbuffer(o,g,h,G1[A])},kc:function(o,g,h,A,y){K.framebufferTexture2D(o,g,h,Re[A],y)},Fa:function(o){K.frontFace(o)},Ga:function(o,g){Sn(o,g,"createBuffer",Ms)},lc:function(o,g){Sn(o,g,"createFramebuffer",Ts)},mc:function(o,g){Sn(o,g,"createRenderbuffer",G1)},Tb:function(o,g){Sn(o,g,"createSampler",jn)},Ha:function(o,g){Sn(o,g,"createTexture",Re)},Ec:function(o,g){Sn(o,g,"createVertexArray",_n)},zc:function(o,g){Sn(o,g,"createVertexArray",_n)},bc:function(o){K.generateMipmap(o)},Ia:function(o,g,h){h?et[h>>2]=K.getBufferParameter(o,g):vt(1281)},Ja:function(){var o=K.getError()||Bs;return Bs=0,o},Ka:function(o,g){I_(o,g,2)},cc:function(o,g,h,A){o=K.getFramebufferAttachmentParameter(o,g,h),(o instanceof WebGLRenderbuffer||o instanceof WebGLTexture)&&(o=o.name|0),et[A>>2]=o},N:function(o,g){I_(o,g,0)},La:function(o,g,h,A){o=K.getProgramInfoLog(Ue[o]),o===null&&(o="(unknown error)"),g=0>2]=g)},Ma:function(o,g,h){if(h)if(o>=R_)vt(1281);else if(o=Ue[o],g==35716)o=K.getProgramInfoLog(o),o===null&&(o="(unknown error)"),et[h>>2]=o.length+1;else if(g==35719){if(!o.Xe)for(g=0;g>2]=o.Xe}else if(g==35722){if(!o.Ve)for(g=0;g>2]=o.Ve}else if(g==35381){if(!o.We)for(g=0;g>2]=o.We}else et[h>>2]=K.getProgramParameter(o,g);else vt(1281)},dc:function(o,g,h){h?et[h>>2]=K.getRenderbufferParameter(o,g):vt(1281)},Na:function(o,g,h,A){o=K.getShaderInfoLog(Oe[o]),o===null&&(o="(unknown error)"),g=0>2]=g)},Ob:function(o,g,h,A){o=K.getShaderPrecisionFormat(o,g),et[h>>2]=o.rangeMin,et[h+4>>2]=o.rangeMax,et[A>>2]=o.precision},Oa:function(o,g,h){h?g==35716?(o=K.getShaderInfoLog(Oe[o]),o===null&&(o="(unknown error)"),et[h>>2]=o?o.length+1:0):g==35720?(o=K.getShaderSource(Oe[o]),et[h>>2]=o?o.length+1:0):et[h>>2]=K.getShaderParameter(Oe[o],g):vt(1281)},R:function(o){var g=M_[o];if(!g){switch(o){case 7939:g=K.getSupportedExtensions()||[],g=g.concat(g.map(function(A){return"GL_"+A})),g=I1(g.join(" "));break;case 7936:case 7937:case 37445:case 37446:(g=K.getParameter(o))||vt(1280),g=g&&I1(g);break;case 7938:g=K.getParameter(7938),g=2<=St.version?"OpenGL ES 3.0 ("+g+")":"OpenGL ES 2.0 ("+g+")",g=I1(g);break;case 35724:g=K.getParameter(35724);var h=g.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);h!==null&&(h[1].length==3&&(h[1]+="0"),g="OpenGL ES GLSL ES "+h[1]+" ("+g+")"),g=I1(g);break;default:vt(1280)}M_[o]=g}return g},jb:function(o,g){if(2>St.version)return vt(1282),0;var h=T_[o];if(h)return 0>g||g>=h.length?(vt(1281),0):h[g];switch(o){case 7939:return h=K.getSupportedExtensions()||[],h=h.concat(h.map(function(A){return"GL_"+A})),h=h.map(function(A){return I1(A)}),h=T_[o]=h,0>g||g>=h.length?(vt(1281),0):h[g];default:return vt(1280),0}},Pa:function(o,g){if(g=yt(g),o=Ue[o]){var h=o,A=h.Ne,y=h.xf,R;if(!A)for(h.Ne=A={},h.wf={},R=0;R>>0,y=g.slice(0,R)),(y=o.xf[y])&&A>2];K.invalidateFramebuffer(o,A)},Qb:function(o,g,h,A,y,R,O){for(var M=Gs[g],B=0;B>2];K.invalidateSubFramebuffer(o,M,A,y,R,O)},Yb:function(o){return K.isSync(Nn[o])},Qa:function(o){return(o=Re[o])?K.isTexture(o):0},Ra:function(o){K.lineWidth(o)},Sa:function(o){o=Ue[o],K.linkProgram(o),o.Ne=0,o.xf={}},rc:function(o,g,h,A,y,R){K.uf.multiDrawArraysInstancedBaseInstanceWEBGL(o,et,g>>2,et,h>>2,et,A>>2,bt,y>>2,R)},sc:function(o,g,h,A,y,R,O,M){K.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(o,et,g>>2,h,et,A>>2,et,y>>2,et,R>>2,bt,O>>2,M)},Ta:function(o,g){o==3317&&(B_=g),K.pixelStorei(o,g)},uc:function(o){K.readBuffer(o)},Ua:function(o,g,h,A,y,R,O){if(2<=St.version)if(K.df)K.readPixels(o,g,h,A,y,R,O);else{var M=Is(R);K.readPixels(o,g,h,A,y,R,M,O>>31-Math.clz32(M.BYTES_PER_ELEMENT))}else(O=Xp(R,y,h,A,O))?K.readPixels(o,g,h,A,y,R,O):vt(1280)},ec:function(o,g,h,A){K.renderbufferStorage(o,g,h,A)},ac:function(o,g,h,A,y){K.renderbufferStorageMultisample(o,g,h,A,y)},Ub:function(o,g,h){K.samplerParameterf(jn[o],g,h)},Vb:function(o,g,h){K.samplerParameteri(jn[o],g,h)},Wb:function(o,g,h){K.samplerParameteri(jn[o],g,et[h>>2])},Va:function(o,g,h,A){K.scissor(o,g,h,A)},Wa:function(o,g,h,A){for(var y="",R=0;R>2]:-1;y+=yt(et[h+4*R>>2],0>O?void 0:O)}K.shaderSource(Oe[o],y)},Xa:function(o,g,h){K.stencilFunc(o,g,h)},Ya:function(o,g,h,A){K.stencilFuncSeparate(o,g,h,A)},Za:function(o){K.stencilMask(o)},_a:function(o,g){K.stencilMaskSeparate(o,g)},$a:function(o,g,h){K.stencilOp(o,g,h)},ab:function(o,g,h,A){K.stencilOpSeparate(o,g,h,A)},bb:function(o,g,h,A,y,R,O,M,B){if(2<=St.version)if(K.Ee)K.texImage2D(o,g,h,A,y,R,O,M,B);else if(B){var C=Is(M);K.texImage2D(o,g,h,A,y,R,O,M,C,B>>31-Math.clz32(C.BYTES_PER_ELEMENT))}else K.texImage2D(o,g,h,A,y,R,O,M,null);else K.texImage2D(o,g,h,A,y,R,O,M,B?Xp(M,O,A,y,B):null)},cb:function(o,g,h){K.texParameterf(o,g,h)},db:function(o,g,h){K.texParameterf(o,g,At[h>>2])},eb:function(o,g,h){K.texParameteri(o,g,h)},fb:function(o,g,h){K.texParameteri(o,g,et[h>>2])},oc:function(o,g,h,A,y){K.texStorage2D(o,g,h,A,y)},gb:function(o,g,h,A,y,R,O,M,B){if(2<=St.version)if(K.Ee)K.texSubImage2D(o,g,h,A,y,R,O,M,B);else if(B){var C=Is(M);K.texSubImage2D(o,g,h,A,y,R,O,M,C,B>>31-Math.clz32(C.BYTES_PER_ELEMENT))}else K.texSubImage2D(o,g,h,A,y,R,O,M,null);else C=null,B&&(C=Xp(M,O,y,R,B)),K.texSubImage2D(o,g,h,A,y,R,O,M,C)},hb:function(o,g){K.uniform1f(Lt(o),g)},ib:function(o,g,h){if(2<=St.version)g&&K.uniform1fv(Lt(o),At,h>>2,g);else{if(288>=g)for(var A=gn[g-1],y=0;y>2];else A=At.subarray(h>>2,h+4*g>>2);K.uniform1fv(Lt(o),A)}},Zc:function(o,g){K.uniform1i(Lt(o),g)},_c:function(o,g,h){if(2<=St.version)g&&K.uniform1iv(Lt(o),et,h>>2,g);else{if(288>=g)for(var A=D1[g-1],y=0;y>2];else A=et.subarray(h>>2,h+4*g>>2);K.uniform1iv(Lt(o),A)}},$c:function(o,g,h){K.uniform2f(Lt(o),g,h)},ad:function(o,g,h){if(2<=St.version)g&&K.uniform2fv(Lt(o),At,h>>2,2*g);else{if(144>=g)for(var A=gn[2*g-1],y=0;y<2*g;y+=2)A[y]=At[h+4*y>>2],A[y+1]=At[h+(4*y+4)>>2];else A=At.subarray(h>>2,h+8*g>>2);K.uniform2fv(Lt(o),A)}},Yc:function(o,g,h){K.uniform2i(Lt(o),g,h)},Xc:function(o,g,h){if(2<=St.version)g&&K.uniform2iv(Lt(o),et,h>>2,2*g);else{if(144>=g)for(var A=D1[2*g-1],y=0;y<2*g;y+=2)A[y]=et[h+4*y>>2],A[y+1]=et[h+(4*y+4)>>2];else A=et.subarray(h>>2,h+8*g>>2);K.uniform2iv(Lt(o),A)}},Wc:function(o,g,h,A){K.uniform3f(Lt(o),g,h,A)},Vc:function(o,g,h){if(2<=St.version)g&&K.uniform3fv(Lt(o),At,h>>2,3*g);else{if(96>=g)for(var A=gn[3*g-1],y=0;y<3*g;y+=3)A[y]=At[h+4*y>>2],A[y+1]=At[h+(4*y+4)>>2],A[y+2]=At[h+(4*y+8)>>2];else A=At.subarray(h>>2,h+12*g>>2);K.uniform3fv(Lt(o),A)}},Uc:function(o,g,h,A){K.uniform3i(Lt(o),g,h,A)},Tc:function(o,g,h){if(2<=St.version)g&&K.uniform3iv(Lt(o),et,h>>2,3*g);else{if(96>=g)for(var A=D1[3*g-1],y=0;y<3*g;y+=3)A[y]=et[h+4*y>>2],A[y+1]=et[h+(4*y+4)>>2],A[y+2]=et[h+(4*y+8)>>2];else A=et.subarray(h>>2,h+12*g>>2);K.uniform3iv(Lt(o),A)}},Sc:function(o,g,h,A,y){K.uniform4f(Lt(o),g,h,A,y)},Rc:function(o,g,h){if(2<=St.version)g&&K.uniform4fv(Lt(o),At,h>>2,4*g);else{if(72>=g){var A=gn[4*g-1],y=At;h>>=2;for(var R=0;R<4*g;R+=4){var O=h+R;A[R]=y[O],A[R+1]=y[O+1],A[R+2]=y[O+2],A[R+3]=y[O+3]}}else A=At.subarray(h>>2,h+16*g>>2);K.uniform4fv(Lt(o),A)}},Fc:function(o,g,h,A,y){K.uniform4i(Lt(o),g,h,A,y)},Gc:function(o,g,h){if(2<=St.version)g&&K.uniform4iv(Lt(o),et,h>>2,4*g);else{if(72>=g)for(var A=D1[4*g-1],y=0;y<4*g;y+=4)A[y]=et[h+4*y>>2],A[y+1]=et[h+(4*y+4)>>2],A[y+2]=et[h+(4*y+8)>>2],A[y+3]=et[h+(4*y+12)>>2];else A=et.subarray(h>>2,h+16*g>>2);K.uniform4iv(Lt(o),A)}},Hc:function(o,g,h,A){if(2<=St.version)g&&K.uniformMatrix2fv(Lt(o),!!h,At,A>>2,4*g);else{if(72>=g)for(var y=gn[4*g-1],R=0;R<4*g;R+=4)y[R]=At[A+4*R>>2],y[R+1]=At[A+(4*R+4)>>2],y[R+2]=At[A+(4*R+8)>>2],y[R+3]=At[A+(4*R+12)>>2];else y=At.subarray(A>>2,A+16*g>>2);K.uniformMatrix2fv(Lt(o),!!h,y)}},Ic:function(o,g,h,A){if(2<=St.version)g&&K.uniformMatrix3fv(Lt(o),!!h,At,A>>2,9*g);else{if(32>=g)for(var y=gn[9*g-1],R=0;R<9*g;R+=9)y[R]=At[A+4*R>>2],y[R+1]=At[A+(4*R+4)>>2],y[R+2]=At[A+(4*R+8)>>2],y[R+3]=At[A+(4*R+12)>>2],y[R+4]=At[A+(4*R+16)>>2],y[R+5]=At[A+(4*R+20)>>2],y[R+6]=At[A+(4*R+24)>>2],y[R+7]=At[A+(4*R+28)>>2],y[R+8]=At[A+(4*R+32)>>2];else y=At.subarray(A>>2,A+36*g>>2);K.uniformMatrix3fv(Lt(o),!!h,y)}},Jc:function(o,g,h,A){if(2<=St.version)g&&K.uniformMatrix4fv(Lt(o),!!h,At,A>>2,16*g);else{if(18>=g){var y=gn[16*g-1],R=At;A>>=2;for(var O=0;O<16*g;O+=16){var M=A+O;y[O]=R[M],y[O+1]=R[M+1],y[O+2]=R[M+2],y[O+3]=R[M+3],y[O+4]=R[M+4],y[O+5]=R[M+5],y[O+6]=R[M+6],y[O+7]=R[M+7],y[O+8]=R[M+8],y[O+9]=R[M+9],y[O+10]=R[M+10],y[O+11]=R[M+11],y[O+12]=R[M+12],y[O+13]=R[M+13],y[O+14]=R[M+14],y[O+15]=R[M+15]}}else y=At.subarray(A>>2,A+64*g>>2);K.uniformMatrix4fv(Lt(o),!!h,y)}},Kc:function(o){o=Ue[o],K.useProgram(o),K.Hf=o},Lc:function(o,g){K.vertexAttrib1f(o,g)},Mc:function(o,g){K.vertexAttrib2f(o,At[g>>2],At[g+4>>2])},Nc:function(o,g){K.vertexAttrib3f(o,At[g>>2],At[g+4>>2],At[g+8>>2])},Oc:function(o,g){K.vertexAttrib4f(o,At[g>>2],At[g+4>>2],At[g+8>>2],At[g+12>>2])},pc:function(o,g){K.vertexAttribDivisor(o,g)},qc:function(o,g,h,A,y){K.vertexAttribIPointer(o,g,h,A,y)},Pc:function(o,g,h,A,y,R){K.vertexAttribPointer(o,g,h,!!A,y,R)},Qc:function(o,g,h,A){K.viewport(o,g,h,A)},lb:function(o,g,h,A){K.waitSync(Nn[o],g,(h>>>0)+4294967296*A)},tb:function(o){var g=Dt.length;if(o>>>=0,2147483648=h;h*=2){var A=g*(1+.2/h);A=Math.min(A,o+100663296);var y=Math;A=Math.max(o,A),y=y.min.call(y,2147483648,A+(65536-A%65536)%65536);t:{try{Ct.grow(y-Pp.byteLength+65535>>>16),n_();var R=1;break t}catch{}R=void 0}if(R)return!0}return!1},nb:function(){return St?St.Uf:0},wb:function(o,g){var h=0;return U_().forEach(function(A,y){var R=g+h;for(y=bt[o+4*y>>2]=R,R=0;R>0]=A.charCodeAt(R);Fe[y>>0]=0,h+=A.length+1}),0},xb:function(o,g){var h=U_();bt[o>>2]=h.length;var A=0;return h.forEach(function(y){A+=y.length+1}),bt[g>>2]=A,0},Jb:function(o){Mt||(s.onExit&&s.onExit(o),qt=!0),l(o,new H_(o))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(o,g,h,A){for(var y=0,R=0;R>2],M=bt[g+4>>2];g+=8;for(var B=0;B>2]=y,0},c:function(){return ct},k:Ia,o:Ha,l:Ga,K:ba,Lb:va,_:Fa,Z:Wa,Q:La,p:Ka,x:Oa,s:Ua,w:Ca,Kb:Ya,Mb:Pa,Nb:Da,d:function(o){ct=o},rb:function(o,g,h,A){return da(o,g,h,A)}};(function(){function o(y){s.asm=y.exports,Ct=s.asm.dd,n_(),s_=s.asm.fd,o_.unshift(s.asm.ed),yn--,s.monitorRunDependencies&&s.monitorRunDependencies(yn),yn==0&&(bp!==null&&(clearInterval(bp),bp=null),j1&&(y=j1,j1=null,y()))}function g(y){o(y.instance)}function h(y){return na().then(function(R){return WebAssembly.instantiate(R,A)}).then(function(R){return R}).then(y,function(R){st("failed to asynchronously prepare wasm: "+R),N1(R)})}var A={a:Ba};if(yn++,s.monitorRunDependencies&&s.monitorRunDependencies(yn),s.instantiateWasm)try{return s.instantiateWasm(A,o)}catch(y){return st("Module.instantiateWasm callback failed with error: "+y),!1}return function(){return gt||typeof WebAssembly.instantiateStreaming!="function"||i_()||Se.startsWith("file://")||L||typeof fetch!="function"?h(g):fetch(Se,{credentials:"same-origin"}).then(function(y){return WebAssembly.instantiateStreaming(y,A).then(g,function(R){return st("wasm streaming compile failed: "+R),st("falling back to ArrayBuffer instantiation"),h(g)})})}().catch(_),{}})(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.ed).apply(null,arguments)};var Ze=s._free=function(){return(Ze=s._free=s.asm.gd).apply(null,arguments)},Os=s._malloc=function(){return(Os=s._malloc=s.asm.hd).apply(null,arguments)},K_=s.___getTypeName=function(){return(K_=s.___getTypeName=s.asm.id).apply(null,arguments)};s.___embind_register_native_and_builtin_types=function(){return(s.___embind_register_native_and_builtin_types=s.asm.jd).apply(null,arguments)};var oe=s._setThrew=function(){return(oe=s._setThrew=s.asm.kd).apply(null,arguments)},_e=s.stackSave=function(){return(_e=s.stackSave=s.asm.ld).apply(null,arguments)},ie=s.stackRestore=function(){return(ie=s.stackRestore=s.asm.md).apply(null,arguments)};s.dynCall_viji=function(){return(s.dynCall_viji=s.asm.nd).apply(null,arguments)},s.dynCall_vijiii=function(){return(s.dynCall_vijiii=s.asm.od).apply(null,arguments)},s.dynCall_viiiiij=function(){return(s.dynCall_viiiiij=s.asm.pd).apply(null,arguments)},s.dynCall_jiiiijiiiii=function(){return(s.dynCall_jiiiijiiiii=s.asm.qd).apply(null,arguments)},s.dynCall_viiij=function(){return(s.dynCall_viiij=s.asm.rd).apply(null,arguments)},s.dynCall_jii=function(){return(s.dynCall_jii=s.asm.sd).apply(null,arguments)},s.dynCall_vij=function(){return(s.dynCall_vij=s.asm.td).apply(null,arguments)},s.dynCall_iiij=function(){return(s.dynCall_iiij=s.asm.ud).apply(null,arguments)},s.dynCall_iiiij=function(){return(s.dynCall_iiiij=s.asm.vd).apply(null,arguments)},s.dynCall_viij=function(){return(s.dynCall_viij=s.asm.wd).apply(null,arguments)},s.dynCall_ji=function(){return(s.dynCall_ji=s.asm.xd).apply(null,arguments)},s.dynCall_iij=function(){return(s.dynCall_iij=s.asm.yd).apply(null,arguments)},s.dynCall_jiiiiii=function(){return(s.dynCall_jiiiiii=s.asm.zd).apply(null,arguments)},s.dynCall_jiiiiji=function(){return(s.dynCall_jiiiiji=s.asm.Ad).apply(null,arguments)},s.dynCall_iijj=function(){return(s.dynCall_iijj=s.asm.Bd).apply(null,arguments)},s.dynCall_iiiji=function(){return(s.dynCall_iiiji=s.asm.Cd).apply(null,arguments)},s.dynCall_iiji=function(){return(s.dynCall_iiji=s.asm.Dd).apply(null,arguments)},s.dynCall_iijjiii=function(){return(s.dynCall_iijjiii=s.asm.Ed).apply(null,arguments)},s.dynCall_vijjjii=function(){return(s.dynCall_vijjjii=s.asm.Fd).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.Gd).apply(null,arguments)},s.dynCall_viijii=function(){return(s.dynCall_viijii=s.asm.Hd).apply(null,arguments)},s.dynCall_iiiiij=function(){return(s.dynCall_iiiiij=s.asm.Id).apply(null,arguments)},s.dynCall_iiiiijj=function(){return(s.dynCall_iiiiijj=s.asm.Jd).apply(null,arguments)},s.dynCall_iiiiiijj=function(){return(s.dynCall_iiiiiijj=s.asm.Kd).apply(null,arguments)};function Ga(o,g,h,A){var y=_e();try{return te(o)(g,h,A)}catch(R){if(ie(y),R!==R+0)throw R;oe(1,0)}}function Ia(o,g){var h=_e();try{return te(o)(g)}catch(A){if(ie(h),A!==A+0)throw A;oe(1,0)}}function Da(o,g,h,A,y,R,O,M,B,C){var J=_e();try{te(o)(g,h,A,y,R,O,M,B,C)}catch($){if(ie(J),$!==$+0)throw $;oe(1,0)}}function Ua(o,g,h,A){var y=_e();try{te(o)(g,h,A)}catch(R){if(ie(y),R!==R+0)throw R;oe(1,0)}}function Oa(o,g,h){var A=_e();try{te(o)(g,h)}catch(y){if(ie(A),y!==y+0)throw y;oe(1,0)}}function La(o){var g=_e();try{te(o)()}catch(h){if(ie(g),h!==h+0)throw h;oe(1,0)}}function Ca(o,g,h,A,y){var R=_e();try{te(o)(g,h,A,y)}catch(O){if(ie(R),O!==O+0)throw O;oe(1,0)}}function Ka(o,g){var h=_e();try{te(o)(g)}catch(A){if(ie(h),A!==A+0)throw A;oe(1,0)}}function Ha(o,g,h){var A=_e();try{return te(o)(g,h)}catch(y){if(ie(A),y!==y+0)throw y;oe(1,0)}}function Pa(o,g,h,A,y,R,O){var M=_e();try{te(o)(g,h,A,y,R,O)}catch(B){if(ie(M),B!==B+0)throw B;oe(1,0)}}function ba(o,g,h,A,y){var R=_e();try{return te(o)(g,h,A,y)}catch(O){if(ie(R),O!==O+0)throw O;oe(1,0)}}function va(o,g,h,A,y,R){var O=_e();try{return te(o)(g,h,A,y,R)}catch(M){if(ie(O),M!==M+0)throw M;oe(1,0)}}function Fa(o,g,h,A,y,R,O){var M=_e();try{return te(o)(g,h,A,y,R,O)}catch(B){if(ie(M),B!==B+0)throw B;oe(1,0)}}function Ya(o,g,h,A,y,R){var O=_e();try{te(o)(g,h,A,y,R)}catch(M){if(ie(O),M!==M+0)throw M;oe(1,0)}}function Wa(o,g,h,A,y,R,O,M,B,C){var J=_e();try{return te(o)(g,h,A,y,R,O,M,B,C)}catch($){if(ie(J),$!==$+0)throw $;oe(1,0)}}var Ls;function H_(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}j1=function o(){Ls||e2(),Ls||(j1=o)};function e2(){function o(){if(!Ls&&(Ls=!0,s.calledRun=!0,!qt)){if(vp(o_),p(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;){var g=s.postRun.shift();__.unshift(g)}vp(__)}}if(!(0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,n,s){t instanceof String&&(t=String(t));for(var p=t.length,_=0;_=_}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(n,s){return $jscomp.findInternal(this,n,s).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(n,s){var p=$jscomp.checkStringArgs(this,n,"startsWith");n+="";var _=p.length,i=n.length;s=Math.max(0,Math.min(s|0,p.length));for(var u=0;u=i}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(n){var s=$jscomp.checkStringArgs(this,null,"repeat");if(0>n||1342177279>>=1)&&(s+=s);return p}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,n,s){t=t.split("."),s=s||goog.global,t[0]in s||typeof s.execScript>"u"||s.execScript("var "+t[0]);for(var p;t.length&&(p=t.shift());)t.length||n===void 0?s=s[p]&&s[p]!==Object.prototype[p]?s[p]:s[p]={}:s[p]=n};goog.define=function(t,n){if(!COMPILED){var s=goog.global.CLOSURE_UNCOMPILED_DEFINES,p=goog.global.CLOSURE_DEFINES;s&&s.nodeType===void 0&&Object.prototype.hasOwnProperty.call(s,t)?n=s[t]:p&&p.nodeType===void 0&&Object.prototype.hasOwnProperty.call(p,t)&&(n=p[t])}return n};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,n){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var s=t;(s=s.substring(0,s.lastIndexOf(".")))&&!goog.getObjectByName(s);)goog.implicitNamespaces_[s]=!0}goog.exportPath_(t,n)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var n=goog.global.$jscomp;if(!n||typeof n.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');n=n.require(n.getCurrentModulePath()),goog.loadedModules_[t]={exports:n,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,n){t=t.split("."),n=n||goog.global;for(var s=0;s{var Ta=Object.create;var Bs=Object.defineProperty;var Ba=Object.getOwnPropertyDescriptor;var Ga=Object.getOwnPropertyNames;var Ia=Object.getPrototypeOf,Da=Object.prototype.hasOwnProperty;var o2=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,s)=>(typeof require<"u"?require:n)[s]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var _2=(t,n)=>()=>(t&&(n=t(t=0)),n);var Vt=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),i2=(t,n)=>{for(var s in n)Bs(t,s,{get:n[s],enumerable:!0})},L_=(t,n,s,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let _ of Ga(n))!Da.call(t,_)&&_!==s&&Bs(t,_,{get:()=>n[_],enumerable:!(p=Ba(n,_))||p.enumerable});return t};var qt=(t,n,s)=>(s=t!=null?Ta(Ia(t)):{},L_(n||!t||!t.__esModule?Bs(s,"default",{value:t,enumerable:!0}):s,t)),g2=t=>L_(Bs({},"__esModule",{value:!0}),t);var Q_={};i2(Q_,{Component:()=>me,Fragment:()=>Lt,cloneElement:()=>c2,createContext:()=>D1,createElement:()=>Ee,createRef:()=>I1,h:()=>Ee,hydrate:()=>Us,isValidElement:()=>v_,options:()=>_t,render:()=>Mn,toChildArray:()=>Ce});function $e(t,n){for(var s in n)t[s]=n[s];return t}function V_(t){var n=t.parentNode;n&&n.removeChild(t)}function Ee(t,n,s){var p,_,i,u={};for(i in n)i=="key"?p=n[i]:i=="ref"?_=n[i]:u[i]=n[i];if(arguments.length>2&&(u.children=arguments.length>3?G1.call(arguments,2):s),typeof t=="function"&&t.defaultProps!=null)for(i in t.defaultProps)u[i]===void 0&&(u[i]=t.defaultProps[i]);return T1(t,u,p,_,null)}function T1(t,n,s,p,_){var i={type:t,props:n,key:s,ref:p,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:_??++b_};return _==null&&_t.vnode!=null&&_t.vnode(i),i}function I1(){return{current:null}}function Lt(t){return t.children}function me(t,n){this.props=t,this.context=n}function B1(t,n){if(n==null)return t.__?B1(t.__,t.__.__k.indexOf(t)+1):null;for(var s;nn&&Rn.sort(r2));Gs.__r=0}function w_(t,n,s,p,_,i,u,l,S,D,H){var U,Y,J,w,Z,it,nt,ut,st,ct=0,rt=p&&p.__k||W_,It=rt.length,Kt=It,ee=n.length;for(s.__k=[],U=0;U0?T1(w.type,w.props,w.key,w.ref?w.ref:null,w.__v):w)!=null?(w.__=s,w.__b=s.__b+1,(ut=Oa(w,rt,nt=U+ct,Kt))===-1?J=vn:(J=rt[ut]||vn,rt[ut]=void 0,Kt--),m2(t,w,J,_,i,u,l,S,D,H),Z=w.__e,(Y=w.ref)&&J.ref!=Y&&(J.ref&&u2(J.ref,null,w),H.push(Y,w.__c||Z,w)),Z!=null&&(it==null&&(it=Z),(st=J===vn||J.__v===null)?ut==-1&&ct--:ut!==nt&&(ut===nt+1?ct++:ut>nt?Kt>ee-nt?ct+=ut-nt:ct--:ct=ut(S!=null?1:0))for(;u>=0||l=0){if((S=n[u])&&_==S.key&&i===S.type)return u;u--}if(l2&&(l.children=arguments.length>3?G1.call(arguments,2):s),T1(t.type,l,p||t.key,_||t.ref,null)}function D1(t,n){var s={__c:n="__cC"+Y_++,__:t,Consumer:function(p,_){return p.children(_)},Provider:function(p){var _,i;return this.getChildContext||(_=[],(i={})[n]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(u){this.props.value!==u.value&&_.some(function(l){l.__e=!0,h2(l)})},this.sub=function(u){_.push(u);var l=u.componentWillUnmount;u.componentWillUnmount=function(){_.splice(_.indexOf(u),1),l&&l.call(u)}}),p.children}};return s.Provider.__=s.Consumer.contextType=s}var G1,_t,b_,v_,Rn,C_,F_,r2,Y_,vn,W_,Ua,Ds,Tn=_2(()=>{vn={},W_=[],Ua=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ds=Array.isArray;G1=W_.slice,_t={__e:function(t,n,s,p){for(var _,i,u;n=n.__;)if((_=n.__c)&&!_.__)try{if((i=_.constructor)&&i.getDerivedStateFromError!=null&&(_.setState(i.getDerivedStateFromError(t)),u=_.__d),_.componentDidCatch!=null&&(_.componentDidCatch(t,p||{}),u=_.__d),u)return _.__E=_}catch(l){t=l}throw t}},b_=0,v_=function(t){return t!=null&&t.constructor===void 0},me.prototype.setState=function(t,n){var s;s=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$e({},this.state),typeof t=="function"&&(t=t($e({},s),this.props)),t&&$e(s,t),t!=null&&this.__v&&(n&&this._sb.push(n),h2(this))},me.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),h2(this))},me.prototype.render=Lt,Rn=[],F_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,r2=function(t,n){return t.__v.__b-n.__v.__b},Gs.__r=0,Y_=0});var _0={};i2(_0,{useCallback:()=>Hs,useContext:()=>Ps,useDebugValue:()=>bs,useEffect:()=>O1,useErrorBoundary:()=>p0,useId:()=>vs,useImperativeHandle:()=>Ks,useLayoutEffect:()=>Gn,useMemo:()=>Wn,useReducer:()=>U1,useRef:()=>Cs,useState:()=>Yn});function Bn(t,n){_t.__h&&_t.__h(bt,t,Fn||n),Fn=0;var s=bt.__H||(bt.__H={__:[],__h:[]});return t>=s.__.length&&s.__.push({__V:Os}),s.__[t]}function Yn(t){return Fn=1,U1(o0,t)}function U1(t,n,s){var p=Bn(Xe++,2);if(p.t=t,!p.__c&&(p.__=[s?s(n):o0(void 0,n),function(l){var S=p.__N?p.__N[0]:p.__[0],D=p.t(S,l);S!==D&&(p.__N=[D,p.__[1]],p.__c.setState({}))}],p.__c=bt,!bt.u)){var _=function(l,S,D){if(!p.__c.__H)return!0;var H=p.__c.__H.__.filter(function(Y){return Y.__c});if(H.every(function(Y){return!Y.__N}))return!i||i.call(this,l,S,D);var U=!1;return H.forEach(function(Y){if(Y.__N){var J=Y.__[0];Y.__=Y.__N,Y.__N=void 0,J!==Y.__[0]&&(U=!0)}}),!(!U&&p.__c.props===l)&&(!i||i.call(this,l,S,D))};bt.u=!0;var i=bt.shouldComponentUpdate,u=bt.componentWillUpdate;bt.componentWillUpdate=function(l,S,D){if(this.__e){var H=i;i=void 0,_(l,S,D),i=H}u&&u.call(this,l,S,D)},bt.shouldComponentUpdate=_}return p.__N||p.__}function O1(t,n){var s=Bn(Xe++,3);!_t.__s&&y2(s.__H,n)&&(s.__=t,s.i=n,bt.__H.__h.push(s))}function Gn(t,n){var s=Bn(Xe++,4);!_t.__s&&y2(s.__H,n)&&(s.__=t,s.i=n,bt.__h.push(s))}function Cs(t){return Fn=5,Wn(function(){return{current:t}},[])}function Ks(t,n,s){Fn=6,Gn(function(){return typeof t=="function"?(t(n()),function(){return t(null)}):t?(t.current=n(),function(){return t.current=null}):void 0},s==null?s:s.concat(t))}function Wn(t,n){var s=Bn(Xe++,7);return y2(s.__H,n)?(s.__V=t(),s.i=n,s.__h=t,s.__V):s.__}function Hs(t,n){return Fn=8,Wn(function(){return t},n)}function Ps(t){var n=bt.context[t.__c],s=Bn(Xe++,9);return s.c=t,n?(s.__==null&&(s.__=!0,n.sub(bt)),n.props.value):t.__}function bs(t,n){_t.useDebugValue&&_t.useDebugValue(n?n(t):t)}function p0(t){var n=Bn(Xe++,10),s=Yn();return n.__=t,bt.componentDidCatch||(bt.componentDidCatch=function(p,_){n.__&&n.__(p,_),s[1](p)}),[s[0],function(){s[1](void 0)}]}function vs(){var t=Bn(Xe++,11);if(!t.__){for(var n=bt.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;var s=n.__m||(n.__m=[0,0]);t.__="P"+s[0]+"-"+s[1]++}return t.__}function Ha(){for(var t;t=s0.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ls),t.__H.__h.forEach(E2),t.__H.__h=[]}catch(n){t.__H.__h=[],_t.__e(n,t.__v)}}function Pa(t){var n,s=function(){clearTimeout(p),n0&&cancelAnimationFrame(n),setTimeout(t)},p=setTimeout(s,100);n0&&(n=requestAnimationFrame(s))}function Ls(t){var n=bt,s=t.__c;typeof s=="function"&&(t.__c=void 0,s()),bt=n}function E2(t){var n=bt;t.__c=t.__(),bt=n}function y2(t,n){return!t||t.length!==n.length||n.some(function(s,p){return s!==t[p]})}function o0(t,n){return typeof n=="function"?n(t):n}var Xe,bt,A2,Z_,Fn,s0,Os,$_,X_,q_,t0,e0,n0,Fs=_2(()=>{Tn();Fn=0,s0=[],Os=[],$_=_t.__b,X_=_t.__r,q_=_t.diffed,t0=_t.__c,e0=_t.unmount;_t.__b=function(t){bt=null,$_&&$_(t)},_t.__r=function(t){X_&&X_(t),Xe=0;var n=(bt=t.__c).__H;n&&(A2===bt?(n.__h=[],bt.__h=[],n.__.forEach(function(s){s.__N&&(s.__=s.__N),s.__V=Os,s.__N=s.i=void 0})):(n.__h.forEach(Ls),n.__h.forEach(E2),n.__h=[],Xe=0)),A2=bt},_t.diffed=function(t){q_&&q_(t);var n=t.__c;n&&n.__H&&(n.__H.__h.length&&(s0.push(n)!==1&&Z_===_t.requestAnimationFrame||((Z_=_t.requestAnimationFrame)||Pa)(Ha)),n.__H.__.forEach(function(s){s.i&&(s.__H=s.i),s.__V!==Os&&(s.__=s.__V),s.i=void 0,s.__V=Os})),A2=bt=null},_t.__c=function(t,n){n.some(function(s){try{s.__h.forEach(Ls),s.__h=s.__h.filter(function(p){return!p.__||E2(p)})}catch(p){n.some(function(_){_.__h&&(_.__h=[])}),n=[],_t.__e(p,s.__v)}}),t0&&t0(t,n)},_t.unmount=function(t){e0&&e0(t);var n,s=t.__c;s&&s.__H&&(s.__H.__.forEach(function(p){try{Ls(p)}catch(_){n=_}}),s.__H=void 0,n&&_t.__e(n,s.__v))};n0=typeof requestAnimationFrame=="function"});var Y0={};i2(Y0,{Children:()=>l0,Component:()=>me,Fragment:()=>Lt,PureComponent:()=>Ys,StrictMode:()=>K0,Suspense:()=>L1,SuspenseList:()=>Vn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>B0,cloneElement:()=>D0,createContext:()=>D1,createElement:()=>Ee,createFactory:()=>G0,createPortal:()=>d0,createRef:()=>I1,default:()=>Xa,findDOMNode:()=>O0,flushSync:()=>C0,forwardRef:()=>y0,hydrate:()=>T0,isElement:()=>v0,isFragment:()=>I0,isValidElement:()=>C1,lazy:()=>f0,memo:()=>E0,render:()=>M0,startTransition:()=>S2,unmountComponentAtNode:()=>U0,unstable_batchedUpdates:()=>L0,useCallback:()=>Hs,useContext:()=>Ps,useDebugValue:()=>bs,useDeferredValue:()=>H0,useEffect:()=>O1,useErrorBoundary:()=>p0,useId:()=>vs,useImperativeHandle:()=>Ks,useInsertionEffect:()=>b0,useLayoutEffect:()=>Gn,useMemo:()=>Wn,useReducer:()=>U1,useRef:()=>Cs,useState:()=>Yn,useSyncExternalStore:()=>F0,useTransition:()=>P0,version:()=>$a});function A0(t,n){for(var s in n)t[s]=n[s];return t}function j2(t,n){for(var s in t)if(s!=="__source"&&!(s in n))return!0;for(var p in n)if(p!=="__source"&&t[p]!==n[p])return!0;return!1}function l2(t,n){return t===n&&(t!==0||1/t==1/n)||t!=t&&n!=n}function Ys(t){this.props=t}function E0(t,n){function s(_){var i=this.props.ref,u=i==_.ref;return!u&&i&&(i.call?i(null):i.current=null),n?!n(this.props,_)||!u:j2(this.props,_)}function p(_){return this.shouldComponentUpdate=s,Ee(t,_)}return p.displayName="Memo("+(t.displayName||t.name)+")",p.prototype.isReactComponent=!0,p.__f=!0,p}function y0(t){function n(s){var p=A0({},s);return delete p.ref,t(p,s.ref||null)}return n.$$typeof=ba,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}function j0(t,n,s){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),t.__c.__H=null),(t=A0({},t)).__c!=null&&(t.__c.__P===s&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(p){return j0(p,n,s)})),t}function N0(t,n,s){return t&&s&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(p){return N0(p,n,s)}),t.__c&&t.__c.__P===n&&(t.__e&&s.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=s)),t}function L1(){this.__u=0,this.t=null,this.__b=null}function S0(t){var n=t.__.__c;return n&&n.__a&&n.__a(t)}function f0(t){var n,s,p;function _(i){if(n||(n=t()).then(function(u){s=u.default||u},function(u){p=u}),p)throw p;if(!s)throw n;return Ee(s,i)}return _.displayName="Lazy",_.__f=!0,_}function Vn(){this.u=null,this.o=null}function Fa(t){return this.getChildContext=function(){return t.context},t.children}function Ya(t){var n=this,s=t.i;n.componentWillUnmount=function(){Mn(null,n.l),n.l=null,n.i=null},n.i&&n.i!==s&&n.componentWillUnmount(),n.l||(n.i=s,n.l={nodeType:1,parentNode:s,childNodes:[],appendChild:function(p){this.childNodes.push(p),n.i.appendChild(p)},insertBefore:function(p,_){this.childNodes.push(p),n.i.appendChild(p)},removeChild:function(p){this.childNodes.splice(this.childNodes.indexOf(p)>>>1,1),n.i.removeChild(p)}}),Mn(Ee(Fa,{context:n.context},t.__v),n.l)}function d0(t,n){var s=Ee(Ya,{__v:t,i:n});return s.containerInfo=n,s}function M0(t,n,s){return n.__k==null&&(n.textContent=""),Mn(t,n),typeof s=="function"&&s(),t?t.__c:null}function T0(t,n,s){return Us(t,n),typeof s=="function"&&s(),t?t.__c:null}function Ja(){}function za(){return this.cancelBubble}function Qa(){return this.defaultPrevented}function G0(t){return Ee.bind(null,t)}function C1(t){return!!t&&t.$$typeof===R0}function I0(t){return C1(t)&&t.type===Lt}function D0(t){return C1(t)?c2.apply(null,arguments):t}function U0(t){return!!t.__k&&(Mn(null,t),!0)}function O0(t){return t&&(t.base||t.nodeType===1&&t)||null}function S2(t){t()}function H0(t){return t}function P0(){return[!1,S2]}function F0(t,n){var s=n(),p=Yn({h:{__:s,v:n}}),_=p[0].h,i=p[1];return Gn(function(){_.__=s,_.v=n,l2(_.__,n())||i({h:_})},[t,s,n]),O1(function(){return l2(_.__,_.v())||i({h:_}),t(function(){l2(_.__,_.v())||i({h:_})})},[t]),s}var i0,ba,g0,l0,va,r0,h0,R0,Wa,Va,xa,wa,ka,a0,N2,Za,m0,u0,c0,B0,$a,L0,C0,K0,b0,v0,Xa,W0=_2(()=>{Tn();Tn();Fs();Fs();(Ys.prototype=new me).isPureReactComponent=!0,Ys.prototype.shouldComponentUpdate=function(t,n){return j2(this.props,t)||j2(this.state,n)};i0=_t.__b;_t.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),i0&&i0(t)};ba=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;g0=function(t,n){return t==null?null:Ce(Ce(t).map(n))},l0={map:g0,forEach:g0,count:function(t){return t?Ce(t).length:0},only:function(t){var n=Ce(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:Ce},va=_t.__e;_t.__e=function(t,n,s,p){if(t.then){for(var _,i=n;i=i.__;)if((_=i.__c)&&_.__c)return n.__e==null&&(n.__e=s.__e,n.__k=s.__k),_.__c(t,n)}va(t,n,s,p)};r0=_t.unmount;_t.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&t.__h===!0&&(t.type=null),r0&&r0(t)},(L1.prototype=new me).__c=function(t,n){var s=n.__c,p=this;p.t==null&&(p.t=[]),p.t.push(s);var _=S0(p.__v),i=!1,u=function(){i||(i=!0,s.__R=null,_?_(l):l())};s.__R=u;var l=function(){if(!--p.__u){if(p.state.__a){var D=p.state.__a;p.__v.__k[0]=N0(D,D.__c.__P,D.__c.__O)}var H;for(p.setState({__a:p.__b=null});H=p.t.pop();)H.forceUpdate()}},S=n.__h===!0;p.__u++||S||p.setState({__a:p.__b=p.__v.__k[0]}),t.then(u,u)},L1.prototype.componentWillUnmount=function(){this.t=[]},L1.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var s=document.createElement("div"),p=this.__v.__k[0].__c;this.__v.__k[0]=j0(this.__b,s,p.__O=p.__P)}this.__b=null}var _=n.__a&&Ee(Lt,null,t.fallback);return _&&(_.__h=null),[Ee(Lt,null,n.__a?null:t.children),_]};h0=function(t,n,s){if(++s[1]===s[0]&&t.o.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(s=t.u;s;){for(;s.length>3;)s.pop()();if(s[1]{var{render:qa,hydrate:tm,unmountComponentAtNode:em}=(W0(),g2(Y0));function V0(t){return{render(n){qa(n,t)},unmount(){em(t)}}}f2.createRoot=V0;f2.hydrateRoot=function(t,n){return tm(n,t),V0(t)}});var mn=Vt(Tt=>{var mt=(Tn(),g2(Q_)),pe=(Fs(),g2(_0));function ni(t,n){for(var s in n)t[s]=n[s];return t}function L2(t,n){for(var s in t)if(s!=="__source"&&!(s in n))return!0;for(var p in n)if(p!=="__source"&&t[p]!==n[p])return!0;return!1}function O2(t,n){return t===n&&(t!==0||1/t==1/n)||t!=t&&n!=n}function xs(t){this.props=t}function si(t,n){function s(_){var i=this.props.ref,u=i==_.ref;return!u&&i&&(i.call?i(null):i.current=null),n?!n(this.props,_)||!u:L2(this.props,_)}function p(_){return this.shouldComponentUpdate=s,mt.createElement(t,_)}return p.displayName="Memo("+(t.displayName||t.name)+")",p.prototype.isReactComponent=!0,p.__f=!0,p}(xs.prototype=new mt.Component).isPureReactComponent=!0,xs.prototype.shouldComponentUpdate=function(t,n){return L2(this.props,t)||L2(this.state,n)};var z0=mt.options.__b;mt.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),z0&&z0(t)};var im=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function pi(t){function n(s){var p=ni({},s);return delete p.ref,t(p,s.ref||null)}return n.$$typeof=im,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}var Q0=function(t,n){return t==null?null:mt.toChildArray(mt.toChildArray(t).map(n))},oi={map:Q0,forEach:Q0,count:function(t){return t?mt.toChildArray(t).length:0},only:function(t){var n=mt.toChildArray(t);if(n.length!==1)throw"Children.only";return n[0]},toArray:mt.toChildArray},gm=mt.options.__e;mt.options.__e=function(t,n,s,p){if(t.then){for(var _,i=n;i=i.__;)if((_=i.__c)&&_.__c)return n.__e==null&&(n.__e=s.__e,n.__k=s.__k),_.__c(t,n)}gm(t,n,s,p)};var Z0=mt.options.unmount;function _i(t,n,s){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),t.__c.__H=null),(t=ni({},t)).__c!=null&&(t.__c.__P===s&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(p){return _i(p,n,s)})),t}function ii(t,n,s){return t&&s&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(p){return ii(p,n,s)}),t.__c&&t.__c.__P===n&&(t.__e&&s.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=s)),t}function b1(){this.__u=0,this.t=null,this.__b=null}function gi(t){var n=t.__.__c;return n&&n.__a&&n.__a(t)}function ri(t){var n,s,p;function _(i){if(n||(n=t()).then(function(u){s=u.default||u},function(u){p=u}),p)throw p;if(!s)throw n;return mt.createElement(s,i)}return _.displayName="Lazy",_.__f=!0,_}function xn(){this.u=null,this.o=null}mt.options.unmount=function(t){var n=t.__c;n&&n.__R&&n.__R(),n&&t.__h===!0&&(t.type=null),Z0&&Z0(t)},(b1.prototype=new mt.Component).__c=function(t,n){var s=n.__c,p=this;p.t==null&&(p.t=[]),p.t.push(s);var _=gi(p.__v),i=!1,u=function(){i||(i=!0,s.__R=null,_?_(l):l())};s.__R=u;var l=function(){if(!--p.__u){if(p.state.__a){var D=p.state.__a;p.__v.__k[0]=ii(D,D.__c.__P,D.__c.__O)}var H;for(p.setState({__a:p.__b=null});H=p.t.pop();)H.forceUpdate()}},S=n.__h===!0;p.__u++||S||p.setState({__a:p.__b=p.__v.__k[0]}),t.then(u,u)},b1.prototype.componentWillUnmount=function(){this.t=[]},b1.prototype.render=function(t,n){if(this.__b){if(this.__v.__k){var s=document.createElement("div"),p=this.__v.__k[0].__c;this.__v.__k[0]=_i(this.__b,s,p.__O=p.__P)}this.__b=null}var _=n.__a&&mt.createElement(mt.Fragment,null,t.fallback);return _&&(_.__h=null),[mt.createElement(mt.Fragment,null,n.__a?null:t.children),_]};var $0=function(t,n,s){if(++s[1]===s[0]&&t.o.delete(n),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(s=t.u;s;){for(;s.length>3;)s.pop()();if(s[1]>>1,1),n.i.removeChild(p)}}),mt.render(mt.createElement(rm,{context:n.context},t.__v),n.l)}function hi(t,n){var s=mt.createElement(hm,{__v:t,i:n});return s.containerInfo=n,s}(xn.prototype=new mt.Component).__a=function(t){var n=this,s=gi(n.__v),p=n.o.get(t);return p[0]++,function(_){var i=function(){n.props.revealOrder?(p.push(_),$0(n,t,p)):_()};s?s(i):i()}},xn.prototype.render=function(t){this.u=null,this.o=new Map;var n=mt.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&n.reverse();for(var s=n.length;s--;)this.o.set(n[s],this.u=[1,0,this.u]);return t.children},xn.prototype.componentDidUpdate=xn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(n,s){$0(t,s,n)})};var ai=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,am=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,mm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,um=/[A-Z0-9]/g,cm=typeof document<"u",Am=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function mi(t,n,s){return n.__k==null&&(n.textContent=""),mt.render(t,n),typeof s=="function"&&s(),t?t.__c:null}function ui(t,n,s){return mt.hydrate(t,n),typeof s=="function"&&s(),t?t.__c:null}mt.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(mt.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var X0=mt.options.event;function Em(){}function ym(){return this.cancelBubble}function lm(){return this.defaultPrevented}mt.options.event=function(t){return X0&&(t=X0(t)),t.persist=Em,t.isPropagationStopped=ym,t.isDefaultPrevented=lm,t.nativeEvent=t};var C2,jm={enumerable:!1,configurable:!0,get:function(){return this.class}},q0=mt.options.vnode;mt.options.vnode=function(t){typeof t.type=="string"&&function(n){var s=n.props,p=n.type,_={};for(var i in s){var u=s[i];if(!(i==="value"&&"defaultValue"in s&&u==null||cm&&i==="children"&&p==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in s&&s.value==null?i="value":i==="download"&&u===!0?u="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||p!=="input"&&p!=="textarea"||Am(s.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":mm.test(i)?i=l:p.indexOf("-")===-1&&am.test(i)?i=i.replace(um,"-$&").toLowerCase():u===null&&(u=void 0):l=i="oninput",l==="oninput"&&_[i=l]&&(i="oninputCapture"),_[i]=u}}p=="select"&&_.multiple&&Array.isArray(_.value)&&(_.value=mt.toChildArray(s.children).forEach(function(S){S.props.selected=_.value.indexOf(S.props.value)!=-1})),p=="select"&&_.defaultValue!=null&&(_.value=mt.toChildArray(s.children).forEach(function(S){S.props.selected=_.multiple?_.defaultValue.indexOf(S.props.value)!=-1:_.defaultValue==S.props.value})),s.class&&!s.className?(_.class=s.class,Object.defineProperty(_,"className",jm)):(s.className&&!s.class||s.class&&s.className)&&(_.class=_.className=s.className),n.props=_}(t),t.$$typeof=ai,q0&&q0(t)};var ti=mt.options.__r;mt.options.__r=function(t){ti&&ti(t),C2=t.__c};var ei=mt.options.diffed;mt.options.diffed=function(t){ei&&ei(t);var n=t.props,s=t.__e;s!=null&&t.type==="textarea"&&"value"in n&&n.value!==s.value&&(s.value=n.value==null?"":n.value),C2=null};var ci={ReactCurrentDispatcher:{current:{readContext:function(t){return C2.__n[t.__c].props.value}}}};function Ai(t){return mt.createElement.bind(null,t)}function v1(t){return!!t&&t.$$typeof===ai}function Ei(t){return v1(t)&&t.type===mt.Fragment}function yi(t){return v1(t)?mt.cloneElement.apply(null,arguments):t}function li(t){return!!t.__k&&(mt.render(null,t),!0)}function ji(t){return t&&(t.base||t.nodeType===1&&t)||null}var Ni=function(t,n){return t(n)},Si=function(t,n){return t(n)},fi=mt.Fragment;function K2(t){t()}function di(t){return t}function Ri(){return[!1,K2]}var Mi=pe.useLayoutEffect,Ti=v1;function Bi(t,n){var s=n(),p=pe.useState({p:{__:s,h:n}}),_=p[0].p,i=p[1];return pe.useLayoutEffect(function(){_.__=s,_.h=n,O2(_.__,n())||i({p:_})},[t,s,n]),pe.useEffect(function(){return O2(_.__,_.h())||i({p:_}),t(function(){O2(_.__,_.h())||i({p:_})})},[t]),s}var Nm={useState:pe.useState,useId:pe.useId,useReducer:pe.useReducer,useEffect:pe.useEffect,useLayoutEffect:pe.useLayoutEffect,useInsertionEffect:Mi,useTransition:Ri,useDeferredValue:di,useSyncExternalStore:Bi,startTransition:K2,useRef:pe.useRef,useImperativeHandle:pe.useImperativeHandle,useMemo:pe.useMemo,useCallback:pe.useCallback,useContext:pe.useContext,useDebugValue:pe.useDebugValue,version:"17.0.2",Children:oi,render:mi,hydrate:ui,unmountComponentAtNode:li,createPortal:hi,createElement:mt.createElement,createContext:mt.createContext,createFactory:Ai,cloneElement:yi,createRef:mt.createRef,Fragment:mt.Fragment,isValidElement:v1,isElement:Ti,isFragment:Ei,findDOMNode:ji,Component:mt.Component,PureComponent:xs,memo:si,forwardRef:pi,flushSync:Si,unstable_batchedUpdates:Ni,StrictMode:fi,Suspense:b1,SuspenseList:xn,lazy:ri,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ci};Object.defineProperty(Tt,"Component",{enumerable:!0,get:function(){return mt.Component}}),Object.defineProperty(Tt,"Fragment",{enumerable:!0,get:function(){return mt.Fragment}}),Object.defineProperty(Tt,"createContext",{enumerable:!0,get:function(){return mt.createContext}}),Object.defineProperty(Tt,"createElement",{enumerable:!0,get:function(){return mt.createElement}}),Object.defineProperty(Tt,"createRef",{enumerable:!0,get:function(){return mt.createRef}}),Tt.Children=oi,Tt.PureComponent=xs,Tt.StrictMode=fi,Tt.Suspense=b1,Tt.SuspenseList=xn,Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ci,Tt.cloneElement=yi,Tt.createFactory=Ai,Tt.createPortal=hi,Tt.default=Nm,Tt.findDOMNode=ji,Tt.flushSync=Si,Tt.forwardRef=pi,Tt.hydrate=ui,Tt.isElement=Ti,Tt.isFragment=Ei,Tt.isValidElement=v1,Tt.lazy=ri,Tt.memo=si,Tt.render=mi,Tt.startTransition=K2,Tt.unmountComponentAtNode=li,Tt.unstable_batchedUpdates=Ni,Tt.useDeferredValue=di,Tt.useInsertionEffect=Mi,Tt.useSyncExternalStore=Bi,Tt.useTransition=Ri,Tt.version="17.0.2",Object.keys(pe).forEach(function(t){t==="default"||Tt.hasOwnProperty(t)||Object.defineProperty(Tt,t,{enumerable:!0,get:function(){return pe[t]}})})});var Ii=Vt(Gi=>{"use strict";var wn=mn();function Sm(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var fm=typeof Object.is=="function"?Object.is:Sm,dm=wn.useState,Rm=wn.useEffect,Mm=wn.useLayoutEffect,Tm=wn.useDebugValue;function Bm(t,n){var s=n(),p=dm({inst:{value:s,getSnapshot:n}}),_=p[0].inst,i=p[1];return Mm(function(){_.value=s,_.getSnapshot=n,H2(_)&&i({inst:_})},[t,s,n]),Rm(function(){return H2(_)&&i({inst:_}),t(function(){H2(_)&&i({inst:_})})},[t]),Tm(s),s}function H2(t){var n=t.getSnapshot;t=t.value;try{var s=n();return!fm(t,s)}catch{return!0}}function Gm(t,n){return n()}var Im=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Gm:Bm;Gi.useSyncExternalStore=wn.useSyncExternalStore!==void 0?wn.useSyncExternalStore:Im});var Ui=Vt((p6,Di)=>{"use strict";Di.exports=Ii()});var ke=Vt((g6,ws)=>{(function(){"use strict";var t={}.hasOwnProperty,n="[native code]";function s(){for(var p=[],_=0;_{var P2=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(n){n=n||{};var s;s||(s=typeof n<"u"?n:{});var p,_;s.ready=new Promise(function(o,g){p=o,_=g}),function(o){o.Vd=o.Vd||[],o.Vd.push(function(){o.MakeSWCanvasSurface=function(g){var h=g;if(h.tagName!=="CANVAS"&&(h=document.getElementById(g),!h))throw"Canvas with id "+g+" was not found";return(g=o.MakeSurface(h.width,h.height))&&(g.Nd=h),g},o.MakeCanvasSurface||(o.MakeCanvasSurface=o.MakeSWCanvasSurface),o.MakeSurface=function(g,h){var A={width:g,height:h,colorType:o.ColorType.RGBA_8888,alphaType:o.AlphaType.Unpremul,colorSpace:o.ColorSpace.SRGB},y=g*h*4,R=o._malloc(y);return(A=o.Surface._makeRasterDirect(A,R,4*g))&&(A.Nd=null,A.Ef=g,A.Af=h,A.Cf=y,A.af=R,A.getCanvas().clear(o.TRANSPARENT)),A},o.MakeRasterDirectSurface=function(g,h,A){return o.Surface._makeRasterDirect(g,h.byteOffset,A)},o.Surface.prototype.flush=function(g){if(o.Od(this.Md),this._flush(),this.Nd){var h=new Uint8ClampedArray(o.HEAPU8.buffer,this.af,this.Cf);h=new ImageData(h,this.Ef,this.Af),g?this.Nd.getContext("2d").putImageData(h,0,0,g[0],g[1],g[2]-g[0],g[3]-g[1]):this.Nd.getContext("2d").putImageData(h,0,0)}},o.Surface.prototype.dispose=function(){this.af&&o._free(this.af),this.delete()},o.Od=o.Od||function(){},o.Se=o.Se||function(){return null}})}(s),function(o){o.Vd=o.Vd||[],o.Vd.push(function(){function g(M,B,L){return M&&M.hasOwnProperty(B)?M[B]:L}function h(M){var B=Pn(Re);return Re[B]=M,B}function A(M){return M.naturalHeight||M.videoHeight||M.displayHeight||M.height}function y(M){return M.naturalWidth||M.videoWidth||M.displayWidth||M.width}function R(M,B,L,z){return M.bindTexture(M.TEXTURE_2D,B),z||L.alphaType!==o.AlphaType.Premul||M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),B}function O(M,B,L){L||B.alphaType!==o.AlphaType.Premul||M.pixelStorei(M.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),M.bindTexture(M.TEXTURE_2D,null)}o.GetWebGLContext=function(M,B){if(!M)throw"null canvas passed into makeWebGLContext";var L={alpha:g(B,"alpha",1),depth:g(B,"depth",1),stencil:g(B,"stencil",8),antialias:g(B,"antialias",0),premultipliedAlpha:g(B,"premultipliedAlpha",1),preserveDrawingBuffer:g(B,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:g(B,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:g(B,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:g(B,"enableExtensionsByDefault",1),explicitSwapControl:g(B,"explicitSwapControl",0),renderViaOffscreenBackBuffer:g(B,"renderViaOffscreenBackBuffer",0)};if(L.majorVersion=B&&B.majorVersion?B.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,L.explicitSwapControl)throw"explicitSwapControl is not supported";return M=ta(M,L),M?(l_(M),St.ge.getExtension("WEBGL_debug_renderer_info"),M):0},o.deleteContext=function(M){St===Ve[M]&&(St=null),typeof JSEvents=="object"&&JSEvents.ug(Ve[M].ge.canvas),Ve[M]&&Ve[M].ge.canvas&&(Ve[M].ge.canvas.yf=void 0),Ve[M]=null},o._setTextureCleanup({deleteTexture:function(M,B){var L=Re[B];L&&Ve[M].ge.deleteTexture(L),Re[B]=null}}),o.MakeWebGLContext=function(M){if(!this.Od(M))return null;var B=this._MakeGrContext();if(!B)return null;B.Md=M;var L=B.delete.bind(B);return B.delete=function(){o.Od(this.Md),L()}.bind(B),St.ef=B},o.MakeGrContext=o.MakeWebGLContext,o.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){o.Od(this.Md),this._getResourceCacheLimitBytes()},o.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){o.Od(this.Md),this._getResourceCacheUsageBytes()},o.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){o.Od(this.Md),this._releaseResourcesAndAbandonContext()},o.GrDirectContext.prototype.setResourceCacheLimitBytes=function(M){o.Od(this.Md),this._setResourceCacheLimitBytes(M)},o.MakeOnScreenGLSurface=function(M,B,L,z,$,pt){return!this.Od(M.Md)||(B=$===void 0||pt===void 0?this._MakeOnScreenGLSurface(M,B,L,z):this._MakeOnScreenGLSurface(M,B,L,z,$,pt),!B)?null:(B.Md=M.Md,B)},o.MakeRenderTarget=function(){var M=arguments[0];if(!this.Od(M.Md))return null;if(arguments.length===3){var B=this._MakeRenderTargetWH(M,arguments[1],arguments[2]);if(!B)return null}else if(arguments.length===2){if(B=this._MakeRenderTargetII(M,arguments[1]),!B)return null}else return null;return B.Md=M.Md,B},o.MakeWebGLCanvasSurface=function(M,B,L){B=B||null;var z=M,$=typeof OffscreenCanvas<"u"&&z instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&z instanceof HTMLCanvasElement||$||(z=document.getElementById(M),z)))throw"Canvas with id "+M+" was not found";if(M=this.GetWebGLContext(z,L),!M||0>M)throw"failed to create webgl context: err "+M;return M=this.MakeWebGLContext(M),B=this.MakeOnScreenGLSurface(M,z.width,z.height,B),B||(B=z.cloneNode(!0),z.parentNode.replaceChild(B,z),B.classList.add("ck-replaced"),o.MakeSWCanvasSurface(B))},o.MakeCanvasSurface=o.MakeWebGLCanvasSurface,o.Surface.prototype.makeImageFromTexture=function(M,B){return o.Od(this.Md),M=h(M),(B=this._makeImageFromTexture(this.Md,M,B))&&(B.Le=M),B},o.Surface.prototype.makeImageFromTextureSource=function(M,B,L){B||(B={height:A(M),width:y(M),colorType:o.ColorType.RGBA_8888,alphaType:L?o.AlphaType.Premul:o.AlphaType.Unpremul}),B.colorSpace||(B.colorSpace=o.ColorSpace.SRGB),o.Od(this.Md);var z=St.ge;return L=R(z,z.createTexture(),B,L),St.version===2?z.texImage2D(z.TEXTURE_2D,0,z.RGBA,B.width,B.height,0,z.RGBA,z.UNSIGNED_BYTE,M):z.texImage2D(z.TEXTURE_2D,0,z.RGBA,z.RGBA,z.UNSIGNED_BYTE,M),O(z,B),this._resetContext(),this.makeImageFromTexture(L,B)},o.Surface.prototype.updateTextureFromSource=function(M,B,L){if(M.Le){o.Od(this.Md);var z=M.getImageInfo(),$=St.ge,pt=R($,Re[M.Le],z,L);St.version===2?$.texImage2D($.TEXTURE_2D,0,$.RGBA,y(B),A(B),0,$.RGBA,$.UNSIGNED_BYTE,B):$.texImage2D($.TEXTURE_2D,0,$.RGBA,$.RGBA,$.UNSIGNED_BYTE,B),O($,z,L),this._resetContext(),Re[M.Le]=null,M.Le=h(pt),z.colorSpace=M.getColorSpace(),B=this._makeImageFromTexture(this.Md,M.Le,z),L=M.Ld.Td,$=M.Ld.$d,M.Ld.Td=B.Ld.Td,M.Ld.$d=B.Ld.$d,B.Ld.Td=L,B.Ld.$d=$,B.delete(),z.colorSpace.delete()}},o.MakeLazyImageFromTextureSource=function(M,B,L){B||(B={height:A(M),width:y(M),colorType:o.ColorType.RGBA_8888,alphaType:L?o.AlphaType.Premul:o.AlphaType.Unpremul}),B.colorSpace||(B.colorSpace=o.ColorSpace.SRGB);var z={makeTexture:function(){var $=St,pt=$.ge,v=R(pt,pt.createTexture(),B,L);return $.version===2?pt.texImage2D(pt.TEXTURE_2D,0,pt.RGBA,B.width,B.height,0,pt.RGBA,pt.UNSIGNED_BYTE,M):pt.texImage2D(pt.TEXTURE_2D,0,pt.RGBA,pt.RGBA,pt.UNSIGNED_BYTE,M),O(pt,B,L),h(v)},freeSrc:function(){}};return M.constructor.name==="VideoFrame"&&(z.freeSrc=function(){M.close()}),o.Image._makeFromGenerator(B,z)},o.Od=function(M){return M?l_(M):!1},o.Se=function(){return St&&St.ef&&!St.ef.isDeleted()?St.ef:null}})}(s),function(o){function g(m,r,E,N,I){for(var P=0;P>>0}function R(m){if(m&&m._ck)return m;if(m instanceof Float32Array){for(var r=Math.floor(m.length/4),E=new Uint32Array(r),N=0;Nx;x++)o.HEAPF32[I+N]=m[P][x],N++;m=E}else m=Bt;r.ce=m}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof m;return r}function $(m){if(!m)return Bt;var r=Xp.toTypedArray();if(m.length){if(m.length===6||m.length===9)return L(m,"HEAPF32",gn),m.length===6&&o.HEAPF32.set(Ra,6+gn/4),gn;if(m.length===16)return r[0]=m[0],r[1]=m[1],r[2]=m[3],r[3]=m[4],r[4]=m[5],r[5]=m[7],r[6]=m[12],r[7]=m[13],r[8]=m[15],gn;throw"invalid matrix size"}if(m.m11===void 0)throw"invalid matrix argument";return r[0]=m.m11,r[1]=m.m21,r[2]=m.m41,r[3]=m.m12,r[4]=m.m22,r[5]=m.m42,r[6]=m.m14,r[7]=m.m24,r[8]=m.m44,gn}function pt(m){if(!m)return Bt;var r=qp.toTypedArray();if(m.length){if(m.length!==16&&m.length!==6&&m.length!==9)throw"invalid matrix size";return m.length===16?L(m,"HEAPF32",bn):(r.fill(0),r[0]=m[0],r[1]=m[1],r[3]=m[2],r[4]=m[3],r[5]=m[4],r[7]=m[5],r[10]=1,r[12]=m[6],r[13]=m[7],r[15]=m[8],m.length===6&&(r[12]=0,r[13]=0,r[15]=1),bn)}if(m.m11===void 0)throw"invalid matrix argument";return r[0]=m.m11,r[1]=m.m21,r[2]=m.m31,r[3]=m.m41,r[4]=m.m12,r[5]=m.m22,r[6]=m.m32,r[7]=m.m42,r[8]=m.m13,r[9]=m.m23,r[10]=m.m33,r[11]=m.m43,r[12]=m.m14,r[13]=m.m24,r[14]=m.m34,r[15]=m.m44,bn}function v(m,r){return L(m,"HEAPF32",r||dn)}function gt(m,r,E,N){var I=t2.toTypedArray();return I[0]=m,I[1]=r,I[2]=E,I[3]=N,dn}function ft(m){for(var r=new Float32Array(4),E=0;4>E;E++)r[E]=o.HEAPF32[m/4+E];return r}function dt(m,r){return L(m,"HEAPF32",r||se)}function ae(m,r){return L(m,"HEAPF32",r||p2)}function Me(){for(var m=0,r=0;r>>0},o.Color4f=function(m,r,E,N){return N===void 0&&(N=1),Float32Array.of(m,r,E,N)},Object.defineProperty(o,"TRANSPARENT",{get:function(){return o.Color4f(0,0,0,0)}}),Object.defineProperty(o,"BLACK",{get:function(){return o.Color4f(0,0,0,1)}}),Object.defineProperty(o,"WHITE",{get:function(){return o.Color4f(1,1,1,1)}}),Object.defineProperty(o,"RED",{get:function(){return o.Color4f(1,0,0,1)}}),Object.defineProperty(o,"GREEN",{get:function(){return o.Color4f(0,1,0,1)}}),Object.defineProperty(o,"BLUE",{get:function(){return o.Color4f(0,0,1,1)}}),Object.defineProperty(o,"YELLOW",{get:function(){return o.Color4f(1,1,0,1)}}),Object.defineProperty(o,"CYAN",{get:function(){return o.Color4f(0,1,1,1)}}),Object.defineProperty(o,"MAGENTA",{get:function(){return o.Color4f(1,0,1,1)}}),o.getColorComponents=function(m){return[Math.floor(255*m[0]),Math.floor(255*m[1]),Math.floor(255*m[2]),m[3]]},o.parseColorString=function(m,r){if(m=m.toLowerCase(),m.startsWith("#")){switch(r=255,m.length){case 9:r=parseInt(m.slice(7,9),16);case 7:var E=parseInt(m.slice(1,3),16),N=parseInt(m.slice(3,5),16),I=parseInt(m.slice(5,7),16);break;case 5:r=17*parseInt(m.slice(4,5),16);case 4:E=17*parseInt(m.slice(1,2),16),N=17*parseInt(m.slice(2,3),16),I=17*parseInt(m.slice(3,4),16)}return o.Color(E,N,I,r/255)}return m.startsWith("rgba")?(m=m.slice(5,-1),m=m.split(","),o.Color(+m[0],+m[1],+m[2],O(m[3]))):m.startsWith("rgb")?(m=m.slice(4,-1),m=m.split(","),o.Color(+m[0],+m[1],+m[2],O(m[3]))):m.startsWith("gray(")||m.startsWith("hsl")||!r||(m=r[m],m===void 0)?o.BLACK:m},o.multiplyByAlpha=function(m,r){return m=m.slice(),m[3]=Math.max(0,Math.min(m[3]*r,1)),m},o.Malloc=function(m,r){var E=o._malloc(r*m.BYTES_PER_ELEMENT);return{_ck:!0,length:r,byteOffset:E,re:null,subarray:function(N,I){return N=this.toTypedArray().subarray(N,I),N._ck=!0,N},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new m(o.HEAPU8.buffer,E,r),this.re._ck=!0,this.re)}}},o.Free=function(m){o._free(m.byteOffset),m.byteOffset=Bt,m.toTypedArray=null,m.re=null};var gn=Bt,Xp,bn=Bt,qp,dn=Bt,t2,xe,se=Bt,B_,rn=Bt,G_,e2=Bt,I_,n2=Bt,s2,Ts=Bt,D_,p2=Bt,U_,O_=Bt,Ra=Float32Array.of(0,0,1),Bt=0;o.onRuntimeInitialized=function(){function m(r,E,N,I,P,x,tt){x||(x=4*I.width,I.colorType===o.ColorType.RGBA_F16?x*=2:I.colorType===o.ColorType.RGBA_F32&&(x*=4));var Et=x*I.height,at=P?P.byteOffset:o._malloc(Et);if(tt?!r._readPixels(I,at,x,E,N,tt):!r._readPixels(I,at,x,E,N))return P||o._free(at),null;if(P)return P.toTypedArray();switch(I.colorType){case o.ColorType.RGBA_8888:case o.ColorType.RGBA_F16:r=new Uint8Array(o.HEAPU8.buffer,at,Et).slice();break;case o.ColorType.RGBA_F32:r=new Float32Array(o.HEAPU8.buffer,at,Et).slice();break;default:return null}return o._free(at),r}t2=o.Malloc(Float32Array,4),dn=t2.byteOffset,qp=o.Malloc(Float32Array,16),bn=qp.byteOffset,Xp=o.Malloc(Float32Array,9),gn=Xp.byteOffset,D_=o.Malloc(Float32Array,12),p2=D_.byteOffset,U_=o.Malloc(Float32Array,12),O_=U_.byteOffset,xe=o.Malloc(Float32Array,4),se=xe.byteOffset,B_=o.Malloc(Float32Array,4),rn=B_.byteOffset,G_=o.Malloc(Float32Array,3),e2=G_.byteOffset,I_=o.Malloc(Float32Array,3),n2=I_.byteOffset,s2=o.Malloc(Int32Array,4),Ts=s2.byteOffset,o.ColorSpace.SRGB=o.ColorSpace._MakeSRGB(),o.ColorSpace.DISPLAY_P3=o.ColorSpace._MakeDisplayP3(),o.ColorSpace.ADOBE_RGB=o.ColorSpace._MakeAdobeRGB(),o.GlyphRunFlags={IsWhiteSpace:o._GlyphRunFlags_isWhiteSpace},o.Path.MakeFromCmds=function(r){var E=L(r,"HEAPF32"),N=o.Path._MakeFromCmds(E,r.length);return B(E,r),N},o.Path.MakeFromVerbsPointsWeights=function(r,E,N){var I=L(r,"HEAPU8"),P=L(E,"HEAPF32"),x=L(N,"HEAPF32"),tt=o.Path._MakeFromVerbsPointsWeights(I,r.length,P,E.length,x,N&&N.length||0);return B(I,r),B(P,E),B(x,N),tt},o.Path.prototype.addArc=function(r,E,N){return r=dt(r),this._addArc(r,E,N),this},o.Path.prototype.addCircle=function(r,E,N,I){return this._addCircle(r,E,N,!!I),this},o.Path.prototype.addOval=function(r,E,N){return N===void 0&&(N=1),r=dt(r),this._addOval(r,!!E,N),this},o.Path.prototype.addPath=function(){var r=Array.prototype.slice.call(arguments),E=r[0],N=!1;if(typeof r[r.length-1]=="boolean"&&(N=r.pop()),r.length===1)this._addPath(E,1,0,0,0,1,0,0,0,1,N);else if(r.length===2)r=r[1],this._addPath(E,r[0],r[1],r[2],r[3],r[4],r[5],r[6]||0,r[7]||0,r[8]||1,N);else if(r.length===7||r.length===10)this._addPath(E,r[1],r[2],r[3],r[4],r[5],r[6],r[7]||0,r[8]||0,r[9]||1,N);else return null;return this},o.Path.prototype.addPoly=function(r,E){var N=L(r,"HEAPF32");return this._addPoly(N,r.length/2,E),B(N,r),this},o.Path.prototype.addRect=function(r,E){return r=dt(r),this._addRect(r,!!E),this},o.Path.prototype.addRRect=function(r,E){return r=ae(r),this._addRRect(r,!!E),this},o.Path.prototype.addVerbsPointsWeights=function(r,E,N){var I=L(r,"HEAPU8"),P=L(E,"HEAPF32"),x=L(N,"HEAPF32");this._addVerbsPointsWeights(I,r.length,P,E.length,x,N&&N.length||0),B(I,r),B(P,E),B(x,N)},o.Path.prototype.arc=function(r,E,N,I,P,x){return r=o.LTRBRect(r-N,E-N,r+N,E+N),P=(P-I)/Math.PI*180-360*!!x,x=new o.Path,x.addArc(r,I/Math.PI*180,P),this.addPath(x,!0),x.delete(),this},o.Path.prototype.arcToOval=function(r,E,N,I){return r=dt(r),this._arcToOval(r,E,N,I),this},o.Path.prototype.arcToRotated=function(r,E,N,I,P,x,tt){return this._arcToRotated(r,E,N,!!I,!!P,x,tt),this},o.Path.prototype.arcToTangent=function(r,E,N,I,P){return this._arcToTangent(r,E,N,I,P),this},o.Path.prototype.close=function(){return this._close(),this},o.Path.prototype.conicTo=function(r,E,N,I,P){return this._conicTo(r,E,N,I,P),this},o.Path.prototype.computeTightBounds=function(r){this._computeTightBounds(se);var E=xe.toTypedArray();return r?(r.set(E),r):E.slice()},o.Path.prototype.cubicTo=function(r,E,N,I,P,x){return this._cubicTo(r,E,N,I,P,x),this},o.Path.prototype.dash=function(r,E,N){return this._dash(r,E,N)?this:null},o.Path.prototype.getBounds=function(r){this._getBounds(se);var E=xe.toTypedArray();return r?(r.set(E),r):E.slice()},o.Path.prototype.lineTo=function(r,E){return this._lineTo(r,E),this},o.Path.prototype.moveTo=function(r,E){return this._moveTo(r,E),this},o.Path.prototype.offset=function(r,E){return this._transform(1,0,r,0,1,E,0,0,1),this},o.Path.prototype.quadTo=function(r,E,N,I){return this._quadTo(r,E,N,I),this},o.Path.prototype.rArcTo=function(r,E,N,I,P,x,tt){return this._rArcTo(r,E,N,I,P,x,tt),this},o.Path.prototype.rConicTo=function(r,E,N,I,P){return this._rConicTo(r,E,N,I,P),this},o.Path.prototype.rCubicTo=function(r,E,N,I,P,x){return this._rCubicTo(r,E,N,I,P,x),this},o.Path.prototype.rLineTo=function(r,E){return this._rLineTo(r,E),this},o.Path.prototype.rMoveTo=function(r,E){return this._rMoveTo(r,E),this},o.Path.prototype.rQuadTo=function(r,E,N,I){return this._rQuadTo(r,E,N,I),this},o.Path.prototype.stroke=function(r){return r=r||{},r.width=r.width||1,r.miter_limit=r.miter_limit||4,r.cap=r.cap||o.StrokeCap.Butt,r.join=r.join||o.StrokeJoin.Miter,r.precision=r.precision||1,this._stroke(r)?this:null},o.Path.prototype.transform=function(){if(arguments.length===1){var r=arguments[0];this._transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6]||0,r[7]||0,r[8]||1)}else if(arguments.length===6||arguments.length===9)r=arguments,this._transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6]||0,r[7]||0,r[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},o.Path.prototype.trim=function(r,E,N){return this._trim(r,E,!!N)?this:null},o.Image.prototype.encodeToBytes=function(r,E){var N=o.Se();return r=r||o.ImageFormat.PNG,E=E||100,N?this._encodeToBytes(r,E,N):this._encodeToBytes(r,E)},o.Image.prototype.makeShaderCubic=function(r,E,N,I,P){return P=$(P),this._makeShaderCubic(r,E,N,I,P)},o.Image.prototype.makeShaderOptions=function(r,E,N,I,P){return P=$(P),this._makeShaderOptions(r,E,N,I,P)},o.Image.prototype.readPixels=function(r,E,N,I,P){var x=o.Se();return m(this,r,E,N,I,P,x)},o.Canvas.prototype.clear=function(r){o.Od(this.Md),r=v(r),this._clear(r)},o.Canvas.prototype.clipRRect=function(r,E,N){o.Od(this.Md),r=ae(r),this._clipRRect(r,E,N)},o.Canvas.prototype.clipRect=function(r,E,N){o.Od(this.Md),r=dt(r),this._clipRect(r,E,N)},o.Canvas.prototype.concat=function(r){o.Od(this.Md),r=pt(r),this._concat(r)},o.Canvas.prototype.drawArc=function(r,E,N,I,P){o.Od(this.Md),r=dt(r),this._drawArc(r,E,N,I,P)},o.Canvas.prototype.drawAtlas=function(r,E,N,I,P,x,tt){if(r&&I&&E&&N&&E.length===N.length){o.Od(this.Md),P||(P=o.BlendMode.SrcOver);var Et=L(E,"HEAPF32"),at=L(N,"HEAPF32"),Dt=N.length/4,G=L(R(x),"HEAPU32");if(tt&&"B"in tt&&"C"in tt)this._drawAtlasCubic(r,at,Et,G,Dt,P,tt.B,tt.C,I);else{let k=o.FilterMode.Linear,lt=o.MipmapMode.None;tt&&(k=tt.filter,"mipmap"in tt&&(lt=tt.mipmap)),this._drawAtlasOptions(r,at,Et,G,Dt,P,k,lt,I)}B(Et,E),B(at,N),B(G,x)}},o.Canvas.prototype.drawCircle=function(r,E,N,I){o.Od(this.Md),this._drawCircle(r,E,N,I)},o.Canvas.prototype.drawColor=function(r,E){o.Od(this.Md),r=v(r),E!==void 0?this._drawColor(r,E):this._drawColor(r)},o.Canvas.prototype.drawColorInt=function(r,E){o.Od(this.Md),this._drawColorInt(r,E||o.BlendMode.SrcOver)},o.Canvas.prototype.drawColorComponents=function(r,E,N,I,P){o.Od(this.Md),r=gt(r,E,N,I),P!==void 0?this._drawColor(r,P):this._drawColor(r)},o.Canvas.prototype.drawDRRect=function(r,E,N){o.Od(this.Md),r=ae(r,p2),E=ae(E,O_),this._drawDRRect(r,E,N)},o.Canvas.prototype.drawImage=function(r,E,N,I){o.Od(this.Md),this._drawImage(r,E,N,I||null)},o.Canvas.prototype.drawImageCubic=function(r,E,N,I,P,x){o.Od(this.Md),this._drawImageCubic(r,E,N,I,P,x||null)},o.Canvas.prototype.drawImageOptions=function(r,E,N,I,P,x){o.Od(this.Md),this._drawImageOptions(r,E,N,I,P,x||null)},o.Canvas.prototype.drawImageNine=function(r,E,N,I,P){o.Od(this.Md),E=L(E,"HEAP32",Ts),N=dt(N),this._drawImageNine(r,E,N,I,P||null)},o.Canvas.prototype.drawImageRect=function(r,E,N,I,P){o.Od(this.Md),dt(E,se),dt(N,rn),this._drawImageRect(r,se,rn,I,!!P)},o.Canvas.prototype.drawImageRectCubic=function(r,E,N,I,P,x){o.Od(this.Md),dt(E,se),dt(N,rn),this._drawImageRectCubic(r,se,rn,I,P,x||null)},o.Canvas.prototype.drawImageRectOptions=function(r,E,N,I,P,x){o.Od(this.Md),dt(E,se),dt(N,rn),this._drawImageRectOptions(r,se,rn,I,P,x||null)},o.Canvas.prototype.drawLine=function(r,E,N,I,P){o.Od(this.Md),this._drawLine(r,E,N,I,P)},o.Canvas.prototype.drawOval=function(r,E){o.Od(this.Md),r=dt(r),this._drawOval(r,E)},o.Canvas.prototype.drawPaint=function(r){o.Od(this.Md),this._drawPaint(r)},o.Canvas.prototype.drawParagraph=function(r,E,N){o.Od(this.Md),this._drawParagraph(r,E,N)},o.Canvas.prototype.drawPatch=function(r,E,N,I,P){if(24>r.length)throw"Need 12 cubic points";if(E&&4>E.length)throw"Need 4 colors";if(N&&8>N.length)throw"Need 4 shader coordinates";o.Od(this.Md);let x=L(r,"HEAPF32"),tt=E?L(R(E),"HEAPU32"):Bt,Et=N?L(N,"HEAPF32"):Bt;I||(I=o.BlendMode.Modulate),this._drawPatch(x,tt,Et,I,P),B(Et,N),B(tt,E),B(x,r)},o.Canvas.prototype.drawPath=function(r,E){o.Od(this.Md),this._drawPath(r,E)},o.Canvas.prototype.drawPicture=function(r){o.Od(this.Md),this._drawPicture(r)},o.Canvas.prototype.drawPoints=function(r,E,N){o.Od(this.Md);var I=L(E,"HEAPF32");this._drawPoints(r,I,E.length/2,N),B(I,E)},o.Canvas.prototype.drawRRect=function(r,E){o.Od(this.Md),r=ae(r),this._drawRRect(r,E)},o.Canvas.prototype.drawRect=function(r,E){o.Od(this.Md),r=dt(r),this._drawRect(r,E)},o.Canvas.prototype.drawRect4f=function(r,E,N,I,P){o.Od(this.Md),this._drawRect4f(r,E,N,I,P)},o.Canvas.prototype.drawShadow=function(r,E,N,I,P,x,tt){o.Od(this.Md);var Et=L(P,"HEAPF32"),at=L(x,"HEAPF32");E=L(E,"HEAPF32",e2),N=L(N,"HEAPF32",n2),this._drawShadow(r,E,N,I,Et,at,tt),B(Et,P),B(at,x)},o.getShadowLocalBounds=function(r,E,N,I,P,x,tt){return r=$(r),N=L(N,"HEAPF32",e2),I=L(I,"HEAPF32",n2),this._getShadowLocalBounds(r,E,N,I,P,x,se)?(E=xe.toTypedArray(),tt?(tt.set(E),tt):E.slice()):null},o.Canvas.prototype.drawTextBlob=function(r,E,N,I){o.Od(this.Md),this._drawTextBlob(r,E,N,I)},o.Canvas.prototype.drawVertices=function(r,E,N){o.Od(this.Md),this._drawVertices(r,E,N)},o.Canvas.prototype.getDeviceClipBounds=function(r){this._getDeviceClipBounds(Ts);var E=s2.toTypedArray();return r?r.set(E):r=E.slice(),r},o.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(bn);for(var r=bn,E=Array(16),N=0;16>N;N++)E[N]=o.HEAPF32[r/4+N];return E},o.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(gn);for(var r=Array(9),E=0;9>E;E++)r[E]=o.HEAPF32[gn/4+E];return r},o.Canvas.prototype.makeSurface=function(r){return r=this._makeSurface(r),r.Md=this.Md,r},o.Canvas.prototype.readPixels=function(r,E,N,I,P){return o.Od(this.Md),m(this,r,E,N,I,P)},o.Canvas.prototype.saveLayer=function(r,E,N,I){return E=dt(E),this._saveLayer(r||null,E,N||null,I||0)},o.Canvas.prototype.writePixels=function(r,E,N,I,P,x,tt,Et){if(r.byteLength%(E*N))throw"pixels length must be a multiple of the srcWidth * srcHeight";o.Od(this.Md);var at=r.byteLength/(E*N);x=x||o.AlphaType.Unpremul,tt=tt||o.ColorType.RGBA_8888,Et=Et||o.ColorSpace.SRGB;var Dt=at*E;return at=L(r,"HEAPU8"),E=this._writePixels({width:E,height:N,colorType:tt,alphaType:x,colorSpace:Et},at,Dt,I,P),B(at,r),E},o.ColorFilter.MakeBlend=function(r,E,N){return r=v(r),N=N||o.ColorSpace.SRGB,o.ColorFilter._MakeBlend(r,E,N)},o.ColorFilter.MakeMatrix=function(r){if(!r||r.length!==20)throw"invalid color matrix";var E=L(r,"HEAPF32"),N=o.ColorFilter._makeMatrix(E);return B(E,r),N},o.ContourMeasure.prototype.getPosTan=function(r,E){return this._getPosTan(r,se),r=xe.toTypedArray(),E?(E.set(r),E):r.slice()},o.ImageFilter.MakeDropShadow=function(r,E,N,I,P,x){return P=v(P,dn),o.ImageFilter._MakeDropShadow(r,E,N,I,P,x)},o.ImageFilter.MakeDropShadowOnly=function(r,E,N,I,P,x){return P=v(P,dn),o.ImageFilter._MakeDropShadowOnly(r,E,N,I,P,x)},o.ImageFilter.MakeImage=function(r,E,N,I){if(N=dt(N,se),I=dt(I,rn),"B"in E&&"C"in E)return o.ImageFilter._MakeImageCubic(r,E.B,E.C,N,I);let P=E.filter,x=o.MipmapMode.None;return"mipmap"in E&&(x=E.mipmap),o.ImageFilter._MakeImageOptions(r,P,x,N,I)},o.ImageFilter.MakeMatrixTransform=function(r,E,N){if(r=$(r),"B"in E&&"C"in E)return o.ImageFilter._MakeMatrixTransformCubic(r,E.B,E.C,N);let I=E.filter,P=o.MipmapMode.None;return"mipmap"in E&&(P=E.mipmap),o.ImageFilter._MakeMatrixTransformOptions(r,I,P,N)},o.Paint.prototype.getColor=function(){return this._getColor(dn),ft(dn)},o.Paint.prototype.setColor=function(r,E){E=E||null,r=v(r),this._setColor(r,E)},o.Paint.prototype.setColorComponents=function(r,E,N,I,P){P=P||null,r=gt(r,E,N,I),this._setColor(r,P)},o.Path.prototype.getPoint=function(r,E){return this._getPoint(r,se),r=xe.toTypedArray(),E?(E[0]=r[0],E[1]=r[1],E):r.slice(0,2)},o.Picture.prototype.makeShader=function(r,E,N,I,P){return I=$(I),P=dt(P),this._makeShader(r,E,N,I,P)},o.PictureRecorder.prototype.beginRecording=function(r){return r=dt(r),this._beginRecording(r)},o.Surface.prototype.getCanvas=function(){var r=this._getCanvas();return r.Md=this.Md,r},o.Surface.prototype.makeImageSnapshot=function(r){return o.Od(this.Md),r=L(r,"HEAP32",Ts),this._makeImageSnapshot(r)},o.Surface.prototype.makeSurface=function(r){return o.Od(this.Md),r=this._makeSurface(r),r.Md=this.Md,r},o.Surface.prototype.Df=function(r,E){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){o.Od(this.Md),r(this.He),this.flush(E)}.bind(this))},o.Surface.prototype.requestAnimationFrame||(o.Surface.prototype.requestAnimationFrame=o.Surface.prototype.Df),o.Surface.prototype.zf=function(r,E){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){o.Od(this.Md),r(this.He),this.flush(E),this.dispose()}.bind(this))},o.Surface.prototype.drawOnce||(o.Surface.prototype.drawOnce=o.Surface.prototype.zf),o.PathEffect.MakeDash=function(r,E){if(E||(E=0),!r.length||r.length%2===1)throw"Intervals array must have even length";var N=L(r,"HEAPF32");return E=o.PathEffect._MakeDash(N,r.length,E),B(N,r),E},o.PathEffect.MakeLine2D=function(r,E){return E=$(E),o.PathEffect._MakeLine2D(r,E)},o.PathEffect.MakePath2D=function(r,E){return r=$(r),o.PathEffect._MakePath2D(r,E)},o.Shader.MakeColor=function(r,E){return E=E||null,r=v(r),o.Shader._MakeColor(r,E)},o.Shader.Blend=o.Shader.MakeBlend,o.Shader.Color=o.Shader.MakeColor,o.Shader.MakeLinearGradient=function(r,E,N,I,P,x,tt,Et){Et=Et||null;var at=z(N),Dt=L(I,"HEAPF32");tt=tt||0,x=$(x);var G=xe.toTypedArray();return G.set(r),G.set(E,2),r=o.Shader._MakeLinearGradient(se,at.ce,at.colorType,Dt,at.count,P,tt,x,Et),B(at.ce,N),I&&B(Dt,I),r},o.Shader.MakeRadialGradient=function(r,E,N,I,P,x,tt,Et){Et=Et||null;var at=z(N),Dt=L(I,"HEAPF32");return tt=tt||0,x=$(x),r=o.Shader._MakeRadialGradient(r[0],r[1],E,at.ce,at.colorType,Dt,at.count,P,tt,x,Et),B(at.ce,N),I&&B(Dt,I),r},o.Shader.MakeSweepGradient=function(r,E,N,I,P,x,tt,Et,at,Dt){Dt=Dt||null;var G=z(N),k=L(I,"HEAPF32");return tt=tt||0,Et=Et||0,at=at||360,x=$(x),r=o.Shader._MakeSweepGradient(r,E,G.ce,G.colorType,k,G.count,P,Et,at,tt,x,Dt),B(G.ce,N),I&&B(k,I),r},o.Shader.MakeTwoPointConicalGradient=function(r,E,N,I,P,x,tt,Et,at,Dt){Dt=Dt||null;var G=z(P),k=L(x,"HEAPF32");at=at||0,Et=$(Et);var lt=xe.toTypedArray();return lt.set(r),lt.set(N,2),r=o.Shader._MakeTwoPointConicalGradient(se,E,I,G.ce,G.colorType,k,G.count,tt,at,Et,Dt),B(G.ce,P),x&&B(k,x),r},o.Vertices.prototype.bounds=function(r){this._bounds(se);var E=xe.toTypedArray();return r?(r.set(E),r):E.slice()},o.Vd&&o.Vd.forEach(function(r){r()})},o.computeTonalColors=function(m){var r=L(m.ambient,"HEAPF32"),E=L(m.spot,"HEAPF32");this._computeTonalColors(r,E);var N={ambient:ft(r),spot:ft(E)};return B(r,m.ambient),B(E,m.spot),N},o.LTRBRect=function(m,r,E,N){return Float32Array.of(m,r,E,N)},o.XYWHRect=function(m,r,E,N){return Float32Array.of(m,r,m+E,r+N)},o.LTRBiRect=function(m,r,E,N){return Int32Array.of(m,r,E,N)},o.XYWHiRect=function(m,r,E,N){return Int32Array.of(m,r,m+E,r+N)},o.RRectXY=function(m,r,E){return Float32Array.of(m[0],m[1],m[2],m[3],r,E,r,E,r,E,r,E)},o.MakeAnimatedImageFromEncoded=function(m){m=new Uint8Array(m);var r=o._malloc(m.byteLength);return o.HEAPU8.set(m,r),(m=o._decodeAnimatedImage(r,m.byteLength))?m:null},o.MakeImageFromEncoded=function(m){m=new Uint8Array(m);var r=o._malloc(m.byteLength);return o.HEAPU8.set(m,r),(m=o._decodeImage(r,m.byteLength))?m:null};var R1=null;o.MakeImageFromCanvasImageSource=function(m){var r=m.width,E=m.height;R1||(R1=document.createElement("canvas")),R1.width=r,R1.height=E;var N=R1.getContext("2d",{wg:!0});return N.drawImage(m,0,0),m=N.getImageData(0,0,r,E),o.MakeImage({width:r,height:E,alphaType:o.AlphaType.Unpremul,colorType:o.ColorType.RGBA_8888,colorSpace:o.ColorSpace.SRGB},m.data,4*r)},o.MakeImage=function(m,r,E){var N=o._malloc(r.length);return o.HEAPU8.set(r,N),o._MakeImage(m,N,r.length,E)},o.MakeVertices=function(m,r,E,N,I,P){var x=I&&I.length||0,tt=0;return E&&E.length&&(tt|=1),N&&N.length&&(tt|=2),P===void 0||P||(tt|=4),m=new o._VerticesBuilder(m,r.length/2,x,tt),L(r,"HEAPF32",m.positions()),m.texCoords()&&L(E,"HEAPF32",m.texCoords()),m.colors()&&L(R(N),"HEAPU32",m.colors()),m.indices()&&L(I,"HEAPU16",m.indices()),m.detach()},o.Matrix={},o.Matrix.identity=function(){return h(3)},o.Matrix.invert=function(m){var r=m[0]*m[4]*m[8]+m[1]*m[5]*m[6]+m[2]*m[3]*m[7]-m[2]*m[4]*m[6]-m[1]*m[3]*m[8]-m[0]*m[5]*m[7];return r?[(m[4]*m[8]-m[5]*m[7])/r,(m[2]*m[7]-m[1]*m[8])/r,(m[1]*m[5]-m[2]*m[4])/r,(m[5]*m[6]-m[3]*m[8])/r,(m[0]*m[8]-m[2]*m[6])/r,(m[2]*m[3]-m[0]*m[5])/r,(m[3]*m[7]-m[4]*m[6])/r,(m[1]*m[6]-m[0]*m[7])/r,(m[0]*m[4]-m[1]*m[3])/r]:null},o.Matrix.mapPoints=function(m,r){for(var E=0;EI;I+=5){for(var P=0;4>P;P++)E[N++]=m[I]*r[P]+m[I+1]*r[P+5]+m[I+2]*r[P+10]+m[I+3]*r[P+15];E[N++]=m[I]*r[4]+m[I+1]*r[9]+m[I+2]*r[14]+m[I+3]*r[19]+m[I+4]}return E},function(m){m.Vd=m.Vd||[],m.Vd.push(function(){function r(G){if(!G||!G.length)return[];for(var k=[],lt=0;ltr?(o._free(m),null):(I=new Uint16Array(o.HEAPU8.buffer,m,r),E?(E.set(I),o._free(m),E):(E=Uint16Array.from(I),o._free(m),E))},o.Font.prototype.getGlyphIntercepts=function(m,r,E,N){var I=L(m,"HEAPU16"),P=L(r,"HEAPF32");return this._getGlyphIntercepts(I,m.length,!(m&&m._ck),P,r.length,!(r&&r._ck),E,N)},o.Font.prototype.getGlyphWidths=function(m,r,E){var N=L(m,"HEAPU16"),I=o._malloc(4*m.length);return this._getGlyphWidthBounds(N,m.length,I,Bt,r||null),r=new Float32Array(o.HEAPU8.buffer,I,m.length),B(N,m),E?(E.set(r),o._free(I),E):(m=Float32Array.from(r),o._free(I),m)},o.FontMgr.FromData=function(){if(!arguments.length)return null;var m=arguments;if(m.length===1&&Array.isArray(m[0])&&(m=arguments[0]),!m.length)return null;for(var r=[],E=[],N=0;Nr?(o._free(m),null):(I=new Uint16Array(o.HEAPU8.buffer,m,r),E?(E.set(I),o._free(m),E):(E=Uint16Array.from(I),o._free(m),E))},o.TextBlob.MakeOnPath=function(m,r,E,N){if(m&&m.length&&r&&r.countPoints()){if(r.countPoints()===1)return this.MakeFromText(m,E);N||(N=0);var I=E.getGlyphIDs(m);I=E.getGlyphWidths(I);var P=[];r=new o.ContourMeasureIter(r,!1,1);for(var x=r.next(),tt=new Float32Array(4),Et=0;Etx.length()){if(x.delete(),x=r.next(),!x){m=m.substring(0,Et);break}N=at/2}x.getPosTan(N,tt);var Dt=tt[2],G=tt[3];P.push(Dt,G,tt[0]-at/2*Dt,tt[1]-at/2*G),N+=at/2}return m=this.MakeFromRSXform(m,P,E),x&&x.delete(),r.delete(),m}},o.TextBlob.MakeFromRSXform=function(m,r,E){var N=$t(m)+1,I=o._malloc(N);return Ht(m,Ut,I,N),m=L(r,"HEAPF32"),E=o.TextBlob._MakeFromRSXform(I,N-1,m,E),o._free(I),E||null},o.TextBlob.MakeFromRSXformGlyphs=function(m,r,E){var N=L(m,"HEAPU16");return r=L(r,"HEAPF32"),E=o.TextBlob._MakeFromRSXformGlyphs(N,2*m.length,r,E),B(N,m),E||null},o.TextBlob.MakeFromGlyphs=function(m,r){var E=L(m,"HEAPU16");return r=o.TextBlob._MakeFromGlyphs(E,2*m.length,r),B(E,m),r||null},o.TextBlob.MakeFromText=function(m,r){var E=$t(m)+1,N=o._malloc(E);return Ht(m,Ut,N,E),m=o.TextBlob._MakeFromText(N,E-1,r),o._free(N),m||null},o.MallocGlyphIDs=function(m){return o.Malloc(Uint16Array,m)}}),o.Vd=o.Vd||[],o.Vd.push(function(){o.MakePicture=function(m){m=new Uint8Array(m);var r=o._malloc(m.byteLength);return o.HEAPU8.set(m,r),(m=o._MakePicture(r,m.byteLength))?m:null}}),o.Vd=o.Vd||[],o.Vd.push(function(){o.RuntimeEffect.Make=function(m,r){return o.RuntimeEffect._Make(m,{onError:r||function(E){console.log("RuntimeEffect error",E)}})},o.RuntimeEffect.prototype.makeShader=function(m,r){var E=!m._ck,N=L(m,"HEAPF32");return r=$(r),this._makeShader(N,4*m.length,E,r)},o.RuntimeEffect.prototype.makeShaderWithChildren=function(m,r,E){var N=!m._ck,I=L(m,"HEAPF32");E=$(E);for(var P=[],x=0;xj||1=j||!j||(this.Ke=j,this.Qd.setStrokeWidth(j))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(j){0>=j||!j||this.Qd.setStrokeMiter(j)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(j){0>j||!isFinite(j)||(this.we=j)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return r(this.Je)},set:function(j){this.Je=E(j)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(j){isFinite(j)&&(this.xe=j)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(j){isFinite(j)&&(this.ye=j)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return r(this.he)},set:function(j){typeof j=="string"?this.he=E(j):j.ue&&(this.he=j)}}),this.arc=function(j,T,F,V,Q,X){k(this.Sd,j,T,F,F,0,V,Q,X)},this.arcTo=function(j,T,F,V,Q){at(this.Sd,j,T,F,V,Q)},this.beginPath=function(){this.Sd.delete(),this.Sd=new o.Path},this.bezierCurveTo=function(j,T,F,V,Q,X){var ot=this.Sd;m([j,T,F,V,Q,X])&&(ot.isEmpty()&&ot.moveTo(j,T),ot.cubicTo(j,T,F,V,Q,X))},this.clearRect=function(j,T,F,V){this.Qd.setStyle(o.PaintStyle.Fill),this.Qd.setBlendMode(o.BlendMode.Clear),this.Nd.drawRect(o.XYWHRect(j,T,F,V),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(j,T){typeof j=="string"?(T=j,j=this.Sd):j&&j.$e&&(j=j.Wd),j||(j=this.Sd),j=j.copy(),T&&T.toLowerCase()==="evenodd"?j.setFillType(o.FillType.EvenOdd):j.setFillType(o.FillType.Winding),this.Nd.clipPath(j,o.ClipOp.Intersect,!0),j.delete()},this.closePath=function(){Dt(this.Sd)},this.createImageData=function(){if(arguments.length===1){var j=arguments[0];return new tt(new Uint8ClampedArray(4*j.width*j.height),j.width,j.height)}if(arguments.length===2){j=arguments[0];var T=arguments[1];return new tt(new Uint8ClampedArray(4*j*T),j,T)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(j,T,F,V){if(m(arguments)){var Q=new Et(j,T,F,V);return this.Ce.push(Q),Q}},this.createPattern=function(j,T){return j=new Xt(j,T),this.Ce.push(j),j},this.createRadialGradient=function(j,T,F,V,Q,X){if(m(arguments)){var ot=new Ae(j,T,F,V,Q,X);return this.Ce.push(ot),ot}},this.drawImage=function(j){j instanceof x&&(j=j.tf());var T=this.Pe();if(arguments.length===3||arguments.length===5)var F=o.XYWHRect(arguments[1],arguments[2],arguments[3]||j.width(),arguments[4]||j.height()),V=o.XYWHRect(0,0,j.width(),j.height());else if(arguments.length===9)F=o.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),V=o.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;this.Nd.drawImageRect(j,V,F,T,!1),T.dispose()},this.ellipse=function(j,T,F,V,Q,X,ot,Yt){k(this.Sd,j,T,F,V,Q,X,ot,Yt)},this.Pe=function(){var j=this.Qd.copy();if(j.setStyle(o.PaintStyle.Fill),A(this.be)){var T=o.multiplyByAlpha(this.be,this.ke);j.setColor(T)}else T=this.be.ue(this.Ud),j.setColor(o.Color(0,0,0,this.ke)),j.setShader(T);return j.dispose=function(){this.delete()},j},this.fill=function(j,T){if(typeof j=="string"?(T=j,j=this.Sd):j&&j.$e&&(j=j.Wd),T==="evenodd")this.Sd.setFillType(o.FillType.EvenOdd);else{if(T!=="nonzero"&&T)throw"invalid fill rule";this.Sd.setFillType(o.FillType.Winding)}j||(j=this.Sd),T=this.Pe();var F=this.ze(T);F&&(this.Nd.save(),this.se(),this.Nd.drawPath(j,F),this.Nd.restore(),F.dispose()),this.Nd.drawPath(j,T),T.dispose()},this.fillRect=function(j,T,F,V){var Q=this.Pe(),X=this.ze(Q);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(o.XYWHRect(j,T,F,V),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(o.XYWHRect(j,T,F,V),Q),Q.dispose()},this.fillText=function(j,T,F){var V=this.Pe();j=o.TextBlob.MakeFromText(j,this.ne);var Q=this.ze(V);Q&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(j,T,F,Q),this.Nd.restore(),Q.dispose()),this.Nd.drawTextBlob(j,T,F,V),j.delete(),V.dispose()},this.getImageData=function(j,T,F,V){return(j=this.Nd.readPixels(j,T,{width:F,height:V,colorType:o.ColorType.RGBA_8888,alphaType:o.AlphaType.Unpremul,colorSpace:o.ColorSpace.SRGB}))?new tt(new Uint8ClampedArray(j.buffer),F,V):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(j){var T=o.Matrix.invert(this.Ud);return o.Matrix.mapPoints(T,j),j},this.isPointInPath=function(j,T,F){var V=arguments;if(V.length===3)var Q=this.Sd;else if(V.length===4)Q=V[0],j=V[1],T=V[2],F=V[3];else throw"invalid arg count, need 3 or 4, got "+V.length;return!isFinite(j)||!isFinite(T)||(F=F||"nonzero",F!=="nonzero"&&F!=="evenodd")?!1:(V=this.nf([j,T]),j=V[0],T=V[1],Q.setFillType(F==="nonzero"?o.FillType.Winding:o.FillType.EvenOdd),Q.contains(j,T))},this.isPointInStroke=function(j,T){var F=arguments;if(F.length===2)var V=this.Sd;else if(F.length===3)V=F[0],j=F[1],T=F[2];else throw"invalid arg count, need 2 or 3, got "+F.length;return!isFinite(j)||!isFinite(T)?!1:(F=this.nf([j,T]),j=F[0],T=F[1],V=V.copy(),V.setFillType(o.FillType.Winding),V.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),F=V.contains(j,T),V.delete(),F)},this.lineTo=function(j,T){lt(this.Sd,j,T)},this.measureText=function(j){j=this.ne.getGlyphIDs(j),j=this.ne.getGlyphWidths(j);let T=0;for(let F of j)T+=F;return{width:T}},this.moveTo=function(j,T){var F=this.Sd;m([j,T])&&F.moveTo(j,T)},this.putImageData=function(j,T,F,V,Q,X,ot){if(m([T,F,V,Q,X,ot])){if(V===void 0)this.Nd.writePixels(j.data,j.width,j.height,T,F);else if(V=V||0,Q=Q||0,X=X||j.width,ot=ot||j.height,0>X&&(V+=X,X=Math.abs(X)),0>ot&&(Q+=ot,ot=Math.abs(ot)),0>V&&(X+=V,V=0),0>Q&&(ot+=Q,Q=0),!(0>=X||0>=ot)){j=o.MakeImage({width:j.width,height:j.height,alphaType:o.AlphaType.Unpremul,colorType:o.ColorType.RGBA_8888,colorSpace:o.ColorSpace.SRGB},j.data,4*j.width);var Yt=o.XYWHRect(V,Q,X,ot);T=o.XYWHRect(T+V,F+Q,X,ot),F=o.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(F),this.Nd.drawImageRect(j,Yt,T,null,!1),this.Nd.restore(),j.delete()}}},this.quadraticCurveTo=function(j,T,F,V){var Q=this.Sd;m([j,T,F,V])&&(Q.isEmpty()&&Q.moveTo(j,T),Q.quadTo(j,T,F,V))},this.rect=function(j,T,F,V){var Q=this.Sd;j=o.XYWHRect(j,T,F,V),m(j)&&Q.addRect(j)},this.resetTransform=function(){this.Sd.transform(this.Ud);var j=o.Matrix.invert(this.Ud);this.Nd.concat(j),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var j=this.mf.pop();if(j){var T=o.Matrix.multiply(this.Ud,o.Matrix.invert(j.Gf));this.Sd.transform(T),this.Qd.delete(),this.Qd=j.$f,this.ve=j.Yf,this.Ke=j.mg,this.he=j.lg,this.be=j.fs,this.xe=j.jg,this.ye=j.kg,this.we=j.dg,this.Je=j.ig,this.ke=j.Nf,this.Pd=j.Of,this.Ie=j.Zf,this.Qe=j.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(j){if(isFinite(j)){var T=o.Matrix.rotated(-j);this.Sd.transform(T),this.Nd.rotate(j/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var j=this.be.te();this.Ce.push(j)}else j=this.be;if(this.he.te){var T=this.he.te();this.Ce.push(T)}else T=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:T,fs:j,jg:this.xe,kg:this.ye,dg:this.we,ig:this.Je,Nf:this.ke,Zf:this.Ie,Of:this.Pd,$f:this.Qd.copy(),Mf:this.Qe}),this.Nd.save()},this.scale=function(j,T){if(m(arguments)){var F=o.Matrix.scaled(1/j,1/T);this.Sd.transform(F),this.Nd.scale(j,T),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(j){for(var T=0;Tj[T])return;j.length%2===1&&Array.prototype.push.apply(j,j),this.ve=j},this.setTransform=function(j,T,F,V,Q,X){m(arguments)&&(this.resetTransform(),this.transform(j,T,F,V,Q,X))},this.se=function(){var j=o.Matrix.invert(this.Ud);this.Nd.concat(j),this.Nd.concat(o.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(j){var T=o.multiplyByAlpha(this.Je,this.ke);if(!o.getColorComponents(T)[3]||!(this.we||this.ye||this.xe))return null;j=j.copy(),j.setColor(T);var F=o.MaskFilter.MakeBlur(o.BlurStyle.Normal,this.we/2,!1);return j.setMaskFilter(F),j.dispose=function(){F.delete(),this.delete()},j},this.bf=function(){var j=this.Qd.copy();if(j.setStyle(o.PaintStyle.Stroke),A(this.he)){var T=o.multiplyByAlpha(this.he,this.ke);j.setColor(T)}else T=this.he.ue(this.Ud),j.setColor(o.Color(0,0,0,this.ke)),j.setShader(T);if(j.setStrokeWidth(this.Ke),this.ve.length){var F=o.PathEffect.MakeDash(this.ve,this.Ie);j.setPathEffect(F)}return j.dispose=function(){F&&F.delete(),this.delete()},j},this.stroke=function(j){j=j?j.Wd:this.Sd;var T=this.bf(),F=this.ze(T);F&&(this.Nd.save(),this.se(),this.Nd.drawPath(j,F),this.Nd.restore(),F.dispose()),this.Nd.drawPath(j,T),T.dispose()},this.strokeRect=function(j,T,F,V){var Q=this.bf(),X=this.ze(Q);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(o.XYWHRect(j,T,F,V),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(o.XYWHRect(j,T,F,V),Q),Q.dispose()},this.strokeText=function(j,T,F){var V=this.bf();j=o.TextBlob.MakeFromText(j,this.ne);var Q=this.ze(V);Q&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(j,T,F,Q),this.Nd.restore(),Q.dispose()),this.Nd.drawTextBlob(j,T,F,V),j.delete(),V.dispose()},this.translate=function(j,T){if(m(arguments)){var F=o.Matrix.translated(-j,-T);this.Sd.transform(F),this.Nd.translate(j,T),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(j,T,F,V,Q,X){j=[j,F,Q,T,V,X,0,0,1],T=o.Matrix.invert(j),this.Sd.transform(T),this.Nd.concat(j),this.Ud=this.Nd.getTotalMatrix()},this.addHitRegion=function(){},this.clearHitRegions=function(){},this.drawFocusIfNeeded=function(){},this.removeHitRegion=function(){},this.scrollPathIntoView=function(){},Object.defineProperty(this,"canvas",{value:null,writable:!1})}function P(q){this.cf=q,this.Md=new I(q.getCanvas()),this.Re=[],this.decodeImage=function(j){if(j=o.MakeImageFromEncoded(j),!j)throw"Invalid input";return this.Re.push(j),new x(j)},this.loadFont=function(j,T){if(j=o.Typeface.MakeFreeTypeFaceFromData(j),!j)return null;this.Re.push(j);var F=(T.style||"normal")+"|"+(T.variant||"normal")+"|"+(T.weight||"normal");T=T.family,wt[T]||(wt[T]={"*":j}),wt[T][F]=j},this.makePath2D=function(j){return j=new Pt(j),this.Re.push(j.Wd),j},this.getContext=function(j){return j==="2d"?this.Md:null},this.toDataURL=function(j,T){this.cf.flush();var F=this.cf.makeImageSnapshot();if(F){j=j||"image/png";var V=o.ImageFormat.PNG;if(j==="image/jpeg"&&(V=o.ImageFormat.JPEG),T=F.encodeToBytes(V,T||.92)){if(F.delete(),j="data:"+j+";base64,",typeof Buffer<"u")T=Buffer.from(T).toString("base64");else{F=0,V=T.length;for(var Q="",X;FV||1V);X++);this.ae.splice(X,0,V),this.de.splice(X,0,Q)}},this.te=function(){var V=new Et(q,j,T,F);return V.de=this.de.slice(),V.ae=this.ae.slice(),V},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(V){var Q=[q,j,T,F];o.Matrix.mapPoints(V,Q),V=Q[0];var X=Q[1],ot=Q[2];return Q=Q[3],this.me(),this.Yd=o.Shader.MakeLinearGradient([V,X],[ot,Q],this.de,this.ae,o.TileMode.Clamp)}}function at(q,j,T,F,V,Q){if(m([j,T,F,V,Q])){if(0>Q)throw"radii cannot be negative";q.isEmpty()&&q.moveTo(j,T),q.arcToTangent(j,T,F,V,Q)}}function Dt(q){if(!q.isEmpty()){var j=q.getBounds();(j[3]-j[1]||j[2]-j[0])&&q.close()}}function G(q,j,T,F,V,Q,X){X=(X-Q)/Math.PI*180,Q=Q/Math.PI*180,j=o.LTRBRect(j-F,T-V,j+F,T+V),1e-5>Math.abs(Math.abs(X)-360)?(T=X/2,q.arcToOval(j,Q,T,!1),q.arcToOval(j,Q+T,T,!1)):q.arcToOval(j,Q,X,!1)}function k(q,j,T,F,V,Q,X,ot,Yt){if(m([j,T,F,V,Q,X,ot])){if(0>F||0>V)throw"radii cannot be negative";var Wt=2*Math.PI,we=X%Wt;0>we&&(we+=Wt);var M1=we-X;X=we,ot+=M1,!Yt&&ot-X>=Wt?ot=X+Wt:Yt&&X-ot>=Wt?ot=X-Wt:!Yt&&X>ot?ot=X+(Wt-(X-ot)%Wt):Yt&&XX||1X);Yt++);this.ae.splice(Yt,0,X),this.de.splice(Yt,0,ot)}},this.te=function(){var X=new Ae(q,j,T,F,V,Q);return X.de=this.de.slice(),X.ae=this.ae.slice(),X},this.me=function(){this.Yd&&(this.Yd.delete(),this.Yd=null)},this.ue=function(X){var ot=[q,j,F,V];o.Matrix.mapPoints(X,ot);var Yt=ot[0],Wt=ot[1],we=ot[2];ot=ot[3];var M1=(Math.abs(X[0])+Math.abs(X[4]))/2;return X=T*M1,M1*=Q,this.me(),this.Yd=o.Shader.MakeTwoPointConicalGradient([Yt,Wt],X,[we,ot],M1,this.de,this.ae,o.TileMode.Clamp)}}o._testing={};var Te={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};o._testing.parseColor=E,o._testing.colorToString=r;var Le=RegExp("(italic|oblique|normal|)\\s*(small-caps|normal|)\\s*(bold|bolder|lighter|[1-9]00|normal|)\\s*([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)"),wt={"Noto Mono":{"*":null},monospace:{"*":null}};o._testing.parseFontString=N,o.MakeCanvas=function(q,j){return(q=o.MakeSurface(q,j))?new P(q):null},o.ImageData=function(){if(arguments.length===2){var q=arguments[0],j=arguments[1];return new tt(new Uint8ClampedArray(4*q*j),q,j)}if(arguments.length===3){var T=arguments[0];if(T.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(q=arguments[1],j=arguments[2],T%4)throw"bytes must be given in a multiple of 4";if(T%q)throw"bytes must divide evenly by width";if(j&&j!==T/(4*q))throw"invalid height given";return new tt(T,q,T/(4*q))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(s);var i=Object.assign({},s),u="./this.program",l=(o,g)=>{throw g},S=typeof window=="object",D=typeof importScripts=="function",H=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",U="",Y,J,w,Z,it,nt;H?(U=D?o2("path").dirname(U)+"/":__dirname+"/",nt=()=>{it||(Z=o2("fs"),it=o2("path"))},Y=function(o,g){return nt(),o=it.normalize(o),Z.readFileSync(o,g?void 0:"utf8")},w=o=>(o=Y(o,!0),o.buffer||(o=new Uint8Array(o)),o),J=(o,g,h)=>{nt(),o=it.normalize(o),Z.readFile(o,function(A,y){A?h(A):g(y.buffer)})},1{if(It)throw process.exitCode=o,g;g instanceof T_||st("exiting due to exception: "+g),process.exit(o)},s.inspect=function(){return"[Emscripten Module object]"}):(S||D)&&(D?U=self.location.href:typeof document<"u"&&document.currentScript&&(U=document.currentScript.src),t&&(U=t),U.indexOf("blob:")!==0?U=U.substr(0,U.replace(/[?#].*/,"").lastIndexOf("/")+1):U="",Y=o=>{var g=new XMLHttpRequest;return g.open("GET",o,!1),g.send(null),g.responseText},D&&(w=o=>{var g=new XMLHttpRequest;return g.open("GET",o,!1),g.responseType="arraybuffer",g.send(null),new Uint8Array(g.response)}),J=(o,g,h)=>{var A=new XMLHttpRequest;A.open("GET",o,!0),A.responseType="arraybuffer",A.onload=()=>{A.status==200||A.status==0&&A.response?g(A.response):h()},A.onerror=h,A.send(null)});var ut=s.print||console.log.bind(console),st=s.printErr||console.warn.bind(console);Object.assign(s,i),i=null,s.thisProgram&&(u=s.thisProgram),s.quit&&(l=s.quit);var ct=0,rt;s.wasmBinary&&(rt=s.wasmBinary);var It=s.noExitRuntime||!0;typeof WebAssembly!="object"&&a1("no native wasm support detected");var Kt,ee=!1,ht=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Nt(o,g,h){var A=g+h;for(h=g;o[h]&&!(h>=A);)++h;if(16y?A+=String.fromCharCode(y):(y-=65536,A+=String.fromCharCode(55296|y>>10,56320|y&1023))}}else A+=String.fromCharCode(y)}return A}function yt(o,g){return o?Nt(Ut,o,g):""}function Ht(o,g,h,A){if(!(0=O){var M=o.charCodeAt(++R);O=65536+((O&1023)<<10)|M&1023}if(127>=O){if(h>=A)break;g[h++]=O}else{if(2047>=O){if(h+1>=A)break;g[h++]=192|O>>6}else{if(65535>=O){if(h+2>=A)break;g[h++]=224|O>>12}else{if(h+3>=A)break;g[h++]=240|O>>18,g[h++]=128|O>>12&63}g[h++]=128|O>>6&63}g[h++]=128|O&63}}return g[h]=0,h-y}function $t(o){for(var g=0,h=0;h=A&&(A=65536+((A&1023)<<10)|o.charCodeAt(++h)&1023),127>=A?++g:g=2047>=A?g+2:65535>=A?g+3:g+4}return g}var Ne=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function Qe(o,g){for(var h=o>>1,A=h+g/2;!(h>=A)&&Cn[h];)++h;if(h<<=1,32=g/2);++A){var y=sn[o+2*A>>1];if(y==0)break;h+=String.fromCharCode(y)}return h}function ve(o,g,h){if(h===void 0&&(h=2147483647),2>h)return 0;h-=2;var A=g;h=h<2*o.length?h/2:o.length;for(var y=0;y>1]=o.charCodeAt(y),g+=2;return sn[g>>1]=0,g-A}function Oh(o){return 2*o.length}function Lh(o,g){for(var h=0,A="";!(h>=g/4);){var y=et[o+4*h>>2];if(y==0)break;++h,65536<=y?(y-=65536,A+=String.fromCharCode(55296|y>>10,56320|y&1023)):A+=String.fromCharCode(y)}return A}function Ch(o,g,h){if(h===void 0&&(h=2147483647),4>h)return 0;var A=g;h=A+h-4;for(var y=0;y=R){var O=o.charCodeAt(++y);R=65536+((R&1023)<<10)|O&1023}if(et[g>>2]=R,g+=4,g+4>h)break}return et[g>>2]=0,g-A}function Kh(o){for(var g=0,h=0;h=A&&++h,g+=4}return g}var Lp,Fe,Ut,sn,Cn,et,vt,At,wo;function ko(){var o=Kt.buffer;Lp=o,s.HEAP8=Fe=new Int8Array(o),s.HEAP16=sn=new Int16Array(o),s.HEAP32=et=new Int32Array(o),s.HEAPU8=Ut=new Uint8Array(o),s.HEAPU16=Cn=new Uint16Array(o),s.HEAPU32=vt=new Uint32Array(o),s.HEAPF32=At=new Float32Array(o),s.HEAPF64=wo=new Float64Array(o)}var Jo,zo=[],Qo=[],Zo=[];function Hh(){var o=s.preRun.shift();zo.unshift(o)}var ln=0,Cp=null,h1=null;function a1(o){throw s.onAbort&&s.onAbort(o),o="Aborted("+o+")",st(o),ee=!0,o=new WebAssembly.RuntimeError(o+". Build with -sASSERTIONS for more info."),_(o),o}function $o(){return Se.startsWith("data:application/octet-stream;base64,")}var Se;if(Se="canvaskit.wasm",!$o()){var Xo=Se;Se=s.locateFile?s.locateFile(Xo,U):U+Xo}function qo(){var o=Se;try{if(o==Se&&rt)return new Uint8Array(rt);if(w)return w(o);throw"both async and sync fetching of the wasm failed"}catch(g){a1(g)}}function Ph(){if(!rt&&(S||D)){if(typeof fetch=="function"&&!Se.startsWith("file://"))return fetch(Se,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+Se+"'";return o.arrayBuffer()}).catch(function(){return qo()});if(J)return new Promise(function(o,g){J(Se,function(h){o(new Uint8Array(h))},g)})}return Promise.resolve().then(function(){return qo()})}function Kp(o){for(;0>2])}var Kn={},jn={},rs={};function t_(o){if(o===void 0)return"_unknown";o=o.replace(/[^a-zA-Z0-9_]/g,"$");var g=o.charCodeAt(0);return 48<=g&&57>=g?"_"+o:o}function Pp(o,g){return o=t_(o),function(){return g.apply(this,arguments)}}function bp(o){var g=Error,h=Pp(o,function(A){this.name=o,this.message=A,A=Error(A).stack,A!==void 0&&(this.stack=this.toString()+` +`+A.replace(/^Error(:[^\n]*)?\n/,""))});return h.prototype=Object.create(g.prototype),h.prototype.constructor=h,h.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},h}var e_=void 0;function hs(o){throw new e_(o)}function Ie(o,g,h){function A(M){M=h(M),M.length!==o.length&&hs("Mismatched type converter count");for(var B=0;B{jn.hasOwnProperty(M)?y[B]=jn[M]:(R.push(M),Kn.hasOwnProperty(M)||(Kn[M]=[]),Kn[M].push(()=>{y[B]=jn[M],++O,O===R.length&&A(y)}))}),R.length===0&&A(y)}function as(o){switch(o){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+o)}}var n_=void 0;function zt(o){for(var g="";Ut[o];)g+=n_[Ut[o++]];return g}var Hn=void 0;function Ot(o){throw new Hn(o)}function Ye(o,g,h={}){if(!("argPackAdvance"in g))throw new TypeError("registerType registeredInstance requires argPackAdvance");var A=g.name;if(o||Ot('type "'+A+'" must have a positive integer typeid pointer'),jn.hasOwnProperty(o)){if(h.Vf)return;Ot("Cannot register type '"+A+"' twice")}jn[o]=g,delete rs[o],Kn.hasOwnProperty(o)&&(g=Kn[o],delete Kn[o],g.forEach(y=>y()))}function vp(o){Ot(o.Ld.Xd.Rd.name+" instance already deleted")}var Fp=!1;function s_(){}function p_(o){--o.count.value,o.count.value===0&&(o.$d?o.fe.le(o.$d):o.Xd.Rd.le(o.Td))}function o_(o,g,h){return g===h?o:h.ie===void 0?null:(o=o_(o,g,h.ie),o===null?null:h.Jf(o))}var __={},u1=[];function Yp(){for(;u1.length;){var o=u1.pop();o.Ld.Fe=!1,o.delete()}}var c1=void 0,A1={};function bh(o,g){for(g===void 0&&Ot("ptr should not be undefined");o.ie;)g=o.Oe(g),o=o.ie;return A1[g]}function ms(o,g){return g.Xd&&g.Td||hs("makeClassHandle requires ptr and ptrType"),!!g.fe!=!!g.$d&&hs("Both smartPtrType and smartPtr must be specified"),g.count={value:1},E1(Object.create(o,{Ld:{value:g}}))}function E1(o){return typeof FinalizationRegistry>"u"?(E1=g=>g,o):(Fp=new FinalizationRegistry(g=>{p_(g.Ld)}),E1=g=>{var h=g.Ld;return h.$d&&Fp.register(g,{Ld:h},g),g},s_=g=>{Fp.unregister(g)},E1(o))}function pn(){}function Wp(o,g,h){if(o[g].Zd===void 0){var A=o[g];o[g]=function(){return o[g].Zd.hasOwnProperty(arguments.length)||Ot("Function '"+h+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+o[g].Zd+")!"),o[g].Zd[arguments.length].apply(this,arguments)},o[g].Zd=[],o[g].Zd[A.De]=A}}function Vp(o,g,h){s.hasOwnProperty(o)?((h===void 0||s[o].Zd!==void 0&&s[o].Zd[h]!==void 0)&&Ot("Cannot register public name '"+o+"' twice"),Wp(s,o,o),s.hasOwnProperty(h)&&Ot("Cannot register multiple overloads of a function with the same number of arguments ("+h+")!"),s[o].Zd[h]=g):(s[o]=g,h!==void 0&&(s[o].tg=h))}function vh(o,g,h,A,y,R,O,M){this.name=o,this.constructor=g,this.Ge=h,this.le=A,this.ie=y,this.Pf=R,this.Oe=O,this.Jf=M,this.bg=[]}function xp(o,g,h){for(;g!==h;)g.Oe||Ot("Expected null or instance of "+h.name+", got an instance of "+g.name),o=g.Oe(o),g=g.ie;return o}function Fh(o,g){return g===null?(this.ff&&Ot("null is not a valid "+this.name),0):(g.Ld||Ot('Cannot pass "'+Jp(g)+'" as a '+this.name),g.Ld.Td||Ot("Cannot pass deleted object as a pointer of type "+this.name),xp(g.Ld.Td,g.Ld.Xd.Rd,this.Rd))}function Yh(o,g){if(g===null){if(this.ff&&Ot("null is not a valid "+this.name),this.Ue){var h=this.gf();return o!==null&&o.push(this.le,h),h}return 0}if(g.Ld||Ot('Cannot pass "'+Jp(g)+'" as a '+this.name),g.Ld.Td||Ot("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&g.Ld.Xd.Te&&Ot("Cannot convert argument of type "+(g.Ld.fe?g.Ld.fe.name:g.Ld.Xd.name)+" to parameter type "+this.name),h=xp(g.Ld.Td,g.Ld.Xd.Rd,this.Rd),this.Ue)switch(g.Ld.$d===void 0&&Ot("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:g.Ld.fe===this?h=g.Ld.$d:Ot("Cannot convert argument of type "+(g.Ld.fe?g.Ld.fe.name:g.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:h=g.Ld.$d;break;case 2:if(g.Ld.fe===this)h=g.Ld.$d;else{var A=g.clone();h=this.cg(h,de(function(){A.delete()})),o!==null&&o.push(this.le,h)}break;default:Ot("Unsupporting sharing policy")}return h}function Wh(o,g){return g===null?(this.ff&&Ot("null is not a valid "+this.name),0):(g.Ld||Ot('Cannot pass "'+Jp(g)+'" as a '+this.name),g.Ld.Td||Ot("Cannot pass deleted object as a pointer of type "+this.name),g.Ld.Xd.Te&&Ot("Cannot convert argument of type "+g.Ld.Xd.name+" to parameter type "+this.name),xp(g.Ld.Td,g.Ld.Xd.Rd,this.Rd))}function We(o,g,h,A,y,R,O,M,B,L,z){this.name=o,this.Rd=g,this.ff=h,this.Te=A,this.Ue=y,this.ag=R,this.hg=O,this.vf=M,this.gf=B,this.cg=L,this.le=z,y||g.ie!==void 0?this.toWireType=Yh:(this.toWireType=A?Fh:Wh,this.ee=null)}function i_(o,g,h){s.hasOwnProperty(o)||hs("Replacing nonexistant public symbol"),s[o].Zd!==void 0&&h!==void 0?s[o].Zd[h]=g:(s[o]=g,s[o].De=h)}function Vh(o,g){var h=[];return function(){if(h.length=0,Object.assign(h,arguments),o.includes("j")){var A=s["dynCall_"+o];A=h&&h.length?A.apply(null,[g].concat(h)):A.call(null,g)}else A=ne(g).apply(null,h);return A}}function oe(o,g){o=zt(o);var h=o.includes("j")?Vh(o,g):ne(g);return typeof h!="function"&&Ot("unknown function pointer with signature "+o+": "+g),h}var g_=void 0;function r_(o){o=M_(o);var g=zt(o);return Ze(o),g}function y1(o,g){function h(R){y[R]||jn[R]||(rs[R]?rs[R].forEach(h):(A.push(R),y[R]=!0))}var A=[],y={};throw g.forEach(h),new g_(o+": "+A.map(r_).join([", "]))}function us(o,g,h,A,y){var R=g.length;2>R&&Ot("argTypes array size mismatch! Must at least get return value and 'this' types!");var O=g[1]!==null&&h!==null,M=!1;for(h=1;h>2]);return h}var wp=[],De=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function kp(o){4(o||Ot("Cannot use deleted val. handle = "+o),De[o].value),de=o=>{switch(o){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var g=wp.length?wp.pop():De.length;return De[g]={hf:1,value:o},g}};function xh(o,g,h){switch(g){case 0:return function(A){return this.fromWireType((h?Fe:Ut)[A])};case 1:return function(A){return this.fromWireType((h?sn:Cn)[A>>1])};case 2:return function(A){return this.fromWireType((h?et:vt)[A>>2])};default:throw new TypeError("Unknown integer type: "+o)}}function l1(o,g){var h=jn[o];return h===void 0&&Ot(g+" has unknown type "+r_(o)),h}function Jp(o){if(o===null)return"null";var g=typeof o;return g==="object"||g==="array"||g==="function"?o.toString():""+o}function wh(o,g){switch(g){case 2:return function(h){return this.fromWireType(At[h>>2])};case 3:return function(h){return this.fromWireType(wo[h>>3])};default:throw new TypeError("Unknown float type: "+o)}}function kh(o,g,h){switch(g){case 0:return h?function(A){return Fe[A]}:function(A){return Ut[A]};case 1:return h?function(A){return sn[A>>1]}:function(A){return Cn[A>>1]};case 2:return h?function(A){return et[A>>2]}:function(A){return vt[A>>2]};default:throw new TypeError("Unknown integer type: "+o)}}var Jh={};function As(o){var g=Jh[o];return g===void 0?zt(o):g}var Es=[];function h_(){function o(g){g.$$$embind_global$$$=g;var h=typeof $$$embind_global$$$=="object"&&g.$$$embind_global$$$==g;return h||delete g.$$$embind_global$$$,h}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&o(global)?$$$embind_global$$$=global:typeof self=="object"&&o(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function zh(o){var g=Es.length;return Es.push(o),g}function Qh(o,g){for(var h=Array(o),A=0;A>2],"parameter "+A);return h}var a_=[];function Zh(o){var g=Array(o+1);return function(h,A,y){g[0]=h;for(var R=0;R>2],"parameter "+R);g[R+1]=O.readValueFromPointer(y),y+=O.argPackAdvance}return h=new(h.bind.apply(h,g)),de(h)}}var m_={},u_;u_=H?()=>{var o=process.hrtime();return 1e3*o[0]+o[1]/1e6}:()=>performance.now();function $h(o){var g=o.getExtension("ANGLE_instanced_arrays");g&&(o.vertexAttribDivisor=function(h,A){g.vertexAttribDivisorANGLE(h,A)},o.drawArraysInstanced=function(h,A,y,R){g.drawArraysInstancedANGLE(h,A,y,R)},o.drawElementsInstanced=function(h,A,y,R,O){g.drawElementsInstancedANGLE(h,A,y,R,O)})}function Xh(o){var g=o.getExtension("OES_vertex_array_object");g&&(o.createVertexArray=function(){return g.createVertexArrayOES()},o.deleteVertexArray=function(h){g.deleteVertexArrayOES(h)},o.bindVertexArray=function(h){g.bindVertexArrayOES(h)},o.isVertexArray=function(h){return g.isVertexArrayOES(h)})}function qh(o){var g=o.getExtension("WEBGL_draw_buffers");g&&(o.drawBuffers=function(h,A){g.drawBuffersWEBGL(h,A)})}var c_=1,ys=[],Ue=[],ls=[],j1=[],Re=[],Oe=[],on=[],Ve=[],Nn=[],Sn=[],A_={},E_={},y_=4;function Ft(o){js||(js=o)}function Pn(o){for(var g=c_++,h=o.length;h"u"||g.Kf)&&na(A),h}function l_(o){return St=Ve[o],s.rg=C=St&&St.ge,!(o&&!C)}function na(o){if(o||(o=St),!o.Wf){o.Wf=!0;var g=o.ge;$h(g),Xh(g),qh(g),g.qf=g.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),g.uf=g.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=o.version&&(g.rf=g.getExtension("EXT_disjoint_timer_query_webgl2")),(2>o.version||!g.rf)&&(g.rf=g.getExtension("EXT_disjoint_timer_query")),g.sg=g.getExtension("WEBGL_multi_draw"),(g.getSupportedExtensions()||[]).forEach(function(h){h.includes("lose_context")||h.includes("debug")||g.getExtension(h)})}}var St,js,Ns=[];function fn(o,g,h,A){for(var y=0;y>2]=O}}function j_(o,g,h){if(g){var A=void 0;switch(o){case 36346:A=1;break;case 36344:h!=0&&h!=1&&Ft(1280);return;case 34814:case 36345:A=0;break;case 34466:var y=C.getParameter(34467);A=y?y.length:0;break;case 33309:if(2>St.version){Ft(1282);return}A=2*(C.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>St.version){Ft(1280);return}A=o==33307?3:0}if(A===void 0)switch(y=C.getParameter(o),typeof y){case"number":A=y;break;case"boolean":A=y?1:0;break;case"string":Ft(1280);return;case"object":if(y===null)switch(o){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:A=0;break;default:Ft(1280);return}else{if(y instanceof Float32Array||y instanceof Uint32Array||y instanceof Int32Array||y instanceof Array){for(o=0;o>2]=y[o];break;case 2:At[g+4*o>>2]=y[o];break;case 4:Fe[g+o>>0]=y[o]?1:0}return}try{A=y.name|0}catch(R){Ft(1280),st("GL_INVALID_ENUM in glGet"+h+"v: Unknown object returned from WebGL getParameter("+o+")! (error: "+R+")");return}}break;default:Ft(1280),st("GL_INVALID_ENUM in glGet"+h+"v: Native code calling glGet"+h+"v("+o+") and it returns "+y+" of type "+typeof y+"!");return}switch(h){case 1:h=A,vt[g>>2]=h,vt[g+4>>2]=(h-vt[g>>2])/4294967296;break;case 0:et[g>>2]=A;break;case 2:At[g>>2]=A;break;case 4:Fe[g>>0]=A?1:0}}else Ft(1281)}function N1(o){var g=$t(o)+1,h=Rs(g);return Ht(o,Ut,h,g),h}function N_(o){return o.slice(-1)=="]"&&o.lastIndexOf("[")}function Ss(o){return o-=5120,o==0?Fe:o==1?Ut:o==2?sn:o==4?et:o==6?At:o==5||o==28922||o==28520||o==30779||o==30782?vt:Cn}function zp(o,g,h,A,y){o=Ss(o);var R=31-Math.clz32(o.BYTES_PER_ELEMENT),O=y_;return o.subarray(y>>R,y+A*(h*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[g-6402]||1)*(1<>R)}function Ct(o){var g=C.Hf;if(g){var h=g.Ne[o];return typeof h=="number"&&(g.Ne[o]=h=C.getUniformLocation(g,g.wf[o]+(0ae?-1:0dt-v.getDate())gt-=dt-v.getDate()+1,v.setDate(1),11>ft?v.setMonth(ft+1):(v.setMonth(0),v.setFullYear(v.getFullYear()+1));else{v.setDate(v.getDate()+gt);break}}return ft=new Date(v.getFullYear()+1,0,4),gt=M(new Date(v.getFullYear(),0,4)),ft=M(ft),0>=O(gt,v)?0>=O(ft,v)?v.getFullYear()+1:v.getFullYear():v.getFullYear()-1}var L=et[A+40>>2];A={pg:et[A>>2],og:et[A+4>>2],Ye:et[A+8>>2],jf:et[A+12>>2],Ze:et[A+16>>2],qe:et[A+20>>2],je:et[A+24>>2],pe:et[A+28>>2],vg:et[A+32>>2],ng:et[A+36>>2],qg:L?yt(L):""},h=yt(h),L={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var z in L)h=h.replace(new RegExp(z,"g"),L[z]);var $="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),pt="January February March April May June July August September October November December".split(" ");L={"%a":function(v){return $[v.je].substring(0,3)},"%A":function(v){return $[v.je]},"%b":function(v){return pt[v.Ze].substring(0,3)},"%B":function(v){return pt[v.Ze]},"%C":function(v){return R((v.qe+1900)/100|0,2)},"%d":function(v){return R(v.jf,2)},"%e":function(v){return y(v.jf,2," ")},"%g":function(v){return B(v).toString().substring(2)},"%G":function(v){return B(v)},"%H":function(v){return R(v.Ye,2)},"%I":function(v){return v=v.Ye,v==0?v=12:12v.Ye?"AM":"PM"},"%S":function(v){return R(v.pg,2)},"%t":function(){return" "},"%u":function(v){return v.je||7},"%U":function(v){return R(Math.floor((v.pe+7-v.je)/7),2)},"%V":function(v){var gt=Math.floor((v.pe+7-(v.je+6)%7)/7);if(2>=(v.je+371-v.pe-2)%7&>++,gt)gt==53&&(ft=(v.je+371-v.pe)%7,ft==4||ft==3&&fs(v.qe)||(gt=1));else{gt=52;var ft=(v.je+7-v.pe-1)%7;(ft==4||ft==5&&fs(v.qe%400-1))&>++}return R(gt,2)},"%w":function(v){return v.je},"%W":function(v){return R(Math.floor((v.pe+7-(v.je+6)%7)/7),2)},"%y":function(v){return(v.qe+1900).toString().substring(2)},"%Y":function(v){return v.qe+1900},"%z":function(v){v=v.ng;var gt=0<=v;return v=Math.abs(v)/60,(gt?"+":"-")+("0000"+(v/60*100+v%60)).slice(-4)},"%Z":function(v){return v.qg},"%%":function(){return"%"}},h=h.replace(/%%/g,"\0\0");for(z in L)h.includes(z)&&(h=h.replace(new RegExp(z,"g"),L[z](A)));return h=h.replace(/\0\0/g,"%"),z=ia(h),z.length>g?0:(Fe.set(z,o),z.length-1)}e_=s.InternalError=bp("InternalError");for(var R_=Array(256),ds=0;256>ds;++ds)R_[ds]=String.fromCharCode(ds);n_=R_,Hn=s.BindingError=bp("BindingError"),pn.prototype.isAliasOf=function(o){if(!(this instanceof pn&&o instanceof pn))return!1;var g=this.Ld.Xd.Rd,h=this.Ld.Td,A=o.Ld.Xd.Rd;for(o=o.Ld.Td;g.ie;)h=g.Oe(h),g=g.ie;for(;A.ie;)o=A.Oe(o),A=A.ie;return g===A&&h===o},pn.prototype.clone=function(){if(this.Ld.Td||vp(this),this.Ld.Me)return this.Ld.count.value+=1,this;var o=E1,g=Object,h=g.create,A=Object.getPrototypeOf(this),y=this.Ld;return o=o(h.call(g,A,{Ld:{value:{count:y.count,Fe:y.Fe,Me:y.Me,Td:y.Td,Xd:y.Xd,$d:y.$d,fe:y.fe}}})),o.Ld.count.value+=1,o.Ld.Fe=!1,o},pn.prototype.delete=function(){this.Ld.Td||vp(this),this.Ld.Fe&&!this.Ld.Me&&Ot("Object already scheduled for deletion"),s_(this),p_(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},pn.prototype.isDeleted=function(){return!this.Ld.Td},pn.prototype.deleteLater=function(){return this.Ld.Td||vp(this),this.Ld.Fe&&!this.Ld.Me&&Ot("Object already scheduled for deletion"),u1.push(this),u1.length===1&&c1&&c1(Yp),this.Ld.Fe=!0,this},s.getInheritedInstanceCount=function(){return Object.keys(A1).length},s.getLiveInheritedInstances=function(){var o=[],g;for(g in A1)A1.hasOwnProperty(g)&&o.push(A1[g]);return o},s.flushPendingDeletes=Yp,s.setDelayFunction=function(o){c1=o,u1.length&&c1&&c1(Yp)},We.prototype.Qf=function(o){return this.vf&&(o=this.vf(o)),o},We.prototype.pf=function(o){this.le&&this.le(o)},We.prototype.argPackAdvance=8,We.prototype.readValueFromPointer=m1,We.prototype.deleteObject=function(o){o!==null&&o.delete()},We.prototype.fromWireType=function(o){function g(){return this.Ue?ms(this.Rd.Ge,{Xd:this.ag,Td:h,fe:this,$d:o}):ms(this.Rd.Ge,{Xd:this,Td:o})}var h=this.Qf(o);if(!h)return this.pf(o),null;var A=bh(this.Rd,h);if(A!==void 0)return A.Ld.count.value===0?(A.Ld.Td=h,A.Ld.$d=o,A.clone()):(A=A.clone(),this.pf(o),A);if(A=this.Rd.Pf(h),A=__[A],!A)return g.call(this);A=this.Te?A.Ff:A.pointerType;var y=o_(h,this.Rd,A.Rd);return y===null?g.call(this):this.Ue?ms(A.Rd.Ge,{Xd:A,Td:y,fe:this,$d:o}):ms(A.Rd.Ge,{Xd:A,Td:y})},g_=s.UnboundTypeError=bp("UnboundTypeError"),s.count_emval_handles=function(){for(var o=0,g=5;gce;++ce)Ns.push(Array(ce));var oa=new Float32Array(288);for(ce=0;288>ce;++ce)_n[ce]=oa.subarray(0,ce+1);var _a=new Int32Array(288);for(ce=0;288>ce;++ce)S1[ce]=_a.subarray(0,ce+1);function ia(o){var g=Array($t(o)+1);return Ht(o,g,0,g.length),g}var ga={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(o){var g=gs[o];delete gs[o];var h=g.gf,A=g.le,y=g.sf,R=y.map(O=>O.Tf).concat(y.map(O=>O.fg));Ie([o],R,O=>{var M={};return y.forEach((B,L)=>{var z=O[L],$=B.Rf,pt=B.Sf,v=O[L+y.length],gt=B.eg,ft=B.gg;M[B.Lf]={read:dt=>z.fromWireType($(pt,dt)),write:(dt,ae)=>{var Me=[];gt(ft,dt,v.toWireType(Me,ae)),Hp(Me)}}}),[{name:g.name,fromWireType:function(B){var L={},z;for(z in M)L[z]=M[z].read(B);return A(B),L},toWireType:function(B,L){for(var z in M)if(!(z in L))throw new TypeError('Missing field: "'+z+'"');var $=h();for(z in M)M[z].write($,L[z]);return B!==null&&B.push(A,$),$},argPackAdvance:8,readValueFromPointer:m1,ee:A}]})},qb:function(){},Hb:function(o,g,h,A,y){var R=as(h);g=zt(g),Ye(o,{name:g,fromWireType:function(O){return!!O},toWireType:function(O,M){return M?A:y},argPackAdvance:8,readValueFromPointer:function(O){if(h===1)var M=Fe;else if(h===2)M=sn;else if(h===4)M=et;else throw new TypeError("Unknown boolean type size: "+g);return this.fromWireType(M[O>>R])},ee:null})},q:function(o,g,h,A,y,R,O,M,B,L,z,$,pt){z=zt(z),R=oe(y,R),M&&(M=oe(O,M)),L&&(L=oe(B,L)),pt=oe($,pt);var v=t_(z);Vp(v,function(){y1("Cannot construct "+z+" due to unbound types",[A])}),Ie([o,g,h],A?[A]:[],function(gt){if(gt=gt[0],A)var ft=gt.Rd,dt=ft.Ge;else dt=pn.prototype;gt=Pp(v,function(){if(Object.getPrototypeOf(this)!==ae)throw new Hn("Use 'new' to construct "+z);if(Me.oe===void 0)throw new Hn(z+" has no accessible constructor");var d1=Me.oe[arguments.length];if(d1===void 0)throw new Hn("Tried to invoke ctor of "+z+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Me.oe).toString()+") parameters instead!");return d1.apply(this,arguments)});var ae=Object.create(dt,{constructor:{value:gt}});gt.prototype=ae;var Me=new vh(z,gt,ae,pt,ft,R,M,L);ft=new We(z,Me,!0,!1,!1),dt=new We(z+"*",Me,!1,!1,!1);var f1=new We(z+" const*",Me,!1,!0,!1);return __[o]={pointerType:dt,Ff:f1},i_(v,gt),[ft,dt,f1]})},h:function(o,g,h,A,y,R,O){var M=cs(h,A);g=zt(g),R=oe(y,R),Ie([],[o],function(B){function L(){y1("Cannot call "+z+" due to unbound types",M)}B=B[0];var z=B.name+"."+g;g.startsWith("@@")&&(g=Symbol[g.substring(2)]);var $=B.Rd.constructor;return $[g]===void 0?(L.De=h-1,$[g]=L):(Wp($,g,z),$[g].Zd[h-1]=L),Ie([],M,function(pt){return pt=[pt[0],null].concat(pt.slice(1)),pt=us(z,pt,null,R,O),$[g].Zd===void 0?(pt.De=h-1,$[g]=pt):$[g].Zd[h-1]=pt,[]}),[]})},B:function(o,g,h,A,y,R){0{y1("Cannot construct "+M.name+" due to unbound types",O)},Ie([],O,function(L){return L.splice(1,0,null),M.Rd.oe[g-1]=us(B,L,null,y,R),[]}),[]})},b:function(o,g,h,A,y,R,O,M){var B=cs(h,A);g=zt(g),R=oe(y,R),Ie([],[o],function(L){function z(){y1("Cannot call "+$+" due to unbound types",B)}L=L[0];var $=L.name+"."+g;g.startsWith("@@")&&(g=Symbol[g.substring(2)]),M&&L.Rd.bg.push(g);var pt=L.Rd.Ge,v=pt[g];return v===void 0||v.Zd===void 0&&v.className!==L.name&&v.De===h-2?(z.De=h-2,z.className=L.name,pt[g]=z):(Wp(pt,g,$),pt[g].Zd[h-2]=z),Ie([],B,function(gt){return gt=us($,gt,L,R,O),pt[g].Zd===void 0?(gt.De=h-2,pt[g]=gt):pt[g].Zd[h-2]=gt,[]}),[]})},u:function(o,g,h){o=zt(o),Ie([],[g],function(A){return A=A[0],s[o]=A.fromWireType(h),[]})},Gb:function(o,g){g=zt(g),Ye(o,{name:g,fromWireType:function(h){var A=fe(h);return kp(h),A},toWireType:function(h,A){return de(A)},argPackAdvance:8,readValueFromPointer:m1,ee:null})},n:function(o,g,h,A){function y(){}h=as(h),g=zt(g),y.values={},Ye(o,{name:g,constructor:y,fromWireType:function(R){return this.constructor.values[R]},toWireType:function(R,O){return O.value},argPackAdvance:8,readValueFromPointer:xh(g,h,A),ee:null}),Vp(g,y)},e:function(o,g,h){var A=l1(o,"enum");g=zt(g),o=A.constructor,A=Object.create(A.constructor.prototype,{value:{value:h},constructor:{value:Pp(A.name+"_"+g,function(){})}}),o.values[h]=A,o[g]=A},Y:function(o,g,h){h=as(h),g=zt(g),Ye(o,{name:g,fromWireType:function(A){return A},toWireType:function(A,y){return y},argPackAdvance:8,readValueFromPointer:wh(g,h),ee:null})},y:function(o,g,h,A,y,R){var O=cs(g,h);o=zt(o),y=oe(A,y),Vp(o,function(){y1("Cannot call "+o+" due to unbound types",O)},g-1),Ie([],O,function(M){return M=[M[0],null].concat(M.slice(1)),i_(o,us(o,M,null,y,R),g-1),[]})},E:function(o,g,h,A,y){g=zt(g),y===-1&&(y=4294967295),y=as(h);var R=M=>M;if(A===0){var O=32-8*h;R=M=>M<>>O}h=g.includes("unsigned")?function(M,B){return B>>>0}:function(M,B){return B},Ye(o,{name:g,fromWireType:R,toWireType:h,argPackAdvance:8,readValueFromPointer:kh(g,y,A!==0),ee:null})},v:function(o,g,h){function A(R){R>>=2;var O=vt;return new y(Lp,O[R+1],O[R])}var y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][g];h=zt(h),Ye(o,{name:h,fromWireType:A,argPackAdvance:8,readValueFromPointer:A},{Vf:!0})},t:function(o,g,h,A,y,R,O,M,B,L,z,$){h=zt(h),R=oe(y,R),M=oe(O,M),L=oe(B,L),$=oe(z,$),Ie([o],[g],function(pt){return pt=pt[0],[new We(h,pt.Rd,!1,!1,!0,pt,A,R,M,L,$)]})},X:function(o,g){g=zt(g);var h=g==="std::string";Ye(o,{name:g,fromWireType:function(A){var y=vt[A>>2],R=A+4;if(h)for(var O=R,M=0;M<=y;++M){var B=R+M;if(M==y||Ut[B]==0){if(O=yt(O,B-O),L===void 0)var L=O;else L+=String.fromCharCode(0),L+=O;O=B+1}}else{for(L=Array(y),M=0;M>2]=O,h&&R)Ht(y,Ut,B,O+1);else if(R)for(R=0;RCn,M=1;else g===4&&(A=Lh,y=Ch,R=Kh,O=()=>vt,M=2);Ye(o,{name:h,fromWireType:function(B){for(var L=vt[B>>2],z=O(),$,pt=B+4,v=0;v<=L;++v){var gt=B+4+v*g;(v==L||z[gt>>M]==0)&&(pt=A(pt,gt-pt),$===void 0?$=pt:($+=String.fromCharCode(0),$+=pt),pt=gt+g)}return Ze(B),$},toWireType:function(B,L){typeof L!="string"&&Ot("Cannot pass non-string to C++ string type "+h);var z=R(L),$=Rs(4+z+g);return vt[$>>2]=z>>M,y(L,$+4,z+g),B!==null&&B.push(Ze,$),$},argPackAdvance:8,readValueFromPointer:m1,ee:function(B){Ze(B)}})},D:function(o,g,h,A,y,R){gs[o]={name:zt(g),gf:oe(h,A),le:oe(y,R),sf:[]}},g:function(o,g,h,A,y,R,O,M,B,L){gs[o].sf.push({Lf:zt(g),Tf:h,Rf:oe(A,y),Sf:R,fg:O,eg:oe(M,B),gg:L})},Ib:function(o,g){g=zt(g),Ye(o,{Xf:!0,name:g,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(o,g,h){o=fe(o),g=l1(g,"emval::as");var A=[],y=de(A);return vt[h>>2]=y,g.toWireType(A,o)},$:function(o,g,h,A,y){o=Es[o],g=fe(g),h=As(h);var R=[];return vt[A>>2]=de(R),o(g,h,R,y)},A:function(o,g,h,A){o=Es[o],g=fe(g),h=As(h),o(g,h,null,A)},f:kp,M:function(o){return o===0?de(h_()):(o=As(o),de(h_()[o]))},z:function(o,g){var h=Qh(o,g),A=h[0];g=A.name+"_$"+h.slice(1).map(function(O){return O.name}).join("_")+"$";var y=a_[g];if(y!==void 0)return y;var R=Array(o-1);return y=zh((O,M,B,L)=>{for(var z=0,$=0;$>>0)+4294967296*A)},ka:function(o,g,h,A){C.colorMask(!!o,!!g,!!h,!!A)},la:function(o){C.compileShader(Oe[o])},ma:function(o,g,h,A,y,R,O,M){2<=St.version?C.Ee||!O?C.compressedTexImage2D(o,g,h,A,y,R,O,M):C.compressedTexImage2D(o,g,h,A,y,R,Ut,M,O):C.compressedTexImage2D(o,g,h,A,y,R,M?Ut.subarray(M,M+O):null)},na:function(o,g,h,A,y,R,O,M,B){2<=St.version?C.Ee||!M?C.compressedTexSubImage2D(o,g,h,A,y,R,O,M,B):C.compressedTexSubImage2D(o,g,h,A,y,R,O,Ut,B,M):C.compressedTexSubImage2D(o,g,h,A,y,R,O,B?Ut.subarray(B,B+M):null)},Zb:function(o,g,h,A,y){C.copyBufferSubData(o,g,h,A,y)},oa:function(o,g,h,A,y,R,O,M){C.copyTexSubImage2D(o,g,h,A,y,R,O,M)},pa:function(){var o=Pn(Ue),g=C.createProgram();return g.name=o,g.Xe=g.Ve=g.We=0,g.kf=1,Ue[o]=g,o},qa:function(o){var g=Pn(Oe);return Oe[g]=C.createShader(o),g},ra:function(o){C.cullFace(o)},sa:function(o,g){for(var h=0;h>2],y=ys[A];y&&(C.deleteBuffer(y),y.name=0,ys[A]=null,A==C.df&&(C.df=0),A==C.Ee&&(C.Ee=0))}},hc:function(o,g){for(var h=0;h>2],y=ls[A];y&&(C.deleteFramebuffer(y),y.name=0,ls[A]=null)}},ta:function(o){if(o){var g=Ue[o];g?(C.deleteProgram(g),g.name=0,Ue[o]=null):Ft(1281)}},ic:function(o,g){for(var h=0;h>2],y=j1[A];y&&(C.deleteRenderbuffer(y),y.name=0,j1[A]=null)}},Sb:function(o,g){for(var h=0;h>2],y=Nn[A];y&&(C.deleteSampler(y),y.name=0,Nn[A]=null)}},ua:function(o){if(o){var g=Oe[o];g?(C.deleteShader(g),Oe[o]=null):Ft(1281)}},_b:function(o){if(o){var g=Sn[o];g?(C.deleteSync(g),g.name=0,Sn[o]=null):Ft(1281)}},va:function(o,g){for(var h=0;h>2],y=Re[A];y&&(C.deleteTexture(y),y.name=0,Re[A]=null)}},Dc:function(o,g){for(var h=0;h>2];C.deleteVertexArray(on[A]),on[A]=null}},yc:function(o,g){for(var h=0;h>2];C.deleteVertexArray(on[A]),on[A]=null}},wa:function(o){C.depthMask(!!o)},xa:function(o){C.disable(o)},ya:function(o){C.disableVertexAttribArray(o)},za:function(o,g,h){C.drawArrays(o,g,h)},Ac:function(o,g,h,A){C.drawArraysInstanced(o,g,h,A)},vc:function(o,g,h,A,y){C.qf.drawArraysInstancedBaseInstanceWEBGL(o,g,h,A,y)},tc:function(o,g){for(var h=Ns[o],A=0;A>2];C.drawBuffers(h)},Aa:function(o,g,h,A){C.drawElements(o,g,h,A)},Bc:function(o,g,h,A,y){C.drawElementsInstanced(o,g,h,A,y)},wc:function(o,g,h,A,y,R,O){C.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(o,g,h,A,y,R,O)},nc:function(o,g,h,A,y,R){C.drawElements(o,A,y,R)},Ba:function(o){C.enable(o)},Ca:function(o){C.enableVertexAttribArray(o)},Xb:function(o,g){return(o=C.fenceSync(o,g))?(g=Pn(Sn),o.name=g,Sn[g]=o,g):0},Da:function(){C.finish()},Ea:function(){C.flush()},jc:function(o,g,h,A){C.framebufferRenderbuffer(o,g,h,j1[A])},kc:function(o,g,h,A,y){C.framebufferTexture2D(o,g,h,Re[A],y)},Fa:function(o){C.frontFace(o)},Ga:function(o,g){fn(o,g,"createBuffer",ys)},lc:function(o,g){fn(o,g,"createFramebuffer",ls)},mc:function(o,g){fn(o,g,"createRenderbuffer",j1)},Tb:function(o,g){fn(o,g,"createSampler",Nn)},Ha:function(o,g){fn(o,g,"createTexture",Re)},Ec:function(o,g){fn(o,g,"createVertexArray",on)},zc:function(o,g){fn(o,g,"createVertexArray",on)},bc:function(o){C.generateMipmap(o)},Ia:function(o,g,h){h?et[h>>2]=C.getBufferParameter(o,g):Ft(1281)},Ja:function(){var o=C.getError()||js;return js=0,o},Ka:function(o,g){j_(o,g,2)},cc:function(o,g,h,A){o=C.getFramebufferAttachmentParameter(o,g,h),(o instanceof WebGLRenderbuffer||o instanceof WebGLTexture)&&(o=o.name|0),et[A>>2]=o},N:function(o,g){j_(o,g,0)},La:function(o,g,h,A){o=C.getProgramInfoLog(Ue[o]),o===null&&(o="(unknown error)"),g=0>2]=g)},Ma:function(o,g,h){if(h)if(o>=c_)Ft(1281);else if(o=Ue[o],g==35716)o=C.getProgramInfoLog(o),o===null&&(o="(unknown error)"),et[h>>2]=o.length+1;else if(g==35719){if(!o.Xe)for(g=0;g>2]=o.Xe}else if(g==35722){if(!o.Ve)for(g=0;g>2]=o.Ve}else if(g==35381){if(!o.We)for(g=0;g>2]=o.We}else et[h>>2]=C.getProgramParameter(o,g);else Ft(1281)},dc:function(o,g,h){h?et[h>>2]=C.getRenderbufferParameter(o,g):Ft(1281)},Na:function(o,g,h,A){o=C.getShaderInfoLog(Oe[o]),o===null&&(o="(unknown error)"),g=0>2]=g)},Ob:function(o,g,h,A){o=C.getShaderPrecisionFormat(o,g),et[h>>2]=o.rangeMin,et[h+4>>2]=o.rangeMax,et[A>>2]=o.precision},Oa:function(o,g,h){h?g==35716?(o=C.getShaderInfoLog(Oe[o]),o===null&&(o="(unknown error)"),et[h>>2]=o?o.length+1:0):g==35720?(o=C.getShaderSource(Oe[o]),et[h>>2]=o?o.length+1:0):et[h>>2]=C.getShaderParameter(Oe[o],g):Ft(1281)},R:function(o){var g=A_[o];if(!g){switch(o){case 7939:g=C.getSupportedExtensions()||[],g=g.concat(g.map(function(A){return"GL_"+A})),g=N1(g.join(" "));break;case 7936:case 7937:case 37445:case 37446:(g=C.getParameter(o))||Ft(1280),g=g&&N1(g);break;case 7938:g=C.getParameter(7938),g=2<=St.version?"OpenGL ES 3.0 ("+g+")":"OpenGL ES 2.0 ("+g+")",g=N1(g);break;case 35724:g=C.getParameter(35724);var h=g.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);h!==null&&(h[1].length==3&&(h[1]+="0"),g="OpenGL ES GLSL ES "+h[1]+" ("+g+")"),g=N1(g);break;default:Ft(1280)}A_[o]=g}return g},jb:function(o,g){if(2>St.version)return Ft(1282),0;var h=E_[o];if(h)return 0>g||g>=h.length?(Ft(1281),0):h[g];switch(o){case 7939:return h=C.getSupportedExtensions()||[],h=h.concat(h.map(function(A){return"GL_"+A})),h=h.map(function(A){return N1(A)}),h=E_[o]=h,0>g||g>=h.length?(Ft(1281),0):h[g];default:return Ft(1280),0}},Pa:function(o,g){if(g=yt(g),o=Ue[o]){var h=o,A=h.Ne,y=h.xf,R;if(!A)for(h.Ne=A={},h.wf={},R=0;R>>0,y=g.slice(0,R)),(y=o.xf[y])&&A>2];C.invalidateFramebuffer(o,A)},Qb:function(o,g,h,A,y,R,O){for(var M=Ns[g],B=0;B>2];C.invalidateSubFramebuffer(o,M,A,y,R,O)},Yb:function(o){return C.isSync(Sn[o])},Qa:function(o){return(o=Re[o])?C.isTexture(o):0},Ra:function(o){C.lineWidth(o)},Sa:function(o){o=Ue[o],C.linkProgram(o),o.Ne=0,o.xf={}},rc:function(o,g,h,A,y,R){C.uf.multiDrawArraysInstancedBaseInstanceWEBGL(o,et,g>>2,et,h>>2,et,A>>2,vt,y>>2,R)},sc:function(o,g,h,A,y,R,O,M){C.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(o,et,g>>2,h,et,A>>2,et,y>>2,et,R>>2,vt,O>>2,M)},Ta:function(o,g){o==3317&&(y_=g),C.pixelStorei(o,g)},uc:function(o){C.readBuffer(o)},Ua:function(o,g,h,A,y,R,O){if(2<=St.version)if(C.df)C.readPixels(o,g,h,A,y,R,O);else{var M=Ss(R);C.readPixels(o,g,h,A,y,R,M,O>>31-Math.clz32(M.BYTES_PER_ELEMENT))}else(O=zp(R,y,h,A,O))?C.readPixels(o,g,h,A,y,R,O):Ft(1280)},ec:function(o,g,h,A){C.renderbufferStorage(o,g,h,A)},ac:function(o,g,h,A,y){C.renderbufferStorageMultisample(o,g,h,A,y)},Ub:function(o,g,h){C.samplerParameterf(Nn[o],g,h)},Vb:function(o,g,h){C.samplerParameteri(Nn[o],g,h)},Wb:function(o,g,h){C.samplerParameteri(Nn[o],g,et[h>>2])},Va:function(o,g,h,A){C.scissor(o,g,h,A)},Wa:function(o,g,h,A){for(var y="",R=0;R>2]:-1;y+=yt(et[h+4*R>>2],0>O?void 0:O)}C.shaderSource(Oe[o],y)},Xa:function(o,g,h){C.stencilFunc(o,g,h)},Ya:function(o,g,h,A){C.stencilFuncSeparate(o,g,h,A)},Za:function(o){C.stencilMask(o)},_a:function(o,g){C.stencilMaskSeparate(o,g)},$a:function(o,g,h){C.stencilOp(o,g,h)},ab:function(o,g,h,A){C.stencilOpSeparate(o,g,h,A)},bb:function(o,g,h,A,y,R,O,M,B){if(2<=St.version)if(C.Ee)C.texImage2D(o,g,h,A,y,R,O,M,B);else if(B){var L=Ss(M);C.texImage2D(o,g,h,A,y,R,O,M,L,B>>31-Math.clz32(L.BYTES_PER_ELEMENT))}else C.texImage2D(o,g,h,A,y,R,O,M,null);else C.texImage2D(o,g,h,A,y,R,O,M,B?zp(M,O,A,y,B):null)},cb:function(o,g,h){C.texParameterf(o,g,h)},db:function(o,g,h){C.texParameterf(o,g,At[h>>2])},eb:function(o,g,h){C.texParameteri(o,g,h)},fb:function(o,g,h){C.texParameteri(o,g,et[h>>2])},oc:function(o,g,h,A,y){C.texStorage2D(o,g,h,A,y)},gb:function(o,g,h,A,y,R,O,M,B){if(2<=St.version)if(C.Ee)C.texSubImage2D(o,g,h,A,y,R,O,M,B);else if(B){var L=Ss(M);C.texSubImage2D(o,g,h,A,y,R,O,M,L,B>>31-Math.clz32(L.BYTES_PER_ELEMENT))}else C.texSubImage2D(o,g,h,A,y,R,O,M,null);else L=null,B&&(L=zp(M,O,y,R,B)),C.texSubImage2D(o,g,h,A,y,R,O,M,L)},hb:function(o,g){C.uniform1f(Ct(o),g)},ib:function(o,g,h){if(2<=St.version)g&&C.uniform1fv(Ct(o),At,h>>2,g);else{if(288>=g)for(var A=_n[g-1],y=0;y>2];else A=At.subarray(h>>2,h+4*g>>2);C.uniform1fv(Ct(o),A)}},Zc:function(o,g){C.uniform1i(Ct(o),g)},_c:function(o,g,h){if(2<=St.version)g&&C.uniform1iv(Ct(o),et,h>>2,g);else{if(288>=g)for(var A=S1[g-1],y=0;y>2];else A=et.subarray(h>>2,h+4*g>>2);C.uniform1iv(Ct(o),A)}},$c:function(o,g,h){C.uniform2f(Ct(o),g,h)},ad:function(o,g,h){if(2<=St.version)g&&C.uniform2fv(Ct(o),At,h>>2,2*g);else{if(144>=g)for(var A=_n[2*g-1],y=0;y<2*g;y+=2)A[y]=At[h+4*y>>2],A[y+1]=At[h+(4*y+4)>>2];else A=At.subarray(h>>2,h+8*g>>2);C.uniform2fv(Ct(o),A)}},Yc:function(o,g,h){C.uniform2i(Ct(o),g,h)},Xc:function(o,g,h){if(2<=St.version)g&&C.uniform2iv(Ct(o),et,h>>2,2*g);else{if(144>=g)for(var A=S1[2*g-1],y=0;y<2*g;y+=2)A[y]=et[h+4*y>>2],A[y+1]=et[h+(4*y+4)>>2];else A=et.subarray(h>>2,h+8*g>>2);C.uniform2iv(Ct(o),A)}},Wc:function(o,g,h,A){C.uniform3f(Ct(o),g,h,A)},Vc:function(o,g,h){if(2<=St.version)g&&C.uniform3fv(Ct(o),At,h>>2,3*g);else{if(96>=g)for(var A=_n[3*g-1],y=0;y<3*g;y+=3)A[y]=At[h+4*y>>2],A[y+1]=At[h+(4*y+4)>>2],A[y+2]=At[h+(4*y+8)>>2];else A=At.subarray(h>>2,h+12*g>>2);C.uniform3fv(Ct(o),A)}},Uc:function(o,g,h,A){C.uniform3i(Ct(o),g,h,A)},Tc:function(o,g,h){if(2<=St.version)g&&C.uniform3iv(Ct(o),et,h>>2,3*g);else{if(96>=g)for(var A=S1[3*g-1],y=0;y<3*g;y+=3)A[y]=et[h+4*y>>2],A[y+1]=et[h+(4*y+4)>>2],A[y+2]=et[h+(4*y+8)>>2];else A=et.subarray(h>>2,h+12*g>>2);C.uniform3iv(Ct(o),A)}},Sc:function(o,g,h,A,y){C.uniform4f(Ct(o),g,h,A,y)},Rc:function(o,g,h){if(2<=St.version)g&&C.uniform4fv(Ct(o),At,h>>2,4*g);else{if(72>=g){var A=_n[4*g-1],y=At;h>>=2;for(var R=0;R<4*g;R+=4){var O=h+R;A[R]=y[O],A[R+1]=y[O+1],A[R+2]=y[O+2],A[R+3]=y[O+3]}}else A=At.subarray(h>>2,h+16*g>>2);C.uniform4fv(Ct(o),A)}},Fc:function(o,g,h,A,y){C.uniform4i(Ct(o),g,h,A,y)},Gc:function(o,g,h){if(2<=St.version)g&&C.uniform4iv(Ct(o),et,h>>2,4*g);else{if(72>=g)for(var A=S1[4*g-1],y=0;y<4*g;y+=4)A[y]=et[h+4*y>>2],A[y+1]=et[h+(4*y+4)>>2],A[y+2]=et[h+(4*y+8)>>2],A[y+3]=et[h+(4*y+12)>>2];else A=et.subarray(h>>2,h+16*g>>2);C.uniform4iv(Ct(o),A)}},Hc:function(o,g,h,A){if(2<=St.version)g&&C.uniformMatrix2fv(Ct(o),!!h,At,A>>2,4*g);else{if(72>=g)for(var y=_n[4*g-1],R=0;R<4*g;R+=4)y[R]=At[A+4*R>>2],y[R+1]=At[A+(4*R+4)>>2],y[R+2]=At[A+(4*R+8)>>2],y[R+3]=At[A+(4*R+12)>>2];else y=At.subarray(A>>2,A+16*g>>2);C.uniformMatrix2fv(Ct(o),!!h,y)}},Ic:function(o,g,h,A){if(2<=St.version)g&&C.uniformMatrix3fv(Ct(o),!!h,At,A>>2,9*g);else{if(32>=g)for(var y=_n[9*g-1],R=0;R<9*g;R+=9)y[R]=At[A+4*R>>2],y[R+1]=At[A+(4*R+4)>>2],y[R+2]=At[A+(4*R+8)>>2],y[R+3]=At[A+(4*R+12)>>2],y[R+4]=At[A+(4*R+16)>>2],y[R+5]=At[A+(4*R+20)>>2],y[R+6]=At[A+(4*R+24)>>2],y[R+7]=At[A+(4*R+28)>>2],y[R+8]=At[A+(4*R+32)>>2];else y=At.subarray(A>>2,A+36*g>>2);C.uniformMatrix3fv(Ct(o),!!h,y)}},Jc:function(o,g,h,A){if(2<=St.version)g&&C.uniformMatrix4fv(Ct(o),!!h,At,A>>2,16*g);else{if(18>=g){var y=_n[16*g-1],R=At;A>>=2;for(var O=0;O<16*g;O+=16){var M=A+O;y[O]=R[M],y[O+1]=R[M+1],y[O+2]=R[M+2],y[O+3]=R[M+3],y[O+4]=R[M+4],y[O+5]=R[M+5],y[O+6]=R[M+6],y[O+7]=R[M+7],y[O+8]=R[M+8],y[O+9]=R[M+9],y[O+10]=R[M+10],y[O+11]=R[M+11],y[O+12]=R[M+12],y[O+13]=R[M+13],y[O+14]=R[M+14],y[O+15]=R[M+15]}}else y=At.subarray(A>>2,A+64*g>>2);C.uniformMatrix4fv(Ct(o),!!h,y)}},Kc:function(o){o=Ue[o],C.useProgram(o),C.Hf=o},Lc:function(o,g){C.vertexAttrib1f(o,g)},Mc:function(o,g){C.vertexAttrib2f(o,At[g>>2],At[g+4>>2])},Nc:function(o,g){C.vertexAttrib3f(o,At[g>>2],At[g+4>>2],At[g+8>>2])},Oc:function(o,g){C.vertexAttrib4f(o,At[g>>2],At[g+4>>2],At[g+8>>2],At[g+12>>2])},pc:function(o,g){C.vertexAttribDivisor(o,g)},qc:function(o,g,h,A,y){C.vertexAttribIPointer(o,g,h,A,y)},Pc:function(o,g,h,A,y,R){C.vertexAttribPointer(o,g,h,!!A,y,R)},Qc:function(o,g,h,A){C.viewport(o,g,h,A)},lb:function(o,g,h,A){C.waitSync(Sn[o],g,(h>>>0)+4294967296*A)},tb:function(o){var g=Ut.length;if(o>>>=0,2147483648=h;h*=2){var A=g*(1+.2/h);A=Math.min(A,o+100663296);var y=Math;A=Math.max(o,A),y=y.min.call(y,2147483648,A+(65536-A%65536)%65536);t:{try{Kt.grow(y-Lp.byteLength+65535>>>16),ko();var R=1;break t}catch{}R=void 0}if(R)return!0}return!1},nb:function(){return St?St.Uf:0},wb:function(o,g){var h=0;return S_().forEach(function(A,y){var R=g+h;for(y=vt[o+4*y>>2]=R,R=0;R>0]=A.charCodeAt(R);Fe[y>>0]=0,h+=A.length+1}),0},xb:function(o,g){var h=S_();vt[o>>2]=h.length;var A=0;return h.forEach(function(y){A+=y.length+1}),vt[g>>2]=A,0},Jb:function(o){It||(s.onExit&&s.onExit(o),ee=!0),l(o,new T_(o))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(o,g,h,A){for(var y=0,R=0;R>2],M=vt[g+4>>2];g+=8;for(var B=0;B>2]=y,0},c:function(){return ct},k:ha,o:ya,l:ra,K:ja,Lb:Na,_:Sa,Z:da,Q:ca,p:Ea,x:ua,s:ma,w:Aa,Kb:fa,Mb:la,Nb:aa,d:function(o){ct=o},rb:function(o,g,h,A){return pa(o,g,h,A)}};(function(){function o(y){s.asm=y.exports,Kt=s.asm.dd,ko(),Jo=s.asm.fd,Qo.unshift(s.asm.ed),ln--,s.monitorRunDependencies&&s.monitorRunDependencies(ln),ln==0&&(Cp!==null&&(clearInterval(Cp),Cp=null),h1&&(y=h1,h1=null,y()))}function g(y){o(y.instance)}function h(y){return Ph().then(function(R){return WebAssembly.instantiate(R,A)}).then(function(R){return R}).then(y,function(R){st("failed to asynchronously prepare wasm: "+R),a1(R)})}var A={a:ga};if(ln++,s.monitorRunDependencies&&s.monitorRunDependencies(ln),s.instantiateWasm)try{return s.instantiateWasm(A,o)}catch(y){return st("Module.instantiateWasm callback failed with error: "+y),!1}return function(){return rt||typeof WebAssembly.instantiateStreaming!="function"||$o()||Se.startsWith("file://")||H||typeof fetch!="function"?h(g):fetch(Se,{credentials:"same-origin"}).then(function(y){return WebAssembly.instantiateStreaming(y,A).then(g,function(R){return st("wasm streaming compile failed: "+R),st("falling back to ArrayBuffer instantiation"),h(g)})})}().catch(_),{}})(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.ed).apply(null,arguments)};var Ze=s._free=function(){return(Ze=s._free=s.asm.gd).apply(null,arguments)},Rs=s._malloc=function(){return(Rs=s._malloc=s.asm.hd).apply(null,arguments)},M_=s.___getTypeName=function(){return(M_=s.___getTypeName=s.asm.id).apply(null,arguments)};s.___embind_register_native_and_builtin_types=function(){return(s.___embind_register_native_and_builtin_types=s.asm.jd).apply(null,arguments)};var _e=s._setThrew=function(){return(_e=s._setThrew=s.asm.kd).apply(null,arguments)},ie=s.stackSave=function(){return(ie=s.stackSave=s.asm.ld).apply(null,arguments)},ge=s.stackRestore=function(){return(ge=s.stackRestore=s.asm.md).apply(null,arguments)};s.dynCall_viji=function(){return(s.dynCall_viji=s.asm.nd).apply(null,arguments)},s.dynCall_vijiii=function(){return(s.dynCall_vijiii=s.asm.od).apply(null,arguments)},s.dynCall_viiiiij=function(){return(s.dynCall_viiiiij=s.asm.pd).apply(null,arguments)},s.dynCall_jiiiijiiiii=function(){return(s.dynCall_jiiiijiiiii=s.asm.qd).apply(null,arguments)},s.dynCall_viiij=function(){return(s.dynCall_viiij=s.asm.rd).apply(null,arguments)},s.dynCall_jii=function(){return(s.dynCall_jii=s.asm.sd).apply(null,arguments)},s.dynCall_vij=function(){return(s.dynCall_vij=s.asm.td).apply(null,arguments)},s.dynCall_iiij=function(){return(s.dynCall_iiij=s.asm.ud).apply(null,arguments)},s.dynCall_iiiij=function(){return(s.dynCall_iiiij=s.asm.vd).apply(null,arguments)},s.dynCall_viij=function(){return(s.dynCall_viij=s.asm.wd).apply(null,arguments)},s.dynCall_ji=function(){return(s.dynCall_ji=s.asm.xd).apply(null,arguments)},s.dynCall_iij=function(){return(s.dynCall_iij=s.asm.yd).apply(null,arguments)},s.dynCall_jiiiiii=function(){return(s.dynCall_jiiiiii=s.asm.zd).apply(null,arguments)},s.dynCall_jiiiiji=function(){return(s.dynCall_jiiiiji=s.asm.Ad).apply(null,arguments)},s.dynCall_iijj=function(){return(s.dynCall_iijj=s.asm.Bd).apply(null,arguments)},s.dynCall_iiiji=function(){return(s.dynCall_iiiji=s.asm.Cd).apply(null,arguments)},s.dynCall_iiji=function(){return(s.dynCall_iiji=s.asm.Dd).apply(null,arguments)},s.dynCall_iijjiii=function(){return(s.dynCall_iijjiii=s.asm.Ed).apply(null,arguments)},s.dynCall_vijjjii=function(){return(s.dynCall_vijjjii=s.asm.Fd).apply(null,arguments)},s.dynCall_jiji=function(){return(s.dynCall_jiji=s.asm.Gd).apply(null,arguments)},s.dynCall_viijii=function(){return(s.dynCall_viijii=s.asm.Hd).apply(null,arguments)},s.dynCall_iiiiij=function(){return(s.dynCall_iiiiij=s.asm.Id).apply(null,arguments)},s.dynCall_iiiiijj=function(){return(s.dynCall_iiiiijj=s.asm.Jd).apply(null,arguments)},s.dynCall_iiiiiijj=function(){return(s.dynCall_iiiiiijj=s.asm.Kd).apply(null,arguments)};function ra(o,g,h,A){var y=ie();try{return ne(o)(g,h,A)}catch(R){if(ge(y),R!==R+0)throw R;_e(1,0)}}function ha(o,g){var h=ie();try{return ne(o)(g)}catch(A){if(ge(h),A!==A+0)throw A;_e(1,0)}}function aa(o,g,h,A,y,R,O,M,B,L){var z=ie();try{ne(o)(g,h,A,y,R,O,M,B,L)}catch($){if(ge(z),$!==$+0)throw $;_e(1,0)}}function ma(o,g,h,A){var y=ie();try{ne(o)(g,h,A)}catch(R){if(ge(y),R!==R+0)throw R;_e(1,0)}}function ua(o,g,h){var A=ie();try{ne(o)(g,h)}catch(y){if(ge(A),y!==y+0)throw y;_e(1,0)}}function ca(o){var g=ie();try{ne(o)()}catch(h){if(ge(g),h!==h+0)throw h;_e(1,0)}}function Aa(o,g,h,A,y){var R=ie();try{ne(o)(g,h,A,y)}catch(O){if(ge(R),O!==O+0)throw O;_e(1,0)}}function Ea(o,g){var h=ie();try{ne(o)(g)}catch(A){if(ge(h),A!==A+0)throw A;_e(1,0)}}function ya(o,g,h){var A=ie();try{return ne(o)(g,h)}catch(y){if(ge(A),y!==y+0)throw y;_e(1,0)}}function la(o,g,h,A,y,R,O){var M=ie();try{ne(o)(g,h,A,y,R,O)}catch(B){if(ge(M),B!==B+0)throw B;_e(1,0)}}function ja(o,g,h,A,y){var R=ie();try{return ne(o)(g,h,A,y)}catch(O){if(ge(R),O!==O+0)throw O;_e(1,0)}}function Na(o,g,h,A,y,R){var O=ie();try{return ne(o)(g,h,A,y,R)}catch(M){if(ge(O),M!==M+0)throw M;_e(1,0)}}function Sa(o,g,h,A,y,R,O){var M=ie();try{return ne(o)(g,h,A,y,R,O)}catch(B){if(ge(M),B!==B+0)throw B;_e(1,0)}}function fa(o,g,h,A,y,R){var O=ie();try{ne(o)(g,h,A,y,R)}catch(M){if(ge(O),M!==M+0)throw M;_e(1,0)}}function da(o,g,h,A,y,R,O,M,B,L){var z=ie();try{return ne(o)(g,h,A,y,R,O,M,B,L)}catch($){if(ge(z),$!==$+0)throw $;_e(1,0)}}var Ms;function T_(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}h1=function o(){Ms||$p(),Ms||(h1=o)};function $p(){function o(){if(!Ms&&(Ms=!0,s.calledRun=!0,!ee)){if(Kp(Qo),p(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;){var g=s.postRun.shift();Zo.unshift(g)}Kp(Zo)}}if(!(0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,n,s){t instanceof String&&(t=String(t));for(var p=t.length,_=0;_=_}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(n,s){return $jscomp.findInternal(this,n,s).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(n,s){var p=$jscomp.checkStringArgs(this,n,"startsWith");n+="";var _=p.length,i=n.length;s=Math.max(0,Math.min(s|0,p.length));for(var u=0;u=i}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(n){var s=$jscomp.checkStringArgs(this,null,"repeat");if(0>n||1342177279>>=1)&&(s+=s);return p}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,n,s){t=t.split("."),s=s||goog.global,t[0]in s||typeof s.execScript>"u"||s.execScript("var "+t[0]);for(var p;t.length&&(p=t.shift());)t.length||n===void 0?s=s[p]&&s[p]!==Object.prototype[p]?s[p]:s[p]={}:s[p]=n};goog.define=function(t,n){if(!COMPILED){var s=goog.global.CLOSURE_UNCOMPILED_DEFINES,p=goog.global.CLOSURE_DEFINES;s&&s.nodeType===void 0&&Object.prototype.hasOwnProperty.call(s,t)?n=s[t]:p&&p.nodeType===void 0&&Object.prototype.hasOwnProperty.call(p,t)&&(n=p[t])}return n};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.provide=function(t){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');goog.constructNamespace_(t)};goog.constructNamespace_=function(t,n){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var s=t;(s=s.substring(0,s.lastIndexOf(".")))&&!goog.getObjectByName(s);)goog.implicitNamespaces_[s]=!0}goog.exportPath_(t,n)};goog.getScriptNonce=function(t){return t&&t!=goog.global?goog.getScriptNonce_(t.document):(goog.cspNonce_===null&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.cspNonce_=null;goog.getScriptNonce_=function(t){return(t=t.querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(t)?t:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/;goog.module=function(t){if(typeof t!="string"||!t||t.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+t+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=t,!COMPILED){if(goog.isProvided_(t))throw Error('Namespace "'+t+'" already declared.');delete goog.implicitNamespaces_[t]}};goog.module.get=function(t){return goog.module.getInternal_(t)};goog.module.getInternal_=function(t){if(!COMPILED){if(t in goog.loadedModules_)return goog.loadedModules_[t].exports;if(!goog.implicitNamespaces_[t])return t=goog.getObjectByName(t),t??null}return null};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG};goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var t=goog.global.$jscomp;return t?typeof t.getCurrentModulePath!="function"?!1:!!t.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0};goog.declareModuleId=function(t){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(t in goog.loadedModules_)throw Error('Module with namespace "'+t+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=t;else{var n=goog.global.$jscomp;if(!n||typeof n.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');n=n.require(n.getCurrentModulePath()),goog.loadedModules_[t]={exports:n,type:goog.ModuleType.ES6,moduleId:t}}};goog.setTestOnly=function(t){if(goog.DISALLOW_TEST_ONLY_CODE)throw t=t||"",Error("Importing test-only code into non-debug environment"+(t?": "+t:"."))};goog.forwardDeclare=function(t){};COMPILED||(goog.isProvided_=function(t){return t in goog.loadedModules_||!goog.implicitNamespaces_[t]&&goog.getObjectByName(t)!=null},goog.implicitNamespaces_={"goog.module":!0});goog.getObjectByName=function(t,n){t=t.split("."),n=n||goog.global;for(var s=0;s"u")return"object";return n};goog.isArray=function(t){return goog.typeOf(t)=="array"};goog.isArrayLike=function(t){var n=goog.typeOf(t);return n=="array"||n=="object"&&typeof t.length=="number"};goog.isDateLike=function(t){return goog.isObject(t)&&typeof t.getFullYear=="function"};goog.isFunction=function(t){return goog.typeOf(t)=="function"};goog.isObject=function(t){var n=typeof t;return n=="object"&&t!=null||n=="function"};goog.getUid=function(t){return Object.prototype.hasOwnProperty.call(t,goog.UID_PROPERTY_)&&t[goog.UID_PROPERTY_]||(t[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(t){return!!t[goog.UID_PROPERTY_]};goog.removeUid=function(t){t!==null&&"removeAttribute"in t&&t.removeAttribute(goog.UID_PROPERTY_);try{delete t[goog.UID_PROPERTY_]}catch{}};goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=function(t){var n=goog.typeOf(t);if(n=="object"||n=="array"){if(typeof t.clone=="function")return t.clone();n=n=="array"?[]:{};for(var s in t)n[s]=goog.cloneObject(t[s]);return n}return t};goog.bindNative_=function(t,n,s){return t.call.apply(t.bind,arguments)};goog.bindJs_=function(t,n,s){if(!t)throw Error();if(2{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(t,n){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var s=this.createRequiresTranspilation_();this.requiresTranspilation_=s.map,this.transpilationTarget_=this.transpilationTarget_||s.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||n!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,n){return goog.transpile_(t,n,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(t){return t.replace(/<\/(SCRIPT)/ig,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(t,n){function s(){p&&(goog.global.setTimeout(p,0),p=null)}var p=n;if(t.length){n=[];for(var _=0;_<\/script>",n.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(p):p)}else{var _=n.createElement("script");_.defer=goog.Dependency.defer_,_.async=!1,_.type="text/javascript",(p=goog.getScriptNonce())&&_.setAttribute("nonce",p),goog.DebugLoader_.IS_OLD_IE_?(t.pause(),_.onreadystatechange=function(){(_.readyState=="loaded"||_.readyState=="complete")&&(t.loaded(),t.resume())}):_.onload=function(){_.onload=null,t.loaded()},_.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,n.head.appendChild(_)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),this.relativePath=="deps.js"?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),t.loaded()):t.pause()},goog.Es6ModuleDependency=function(t,n,s,p,_){goog.Dependency.call(this,t,n,s,p,_)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(t){function n(U,L){U=L?'