diff --git a/index.js b/index.js index 3c0eed8..2ec7b28 100644 --- a/index.js +++ b/index.js @@ -1,21 +1,21 @@ -"use strict";(()=>{var hh=Object.create;var Gn=Object.defineProperty;var mh=Object.getOwnPropertyDescriptor;var yh=Object.getOwnPropertyNames;var _h=Object.getPrototypeOf,vh=Object.prototype.hasOwnProperty;var js=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Rs=(t,r)=>()=>(t&&(r=t(t=0)),r);var ke=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Os=(t,r)=>{for(var o in r)Gn(t,o,{get:r[o],enumerable:!0})},nu=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of yh(r))!vh.call(t,s)&&s!==o&&Gn(t,s,{get:()=>r[s],enumerable:!(n=mh(r,s))||n.enumerable});return t};var tt=(t,r,o)=>(o=t!=null?hh(_h(t)):{},nu(r||!t||!t.__esModule?Gn(o,"default",{value:t,enumerable:!0}):o,t)),Ns=t=>nu(Gn({},"__esModule",{value:!0}),t);var bu={};Os(bu,{Component:()=>_t,Fragment:()=>Fe,cloneElement:()=>Ls,createContext:()=>Ho,createElement:()=>wt,createRef:()=>Vo,h:()=>wt,hydrate:()=>Yn,isValidElement:()=>gu,options:()=>ae,render:()=>Or,toChildArray:()=>Vt});function nr(t,r){for(var o in r)t[o]=r[o];return t}function du(t){var r=t.parentNode;r&&r.removeChild(t)}function wt(t,r,o){var n,s,l,m={};for(l in r)l=="key"?n=r[l]:l=="ref"?s=r[l]:m[l]=r[l];if(arguments.length>2&&(m.children=arguments.length>3?Wo.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)m[l]===void 0&&(m[l]=t.defaultProps[l]);return ko(t,m,n,s,null)}function ko(t,r,o,n,s){var l={type:t,props:r,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++uu};return s==null&&ae.vnode!=null&&ae.vnode(l),l}function Vo(){return{current:null}}function Fe(t){return t.children}function _t(t,r){this.props=t,this.context=r}function zo(t,r){if(r==null)return t.__?zo(t.__,t.__.__k.indexOf(t)+1):null;for(var o;rr&&Rr.sort(Cs));qn.__r=0}function mu(t,r,o,n,s,l,m,v,T,M,U){var I,B,G,$,K,ne,re,ce,oe,fe=0,pe=n&&n.__k||fu,Ie=pe.length,Ne=Ie,Qe=r.length;for(o.__k=[],I=0;I0?ko($.type,$.props,$.key,$.ref?$.ref:null,$.__v):$)!=null?($.__=o,$.__b=o.__b+1,(ce=Sh($,pe,re=I+fe,Ne))===-1?G=qr:(G=pe[ce]||qr,pe[ce]=void 0,Ne--),Ps(t,$,G,s,l,m,v,T,M,U),K=$.__e,(B=$.ref)&&G.ref!=B&&(G.ref&&Ds(G.ref,null,$),U.push(B,$.__c||K,$)),K!=null&&(ne==null&&(ne=K),(oe=G===qr||G.__v===null)?ce==-1&&fe--:ce!==re&&(ce===re+1?fe++:ce>re?Ne>Qe-re?fe+=ce-re:fe--:fe=ce(T!=null?1:0))for(;m>=0||v=0){if((T=r[m])&&s==T.key&&l===T.type)return m;m--}if(v2&&(v.children=arguments.length>3?Wo.call(arguments,2):o),ko(t.type,v,n||t.key,s||t.ref,null)}function Ho(t,r){var o={__c:r="__cC"+cu++,__:t,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[r]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&s.some(function(v){v.__e=!0,Fs(v)})},this.sub=function(m){s.push(m);var v=m.componentWillUnmount;m.componentWillUnmount=function(){s.splice(s.indexOf(m),1),v&&v.call(m)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}var Wo,ae,uu,gu,Rr,iu,pu,Cs,cu,qr,fu,bh,Zn,Nr=Rs(()=>{qr={},fu=[],bh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zn=Array.isArray;Wo=fu.slice,ae={__e:function(t,r,o,n){for(var s,l,m;r=r.__;)if((s=r.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,n||{}),m=s.__d),m)return s.__E=s}catch(v){t=v}throw t}},uu=0,gu=function(t){return t!=null&&t.constructor===void 0},_t.prototype.setState=function(t,r){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=nr({},this.state),typeof t=="function"&&(t=t(nr({},o),this.props)),t&&nr(o,t),t!=null&&this.__v&&(r&&this._sb.push(r),Fs(this))},_t.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Fs(this))},_t.prototype.render=Fe,Rr=[],pu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Cs=function(t,r){return t.__v.__b-r.__v.__b},qn.__r=0,cu=0});var Ou={};Os(Ou,{useCallback:()=>ei,useContext:()=>ti,useDebugValue:()=>ri,useEffect:()=>qo,useErrorBoundary:()=>ju,useId:()=>oi,useImperativeHandle:()=>Qn,useLayoutEffect:()=>Fr,useMemo:()=>Yr,useReducer:()=>Go,useRef:()=>Xn,useState:()=>Zr});function Cr(t,r){ae.__h&&ae.__h(ze,t,$r||r),$r=0;var o=ze.__H||(ze.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Kn}),o.__[t]}function Zr(t){return $r=1,Go(Ru,t)}function Go(t,r,o){var n=Cr(ir++,2);if(n.t=t,!n.__c&&(n.__=[o?o(r):Ru(void 0,r),function(v){var T=n.__N?n.__N[0]:n.__[0],M=n.t(T,v);T!==M&&(n.__N=[M,n.__[1]],n.__c.setState({}))}],n.__c=ze,!ze.u)){var s=function(v,T,M){if(!n.__c.__H)return!0;var U=n.__c.__H.__.filter(function(B){return B.__c});if(U.every(function(B){return!B.__N}))return!l||l.call(this,v,T,M);var I=!1;return U.forEach(function(B){if(B.__N){var G=B.__[0];B.__=B.__N,B.__N=void 0,G!==B.__[0]&&(I=!0)}}),!(!I&&n.__c.props===v)&&(!l||l.call(this,v,T,M))};ze.u=!0;var l=ze.shouldComponentUpdate,m=ze.componentWillUpdate;ze.componentWillUpdate=function(v,T,M){if(this.__e){var U=l;l=void 0,s(v,T,M),l=U}m&&m.call(this,v,T,M)},ze.shouldComponentUpdate=s}return n.__N||n.__}function qo(t,r){var o=Cr(ir++,3);!ae.__s&&zs(o.__H,r)&&(o.__=t,o.i=r,ze.__H.__h.push(o))}function Fr(t,r){var o=Cr(ir++,4);!ae.__s&&zs(o.__H,r)&&(o.__=t,o.i=r,ze.__h.push(o))}function Xn(t){return $r=5,Yr(function(){return{current:t}},[])}function Qn(t,r,o){$r=6,Fr(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function Yr(t,r){var o=Cr(ir++,7);return zs(o.__H,r)?(o.__V=t(),o.i=r,o.__h=t,o.__V):o.__}function ei(t,r){return $r=8,Yr(function(){return t},r)}function ti(t){var r=ze.context[t.__c],o=Cr(ir++,9);return o.c=t,r?(o.__==null&&(o.__=!0,r.sub(ze)),r.props.value):t.__}function ri(t,r){ae.useDebugValue&&ae.useDebugValue(r?r(t):t)}function ju(t){var r=Cr(ir++,10),o=Zr();return r.__=t,ze.componentDidCatch||(ze.componentDidCatch=function(n,s){r.__&&r.__(n,s),o[1](n)}),[o[0],function(){o[1](void 0)}]}function oi(){var t=Cr(ir++,11);if(!t.__){for(var r=ze.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var o=r.__m||(r.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function xh(){for(var t;t=Mu.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Jn),t.__H.__h.forEach(ks),t.__H.__h=[]}catch(r){t.__H.__h=[],ae.__e(r,t.__v)}}function Ah(t){var r,o=function(){clearTimeout(n),Iu&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(o,100);Iu&&(r=requestAnimationFrame(o))}function Jn(t){var r=ze,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),ze=r}function ks(t){var r=ze;t.__c=t.__(),ze=r}function zs(t,r){return!t||t.length!==r.length||r.some(function(o,n){return o!==t[n]})}function Ru(t,r){return typeof r=="function"?r(t):r}var ir,ze,Bs,Su,$r,Mu,Kn,wu,Eu,Tu,xu,Au,Iu,ni=Rs(()=>{Nr();$r=0,Mu=[],Kn=[],wu=ae.__b,Eu=ae.__r,Tu=ae.diffed,xu=ae.__c,Au=ae.unmount;ae.__b=function(t){ze=null,wu&&wu(t)},ae.__r=function(t){Eu&&Eu(t),ir=0;var r=(ze=t.__c).__H;r&&(Bs===ze?(r.__h=[],ze.__h=[],r.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Kn,o.__N=o.i=void 0})):(r.__h.forEach(Jn),r.__h.forEach(ks),r.__h=[],ir=0)),Bs=ze},ae.diffed=function(t){Tu&&Tu(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Mu.push(r)!==1&&Su===ae.requestAnimationFrame||((Su=ae.requestAnimationFrame)||Ah)(xh)),r.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Kn&&(o.__=o.__V),o.i=void 0,o.__V=Kn})),Bs=ze=null},ae.__c=function(t,r){r.some(function(o){try{o.__h.forEach(Jn),o.__h=o.__h.filter(function(n){return!n.__||ks(n)})}catch(n){r.some(function(s){s.__h&&(s.__h=[])}),r=[],ae.__e(n,o.__v)}}),xu&&xu(t,r)},ae.unmount=function(t){Au&&Au(t);var r,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Jn(n)}catch(s){r=s}}),o.__H=void 0,r&&ae.__e(r,o.__v))};Iu=typeof requestAnimationFrame=="function"});var cg={};Os(cg,{Children:()=>Vu,Component:()=>_t,Fragment:()=>Fe,PureComponent:()=>ii,StrictMode:()=>sg,Suspense:()=>$o,SuspenseList:()=>Kr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Xu,cloneElement:()=>tg,createContext:()=>Ho,createElement:()=>wt,createFactory:()=>Qu,createPortal:()=>Zu,createRef:()=>Vo,default:()=>zh,findDOMNode:()=>og,flushSync:()=>ig,forwardRef:()=>Wu,hydrate:()=>Ju,isElement:()=>gg,isFragment:()=>eg,isValidElement:()=>Zo,lazy:()=>$u,memo:()=>zu,render:()=>Ku,startTransition:()=>Gs,unmountComponentAtNode:()=>rg,unstable_batchedUpdates:()=>ng,useCallback:()=>ei,useContext:()=>ti,useDebugValue:()=>ri,useDeferredValue:()=>ag,useEffect:()=>qo,useErrorBoundary:()=>ju,useId:()=>oi,useImperativeHandle:()=>Qn,useInsertionEffect:()=>ug,useLayoutEffect:()=>Fr,useMemo:()=>Yr,useReducer:()=>Go,useRef:()=>Xn,useState:()=>Zr,useSyncExternalStore:()=>pg,useTransition:()=>lg,version:()=>kh});function ku(t,r){for(var o in r)t[o]=r[o];return t}function Vs(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function Ws(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function ii(t){this.props=t}function zu(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:Vs(this.props,s)}function n(s){return this.shouldComponentUpdate=o,wt(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Wu(t){function r(o){var n=ku({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Ih,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}function Hu(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=ku({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Hu(n,r,o)})),t}function Gu(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Gu(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function $o(){this.__u=0,this.t=null,this.__b=null}function qu(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function $u(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return wt(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Kr(){this.u=null,this.o=null}function jh(t){return this.getChildContext=function(){return t.context},t.children}function Rh(t){var r=this,o=t.i;r.componentWillUnmount=function(){Or(null,r.l),r.l=null,r.i=null},r.i&&r.i!==o&&r.componentWillUnmount(),r.l||(r.i=o,r.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),Or(wt(jh,{context:r.context},t.__v),r.l)}function Zu(t,r){var o=wt(Rh,{__v:t,i:r});return o.containerInfo=r,o}function Ku(t,r,o){return r.__k==null&&(r.textContent=""),Or(t,r),typeof o=="function"&&o(),t?t.__c:null}function Ju(t,r,o){return Yn(t,r),typeof o=="function"&&o(),t?t.__c:null}function Ph(){}function Dh(){return this.cancelBubble}function Lh(){return this.defaultPrevented}function Qu(t){return wt.bind(null,t)}function Zo(t){return!!t&&t.$$typeof===Yu}function eg(t){return Zo(t)&&t.type===Fe}function tg(t){return Zo(t)?Ls.apply(null,arguments):t}function rg(t){return!!t.__k&&(Or(null,t),!0)}function og(t){return t&&(t.base||t.nodeType===1&&t)||null}function Gs(t){t()}function ag(t){return t}function lg(){return[!1,Gs]}function pg(t,r){var o=r(),n=Zr({h:{__:o,v:r}}),s=n[0].h,l=n[1];return Fr(function(){s.__=o,s.v=r,Ws(s.__,r())||l({h:s})},[t,o,r]),qo(function(){return Ws(s.__,s.v())||l({h:s}),t(function(){Ws(s.__,s.v())||l({h:s})})},[t]),o}var Nu,Ih,Cu,Vu,Mh,Fu,Uu,Yu,Oh,Nh,Ch,Fh,Uh,Pu,Hs,Bh,Du,Lu,Bu,Xu,kh,ng,ig,sg,ug,gg,zh,fg=Rs(()=>{Nr();Nr();ni();ni();(ii.prototype=new _t).isPureReactComponent=!0,ii.prototype.shouldComponentUpdate=function(t,r){return Vs(this.props,t)||Vs(this.state,r)};Nu=ae.__b;ae.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Nu&&Nu(t)};Ih=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Cu=function(t,r){return t==null?null:Vt(Vt(t).map(r))},Vu={map:Cu,forEach:Cu,count:function(t){return t?Vt(t).length:0},only:function(t){var r=Vt(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:Vt},Mh=ae.__e;ae.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Mh(t,r,o,n)};Fu=ae.unmount;ae.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),Fu&&Fu(t)},($o.prototype=new _t).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=qu(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(v):v())};o.__R=m;var v=function(){if(!--n.__u){if(n.state.__a){var M=n.state.__a;n.__v.__k[0]=Gu(M,M.__c.__P,M.__c.__O)}var U;for(n.setState({__a:n.__b=null});U=n.t.pop();)U.forceUpdate()}},T=r.__h===!0;n.__u++||T||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},$o.prototype.componentWillUnmount=function(){this.t=[]},$o.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Hu(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&wt(Fe,null,t.fallback);return s&&(s.__h=null),[wt(Fe,null,r.__a?null:t.children),s]};Uu=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{var{render:Wh,hydrate:Vh,unmountComponentAtNode:Hh}=(fg(),Ns(cg));function dg(t){return{render(r){Wh(r,t)},unmount(){Hh(t)}}}qs.createRoot=dg;qs.hydrateRoot=function(t,r){return Vh(r,t),dg(t)}});var _r=ke(Me=>{var he=(Nr(),Ns(bu)),at=(ni(),Ns(Ou));function Ig(t,r){for(var o in r)t[o]=r[o];return t}function oa(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function ra(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function li(t){this.props=t}function Mg(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:oa(this.props,s)}function n(s){return this.shouldComponentUpdate=o,he.createElement(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(li.prototype=new he.Component).isPureReactComponent=!0,li.prototype.shouldComponentUpdate=function(t,r){return oa(this.props,t)||oa(this.state,r)};var vg=he.options.__b;he.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),vg&&vg(t)};var Kh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function jg(t){function r(o){var n=Ig({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Kh,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}var bg=function(t,r){return t==null?null:he.toChildArray(he.toChildArray(t).map(r))},Rg={map:bg,forEach:bg,count:function(t){return t?he.toChildArray(t).length:0},only:function(t){var r=he.toChildArray(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:he.toChildArray},Jh=he.options.__e;he.options.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Jh(t,r,o,n)};var Sg=he.options.unmount;function Og(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ig({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Og(n,r,o)})),t}function Ng(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Ng(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Xo(){this.__u=0,this.t=null,this.__b=null}function Cg(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Fg(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return he.createElement(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Jr(){this.u=null,this.o=null}he.options.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),Sg&&Sg(t)},(Xo.prototype=new he.Component).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=Cg(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(v):v())};o.__R=m;var v=function(){if(!--n.__u){if(n.state.__a){var M=n.state.__a;n.__v.__k[0]=Ng(M,M.__c.__P,M.__c.__O)}var U;for(n.setState({__a:n.__b=null});U=n.t.pop();)U.forceUpdate()}},T=r.__h===!0;n.__u++||T||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Xo.prototype.componentWillUnmount=function(){this.t=[]},Xo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Og(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&he.createElement(he.Fragment,null,t.fallback);return s&&(s.__h=null),[he.createElement(he.Fragment,null,r.__a?null:t.children),s]};var wg=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]>>1,1),r.i.removeChild(n)}}),he.render(he.createElement(Xh,{context:r.context},t.__v),r.l)}function Ug(t,r){var o=he.createElement(Qh,{__v:t,i:r});return o.containerInfo=r,o}(Jr.prototype=new he.Component).__a=function(t){var r=this,o=Cg(r.__v),n=r.o.get(t);return n[0]++,function(s){var l=function(){r.props.revealOrder?(n.push(s),wg(r,t,n)):s()};o?o(l):l()}},Jr.prototype.render=function(t){this.u=null,this.o=new Map;var r=he.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&r.reverse();for(var o=r.length;o--;)this.o.set(r[o],this.u=[1,0,this.u]);return t.children},Jr.prototype.componentDidUpdate=Jr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(r,o){wg(t,o,r)})};var Pg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,em=/^(?: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]/,tm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rm=/[A-Z0-9]/g,om=typeof document<"u",nm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Dg(t,r,o){return r.__k==null&&(r.textContent=""),he.render(t,r),typeof o=="function"&&o(),t?t.__c:null}function Lg(t,r,o){return he.hydrate(t,r),typeof o=="function"&&o(),t?t.__c:null}he.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(he.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})});var Eg=he.options.event;function im(){}function sm(){return this.cancelBubble}function am(){return this.defaultPrevented}he.options.event=function(t){return Eg&&(t=Eg(t)),t.persist=im,t.isPropagationStopped=sm,t.isDefaultPrevented=am,t.nativeEvent=t};var na,lm={enumerable:!1,configurable:!0,get:function(){return this.class}},Tg=he.options.vnode;he.options.vnode=function(t){typeof t.type=="string"&&function(r){var o=r.props,n=r.type,s={};for(var l in o){var m=o[l];if(!(l==="value"&&"defaultValue"in o&&m==null||om&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var v=l.toLowerCase();l==="defaultValue"&&"value"in o&&o.value==null?l="value":l==="download"&&m===!0?m="":v==="ondoubleclick"?l="ondblclick":v!=="onchange"||n!=="input"&&n!=="textarea"||nm(o.type)?v==="onfocus"?l="onfocusin":v==="onblur"?l="onfocusout":tm.test(l)?l=v:n.indexOf("-")===-1&&em.test(l)?l=l.replace(rm,"-$&").toLowerCase():m===null&&(m=void 0):v=l="oninput",v==="oninput"&&s[l=v]&&(l="oninputCapture"),s[l]=m}}n=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=he.toChildArray(o.children).forEach(function(T){T.props.selected=s.value.indexOf(T.props.value)!=-1})),n=="select"&&s.defaultValue!=null&&(s.value=he.toChildArray(o.children).forEach(function(T){T.props.selected=s.multiple?s.defaultValue.indexOf(T.props.value)!=-1:s.defaultValue==T.props.value})),o.class&&!o.className?(s.class=o.class,Object.defineProperty(s,"className",lm)):(o.className&&!o.class||o.class&&o.className)&&(s.class=s.className=o.className),r.props=s}(t),t.$$typeof=Pg,Tg&&Tg(t)};var xg=he.options.__r;he.options.__r=function(t){xg&&xg(t),na=t.__c};var Ag=he.options.diffed;he.options.diffed=function(t){Ag&&Ag(t);var r=t.props,o=t.__e;o!=null&&t.type==="textarea"&&"value"in r&&r.value!==o.value&&(o.value=r.value==null?"":r.value),na=null};var Bg={ReactCurrentDispatcher:{current:{readContext:function(t){return na.__n[t.__c].props.value}}}};function kg(t){return he.createElement.bind(null,t)}function Qo(t){return!!t&&t.$$typeof===Pg}function zg(t){return Qo(t)&&t.type===he.Fragment}function Wg(t){return Qo(t)?he.cloneElement.apply(null,arguments):t}function Vg(t){return!!t.__k&&(he.render(null,t),!0)}function Hg(t){return t&&(t.base||t.nodeType===1&&t)||null}var Gg=function(t,r){return t(r)},qg=function(t,r){return t(r)},$g=he.Fragment;function ia(t){t()}function Zg(t){return t}function Yg(){return[!1,ia]}var Kg=at.useLayoutEffect,Jg=Qo;function Xg(t,r){var o=r(),n=at.useState({p:{__:o,h:r}}),s=n[0].p,l=n[1];return at.useLayoutEffect(function(){s.__=o,s.h=r,ra(s.__,r())||l({p:s})},[t,o,r]),at.useEffect(function(){return ra(s.__,s.h())||l({p:s}),t(function(){ra(s.__,s.h())||l({p:s})})},[t]),o}var um={useState:at.useState,useId:at.useId,useReducer:at.useReducer,useEffect:at.useEffect,useLayoutEffect:at.useLayoutEffect,useInsertionEffect:Kg,useTransition:Yg,useDeferredValue:Zg,useSyncExternalStore:Xg,startTransition:ia,useRef:at.useRef,useImperativeHandle:at.useImperativeHandle,useMemo:at.useMemo,useCallback:at.useCallback,useContext:at.useContext,useDebugValue:at.useDebugValue,version:"17.0.2",Children:Rg,render:Dg,hydrate:Lg,unmountComponentAtNode:Vg,createPortal:Ug,createElement:he.createElement,createContext:he.createContext,createFactory:kg,cloneElement:Wg,createRef:he.createRef,Fragment:he.Fragment,isValidElement:Qo,isElement:Jg,isFragment:zg,findDOMNode:Hg,Component:he.Component,PureComponent:li,memo:Mg,forwardRef:jg,flushSync:qg,unstable_batchedUpdates:Gg,StrictMode:$g,Suspense:Xo,SuspenseList:Jr,lazy:Fg,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Bg};Object.defineProperty(Me,"Component",{enumerable:!0,get:function(){return he.Component}}),Object.defineProperty(Me,"Fragment",{enumerable:!0,get:function(){return he.Fragment}}),Object.defineProperty(Me,"createContext",{enumerable:!0,get:function(){return he.createContext}}),Object.defineProperty(Me,"createElement",{enumerable:!0,get:function(){return he.createElement}}),Object.defineProperty(Me,"createRef",{enumerable:!0,get:function(){return he.createRef}}),Me.Children=Rg,Me.PureComponent=li,Me.StrictMode=$g,Me.Suspense=Xo,Me.SuspenseList=Jr,Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bg,Me.cloneElement=Wg,Me.createFactory=kg,Me.createPortal=Ug,Me.default=um,Me.findDOMNode=Hg,Me.flushSync=qg,Me.forwardRef=jg,Me.hydrate=Lg,Me.isElement=Jg,Me.isFragment=zg,Me.isValidElement=Qo,Me.lazy=Fg,Me.memo=Mg,Me.render=Dg,Me.startTransition=ia,Me.unmountComponentAtNode=Vg,Me.unstable_batchedUpdates=Gg,Me.useDeferredValue=Zg,Me.useInsertionEffect=Kg,Me.useSyncExternalStore=Xg,Me.useTransition=Yg,Me.version="17.0.2",Object.keys(at).forEach(function(t){t==="default"||Me.hasOwnProperty(t)||Object.defineProperty(Me,t,{enumerable:!0,get:function(){return at[t]}})})});var ep=ke(Qg=>{"use strict";var Xr=_r();function gm(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var pm=typeof Object.is=="function"?Object.is:gm,cm=Xr.useState,fm=Xr.useEffect,dm=Xr.useLayoutEffect,hm=Xr.useDebugValue;function mm(t,r){var o=r(),n=cm({inst:{value:o,getSnapshot:r}}),s=n[0].inst,l=n[1];return dm(function(){s.value=o,s.getSnapshot=r,sa(s)&&l({inst:s})},[t,o,r]),fm(function(){return sa(s)&&l({inst:s}),t(function(){sa(s)&&l({inst:s})})},[t]),hm(o),o}function sa(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!pm(t,o)}catch{return!0}}function ym(t,r){return r()}var _m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ym:mm;Qg.useSyncExternalStore=Xr.useSyncExternalStore!==void 0?Xr.useSyncExternalStore:_m});var rp=ke((ab,tp)=>{"use strict";tp.exports=ep()});var er=ke((pb,ui)=>{(function(){"use strict";var t={}.hasOwnProperty,r="[native code]";function o(){for(var n=[],s=0;s{var aa=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(r){r=r||{};var o;o||(o=typeof r<"u"?r:{});var n,s;o.ready=new Promise(function(i,u){n=i,s=u}),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){i.MakeSWCanvasSurface=function(u){var p=u;if(p.tagName!=="CANVAS"&&(p=document.getElementById(u),!p))throw"Canvas with id "+u+" was not found";return(u=i.MakeSurface(p.width,p.height))&&(u.Nd=p),u},i.MakeCanvasSurface||(i.MakeCanvasSurface=i.MakeSWCanvasSurface),i.MakeSurface=function(u,p){var y={width:u,height:p,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB},S=u*p*4,x=i._malloc(S);return(y=i.Surface._makeRasterDirect(y,x,4*u))&&(y.Nd=null,y.Ef=u,y.Af=p,y.Cf=S,y.af=x,y.getCanvas().clear(i.TRANSPARENT)),y},i.MakeRasterDirectSurface=function(u,p,y){return i.Surface._makeRasterDirect(u,p.byteOffset,y)},i.Surface.prototype.flush=function(u){if(i.Od(this.Md),this._flush(),this.Nd){var p=new Uint8ClampedArray(i.HEAPU8.buffer,this.af,this.Cf);p=new ImageData(p,this.Ef,this.Af),u?this.Nd.getContext("2d").putImageData(p,0,0,u[0],u[1],u[2]-u[0],u[3]-u[1]):this.Nd.getContext("2d").putImageData(p,0,0)}},i.Surface.prototype.dispose=function(){this.af&&i._free(this.af),this.delete()},i.Od=i.Od||function(){},i.Se=i.Se||function(){return null}})}(o),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){function u(A,R,F){return A&&A.hasOwnProperty(R)?A[R]:F}function p(A){var R=Hr(Ot);return Ot[R]=A,R}function y(A){return A.naturalHeight||A.videoHeight||A.displayHeight||A.height}function S(A){return A.naturalWidth||A.videoWidth||A.displayWidth||A.width}function x(A,R,F,Z){return A.bindTexture(A.TEXTURE_2D,R),Z||F.alphaType!==i.AlphaType.Premul||A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),R}function C(A,R,F){F||R.alphaType!==i.AlphaType.Premul||A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),A.bindTexture(A.TEXTURE_2D,null)}i.GetWebGLContext=function(A,R){if(!A)throw"null canvas passed into makeWebGLContext";var F={alpha:u(R,"alpha",1),depth:u(R,"depth",1),stencil:u(R,"stencil",8),antialias:u(R,"antialias",0),premultipliedAlpha:u(R,"premultipliedAlpha",1),preserveDrawingBuffer:u(R,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:u(R,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:u(R,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:u(R,"enableExtensionsByDefault",1),explicitSwapControl:u(R,"explicitSwapControl",0),renderViaOffscreenBackBuffer:u(R,"renderViaOffscreenBackBuffer",0)};if(F.majorVersion=R&&R.majorVersion?R.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,F.explicitSwapControl)throw"explicitSwapControl is not supported";return A=Vd(A,F),A?(Vl(A),Se.ge.getExtension("WEBGL_debug_renderer_info"),A):0},i.deleteContext=function(A){Se===Jt[A]&&(Se=null),typeof JSEvents=="object"&&JSEvents.ug(Jt[A].ge.canvas),Jt[A]&&Jt[A].ge.canvas&&(Jt[A].ge.canvas.yf=void 0),Jt[A]=null},i._setTextureCleanup({deleteTexture:function(A,R){var F=Ot[R];F&&Jt[A].ge.deleteTexture(F),Ot[R]=null}}),i.MakeWebGLContext=function(A){if(!this.Od(A))return null;var R=this._MakeGrContext();if(!R)return null;R.Md=A;var F=R.delete.bind(R);return R.delete=function(){i.Od(this.Md),F()}.bind(R),Se.ef=R},i.MakeGrContext=i.MakeWebGLContext,i.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){i.Od(this.Md),this._getResourceCacheLimitBytes()},i.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){i.Od(this.Md),this._getResourceCacheUsageBytes()},i.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){i.Od(this.Md),this._releaseResourcesAndAbandonContext()},i.GrDirectContext.prototype.setResourceCacheLimitBytes=function(A){i.Od(this.Md),this._setResourceCacheLimitBytes(A)},i.MakeOnScreenGLSurface=function(A,R,F,Z,J,ie){return!this.Od(A.Md)||(R=J===void 0||ie===void 0?this._MakeOnScreenGLSurface(A,R,F,Z):this._MakeOnScreenGLSurface(A,R,F,Z,J,ie),!R)?null:(R.Md=A.Md,R)},i.MakeRenderTarget=function(){var A=arguments[0];if(!this.Od(A.Md))return null;if(arguments.length===3){var R=this._MakeRenderTargetWH(A,arguments[1],arguments[2]);if(!R)return null}else if(arguments.length===2){if(R=this._MakeRenderTargetII(A,arguments[1]),!R)return null}else return null;return R.Md=A.Md,R},i.MakeWebGLCanvasSurface=function(A,R,F){R=R||null;var Z=A,J=typeof OffscreenCanvas<"u"&&Z instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&Z instanceof HTMLCanvasElement||J||(Z=document.getElementById(A),Z)))throw"Canvas with id "+A+" was not found";if(A=this.GetWebGLContext(Z,F),!A||0>A)throw"failed to create webgl context: err "+A;return A=this.MakeWebGLContext(A),R=this.MakeOnScreenGLSurface(A,Z.width,Z.height,R),R||(R=Z.cloneNode(!0),Z.parentNode.replaceChild(R,Z),R.classList.add("ck-replaced"),i.MakeSWCanvasSurface(R))},i.MakeCanvasSurface=i.MakeWebGLCanvasSurface,i.Surface.prototype.makeImageFromTexture=function(A,R){return i.Od(this.Md),A=p(A),(R=this._makeImageFromTexture(this.Md,A,R))&&(R.Le=A),R},i.Surface.prototype.makeImageFromTextureSource=function(A,R,F){R||(R={height:y(A),width:S(A),colorType:i.ColorType.RGBA_8888,alphaType:F?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB),i.Od(this.Md);var Z=Se.ge;return F=x(Z,Z.createTexture(),R,F),Se.version===2?Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,R.width,R.height,0,Z.RGBA,Z.UNSIGNED_BYTE,A):Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,Z.RGBA,Z.UNSIGNED_BYTE,A),C(Z,R),this._resetContext(),this.makeImageFromTexture(F,R)},i.Surface.prototype.updateTextureFromSource=function(A,R,F){if(A.Le){i.Od(this.Md);var Z=A.getImageInfo(),J=Se.ge,ie=x(J,Ot[A.Le],Z,F);Se.version===2?J.texImage2D(J.TEXTURE_2D,0,J.RGBA,S(R),y(R),0,J.RGBA,J.UNSIGNED_BYTE,R):J.texImage2D(J.TEXTURE_2D,0,J.RGBA,J.RGBA,J.UNSIGNED_BYTE,R),C(J,Z,F),this._resetContext(),Ot[A.Le]=null,A.Le=p(ie),Z.colorSpace=A.getColorSpace(),R=this._makeImageFromTexture(this.Md,A.Le,Z),F=A.Ld.Td,J=A.Ld.$d,A.Ld.Td=R.Ld.Td,A.Ld.$d=R.Ld.$d,R.Ld.Td=F,R.Ld.$d=J,R.delete(),Z.colorSpace.delete()}},i.MakeLazyImageFromTextureSource=function(A,R,F){R||(R={height:y(A),width:S(A),colorType:i.ColorType.RGBA_8888,alphaType:F?i.AlphaType.Premul:i.AlphaType.Unpremul}),R.colorSpace||(R.colorSpace=i.ColorSpace.SRGB);var Z={makeTexture:function(){var J=Se,ie=J.ge,k=x(ie,ie.createTexture(),R,F);return J.version===2?ie.texImage2D(ie.TEXTURE_2D,0,ie.RGBA,R.width,R.height,0,ie.RGBA,ie.UNSIGNED_BYTE,A):ie.texImage2D(ie.TEXTURE_2D,0,ie.RGBA,ie.RGBA,ie.UNSIGNED_BYTE,A),C(ie,R,F),p(k)},freeSrc:function(){}};return A.constructor.name==="VideoFrame"&&(Z.freeSrc=function(){A.close()}),i.Image._makeFromGenerator(R,Z)},i.Od=function(A){return A?Vl(A):!1},i.Se=function(){return Se&&Se.ef&&!Se.ef.isDeleted()?Se.ef:null}})}(o),function(i){function u(h,g,_,E,N){for(var L=0;L>>0}function x(h){if(h&&h._ck)return h;if(h instanceof Float32Array){for(var g=Math.floor(h.length/4),_=new Uint32Array(g),E=0;EH;H++)i.HEAPF32[N+E]=h[L][H],E++;h=_}else h=je;g.ce=h}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof h;return g}function J(h){if(!h)return je;var g=ws.toTypedArray();if(h.length){if(h.length===6||h.length===9)return F(h,"HEAPF32",dr),h.length===6&&i.HEAPF32.set(fh,6+dr/4),dr;if(h.length===16)return g[0]=h[0],g[1]=h[1],g[2]=h[3],g[3]=h[4],g[4]=h[5],g[5]=h[7],g[6]=h[12],g[7]=h[13],g[8]=h[15],dr;throw"invalid matrix size"}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m41,g[3]=h.m12,g[4]=h.m22,g[5]=h.m42,g[6]=h.m14,g[7]=h.m24,g[8]=h.m44,dr}function ie(h){if(!h)return je;var g=Es.toTypedArray();if(h.length){if(h.length!==16&&h.length!==6&&h.length!==9)throw"invalid matrix size";return h.length===16?F(h,"HEAPF32",Gr):(g.fill(0),g[0]=h[0],g[1]=h[1],g[3]=h[2],g[4]=h[3],g[5]=h[4],g[7]=h[5],g[10]=1,g[12]=h[6],g[13]=h[7],g[15]=h[8],h.length===6&&(g[12]=0,g[13]=0,g[15]=1),Gr)}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m31,g[3]=h.m41,g[4]=h.m12,g[5]=h.m22,g[6]=h.m32,g[7]=h.m42,g[8]=h.m13,g[9]=h.m23,g[10]=h.m33,g[11]=h.m43,g[12]=h.m14,g[13]=h.m24,g[14]=h.m34,g[15]=h.m44,Gr}function k(h,g){return F(h,"HEAPF32",g||jr)}function ge(h,g,_,E){var N=Ts.toTypedArray();return N[0]=h,N[1]=g,N[2]=_,N[3]=E,jr}function we(h){for(var g=new Float32Array(4),_=0;4>_;_++)g[_]=i.HEAPF32[h/4+_];return g}function Ee(h,g){return F(h,"HEAPF32",g||st)}function yt(h,g){return F(h,"HEAPF32",g||Ms)}function Nt(){for(var h=0,g=0;g>>0},i.Color4f=function(h,g,_,E){return E===void 0&&(E=1),Float32Array.of(h,g,_,E)},Object.defineProperty(i,"TRANSPARENT",{get:function(){return i.Color4f(0,0,0,0)}}),Object.defineProperty(i,"BLACK",{get:function(){return i.Color4f(0,0,0,1)}}),Object.defineProperty(i,"WHITE",{get:function(){return i.Color4f(1,1,1,1)}}),Object.defineProperty(i,"RED",{get:function(){return i.Color4f(1,0,0,1)}}),Object.defineProperty(i,"GREEN",{get:function(){return i.Color4f(0,1,0,1)}}),Object.defineProperty(i,"BLUE",{get:function(){return i.Color4f(0,0,1,1)}}),Object.defineProperty(i,"YELLOW",{get:function(){return i.Color4f(1,1,0,1)}}),Object.defineProperty(i,"CYAN",{get:function(){return i.Color4f(0,1,1,1)}}),Object.defineProperty(i,"MAGENTA",{get:function(){return i.Color4f(1,0,1,1)}}),i.getColorComponents=function(h){return[Math.floor(255*h[0]),Math.floor(255*h[1]),Math.floor(255*h[2]),h[3]]},i.parseColorString=function(h,g){if(h=h.toLowerCase(),h.startsWith("#")){switch(g=255,h.length){case 9:g=parseInt(h.slice(7,9),16);case 7:var _=parseInt(h.slice(1,3),16),E=parseInt(h.slice(3,5),16),N=parseInt(h.slice(5,7),16);break;case 5:g=17*parseInt(h.slice(4,5),16);case 4:_=17*parseInt(h.slice(1,2),16),E=17*parseInt(h.slice(2,3),16),N=17*parseInt(h.slice(3,4),16)}return i.Color(_,E,N,g/255)}return h.startsWith("rgba")?(h=h.slice(5,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("rgb")?(h=h.slice(4,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("gray(")||h.startsWith("hsl")||!g||(h=g[h],h===void 0)?i.BLACK:h},i.multiplyByAlpha=function(h,g){return h=h.slice(),h[3]=Math.max(0,Math.min(h[3]*g,1)),h},i.Malloc=function(h,g){var _=i._malloc(g*h.BYTES_PER_ELEMENT);return{_ck:!0,length:g,byteOffset:_,re:null,subarray:function(E,N){return E=this.toTypedArray().subarray(E,N),E._ck=!0,E},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new h(i.HEAPU8.buffer,_,g),this.re._ck=!0,this.re)}}},i.Free=function(h){i._free(h.byteOffset),h.byteOffset=je,h.toTypedArray=null,h.re=null};var dr=je,ws,Gr=je,Es,jr=je,Ts,Xt,st=je,Xl,hr=je,Ql,xs=je,eu,As=je,Is,Hn=je,tu,Ms=je,ru,ou=je,fh=Float32Array.of(0,0,1),je=0;i.onRuntimeInitialized=function(){function h(g,_,E,N,L,H,te){H||(H=4*N.width,N.colorType===i.ColorType.RGBA_F16?H*=2:N.colorType===i.ColorType.RGBA_F32&&(H*=4));var ye=H*N.height,de=L?L.byteOffset:i._malloc(ye);if(te?!g._readPixels(N,de,H,_,E,te):!g._readPixels(N,de,H,_,E))return L||i._free(de),null;if(L)return L.toTypedArray();switch(N.colorType){case i.ColorType.RGBA_8888:case i.ColorType.RGBA_F16:g=new Uint8Array(i.HEAPU8.buffer,de,ye).slice();break;case i.ColorType.RGBA_F32:g=new Float32Array(i.HEAPU8.buffer,de,ye).slice();break;default:return null}return i._free(de),g}Ts=i.Malloc(Float32Array,4),jr=Ts.byteOffset,Es=i.Malloc(Float32Array,16),Gr=Es.byteOffset,ws=i.Malloc(Float32Array,9),dr=ws.byteOffset,tu=i.Malloc(Float32Array,12),Ms=tu.byteOffset,ru=i.Malloc(Float32Array,12),ou=ru.byteOffset,Xt=i.Malloc(Float32Array,4),st=Xt.byteOffset,Xl=i.Malloc(Float32Array,4),hr=Xl.byteOffset,Ql=i.Malloc(Float32Array,3),xs=Ql.byteOffset,eu=i.Malloc(Float32Array,3),As=eu.byteOffset,Is=i.Malloc(Int32Array,4),Hn=Is.byteOffset,i.ColorSpace.SRGB=i.ColorSpace._MakeSRGB(),i.ColorSpace.DISPLAY_P3=i.ColorSpace._MakeDisplayP3(),i.ColorSpace.ADOBE_RGB=i.ColorSpace._MakeAdobeRGB(),i.GlyphRunFlags={IsWhiteSpace:i._GlyphRunFlags_isWhiteSpace},i.Path.MakeFromCmds=function(g){var _=F(g,"HEAPF32"),E=i.Path._MakeFromCmds(_,g.length);return R(_,g),E},i.Path.MakeFromVerbsPointsWeights=function(g,_,E){var N=F(g,"HEAPU8"),L=F(_,"HEAPF32"),H=F(E,"HEAPF32"),te=i.Path._MakeFromVerbsPointsWeights(N,g.length,L,_.length,H,E&&E.length||0);return R(N,g),R(L,_),R(H,E),te},i.Path.prototype.addArc=function(g,_,E){return g=Ee(g),this._addArc(g,_,E),this},i.Path.prototype.addCircle=function(g,_,E,N){return this._addCircle(g,_,E,!!N),this},i.Path.prototype.addOval=function(g,_,E){return E===void 0&&(E=1),g=Ee(g),this._addOval(g,!!_,E),this},i.Path.prototype.addPath=function(){var g=Array.prototype.slice.call(arguments),_=g[0],E=!1;if(typeof g[g.length-1]=="boolean"&&(E=g.pop()),g.length===1)this._addPath(_,1,0,0,0,1,0,0,0,1,E);else if(g.length===2)g=g[1],this._addPath(_,g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1,E);else if(g.length===7||g.length===10)this._addPath(_,g[1],g[2],g[3],g[4],g[5],g[6],g[7]||0,g[8]||0,g[9]||1,E);else return null;return this},i.Path.prototype.addPoly=function(g,_){var E=F(g,"HEAPF32");return this._addPoly(E,g.length/2,_),R(E,g),this},i.Path.prototype.addRect=function(g,_){return g=Ee(g),this._addRect(g,!!_),this},i.Path.prototype.addRRect=function(g,_){return g=yt(g),this._addRRect(g,!!_),this},i.Path.prototype.addVerbsPointsWeights=function(g,_,E){var N=F(g,"HEAPU8"),L=F(_,"HEAPF32"),H=F(E,"HEAPF32");this._addVerbsPointsWeights(N,g.length,L,_.length,H,E&&E.length||0),R(N,g),R(L,_),R(H,E)},i.Path.prototype.arc=function(g,_,E,N,L,H){return g=i.LTRBRect(g-E,_-E,g+E,_+E),L=(L-N)/Math.PI*180-360*!!H,H=new i.Path,H.addArc(g,N/Math.PI*180,L),this.addPath(H,!0),H.delete(),this},i.Path.prototype.arcToOval=function(g,_,E,N){return g=Ee(g),this._arcToOval(g,_,E,N),this},i.Path.prototype.arcToRotated=function(g,_,E,N,L,H,te){return this._arcToRotated(g,_,E,!!N,!!L,H,te),this},i.Path.prototype.arcToTangent=function(g,_,E,N,L){return this._arcToTangent(g,_,E,N,L),this},i.Path.prototype.close=function(){return this._close(),this},i.Path.prototype.conicTo=function(g,_,E,N,L){return this._conicTo(g,_,E,N,L),this},i.Path.prototype.computeTightBounds=function(g){this._computeTightBounds(st);var _=Xt.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.cubicTo=function(g,_,E,N,L,H){return this._cubicTo(g,_,E,N,L,H),this},i.Path.prototype.dash=function(g,_,E){return this._dash(g,_,E)?this:null},i.Path.prototype.getBounds=function(g){this._getBounds(st);var _=Xt.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.lineTo=function(g,_){return this._lineTo(g,_),this},i.Path.prototype.moveTo=function(g,_){return this._moveTo(g,_),this},i.Path.prototype.offset=function(g,_){return this._transform(1,0,g,0,1,_,0,0,1),this},i.Path.prototype.quadTo=function(g,_,E,N){return this._quadTo(g,_,E,N),this},i.Path.prototype.rArcTo=function(g,_,E,N,L,H,te){return this._rArcTo(g,_,E,N,L,H,te),this},i.Path.prototype.rConicTo=function(g,_,E,N,L){return this._rConicTo(g,_,E,N,L),this},i.Path.prototype.rCubicTo=function(g,_,E,N,L,H){return this._rCubicTo(g,_,E,N,L,H),this},i.Path.prototype.rLineTo=function(g,_){return this._rLineTo(g,_),this},i.Path.prototype.rMoveTo=function(g,_){return this._rMoveTo(g,_),this},i.Path.prototype.rQuadTo=function(g,_,E,N){return this._rQuadTo(g,_,E,N),this},i.Path.prototype.stroke=function(g){return g=g||{},g.width=g.width||1,g.miter_limit=g.miter_limit||4,g.cap=g.cap||i.StrokeCap.Butt,g.join=g.join||i.StrokeJoin.Miter,g.precision=g.precision||1,this._stroke(g)?this:null},i.Path.prototype.transform=function(){if(arguments.length===1){var g=arguments[0];this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1)}else if(arguments.length===6||arguments.length===9)g=arguments,this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},i.Path.prototype.trim=function(g,_,E){return this._trim(g,_,!!E)?this:null},i.Image.prototype.encodeToBytes=function(g,_){var E=i.Se();return g=g||i.ImageFormat.PNG,_=_||100,E?this._encodeToBytes(g,_,E):this._encodeToBytes(g,_)},i.Image.prototype.makeShaderCubic=function(g,_,E,N,L){return L=J(L),this._makeShaderCubic(g,_,E,N,L)},i.Image.prototype.makeShaderOptions=function(g,_,E,N,L){return L=J(L),this._makeShaderOptions(g,_,E,N,L)},i.Image.prototype.readPixels=function(g,_,E,N,L){var H=i.Se();return h(this,g,_,E,N,L,H)},i.Canvas.prototype.clear=function(g){i.Od(this.Md),g=k(g),this._clear(g)},i.Canvas.prototype.clipRRect=function(g,_,E){i.Od(this.Md),g=yt(g),this._clipRRect(g,_,E)},i.Canvas.prototype.clipRect=function(g,_,E){i.Od(this.Md),g=Ee(g),this._clipRect(g,_,E)},i.Canvas.prototype.concat=function(g){i.Od(this.Md),g=ie(g),this._concat(g)},i.Canvas.prototype.drawArc=function(g,_,E,N,L){i.Od(this.Md),g=Ee(g),this._drawArc(g,_,E,N,L)},i.Canvas.prototype.drawAtlas=function(g,_,E,N,L,H,te){if(g&&N&&_&&E&&_.length===E.length){i.Od(this.Md),L||(L=i.BlendMode.SrcOver);var ye=F(_,"HEAPF32"),de=F(E,"HEAPF32"),Oe=E.length/4,O=F(x(H),"HEAPU32");if(te&&"B"in te&&"C"in te)this._drawAtlasCubic(g,de,ye,O,Oe,L,te.B,te.C,N);else{let q=i.FilterMode.Linear,ve=i.MipmapMode.None;te&&(q=te.filter,"mipmap"in te&&(ve=te.mipmap)),this._drawAtlasOptions(g,de,ye,O,Oe,L,q,ve,N)}R(ye,_),R(de,E),R(O,H)}},i.Canvas.prototype.drawCircle=function(g,_,E,N){i.Od(this.Md),this._drawCircle(g,_,E,N)},i.Canvas.prototype.drawColor=function(g,_){i.Od(this.Md),g=k(g),_!==void 0?this._drawColor(g,_):this._drawColor(g)},i.Canvas.prototype.drawColorInt=function(g,_){i.Od(this.Md),this._drawColorInt(g,_||i.BlendMode.SrcOver)},i.Canvas.prototype.drawColorComponents=function(g,_,E,N,L){i.Od(this.Md),g=ge(g,_,E,N),L!==void 0?this._drawColor(g,L):this._drawColor(g)},i.Canvas.prototype.drawDRRect=function(g,_,E){i.Od(this.Md),g=yt(g,Ms),_=yt(_,ou),this._drawDRRect(g,_,E)},i.Canvas.prototype.drawImage=function(g,_,E,N){i.Od(this.Md),this._drawImage(g,_,E,N||null)},i.Canvas.prototype.drawImageCubic=function(g,_,E,N,L,H){i.Od(this.Md),this._drawImageCubic(g,_,E,N,L,H||null)},i.Canvas.prototype.drawImageOptions=function(g,_,E,N,L,H){i.Od(this.Md),this._drawImageOptions(g,_,E,N,L,H||null)},i.Canvas.prototype.drawImageNine=function(g,_,E,N,L){i.Od(this.Md),_=F(_,"HEAP32",Hn),E=Ee(E),this._drawImageNine(g,_,E,N,L||null)},i.Canvas.prototype.drawImageRect=function(g,_,E,N,L){i.Od(this.Md),Ee(_,st),Ee(E,hr),this._drawImageRect(g,st,hr,N,!!L)},i.Canvas.prototype.drawImageRectCubic=function(g,_,E,N,L,H){i.Od(this.Md),Ee(_,st),Ee(E,hr),this._drawImageRectCubic(g,st,hr,N,L,H||null)},i.Canvas.prototype.drawImageRectOptions=function(g,_,E,N,L,H){i.Od(this.Md),Ee(_,st),Ee(E,hr),this._drawImageRectOptions(g,st,hr,N,L,H||null)},i.Canvas.prototype.drawLine=function(g,_,E,N,L){i.Od(this.Md),this._drawLine(g,_,E,N,L)},i.Canvas.prototype.drawOval=function(g,_){i.Od(this.Md),g=Ee(g),this._drawOval(g,_)},i.Canvas.prototype.drawPaint=function(g){i.Od(this.Md),this._drawPaint(g)},i.Canvas.prototype.drawParagraph=function(g,_,E){i.Od(this.Md),this._drawParagraph(g,_,E)},i.Canvas.prototype.drawPatch=function(g,_,E,N,L){if(24>g.length)throw"Need 12 cubic points";if(_&&4>_.length)throw"Need 4 colors";if(E&&8>E.length)throw"Need 4 shader coordinates";i.Od(this.Md);let H=F(g,"HEAPF32"),te=_?F(x(_),"HEAPU32"):je,ye=E?F(E,"HEAPF32"):je;N||(N=i.BlendMode.Modulate),this._drawPatch(H,te,ye,N,L),R(ye,E),R(te,_),R(H,g)},i.Canvas.prototype.drawPath=function(g,_){i.Od(this.Md),this._drawPath(g,_)},i.Canvas.prototype.drawPicture=function(g){i.Od(this.Md),this._drawPicture(g)},i.Canvas.prototype.drawPoints=function(g,_,E){i.Od(this.Md);var N=F(_,"HEAPF32");this._drawPoints(g,N,_.length/2,E),R(N,_)},i.Canvas.prototype.drawRRect=function(g,_){i.Od(this.Md),g=yt(g),this._drawRRect(g,_)},i.Canvas.prototype.drawRect=function(g,_){i.Od(this.Md),g=Ee(g),this._drawRect(g,_)},i.Canvas.prototype.drawRect4f=function(g,_,E,N,L){i.Od(this.Md),this._drawRect4f(g,_,E,N,L)},i.Canvas.prototype.drawShadow=function(g,_,E,N,L,H,te){i.Od(this.Md);var ye=F(L,"HEAPF32"),de=F(H,"HEAPF32");_=F(_,"HEAPF32",xs),E=F(E,"HEAPF32",As),this._drawShadow(g,_,E,N,ye,de,te),R(ye,L),R(de,H)},i.getShadowLocalBounds=function(g,_,E,N,L,H,te){return g=J(g),E=F(E,"HEAPF32",xs),N=F(N,"HEAPF32",As),this._getShadowLocalBounds(g,_,E,N,L,H,st)?(_=Xt.toTypedArray(),te?(te.set(_),te):_.slice()):null},i.Canvas.prototype.drawTextBlob=function(g,_,E,N){i.Od(this.Md),this._drawTextBlob(g,_,E,N)},i.Canvas.prototype.drawVertices=function(g,_,E){i.Od(this.Md),this._drawVertices(g,_,E)},i.Canvas.prototype.getDeviceClipBounds=function(g){this._getDeviceClipBounds(Hn);var _=Is.toTypedArray();return g?g.set(_):g=_.slice(),g},i.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Gr);for(var g=Gr,_=Array(16),E=0;16>E;E++)_[E]=i.HEAPF32[g/4+E];return _},i.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(dr);for(var g=Array(9),_=0;9>_;_++)g[_]=i.HEAPF32[dr/4+_];return g},i.Canvas.prototype.makeSurface=function(g){return g=this._makeSurface(g),g.Md=this.Md,g},i.Canvas.prototype.readPixels=function(g,_,E,N,L){return i.Od(this.Md),h(this,g,_,E,N,L)},i.Canvas.prototype.saveLayer=function(g,_,E,N){return _=Ee(_),this._saveLayer(g||null,_,E||null,N||0)},i.Canvas.prototype.writePixels=function(g,_,E,N,L,H,te,ye){if(g.byteLength%(_*E))throw"pixels length must be a multiple of the srcWidth * srcHeight";i.Od(this.Md);var de=g.byteLength/(_*E);H=H||i.AlphaType.Unpremul,te=te||i.ColorType.RGBA_8888,ye=ye||i.ColorSpace.SRGB;var Oe=de*_;return de=F(g,"HEAPU8"),_=this._writePixels({width:_,height:E,colorType:te,alphaType:H,colorSpace:ye},de,Oe,N,L),R(de,g),_},i.ColorFilter.MakeBlend=function(g,_,E){return g=k(g),E=E||i.ColorSpace.SRGB,i.ColorFilter._MakeBlend(g,_,E)},i.ColorFilter.MakeMatrix=function(g){if(!g||g.length!==20)throw"invalid color matrix";var _=F(g,"HEAPF32"),E=i.ColorFilter._makeMatrix(_);return R(_,g),E},i.ContourMeasure.prototype.getPosTan=function(g,_){return this._getPosTan(g,st),g=Xt.toTypedArray(),_?(_.set(g),_):g.slice()},i.ImageFilter.MakeDropShadow=function(g,_,E,N,L,H){return L=k(L,jr),i.ImageFilter._MakeDropShadow(g,_,E,N,L,H)},i.ImageFilter.MakeDropShadowOnly=function(g,_,E,N,L,H){return L=k(L,jr),i.ImageFilter._MakeDropShadowOnly(g,_,E,N,L,H)},i.ImageFilter.MakeImage=function(g,_,E,N){if(E=Ee(E,st),N=Ee(N,hr),"B"in _&&"C"in _)return i.ImageFilter._MakeImageCubic(g,_.B,_.C,E,N);let L=_.filter,H=i.MipmapMode.None;return"mipmap"in _&&(H=_.mipmap),i.ImageFilter._MakeImageOptions(g,L,H,E,N)},i.ImageFilter.MakeMatrixTransform=function(g,_,E){if(g=J(g),"B"in _&&"C"in _)return i.ImageFilter._MakeMatrixTransformCubic(g,_.B,_.C,E);let N=_.filter,L=i.MipmapMode.None;return"mipmap"in _&&(L=_.mipmap),i.ImageFilter._MakeMatrixTransformOptions(g,N,L,E)},i.Paint.prototype.getColor=function(){return this._getColor(jr),we(jr)},i.Paint.prototype.setColor=function(g,_){_=_||null,g=k(g),this._setColor(g,_)},i.Paint.prototype.setColorComponents=function(g,_,E,N,L){L=L||null,g=ge(g,_,E,N),this._setColor(g,L)},i.Path.prototype.getPoint=function(g,_){return this._getPoint(g,st),g=Xt.toTypedArray(),_?(_[0]=g[0],_[1]=g[1],_):g.slice(0,2)},i.Picture.prototype.makeShader=function(g,_,E,N,L){return N=J(N),L=Ee(L),this._makeShader(g,_,E,N,L)},i.PictureRecorder.prototype.beginRecording=function(g){return g=Ee(g),this._beginRecording(g)},i.Surface.prototype.getCanvas=function(){var g=this._getCanvas();return g.Md=this.Md,g},i.Surface.prototype.makeImageSnapshot=function(g){return i.Od(this.Md),g=F(g,"HEAP32",Hn),this._makeImageSnapshot(g)},i.Surface.prototype.makeSurface=function(g){return i.Od(this.Md),g=this._makeSurface(g),g.Md=this.Md,g},i.Surface.prototype.Df=function(g,_){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_)}.bind(this))},i.Surface.prototype.requestAnimationFrame||(i.Surface.prototype.requestAnimationFrame=i.Surface.prototype.Df),i.Surface.prototype.zf=function(g,_){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_),this.dispose()}.bind(this))},i.Surface.prototype.drawOnce||(i.Surface.prototype.drawOnce=i.Surface.prototype.zf),i.PathEffect.MakeDash=function(g,_){if(_||(_=0),!g.length||g.length%2===1)throw"Intervals array must have even length";var E=F(g,"HEAPF32");return _=i.PathEffect._MakeDash(E,g.length,_),R(E,g),_},i.PathEffect.MakeLine2D=function(g,_){return _=J(_),i.PathEffect._MakeLine2D(g,_)},i.PathEffect.MakePath2D=function(g,_){return g=J(g),i.PathEffect._MakePath2D(g,_)},i.Shader.MakeColor=function(g,_){return _=_||null,g=k(g),i.Shader._MakeColor(g,_)},i.Shader.Blend=i.Shader.MakeBlend,i.Shader.Color=i.Shader.MakeColor,i.Shader.MakeLinearGradient=function(g,_,E,N,L,H,te,ye){ye=ye||null;var de=Z(E),Oe=F(N,"HEAPF32");te=te||0,H=J(H);var O=Xt.toTypedArray();return O.set(g),O.set(_,2),g=i.Shader._MakeLinearGradient(st,de.ce,de.colorType,Oe,de.count,L,te,H,ye),R(de.ce,E),N&&R(Oe,N),g},i.Shader.MakeRadialGradient=function(g,_,E,N,L,H,te,ye){ye=ye||null;var de=Z(E),Oe=F(N,"HEAPF32");return te=te||0,H=J(H),g=i.Shader._MakeRadialGradient(g[0],g[1],_,de.ce,de.colorType,Oe,de.count,L,te,H,ye),R(de.ce,E),N&&R(Oe,N),g},i.Shader.MakeSweepGradient=function(g,_,E,N,L,H,te,ye,de,Oe){Oe=Oe||null;var O=Z(E),q=F(N,"HEAPF32");return te=te||0,ye=ye||0,de=de||360,H=J(H),g=i.Shader._MakeSweepGradient(g,_,O.ce,O.colorType,q,O.count,L,ye,de,te,H,Oe),R(O.ce,E),N&&R(q,N),g},i.Shader.MakeTwoPointConicalGradient=function(g,_,E,N,L,H,te,ye,de,Oe){Oe=Oe||null;var O=Z(L),q=F(H,"HEAPF32");de=de||0,ye=J(ye);var ve=Xt.toTypedArray();return ve.set(g),ve.set(E,2),g=i.Shader._MakeTwoPointConicalGradient(st,_,N,O.ce,O.colorType,q,O.count,te,de,ye,Oe),R(O.ce,L),H&&R(q,H),g},i.Vertices.prototype.bounds=function(g){this._bounds(st);var _=Xt.toTypedArray();return g?(g.set(_),g):_.slice()},i.Vd&&i.Vd.forEach(function(g){g()})},i.computeTonalColors=function(h){var g=F(h.ambient,"HEAPF32"),_=F(h.spot,"HEAPF32");this._computeTonalColors(g,_);var E={ambient:we(g),spot:we(_)};return R(g,h.ambient),R(_,h.spot),E},i.LTRBRect=function(h,g,_,E){return Float32Array.of(h,g,_,E)},i.XYWHRect=function(h,g,_,E){return Float32Array.of(h,g,h+_,g+E)},i.LTRBiRect=function(h,g,_,E){return Int32Array.of(h,g,_,E)},i.XYWHiRect=function(h,g,_,E){return Int32Array.of(h,g,h+_,g+E)},i.RRectXY=function(h,g,_){return Float32Array.of(h[0],h[1],h[2],h[3],g,_,g,_,g,_,g,_)},i.MakeAnimatedImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeAnimatedImage(g,h.byteLength))?h:null},i.MakeImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeImage(g,h.byteLength))?h:null};var Lo=null;i.MakeImageFromCanvasImageSource=function(h){var g=h.width,_=h.height;Lo||(Lo=document.createElement("canvas")),Lo.width=g,Lo.height=_;var E=Lo.getContext("2d",{wg:!0});return E.drawImage(h,0,0),h=E.getImageData(0,0,g,_),i.MakeImage({width:g,height:_,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},h.data,4*g)},i.MakeImage=function(h,g,_){var E=i._malloc(g.length);return i.HEAPU8.set(g,E),i._MakeImage(h,E,g.length,_)},i.MakeVertices=function(h,g,_,E,N,L){var H=N&&N.length||0,te=0;return _&&_.length&&(te|=1),E&&E.length&&(te|=2),L===void 0||L||(te|=4),h=new i._VerticesBuilder(h,g.length/2,H,te),F(g,"HEAPF32",h.positions()),h.texCoords()&&F(_,"HEAPF32",h.texCoords()),h.colors()&&F(x(E),"HEAPU32",h.colors()),h.indices()&&F(N,"HEAPU16",h.indices()),h.detach()},i.Matrix={},i.Matrix.identity=function(){return p(3)},i.Matrix.invert=function(h){var g=h[0]*h[4]*h[8]+h[1]*h[5]*h[6]+h[2]*h[3]*h[7]-h[2]*h[4]*h[6]-h[1]*h[3]*h[8]-h[0]*h[5]*h[7];return g?[(h[4]*h[8]-h[5]*h[7])/g,(h[2]*h[7]-h[1]*h[8])/g,(h[1]*h[5]-h[2]*h[4])/g,(h[5]*h[6]-h[3]*h[8])/g,(h[0]*h[8]-h[2]*h[6])/g,(h[2]*h[3]-h[0]*h[5])/g,(h[3]*h[7]-h[4]*h[6])/g,(h[1]*h[6]-h[0]*h[7])/g,(h[0]*h[4]-h[1]*h[3])/g]:null},i.Matrix.mapPoints=function(h,g){for(var _=0;_N;N+=5){for(var L=0;4>L;L++)_[E++]=h[N]*g[L]+h[N+1]*g[L+5]+h[N+2]*g[L+10]+h[N+3]*g[L+15];_[E++]=h[N]*g[4]+h[N+1]*g[9]+h[N+2]*g[14]+h[N+3]*g[19]+h[N+4]}return _},function(h){h.Vd=h.Vd||[],h.Vd.push(function(){function g(O){if(!O||!O.length)return[];for(var q=[],ve=0;veg?(i._free(h),null):(N=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(N),i._free(h),_):(_=Uint16Array.from(N),i._free(h),_))},i.Font.prototype.getGlyphIntercepts=function(h,g,_,E){var N=F(h,"HEAPU16"),L=F(g,"HEAPF32");return this._getGlyphIntercepts(N,h.length,!(h&&h._ck),L,g.length,!(g&&g._ck),_,E)},i.Font.prototype.getGlyphWidths=function(h,g,_){var E=F(h,"HEAPU16"),N=i._malloc(4*h.length);return this._getGlyphWidthBounds(E,h.length,N,je,g||null),g=new Float32Array(i.HEAPU8.buffer,N,h.length),R(E,h),_?(_.set(g),i._free(N),_):(h=Float32Array.from(g),i._free(N),h)},i.FontMgr.FromData=function(){if(!arguments.length)return null;var h=arguments;if(h.length===1&&Array.isArray(h[0])&&(h=arguments[0]),!h.length)return null;for(var g=[],_=[],E=0;Eg?(i._free(h),null):(N=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(N),i._free(h),_):(_=Uint16Array.from(N),i._free(h),_))},i.TextBlob.MakeOnPath=function(h,g,_,E){if(h&&h.length&&g&&g.countPoints()){if(g.countPoints()===1)return this.MakeFromText(h,_);E||(E=0);var N=_.getGlyphIDs(h);N=_.getGlyphWidths(N);var L=[];g=new i.ContourMeasureIter(g,!1,1);for(var H=g.next(),te=new Float32Array(4),ye=0;yeH.length()){if(H.delete(),H=g.next(),!H){h=h.substring(0,ye);break}E=de/2}H.getPosTan(E,te);var Oe=te[2],O=te[3];L.push(Oe,O,te[0]-de/2*Oe,te[1]-de/2*O),E+=de/2}return h=this.MakeFromRSXform(h,L,_),H&&H.delete(),g.delete(),h}},i.TextBlob.MakeFromRSXform=function(h,g,_){var E=Ye(h)+1,N=i._malloc(E);return Ue(h,xe,N,E),h=F(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXform(N,E-1,h,_),i._free(N),_||null},i.TextBlob.MakeFromRSXformGlyphs=function(h,g,_){var E=F(h,"HEAPU16");return g=F(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXformGlyphs(E,2*h.length,g,_),R(E,h),_||null},i.TextBlob.MakeFromGlyphs=function(h,g){var _=F(h,"HEAPU16");return g=i.TextBlob._MakeFromGlyphs(_,2*h.length,g),R(_,h),g||null},i.TextBlob.MakeFromText=function(h,g){var _=Ye(h)+1,E=i._malloc(_);return Ue(h,xe,E,_),h=i.TextBlob._MakeFromText(E,_-1,g),i._free(E),h||null},i.MallocGlyphIDs=function(h){return i.Malloc(Uint16Array,h)}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.MakePicture=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._MakePicture(g,h.byteLength))?h:null}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.RuntimeEffect.Make=function(h,g){return i.RuntimeEffect._Make(h,{onError:g||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.prototype.makeShader=function(h,g){var _=!h._ck,E=F(h,"HEAPF32");return g=J(g),this._makeShader(E,4*h.length,_,g)},i.RuntimeEffect.prototype.makeShaderWithChildren=function(h,g,_){var E=!h._ck,N=F(h,"HEAPF32");_=J(_);for(var L=[],H=0;Hw||1=w||!w||(this.Ke=w,this.Qd.setStrokeWidth(w))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(w){0>=w||!w||this.Qd.setStrokeMiter(w)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(w){0>w||!isFinite(w)||(this.we=w)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return g(this.Je)},set:function(w){this.Je=_(w)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(w){isFinite(w)&&(this.xe=w)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(w){isFinite(w)&&(this.ye=w)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return g(this.he)},set:function(w){typeof w=="string"?this.he=_(w):w.ue&&(this.he=w)}}),this.arc=function(w,j,z,V,Y,X){q(this.Sd,w,j,z,z,0,V,Y,X)},this.arcTo=function(w,j,z,V,Y){de(this.Sd,w,j,z,V,Y)},this.beginPath=function(){this.Sd.delete(),this.Sd=new i.Path},this.bezierCurveTo=function(w,j,z,V,Y,X){var se=this.Sd;h([w,j,z,V,Y,X])&&(se.isEmpty()&&se.moveTo(w,j),se.cubicTo(w,j,z,V,Y,X))},this.clearRect=function(w,j,z,V){this.Qd.setStyle(i.PaintStyle.Fill),this.Qd.setBlendMode(i.BlendMode.Clear),this.Nd.drawRect(i.XYWHRect(w,j,z,V),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(w,j){typeof w=="string"?(j=w,w=this.Sd):w&&w.$e&&(w=w.Wd),w||(w=this.Sd),w=w.copy(),j&&j.toLowerCase()==="evenodd"?w.setFillType(i.FillType.EvenOdd):w.setFillType(i.FillType.Winding),this.Nd.clipPath(w,i.ClipOp.Intersect,!0),w.delete()},this.closePath=function(){Oe(this.Sd)},this.createImageData=function(){if(arguments.length===1){var w=arguments[0];return new te(new Uint8ClampedArray(4*w.width*w.height),w.width,w.height)}if(arguments.length===2){w=arguments[0];var j=arguments[1];return new te(new Uint8ClampedArray(4*w*j),w,j)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(w,j,z,V){if(h(arguments)){var Y=new ye(w,j,z,V);return this.Ce.push(Y),Y}},this.createPattern=function(w,j){return w=new et(w,j),this.Ce.push(w),w},this.createRadialGradient=function(w,j,z,V,Y,X){if(h(arguments)){var se=new St(w,j,z,V,Y,X);return this.Ce.push(se),se}},this.drawImage=function(w){w instanceof H&&(w=w.tf());var j=this.Pe();if(arguments.length===3||arguments.length===5)var z=i.XYWHRect(arguments[1],arguments[2],arguments[3]||w.width(),arguments[4]||w.height()),V=i.XYWHRect(0,0,w.width(),w.height());else if(arguments.length===9)z=i.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),V=i.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(w,V,z,j,!1),j.dispose()},this.ellipse=function(w,j,z,V,Y,X,se,Ve){q(this.Sd,w,j,z,V,Y,X,se,Ve)},this.Pe=function(){var w=this.Qd.copy();if(w.setStyle(i.PaintStyle.Fill),y(this.be)){var j=i.multiplyByAlpha(this.be,this.ke);w.setColor(j)}else j=this.be.ue(this.Ud),w.setColor(i.Color(0,0,0,this.ke)),w.setShader(j);return w.dispose=function(){this.delete()},w},this.fill=function(w,j){if(typeof w=="string"?(j=w,w=this.Sd):w&&w.$e&&(w=w.Wd),j==="evenodd")this.Sd.setFillType(i.FillType.EvenOdd);else{if(j!=="nonzero"&&j)throw"invalid fill rule";this.Sd.setFillType(i.FillType.Winding)}w||(w=this.Sd),j=this.Pe();var z=this.ze(j);z&&(this.Nd.save(),this.se(),this.Nd.drawPath(w,z),this.Nd.restore(),z.dispose()),this.Nd.drawPath(w,j),j.dispose()},this.fillRect=function(w,j,z,V){var Y=this.Pe(),X=this.ze(Y);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(w,j,z,V),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(i.XYWHRect(w,j,z,V),Y),Y.dispose()},this.fillText=function(w,j,z){var V=this.Pe();w=i.TextBlob.MakeFromText(w,this.ne);var Y=this.ze(V);Y&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(w,j,z,Y),this.Nd.restore(),Y.dispose()),this.Nd.drawTextBlob(w,j,z,V),w.delete(),V.dispose()},this.getImageData=function(w,j,z,V){return(w=this.Nd.readPixels(w,j,{width:z,height:V,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB}))?new te(new Uint8ClampedArray(w.buffer),z,V):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(w){var j=i.Matrix.invert(this.Ud);return i.Matrix.mapPoints(j,w),w},this.isPointInPath=function(w,j,z){var V=arguments;if(V.length===3)var Y=this.Sd;else if(V.length===4)Y=V[0],w=V[1],j=V[2],z=V[3];else throw"invalid arg count, need 3 or 4, got "+V.length;return!isFinite(w)||!isFinite(j)||(z=z||"nonzero",z!=="nonzero"&&z!=="evenodd")?!1:(V=this.nf([w,j]),w=V[0],j=V[1],Y.setFillType(z==="nonzero"?i.FillType.Winding:i.FillType.EvenOdd),Y.contains(w,j))},this.isPointInStroke=function(w,j){var z=arguments;if(z.length===2)var V=this.Sd;else if(z.length===3)V=z[0],w=z[1],j=z[2];else throw"invalid arg count, need 2 or 3, got "+z.length;return!isFinite(w)||!isFinite(j)?!1:(z=this.nf([w,j]),w=z[0],j=z[1],V=V.copy(),V.setFillType(i.FillType.Winding),V.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),z=V.contains(w,j),V.delete(),z)},this.lineTo=function(w,j){ve(this.Sd,w,j)},this.measureText=function(w){w=this.ne.getGlyphIDs(w),w=this.ne.getGlyphWidths(w);let j=0;for(let z of w)j+=z;return{width:j}},this.moveTo=function(w,j){var z=this.Sd;h([w,j])&&z.moveTo(w,j)},this.putImageData=function(w,j,z,V,Y,X,se){if(h([j,z,V,Y,X,se])){if(V===void 0)this.Nd.writePixels(w.data,w.width,w.height,j,z);else if(V=V||0,Y=Y||0,X=X||w.width,se=se||w.height,0>X&&(V+=X,X=Math.abs(X)),0>se&&(Y+=se,se=Math.abs(se)),0>V&&(X+=V,V=0),0>Y&&(se+=Y,Y=0),!(0>=X||0>=se)){w=i.MakeImage({width:w.width,height:w.height,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},w.data,4*w.width);var Ve=i.XYWHRect(V,Y,X,se);j=i.XYWHRect(j+V,z+Y,X,se),z=i.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(z),this.Nd.drawImageRect(w,Ve,j,null,!1),this.Nd.restore(),w.delete()}}},this.quadraticCurveTo=function(w,j,z,V){var Y=this.Sd;h([w,j,z,V])&&(Y.isEmpty()&&Y.moveTo(w,j),Y.quadTo(w,j,z,V))},this.rect=function(w,j,z,V){var Y=this.Sd;w=i.XYWHRect(w,j,z,V),h(w)&&Y.addRect(w)},this.resetTransform=function(){this.Sd.transform(this.Ud);var w=i.Matrix.invert(this.Ud);this.Nd.concat(w),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var w=this.mf.pop();if(w){var j=i.Matrix.multiply(this.Ud,i.Matrix.invert(w.Gf));this.Sd.transform(j),this.Qd.delete(),this.Qd=w.$f,this.ve=w.Yf,this.Ke=w.mg,this.he=w.lg,this.be=w.fs,this.xe=w.jg,this.ye=w.kg,this.we=w.dg,this.Je=w.ig,this.ke=w.Nf,this.Pd=w.Of,this.Ie=w.Zf,this.Qe=w.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(w){if(isFinite(w)){var j=i.Matrix.rotated(-w);this.Sd.transform(j),this.Nd.rotate(w/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var w=this.be.te();this.Ce.push(w)}else w=this.be;if(this.he.te){var j=this.he.te();this.Ce.push(j)}else j=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:j,fs:w,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(w,j){if(h(arguments)){var z=i.Matrix.scaled(1/w,1/j);this.Sd.transform(z),this.Nd.scale(w,j),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(w){for(var j=0;jw[j])return;w.length%2===1&&Array.prototype.push.apply(w,w),this.ve=w},this.setTransform=function(w,j,z,V,Y,X){h(arguments)&&(this.resetTransform(),this.transform(w,j,z,V,Y,X))},this.se=function(){var w=i.Matrix.invert(this.Ud);this.Nd.concat(w),this.Nd.concat(i.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(w){var j=i.multiplyByAlpha(this.Je,this.ke);if(!i.getColorComponents(j)[3]||!(this.we||this.ye||this.xe))return null;w=w.copy(),w.setColor(j);var z=i.MaskFilter.MakeBlur(i.BlurStyle.Normal,this.we/2,!1);return w.setMaskFilter(z),w.dispose=function(){z.delete(),this.delete()},w},this.bf=function(){var w=this.Qd.copy();if(w.setStyle(i.PaintStyle.Stroke),y(this.he)){var j=i.multiplyByAlpha(this.he,this.ke);w.setColor(j)}else j=this.he.ue(this.Ud),w.setColor(i.Color(0,0,0,this.ke)),w.setShader(j);if(w.setStrokeWidth(this.Ke),this.ve.length){var z=i.PathEffect.MakeDash(this.ve,this.Ie);w.setPathEffect(z)}return w.dispose=function(){z&&z.delete(),this.delete()},w},this.stroke=function(w){w=w?w.Wd:this.Sd;var j=this.bf(),z=this.ze(j);z&&(this.Nd.save(),this.se(),this.Nd.drawPath(w,z),this.Nd.restore(),z.dispose()),this.Nd.drawPath(w,j),j.dispose()},this.strokeRect=function(w,j,z,V){var Y=this.bf(),X=this.ze(Y);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(w,j,z,V),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(i.XYWHRect(w,j,z,V),Y),Y.dispose()},this.strokeText=function(w,j,z){var V=this.bf();w=i.TextBlob.MakeFromText(w,this.ne);var Y=this.ze(V);Y&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(w,j,z,Y),this.Nd.restore(),Y.dispose()),this.Nd.drawTextBlob(w,j,z,V),w.delete(),V.dispose()},this.translate=function(w,j){if(h(arguments)){var z=i.Matrix.translated(-w,-j);this.Sd.transform(z),this.Nd.translate(w,j),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(w,j,z,V,Y,X){w=[w,z,Y,j,V,X,0,0,1],j=i.Matrix.invert(w),this.Sd.transform(j),this.Nd.concat(w),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 L(Q){this.cf=Q,this.Md=new N(Q.getCanvas()),this.Re=[],this.decodeImage=function(w){if(w=i.MakeImageFromEncoded(w),!w)throw"Invalid input";return this.Re.push(w),new H(w)},this.loadFont=function(w,j){if(w=i.Typeface.MakeFreeTypeFaceFromData(w),!w)return null;this.Re.push(w);var z=(j.style||"normal")+"|"+(j.variant||"normal")+"|"+(j.weight||"normal");j=j.family,qe[j]||(qe[j]={"*":w}),qe[j][z]=w},this.makePath2D=function(w){return w=new Be(w),this.Re.push(w.Wd),w},this.getContext=function(w){return w==="2d"?this.Md:null},this.toDataURL=function(w,j){this.cf.flush();var z=this.cf.makeImageSnapshot();if(z){w=w||"image/png";var V=i.ImageFormat.PNG;if(w==="image/jpeg"&&(V=i.ImageFormat.JPEG),j=z.encodeToBytes(V,j||.92)){if(z.delete(),w="data:"+w+";base64,",typeof Buffer<"u")j=Buffer.from(j).toString("base64");else{z=0,V=j.length;for(var Y="",X;zV||1V);X++);this.ae.splice(X,0,V),this.de.splice(X,0,Y)}},this.te=function(){var V=new ye(Q,w,j,z);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 Y=[Q,w,j,z];i.Matrix.mapPoints(V,Y),V=Y[0];var X=Y[1],se=Y[2];return Y=Y[3],this.me(),this.Yd=i.Shader.MakeLinearGradient([V,X],[se,Y],this.de,this.ae,i.TileMode.Clamp)}}function de(Q,w,j,z,V,Y){if(h([w,j,z,V,Y])){if(0>Y)throw"radii cannot be negative";Q.isEmpty()&&Q.moveTo(w,j),Q.arcToTangent(w,j,z,V,Y)}}function Oe(Q){if(!Q.isEmpty()){var w=Q.getBounds();(w[3]-w[1]||w[2]-w[0])&&Q.close()}}function O(Q,w,j,z,V,Y,X){X=(X-Y)/Math.PI*180,Y=Y/Math.PI*180,w=i.LTRBRect(w-z,j-V,w+z,j+V),1e-5>Math.abs(Math.abs(X)-360)?(j=X/2,Q.arcToOval(w,Y,j,!1),Q.arcToOval(w,Y+j,j,!1)):Q.arcToOval(w,Y,X,!1)}function q(Q,w,j,z,V,Y,X,se,Ve){if(h([w,j,z,V,Y,X,se])){if(0>z||0>V)throw"radii cannot be negative";var He=2*Math.PI,Qt=X%He;0>Qt&&(Qt+=He);var Bo=Qt-X;X=Qt,se+=Bo,!Ve&&se-X>=He?se=X+He:Ve&&X-se>=He?se=X-He:!Ve&&X>se?se=X+(He-(X-se)%He):Ve&&XX||1X);Ve++);this.ae.splice(Ve,0,X),this.de.splice(Ve,0,se)}},this.te=function(){var X=new St(Q,w,j,z,V,Y);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 se=[Q,w,z,V];i.Matrix.mapPoints(X,se);var Ve=se[0],He=se[1],Qt=se[2];se=se[3];var Bo=(Math.abs(X[0])+Math.abs(X[4]))/2;return X=j*Bo,Bo*=Y,this.me(),this.Yd=i.Shader.MakeTwoPointConicalGradient([Ve,He],X,[Qt,se],Bo,this.de,this.ae,i.TileMode.Clamp)}}i._testing={};var Ct={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)};i._testing.parseColor=_,i._testing.colorToString=g;var Wt=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)(.+)"),qe={"Noto Mono":{"*":null},monospace:{"*":null}};i._testing.parseFontString=E,i.MakeCanvas=function(Q,w){return(Q=i.MakeSurface(Q,w))?new L(Q):null},i.ImageData=function(){if(arguments.length===2){var Q=arguments[0],w=arguments[1];return new te(new Uint8ClampedArray(4*Q*w),Q,w)}if(arguments.length===3){var j=arguments[0];if(j.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(Q=arguments[1],w=arguments[2],j%4)throw"bytes must be given in a multiple of 4";if(j%Q)throw"bytes must divide evenly by width";if(w&&w!==j/(4*Q))throw"invalid height given";return new te(j,Q,j/(4*Q))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(o);var l=Object.assign({},o),m="./this.program",v=(i,u)=>{throw u},T=typeof window=="object",M=typeof importScripts=="function",U=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",I="",B,G,$,K,ne,re;U?(I=M?js("path").dirname(I)+"/":__dirname+"/",re=()=>{ne||(K=js("fs"),ne=js("path"))},B=function(i,u){return re(),i=ne.normalize(i),K.readFileSync(i,u?void 0:"utf8")},$=i=>(i=B(i,!0),i.buffer||(i=new Uint8Array(i)),i),G=(i,u,p)=>{re(),i=ne.normalize(i),K.readFile(i,function(y,S){y?p(y):u(S.buffer)})},1{if(Ie)throw process.exitCode=i,u;u instanceof Jl||oe("exiting due to exception: "+u),process.exit(i)},o.inspect=function(){return"[Emscripten Module object]"}):(T||M)&&(M?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),t&&(I=t),I.indexOf("blob:")!==0?I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1):I="",B=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.send(null),u.responseText},M&&($=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),G=(i,u,p)=>{var y=new XMLHttpRequest;y.open("GET",i,!0),y.responseType="arraybuffer",y.onload=()=>{y.status==200||y.status==0&&y.response?u(y.response):p()},y.onerror=p,y.send(null)});var ce=o.print||console.log.bind(console),oe=o.printErr||console.warn.bind(console);Object.assign(o,l),l=null,o.thisProgram&&(m=o.thisProgram),o.quit&&(v=o.quit);var fe=0,pe;o.wasmBinary&&(pe=o.wasmBinary);var Ie=o.noExitRuntime||!0;typeof WebAssembly!="object"&&xo("no native wasm support detected");var Ne,Qe=!1,le=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function _e(i,u,p){var y=u+p;for(p=u;i[p]&&!(p>=y);)++p;if(16S?y+=String.fromCharCode(S):(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else y+=String.fromCharCode(S)}return y}function ue(i,u){return i?_e(xe,i,u):""}function Ue(i,u,p,y){if(!(0=C){var A=i.charCodeAt(++x);C=65536+((C&1023)<<10)|A&1023}if(127>=C){if(p>=y)break;u[p++]=C}else{if(2047>=C){if(p+1>=y)break;u[p++]=192|C>>6}else{if(65535>=C){if(p+2>=y)break;u[p++]=224|C>>12}else{if(p+3>=y)break;u[p++]=240|C>>18,u[p++]=128|C>>12&63}u[p++]=128|C>>6&63}u[p++]=128|C&63}}return u[p]=0,p-S}function Ye(i){for(var u=0,p=0;p=y&&(y=65536+((y&1023)<<10)|i.charCodeAt(++p)&1023),127>=y?++u:u=2047>=y?u+2:65535>=y?u+3:u+4}return u}var ht=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function At(i,u){for(var p=i>>1,y=p+u/2;!(p>=y)&&It[p];)++p;if(p<<=1,32=u/2);++y){var S=Dt[i+2*y>>1];if(S==0)break;p+=String.fromCharCode(S)}return p}function nt(i,u,p){if(p===void 0&&(p=2147483647),2>p)return 0;p-=2;var y=u;p=p<2*i.length?p/2:i.length;for(var S=0;S>1]=i.charCodeAt(S),u+=2;return Dt[u>>1]=0,u-y}function zr(i){return 2*i.length}function Tn(i,u){for(var p=0,y="";!(p>=u/4);){var S=ee[i+4*p>>2];if(S==0)break;++p,65536<=S?(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023)):y+=String.fromCharCode(S)}return y}function Zt(i,u,p){if(p===void 0&&(p=2147483647),4>p)return 0;var y=u;p=y+p-4;for(var S=0;S=x){var C=i.charCodeAt(++S);x=65536+((x&1023)<<10)|C&1023}if(ee[u>>2]=x,u+=4,u+4>p)break}return ee[u>>2]=0,u-y}function os(i){for(var u=0,p=0;p=y&&++p,u+=4}return u}var vo,mt,xe,Dt,It,ee,De,me,bo;function xn(){var i=Ne.buffer;vo=i,o.HEAP8=mt=new Int8Array(i),o.HEAP16=Dt=new Int16Array(i),o.HEAP32=ee=new Int32Array(i),o.HEAPU8=xe=new Uint8Array(i),o.HEAPU16=It=new Uint16Array(i),o.HEAPU32=De=new Uint32Array(i),o.HEAPF32=me=new Float32Array(i),o.HEAPF64=bo=new Float64Array(i)}var So,wo=[],Eo=[],Sl=[];function xd(){var i=o.preRun.shift();wo.unshift(i)}var Tr=0,ns=null,To=null;function xo(i){throw o.onAbort&&o.onAbort(i),i="Aborted("+i+")",oe(i),Qe=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),s(i),i}function wl(){return Mt.startsWith("data:application/octet-stream;base64,")}var Mt;if(Mt="canvaskit.wasm",!wl()){var El=Mt;Mt=o.locateFile?o.locateFile(El,I):I+El}function Tl(){var i=Mt;try{if(i==Mt&&pe)return new Uint8Array(pe);if($)return $(i);throw"both async and sync fetching of the wasm failed"}catch(u){xo(u)}}function Ad(){if(!pe&&(T||M)){if(typeof fetch=="function"&&!Mt.startsWith("file://"))return fetch(Mt,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Mt+"'";return i.arrayBuffer()}).catch(function(){return Tl()});if(G)return new Promise(function(i,u){G(Mt,function(p){i(new Uint8Array(p))},u)})}return Promise.resolve().then(function(){return Tl()})}function is(i){for(;0>2])}var Wr={},xr={},In={};function xl(i){if(i===void 0)return"_unknown";i=i.replace(/[^a-zA-Z0-9_]/g,"$");var u=i.charCodeAt(0);return 48<=u&&57>=u?"_"+i:i}function as(i,u){return i=xl(i),function(){return u.apply(this,arguments)}}function ls(i){var u=Error,p=as(i,function(y){this.name=i,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+` -`+y.replace(/^Error(:[^\n]*)?\n/,""))});return p.prototype=Object.create(u.prototype),p.prototype.constructor=p,p.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},p}var Al=void 0;function Mn(i){throw new Al(i)}function Lt(i,u,p){function y(A){A=p(A),A.length!==i.length&&Mn("Mismatched type converter count");for(var R=0;R{xr.hasOwnProperty(A)?S[R]=xr[A]:(x.push(A),Wr.hasOwnProperty(A)||(Wr[A]=[]),Wr[A].push(()=>{S[R]=xr[A],++C,C===x.length&&y(S)}))}),x.length===0&&y(S)}function jn(i){switch(i){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+i)}}var Il=void 0;function Ke(i){for(var u="";xe[i];)u+=Il[xe[i++]];return u}var Vr=void 0;function Ce(i){throw new Vr(i)}function Yt(i,u,p={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=u.name;if(i||Ce('type "'+y+'" must have a positive integer typeid pointer'),xr.hasOwnProperty(i)){if(p.Vf)return;Ce("Cannot register type '"+y+"' twice")}xr[i]=u,delete In[i],Wr.hasOwnProperty(i)&&(u=Wr[i],delete Wr[i],u.forEach(S=>S()))}function us(i){Ce(i.Ld.Xd.Rd.name+" instance already deleted")}var gs=!1;function Ml(){}function jl(i){--i.count.value,i.count.value===0&&(i.$d?i.fe.le(i.$d):i.Xd.Rd.le(i.Td))}function Rl(i,u,p){return u===p?i:p.ie===void 0?null:(i=Rl(i,u,p.ie),i===null?null:p.Jf(i))}var Ol={},Io=[];function ps(){for(;Io.length;){var i=Io.pop();i.Ld.Fe=!1,i.delete()}}var Mo=void 0,jo={};function Id(i,u){for(u===void 0&&Ce("ptr should not be undefined");i.ie;)u=i.Oe(u),i=i.ie;return jo[u]}function Rn(i,u){return u.Xd&&u.Td||Mn("makeClassHandle requires ptr and ptrType"),!!u.fe!=!!u.$d&&Mn("Both smartPtrType and smartPtr must be specified"),u.count={value:1},Ro(Object.create(i,{Ld:{value:u}}))}function Ro(i){return typeof FinalizationRegistry>"u"?(Ro=u=>u,i):(gs=new FinalizationRegistry(u=>{jl(u.Ld)}),Ro=u=>{var p=u.Ld;return p.$d&&gs.register(u,{Ld:p},u),u},Ml=u=>{gs.unregister(u)},Ro(i))}function pr(){}function cs(i,u,p){if(i[u].Zd===void 0){var y=i[u];i[u]=function(){return i[u].Zd.hasOwnProperty(arguments.length)||Ce("Function '"+p+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+i[u].Zd+")!"),i[u].Zd[arguments.length].apply(this,arguments)},i[u].Zd=[],i[u].Zd[y.De]=y}}function fs(i,u,p){o.hasOwnProperty(i)?((p===void 0||o[i].Zd!==void 0&&o[i].Zd[p]!==void 0)&&Ce("Cannot register public name '"+i+"' twice"),cs(o,i,i),o.hasOwnProperty(p)&&Ce("Cannot register multiple overloads of a function with the same number of arguments ("+p+")!"),o[i].Zd[p]=u):(o[i]=u,p!==void 0&&(o[i].tg=p))}function Md(i,u,p,y,S,x,C,A){this.name=i,this.constructor=u,this.Ge=p,this.le=y,this.ie=S,this.Pf=x,this.Oe=C,this.Jf=A,this.bg=[]}function ds(i,u,p){for(;u!==p;)u.Oe||Ce("Expected null or instance of "+p.name+", got an instance of "+u.name),i=u.Oe(i),u=u.ie;return i}function jd(i,u){return u===null?(this.ff&&Ce("null is not a valid "+this.name),0):(u.Ld||Ce('Cannot pass "'+ys(u)+'" as a '+this.name),u.Ld.Td||Ce("Cannot pass deleted object as a pointer of type "+this.name),ds(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Rd(i,u){if(u===null){if(this.ff&&Ce("null is not a valid "+this.name),this.Ue){var p=this.gf();return i!==null&&i.push(this.le,p),p}return 0}if(u.Ld||Ce('Cannot pass "'+ys(u)+'" as a '+this.name),u.Ld.Td||Ce("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&u.Ld.Xd.Te&&Ce("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name),p=ds(u.Ld.Td,u.Ld.Xd.Rd,this.Rd),this.Ue)switch(u.Ld.$d===void 0&&Ce("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:u.Ld.fe===this?p=u.Ld.$d:Ce("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:p=u.Ld.$d;break;case 2:if(u.Ld.fe===this)p=u.Ld.$d;else{var y=u.clone();p=this.cg(p,Rt(function(){y.delete()})),i!==null&&i.push(this.le,p)}break;default:Ce("Unsupporting sharing policy")}return p}function Od(i,u){return u===null?(this.ff&&Ce("null is not a valid "+this.name),0):(u.Ld||Ce('Cannot pass "'+ys(u)+'" as a '+this.name),u.Ld.Td||Ce("Cannot pass deleted object as a pointer of type "+this.name),u.Ld.Xd.Te&&Ce("Cannot convert argument of type "+u.Ld.Xd.name+" to parameter type "+this.name),ds(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Kt(i,u,p,y,S,x,C,A,R,F,Z){this.name=i,this.Rd=u,this.ff=p,this.Te=y,this.Ue=S,this.ag=x,this.hg=C,this.vf=A,this.gf=R,this.cg=F,this.le=Z,S||u.ie!==void 0?this.toWireType=Rd:(this.toWireType=y?jd:Od,this.ee=null)}function Nl(i,u,p){o.hasOwnProperty(i)||Mn("Replacing nonexistant public symbol"),o[i].Zd!==void 0&&p!==void 0?o[i].Zd[p]=u:(o[i]=u,o[i].De=p)}function Nd(i,u){var p=[];return function(){if(p.length=0,Object.assign(p,arguments),i.includes("j")){var y=o["dynCall_"+i];y=p&&p.length?y.apply(null,[u].concat(p)):y.call(null,u)}else y=it(u).apply(null,p);return y}}function lt(i,u){i=Ke(i);var p=i.includes("j")?Nd(i,u):it(u);return typeof p!="function"&&Ce("unknown function pointer with signature "+i+": "+u),p}var Cl=void 0;function Fl(i){i=Kl(i);var u=Ke(i);return or(i),u}function Oo(i,u){function p(x){S[x]||xr[x]||(In[x]?In[x].forEach(p):(y.push(x),S[x]=!0))}var y=[],S={};throw u.forEach(p),new Cl(i+": "+y.map(Fl).join([", "]))}function On(i,u,p,y,S){var x=u.length;2>x&&Ce("argTypes array size mismatch! Must at least get return value and 'this' types!");var C=u[1]!==null&&p!==null,A=!1;for(p=1;p>2]);return p}var hs=[],Bt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ms(i){4(i||Ce("Cannot use deleted val. handle = "+i),Bt[i].value),Rt=i=>{switch(i){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var u=hs.length?hs.pop():Bt.length;return Bt[u]={hf:1,value:i},u}};function Cd(i,u,p){switch(u){case 0:return function(y){return this.fromWireType((p?mt:xe)[y])};case 1:return function(y){return this.fromWireType((p?Dt:It)[y>>1])};case 2:return function(y){return this.fromWireType((p?ee:De)[y>>2])};default:throw new TypeError("Unknown integer type: "+i)}}function No(i,u){var p=xr[i];return p===void 0&&Ce(u+" has unknown type "+Fl(i)),p}function ys(i){if(i===null)return"null";var u=typeof i;return u==="object"||u==="array"||u==="function"?i.toString():""+i}function Fd(i,u){switch(u){case 2:return function(p){return this.fromWireType(me[p>>2])};case 3:return function(p){return this.fromWireType(bo[p>>3])};default:throw new TypeError("Unknown float type: "+i)}}function Ud(i,u,p){switch(u){case 0:return p?function(y){return mt[y]}:function(y){return xe[y]};case 1:return p?function(y){return Dt[y>>1]}:function(y){return It[y>>1]};case 2:return p?function(y){return ee[y>>2]}:function(y){return De[y>>2]};default:throw new TypeError("Unknown integer type: "+i)}}var Pd={};function Cn(i){var u=Pd[i];return u===void 0?Ke(i):u}var Fn=[];function Ul(){function i(u){u.$$$embind_global$$$=u;var p=typeof $$$embind_global$$$=="object"&&u.$$$embind_global$$$==u;return p||delete u.$$$embind_global$$$,p}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&i(global)?$$$embind_global$$$=global:typeof self=="object"&&i(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function Dd(i){var u=Fn.length;return Fn.push(i),u}function Ld(i,u){for(var p=Array(i),y=0;y>2],"parameter "+y);return p}var Pl=[];function Bd(i){var u=Array(i+1);return function(p,y,S){u[0]=p;for(var x=0;x>2],"parameter "+x);u[x+1]=C.readValueFromPointer(S),S+=C.argPackAdvance}return p=new(p.bind.apply(p,u)),Rt(p)}}var Dl={},Ll;Ll=U?()=>{var i=process.hrtime();return 1e3*i[0]+i[1]/1e6}:()=>performance.now();function kd(i){var u=i.getExtension("ANGLE_instanced_arrays");u&&(i.vertexAttribDivisor=function(p,y){u.vertexAttribDivisorANGLE(p,y)},i.drawArraysInstanced=function(p,y,S,x){u.drawArraysInstancedANGLE(p,y,S,x)},i.drawElementsInstanced=function(p,y,S,x,C){u.drawElementsInstancedANGLE(p,y,S,x,C)})}function zd(i){var u=i.getExtension("OES_vertex_array_object");u&&(i.createVertexArray=function(){return u.createVertexArrayOES()},i.deleteVertexArray=function(p){u.deleteVertexArrayOES(p)},i.bindVertexArray=function(p){u.bindVertexArrayOES(p)},i.isVertexArray=function(p){return u.isVertexArrayOES(p)})}function Wd(i){var u=i.getExtension("WEBGL_draw_buffers");u&&(i.drawBuffers=function(p,y){u.drawBuffersWEBGL(p,y)})}var Bl=1,Un=[],kt=[],Pn=[],Co=[],Ot=[],zt=[],cr=[],Jt=[],Ar=[],Ir=[],kl={},zl={},Wl=4;function We(i){Dn||(Dn=i)}function Hr(i){for(var u=Bl++,p=i.length;p"u"||u.Kf)&&Gd(y),p}function Vl(i){return Se=Jt[i],o.rg=P=Se&&Se.ge,!(i&&!P)}function Gd(i){if(i||(i=Se),!i.Wf){i.Wf=!0;var u=i.ge;kd(u),zd(u),Wd(u),u.qf=u.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),u.uf=u.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=i.version&&(u.rf=u.getExtension("EXT_disjoint_timer_query_webgl2")),(2>i.version||!u.rf)&&(u.rf=u.getExtension("EXT_disjoint_timer_query")),u.sg=u.getExtension("WEBGL_multi_draw"),(u.getSupportedExtensions()||[]).forEach(function(p){p.includes("lose_context")||p.includes("debug")||u.getExtension(p)})}}var Se,Dn,Ln=[];function Mr(i,u,p,y){for(var S=0;S>2]=C}}function Hl(i,u,p){if(u){var y=void 0;switch(i){case 36346:y=1;break;case 36344:p!=0&&p!=1&&We(1280);return;case 34814:case 36345:y=0;break;case 34466:var S=P.getParameter(34467);y=S?S.length:0;break;case 33309:if(2>Se.version){We(1282);return}y=2*(P.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>Se.version){We(1280);return}y=i==33307?3:0}if(y===void 0)switch(S=P.getParameter(i),typeof S){case"number":y=S;break;case"boolean":y=S?1:0;break;case"string":We(1280);return;case"object":if(S===null)switch(i){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:y=0;break;default:We(1280);return}else{if(S instanceof Float32Array||S instanceof Uint32Array||S instanceof Int32Array||S instanceof Array){for(i=0;i>2]=S[i];break;case 2:me[u+4*i>>2]=S[i];break;case 4:mt[u+i>>0]=S[i]?1:0}return}try{y=S.name|0}catch(x){We(1280),oe("GL_INVALID_ENUM in glGet"+p+"v: Unknown object returned from WebGL getParameter("+i+")! (error: "+x+")");return}}break;default:We(1280),oe("GL_INVALID_ENUM in glGet"+p+"v: Native code calling glGet"+p+"v("+i+") and it returns "+S+" of type "+typeof S+"!");return}switch(p){case 1:p=y,De[u>>2]=p,De[u+4>>2]=(p-De[u>>2])/4294967296;break;case 0:ee[u>>2]=y;break;case 2:me[u>>2]=y;break;case 4:mt[u>>0]=y?1:0}}else We(1281)}function Fo(i){var u=Ye(i)+1,p=Wn(u);return Ue(i,xe,p,u),p}function Gl(i){return i.slice(-1)=="]"&&i.lastIndexOf("[")}function Bn(i){return i-=5120,i==0?mt:i==1?xe:i==2?Dt:i==4?ee:i==6?me:i==5||i==28922||i==28520||i==30779||i==30782?De:It}function _s(i,u,p,y,S){i=Bn(i);var x=31-Math.clz32(i.BYTES_PER_ELEMENT),C=Wl;return i.subarray(S>>x,S+y*(p*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[u-6402]||1)*(1<>x)}function Le(i){var u=P.Hf;if(u){var p=u.Ne[i];return typeof p=="number"&&(u.Ne[i]=p=P.getUniformLocation(u,u.wf[i]+(0yt?-1:0Ee-k.getDate())ge-=Ee-k.getDate()+1,k.setDate(1),11>we?k.setMonth(we+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+ge);break}}return we=new Date(k.getFullYear()+1,0,4),ge=A(new Date(k.getFullYear(),0,4)),we=A(we),0>=C(ge,k)?0>=C(we,k)?k.getFullYear()+1:k.getFullYear():k.getFullYear()-1}var F=ee[y+40>>2];y={pg:ee[y>>2],og:ee[y+4>>2],Ye:ee[y+8>>2],jf:ee[y+12>>2],Ze:ee[y+16>>2],qe:ee[y+20>>2],je:ee[y+24>>2],pe:ee[y+28>>2],vg:ee[y+32>>2],ng:ee[y+36>>2],qg:F?ue(F):""},p=ue(p),F={"%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 F)p=p.replace(new RegExp(Z,"g"),F[Z]);var J="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ie="January February March April May June July August September October November December".split(" ");F={"%a":function(k){return J[k.je].substring(0,3)},"%A":function(k){return J[k.je]},"%b":function(k){return ie[k.Ze].substring(0,3)},"%B":function(k){return ie[k.Ze]},"%C":function(k){return x((k.qe+1900)/100|0,2)},"%d":function(k){return x(k.jf,2)},"%e":function(k){return S(k.jf,2," ")},"%g":function(k){return R(k).toString().substring(2)},"%G":function(k){return R(k)},"%H":function(k){return x(k.Ye,2)},"%I":function(k){return k=k.Ye,k==0?k=12:12k.Ye?"AM":"PM"},"%S":function(k){return x(k.pg,2)},"%t":function(){return" "},"%u":function(k){return k.je||7},"%U":function(k){return x(Math.floor((k.pe+7-k.je)/7),2)},"%V":function(k){var ge=Math.floor((k.pe+7-(k.je+6)%7)/7);if(2>=(k.je+371-k.pe-2)%7&&ge++,ge)ge==53&&(we=(k.je+371-k.pe)%7,we==4||we==3&&kn(k.qe)||(ge=1));else{ge=52;var we=(k.je+7-k.pe-1)%7;(we==4||we==5&&kn(k.qe%400-1))&&ge++}return x(ge,2)},"%w":function(k){return k.je},"%W":function(k){return x(Math.floor((k.pe+7-(k.je+6)%7)/7),2)},"%y":function(k){return(k.qe+1900).toString().substring(2)},"%Y":function(k){return k.qe+1900},"%z":function(k){k=k.ng;var ge=0<=k;return k=Math.abs(k)/60,(ge?"+":"-")+("0000"+(k/60*100+k%60)).slice(-4)},"%Z":function(k){return k.qg},"%%":function(){return"%"}},p=p.replace(/%%/g,"\0\0");for(Z in F)p.includes(Z)&&(p=p.replace(new RegExp(Z,"g"),F[Z](y)));return p=p.replace(/\0\0/g,"%"),Z=Kd(p),Z.length>u?0:(mt.set(Z,i),Z.length-1)}Al=o.InternalError=ls("InternalError");for(var Yl=Array(256),zn=0;256>zn;++zn)Yl[zn]=String.fromCharCode(zn);Il=Yl,Vr=o.BindingError=ls("BindingError"),pr.prototype.isAliasOf=function(i){if(!(this instanceof pr&&i instanceof pr))return!1;var u=this.Ld.Xd.Rd,p=this.Ld.Td,y=i.Ld.Xd.Rd;for(i=i.Ld.Td;u.ie;)p=u.Oe(p),u=u.ie;for(;y.ie;)i=y.Oe(i),y=y.ie;return u===y&&p===i},pr.prototype.clone=function(){if(this.Ld.Td||us(this),this.Ld.Me)return this.Ld.count.value+=1,this;var i=Ro,u=Object,p=u.create,y=Object.getPrototypeOf(this),S=this.Ld;return i=i(p.call(u,y,{Ld:{value:{count:S.count,Fe:S.Fe,Me:S.Me,Td:S.Td,Xd:S.Xd,$d:S.$d,fe:S.fe}}})),i.Ld.count.value+=1,i.Ld.Fe=!1,i},pr.prototype.delete=function(){this.Ld.Td||us(this),this.Ld.Fe&&!this.Ld.Me&&Ce("Object already scheduled for deletion"),Ml(this),jl(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},pr.prototype.isDeleted=function(){return!this.Ld.Td},pr.prototype.deleteLater=function(){return this.Ld.Td||us(this),this.Ld.Fe&&!this.Ld.Me&&Ce("Object already scheduled for deletion"),Io.push(this),Io.length===1&&Mo&&Mo(ps),this.Ld.Fe=!0,this},o.getInheritedInstanceCount=function(){return Object.keys(jo).length},o.getLiveInheritedInstances=function(){var i=[],u;for(u in jo)jo.hasOwnProperty(u)&&i.push(jo[u]);return i},o.flushPendingDeletes=ps,o.setDelayFunction=function(i){Mo=i,Io.length&&Mo&&Mo(ps)},Kt.prototype.Qf=function(i){return this.vf&&(i=this.vf(i)),i},Kt.prototype.pf=function(i){this.le&&this.le(i)},Kt.prototype.argPackAdvance=8,Kt.prototype.readValueFromPointer=Ao,Kt.prototype.deleteObject=function(i){i!==null&&i.delete()},Kt.prototype.fromWireType=function(i){function u(){return this.Ue?Rn(this.Rd.Ge,{Xd:this.ag,Td:p,fe:this,$d:i}):Rn(this.Rd.Ge,{Xd:this,Td:i})}var p=this.Qf(i);if(!p)return this.pf(i),null;var y=Id(this.Rd,p);if(y!==void 0)return y.Ld.count.value===0?(y.Ld.Td=p,y.Ld.$d=i,y.clone()):(y=y.clone(),this.pf(i),y);if(y=this.Rd.Pf(p),y=Ol[y],!y)return u.call(this);y=this.Te?y.Ff:y.pointerType;var S=Rl(p,this.Rd,y.Rd);return S===null?u.call(this):this.Ue?Rn(y.Rd.Ge,{Xd:y,Td:S,fe:this,$d:i}):Rn(y.Rd.Ge,{Xd:y,Td:S})},Cl=o.UnboundTypeError=ls("UnboundTypeError"),o.count_emval_handles=function(){for(var i=0,u=5;ubt;++bt)Ln.push(Array(bt));var Zd=new Float32Array(288);for(bt=0;288>bt;++bt)fr[bt]=Zd.subarray(0,bt+1);var Yd=new Int32Array(288);for(bt=0;288>bt;++bt)Uo[bt]=Yd.subarray(0,bt+1);function Kd(i){var u=Array(Ye(i)+1);return Ue(i,u,0,u.length),u}var Jd={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(i){var u=An[i];delete An[i];var p=u.gf,y=u.le,S=u.sf,x=S.map(C=>C.Tf).concat(S.map(C=>C.fg));Lt([i],x,C=>{var A={};return S.forEach((R,F)=>{var Z=C[F],J=R.Rf,ie=R.Sf,k=C[F+S.length],ge=R.eg,we=R.gg;A[R.Lf]={read:Ee=>Z.fromWireType(J(ie,Ee)),write:(Ee,yt)=>{var Nt=[];ge(we,Ee,k.toWireType(Nt,yt)),ss(Nt)}}}),[{name:u.name,fromWireType:function(R){var F={},Z;for(Z in A)F[Z]=A[Z].read(R);return y(R),F},toWireType:function(R,F){for(var Z in A)if(!(Z in F))throw new TypeError('Missing field: "'+Z+'"');var J=p();for(Z in A)A[Z].write(J,F[Z]);return R!==null&&R.push(y,J),J},argPackAdvance:8,readValueFromPointer:Ao,ee:y}]})},qb:function(){},Hb:function(i,u,p,y,S){var x=jn(p);u=Ke(u),Yt(i,{name:u,fromWireType:function(C){return!!C},toWireType:function(C,A){return A?y:S},argPackAdvance:8,readValueFromPointer:function(C){if(p===1)var A=mt;else if(p===2)A=Dt;else if(p===4)A=ee;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(A[C>>x])},ee:null})},q:function(i,u,p,y,S,x,C,A,R,F,Z,J,ie){Z=Ke(Z),x=lt(S,x),A&&(A=lt(C,A)),F&&(F=lt(R,F)),ie=lt(J,ie);var k=xl(Z);fs(k,function(){Oo("Cannot construct "+Z+" due to unbound types",[y])}),Lt([i,u,p],y?[y]:[],function(ge){if(ge=ge[0],y)var we=ge.Rd,Ee=we.Ge;else Ee=pr.prototype;ge=as(k,function(){if(Object.getPrototypeOf(this)!==yt)throw new Vr("Use 'new' to construct "+Z);if(Nt.oe===void 0)throw new Vr(Z+" has no accessible constructor");var Do=Nt.oe[arguments.length];if(Do===void 0)throw new Vr("Tried to invoke ctor of "+Z+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Nt.oe).toString()+") parameters instead!");return Do.apply(this,arguments)});var yt=Object.create(Ee,{constructor:{value:ge}});ge.prototype=yt;var Nt=new Md(Z,ge,yt,ie,we,x,A,F);we=new Kt(Z,Nt,!0,!1,!1),Ee=new Kt(Z+"*",Nt,!1,!1,!1);var Po=new Kt(Z+" const*",Nt,!1,!0,!1);return Ol[i]={pointerType:Ee,Ff:Po},Nl(k,ge),[we,Ee,Po]})},h:function(i,u,p,y,S,x,C){var A=Nn(p,y);u=Ke(u),x=lt(S,x),Lt([],[i],function(R){function F(){Oo("Cannot call "+Z+" due to unbound types",A)}R=R[0];var Z=R.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var J=R.Rd.constructor;return J[u]===void 0?(F.De=p-1,J[u]=F):(cs(J,u,Z),J[u].Zd[p-1]=F),Lt([],A,function(ie){return ie=[ie[0],null].concat(ie.slice(1)),ie=On(Z,ie,null,x,C),J[u].Zd===void 0?(ie.De=p-1,J[u]=ie):J[u].Zd[p-1]=ie,[]}),[]})},B:function(i,u,p,y,S,x){0{Oo("Cannot construct "+A.name+" due to unbound types",C)},Lt([],C,function(F){return F.splice(1,0,null),A.Rd.oe[u-1]=On(R,F,null,S,x),[]}),[]})},b:function(i,u,p,y,S,x,C,A){var R=Nn(p,y);u=Ke(u),x=lt(S,x),Lt([],[i],function(F){function Z(){Oo("Cannot call "+J+" due to unbound types",R)}F=F[0];var J=F.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),A&&F.Rd.bg.push(u);var ie=F.Rd.Ge,k=ie[u];return k===void 0||k.Zd===void 0&&k.className!==F.name&&k.De===p-2?(Z.De=p-2,Z.className=F.name,ie[u]=Z):(cs(ie,u,J),ie[u].Zd[p-2]=Z),Lt([],R,function(ge){return ge=On(J,ge,F,x,C),ie[u].Zd===void 0?(ge.De=p-2,ie[u]=ge):ie[u].Zd[p-2]=ge,[]}),[]})},u:function(i,u,p){i=Ke(i),Lt([],[u],function(y){return y=y[0],o[i]=y.fromWireType(p),[]})},Gb:function(i,u){u=Ke(u),Yt(i,{name:u,fromWireType:function(p){var y=jt(p);return ms(p),y},toWireType:function(p,y){return Rt(y)},argPackAdvance:8,readValueFromPointer:Ao,ee:null})},n:function(i,u,p,y){function S(){}p=jn(p),u=Ke(u),S.values={},Yt(i,{name:u,constructor:S,fromWireType:function(x){return this.constructor.values[x]},toWireType:function(x,C){return C.value},argPackAdvance:8,readValueFromPointer:Cd(u,p,y),ee:null}),fs(u,S)},e:function(i,u,p){var y=No(i,"enum");u=Ke(u),i=y.constructor,y=Object.create(y.constructor.prototype,{value:{value:p},constructor:{value:as(y.name+"_"+u,function(){})}}),i.values[p]=y,i[u]=y},Y:function(i,u,p){p=jn(p),u=Ke(u),Yt(i,{name:u,fromWireType:function(y){return y},toWireType:function(y,S){return S},argPackAdvance:8,readValueFromPointer:Fd(u,p),ee:null})},y:function(i,u,p,y,S,x){var C=Nn(u,p);i=Ke(i),S=lt(y,S),fs(i,function(){Oo("Cannot call "+i+" due to unbound types",C)},u-1),Lt([],C,function(A){return A=[A[0],null].concat(A.slice(1)),Nl(i,On(i,A,null,S,x),u-1),[]})},E:function(i,u,p,y,S){u=Ke(u),S===-1&&(S=4294967295),S=jn(p);var x=A=>A;if(y===0){var C=32-8*p;x=A=>A<>>C}p=u.includes("unsigned")?function(A,R){return R>>>0}:function(A,R){return R},Yt(i,{name:u,fromWireType:x,toWireType:p,argPackAdvance:8,readValueFromPointer:Ud(u,S,y!==0),ee:null})},v:function(i,u,p){function y(x){x>>=2;var C=De;return new S(vo,C[x+1],C[x])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];p=Ke(p),Yt(i,{name:p,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{Vf:!0})},t:function(i,u,p,y,S,x,C,A,R,F,Z,J){p=Ke(p),x=lt(S,x),A=lt(C,A),F=lt(R,F),J=lt(Z,J),Lt([i],[u],function(ie){return ie=ie[0],[new Kt(p,ie.Rd,!1,!1,!0,ie,y,x,A,F,J)]})},X:function(i,u){u=Ke(u);var p=u==="std::string";Yt(i,{name:u,fromWireType:function(y){var S=De[y>>2],x=y+4;if(p)for(var C=x,A=0;A<=S;++A){var R=x+A;if(A==S||xe[R]==0){if(C=ue(C,R-C),F===void 0)var F=C;else F+=String.fromCharCode(0),F+=C;C=R+1}}else{for(F=Array(S),A=0;A>2]=C,p&&x)Ue(S,xe,R,C+1);else if(x)for(x=0;xIt,A=1;else u===4&&(y=Tn,S=Zt,x=os,C=()=>De,A=2);Yt(i,{name:p,fromWireType:function(R){for(var F=De[R>>2],Z=C(),J,ie=R+4,k=0;k<=F;++k){var ge=R+4+k*u;(k==F||Z[ge>>A]==0)&&(ie=y(ie,ge-ie),J===void 0?J=ie:(J+=String.fromCharCode(0),J+=ie),ie=ge+u)}return or(R),J},toWireType:function(R,F){typeof F!="string"&&Ce("Cannot pass non-string to C++ string type "+p);var Z=x(F),J=Wn(4+Z+u);return De[J>>2]=Z>>A,S(F,J+4,Z+u),R!==null&&R.push(or,J),J},argPackAdvance:8,readValueFromPointer:Ao,ee:function(R){or(R)}})},D:function(i,u,p,y,S,x){An[i]={name:Ke(u),gf:lt(p,y),le:lt(S,x),sf:[]}},g:function(i,u,p,y,S,x,C,A,R,F){An[i].sf.push({Lf:Ke(u),Tf:p,Rf:lt(y,S),Sf:x,fg:C,eg:lt(A,R),gg:F})},Ib:function(i,u){u=Ke(u),Yt(i,{Xf:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(i,u,p){i=jt(i),u=No(u,"emval::as");var y=[],S=Rt(y);return De[p>>2]=S,u.toWireType(y,i)},$:function(i,u,p,y,S){i=Fn[i],u=jt(u),p=Cn(p);var x=[];return De[y>>2]=Rt(x),i(u,p,x,S)},A:function(i,u,p,y){i=Fn[i],u=jt(u),p=Cn(p),i(u,p,null,y)},f:ms,M:function(i){return i===0?Rt(Ul()):(i=Cn(i),Rt(Ul()[i]))},z:function(i,u){var p=Ld(i,u),y=p[0];u=y.name+"_$"+p.slice(1).map(function(C){return C.name}).join("_")+"$";var S=Pl[u];if(S!==void 0)return S;var x=Array(i-1);return S=Dd((C,A,R,F)=>{for(var Z=0,J=0;J>>0)+4294967296*y)},ka:function(i,u,p,y){P.colorMask(!!i,!!u,!!p,!!y)},la:function(i){P.compileShader(zt[i])},ma:function(i,u,p,y,S,x,C,A){2<=Se.version?P.Ee||!C?P.compressedTexImage2D(i,u,p,y,S,x,C,A):P.compressedTexImage2D(i,u,p,y,S,x,xe,A,C):P.compressedTexImage2D(i,u,p,y,S,x,A?xe.subarray(A,A+C):null)},na:function(i,u,p,y,S,x,C,A,R){2<=Se.version?P.Ee||!A?P.compressedTexSubImage2D(i,u,p,y,S,x,C,A,R):P.compressedTexSubImage2D(i,u,p,y,S,x,C,xe,R,A):P.compressedTexSubImage2D(i,u,p,y,S,x,C,R?xe.subarray(R,R+A):null)},Zb:function(i,u,p,y,S){P.copyBufferSubData(i,u,p,y,S)},oa:function(i,u,p,y,S,x,C,A){P.copyTexSubImage2D(i,u,p,y,S,x,C,A)},pa:function(){var i=Hr(kt),u=P.createProgram();return u.name=i,u.Xe=u.Ve=u.We=0,u.kf=1,kt[i]=u,i},qa:function(i){var u=Hr(zt);return zt[u]=P.createShader(i),u},ra:function(i){P.cullFace(i)},sa:function(i,u){for(var p=0;p>2],S=Un[y];S&&(P.deleteBuffer(S),S.name=0,Un[y]=null,y==P.df&&(P.df=0),y==P.Ee&&(P.Ee=0))}},hc:function(i,u){for(var p=0;p>2],S=Pn[y];S&&(P.deleteFramebuffer(S),S.name=0,Pn[y]=null)}},ta:function(i){if(i){var u=kt[i];u?(P.deleteProgram(u),u.name=0,kt[i]=null):We(1281)}},ic:function(i,u){for(var p=0;p>2],S=Co[y];S&&(P.deleteRenderbuffer(S),S.name=0,Co[y]=null)}},Sb:function(i,u){for(var p=0;p>2],S=Ar[y];S&&(P.deleteSampler(S),S.name=0,Ar[y]=null)}},ua:function(i){if(i){var u=zt[i];u?(P.deleteShader(u),zt[i]=null):We(1281)}},_b:function(i){if(i){var u=Ir[i];u?(P.deleteSync(u),u.name=0,Ir[i]=null):We(1281)}},va:function(i,u){for(var p=0;p>2],S=Ot[y];S&&(P.deleteTexture(S),S.name=0,Ot[y]=null)}},Dc:function(i,u){for(var p=0;p>2];P.deleteVertexArray(cr[y]),cr[y]=null}},yc:function(i,u){for(var p=0;p>2];P.deleteVertexArray(cr[y]),cr[y]=null}},wa:function(i){P.depthMask(!!i)},xa:function(i){P.disable(i)},ya:function(i){P.disableVertexAttribArray(i)},za:function(i,u,p){P.drawArrays(i,u,p)},Ac:function(i,u,p,y){P.drawArraysInstanced(i,u,p,y)},vc:function(i,u,p,y,S){P.qf.drawArraysInstancedBaseInstanceWEBGL(i,u,p,y,S)},tc:function(i,u){for(var p=Ln[i],y=0;y>2];P.drawBuffers(p)},Aa:function(i,u,p,y){P.drawElements(i,u,p,y)},Bc:function(i,u,p,y,S){P.drawElementsInstanced(i,u,p,y,S)},wc:function(i,u,p,y,S,x,C){P.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(i,u,p,y,S,x,C)},nc:function(i,u,p,y,S,x){P.drawElements(i,y,S,x)},Ba:function(i){P.enable(i)},Ca:function(i){P.enableVertexAttribArray(i)},Xb:function(i,u){return(i=P.fenceSync(i,u))?(u=Hr(Ir),i.name=u,Ir[u]=i,u):0},Da:function(){P.finish()},Ea:function(){P.flush()},jc:function(i,u,p,y){P.framebufferRenderbuffer(i,u,p,Co[y])},kc:function(i,u,p,y,S){P.framebufferTexture2D(i,u,p,Ot[y],S)},Fa:function(i){P.frontFace(i)},Ga:function(i,u){Mr(i,u,"createBuffer",Un)},lc:function(i,u){Mr(i,u,"createFramebuffer",Pn)},mc:function(i,u){Mr(i,u,"createRenderbuffer",Co)},Tb:function(i,u){Mr(i,u,"createSampler",Ar)},Ha:function(i,u){Mr(i,u,"createTexture",Ot)},Ec:function(i,u){Mr(i,u,"createVertexArray",cr)},zc:function(i,u){Mr(i,u,"createVertexArray",cr)},bc:function(i){P.generateMipmap(i)},Ia:function(i,u,p){p?ee[p>>2]=P.getBufferParameter(i,u):We(1281)},Ja:function(){var i=P.getError()||Dn;return Dn=0,i},Ka:function(i,u){Hl(i,u,2)},cc:function(i,u,p,y){i=P.getFramebufferAttachmentParameter(i,u,p),(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=i.name|0),ee[y>>2]=i},N:function(i,u){Hl(i,u,0)},La:function(i,u,p,y){i=P.getProgramInfoLog(kt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ma:function(i,u,p){if(p)if(i>=Bl)We(1281);else if(i=kt[i],u==35716)i=P.getProgramInfoLog(i),i===null&&(i="(unknown error)"),ee[p>>2]=i.length+1;else if(u==35719){if(!i.Xe)for(u=0;u>2]=i.Xe}else if(u==35722){if(!i.Ve)for(u=0;u>2]=i.Ve}else if(u==35381){if(!i.We)for(u=0;u>2]=i.We}else ee[p>>2]=P.getProgramParameter(i,u);else We(1281)},dc:function(i,u,p){p?ee[p>>2]=P.getRenderbufferParameter(i,u):We(1281)},Na:function(i,u,p,y){i=P.getShaderInfoLog(zt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ob:function(i,u,p,y){i=P.getShaderPrecisionFormat(i,u),ee[p>>2]=i.rangeMin,ee[p+4>>2]=i.rangeMax,ee[y>>2]=i.precision},Oa:function(i,u,p){p?u==35716?(i=P.getShaderInfoLog(zt[i]),i===null&&(i="(unknown error)"),ee[p>>2]=i?i.length+1:0):u==35720?(i=P.getShaderSource(zt[i]),ee[p>>2]=i?i.length+1:0):ee[p>>2]=P.getShaderParameter(zt[i],u):We(1281)},R:function(i){var u=kl[i];if(!u){switch(i){case 7939:u=P.getSupportedExtensions()||[],u=u.concat(u.map(function(y){return"GL_"+y})),u=Fo(u.join(" "));break;case 7936:case 7937:case 37445:case 37446:(u=P.getParameter(i))||We(1280),u=u&&Fo(u);break;case 7938:u=P.getParameter(7938),u=2<=Se.version?"OpenGL ES 3.0 ("+u+")":"OpenGL ES 2.0 ("+u+")",u=Fo(u);break;case 35724:u=P.getParameter(35724);var p=u.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);p!==null&&(p[1].length==3&&(p[1]+="0"),u="OpenGL ES GLSL ES "+p[1]+" ("+u+")"),u=Fo(u);break;default:We(1280)}kl[i]=u}return u},jb:function(i,u){if(2>Se.version)return We(1282),0;var p=zl[i];if(p)return 0>u||u>=p.length?(We(1281),0):p[u];switch(i){case 7939:return p=P.getSupportedExtensions()||[],p=p.concat(p.map(function(y){return"GL_"+y})),p=p.map(function(y){return Fo(y)}),p=zl[i]=p,0>u||u>=p.length?(We(1281),0):p[u];default:return We(1280),0}},Pa:function(i,u){if(u=ue(u),i=kt[i]){var p=i,y=p.Ne,S=p.xf,x;if(!y)for(p.Ne=y={},p.wf={},x=0;x>>0,S=u.slice(0,x)),(S=i.xf[S])&&y>2];P.invalidateFramebuffer(i,y)},Qb:function(i,u,p,y,S,x,C){for(var A=Ln[u],R=0;R>2];P.invalidateSubFramebuffer(i,A,y,S,x,C)},Yb:function(i){return P.isSync(Ir[i])},Qa:function(i){return(i=Ot[i])?P.isTexture(i):0},Ra:function(i){P.lineWidth(i)},Sa:function(i){i=kt[i],P.linkProgram(i),i.Ne=0,i.xf={}},rc:function(i,u,p,y,S,x){P.uf.multiDrawArraysInstancedBaseInstanceWEBGL(i,ee,u>>2,ee,p>>2,ee,y>>2,De,S>>2,x)},sc:function(i,u,p,y,S,x,C,A){P.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(i,ee,u>>2,p,ee,y>>2,ee,S>>2,ee,x>>2,De,C>>2,A)},Ta:function(i,u){i==3317&&(Wl=u),P.pixelStorei(i,u)},uc:function(i){P.readBuffer(i)},Ua:function(i,u,p,y,S,x,C){if(2<=Se.version)if(P.df)P.readPixels(i,u,p,y,S,x,C);else{var A=Bn(x);P.readPixels(i,u,p,y,S,x,A,C>>31-Math.clz32(A.BYTES_PER_ELEMENT))}else(C=_s(x,S,p,y,C))?P.readPixels(i,u,p,y,S,x,C):We(1280)},ec:function(i,u,p,y){P.renderbufferStorage(i,u,p,y)},ac:function(i,u,p,y,S){P.renderbufferStorageMultisample(i,u,p,y,S)},Ub:function(i,u,p){P.samplerParameterf(Ar[i],u,p)},Vb:function(i,u,p){P.samplerParameteri(Ar[i],u,p)},Wb:function(i,u,p){P.samplerParameteri(Ar[i],u,ee[p>>2])},Va:function(i,u,p,y){P.scissor(i,u,p,y)},Wa:function(i,u,p,y){for(var S="",x=0;x>2]:-1;S+=ue(ee[p+4*x>>2],0>C?void 0:C)}P.shaderSource(zt[i],S)},Xa:function(i,u,p){P.stencilFunc(i,u,p)},Ya:function(i,u,p,y){P.stencilFuncSeparate(i,u,p,y)},Za:function(i){P.stencilMask(i)},_a:function(i,u){P.stencilMaskSeparate(i,u)},$a:function(i,u,p){P.stencilOp(i,u,p)},ab:function(i,u,p,y){P.stencilOpSeparate(i,u,p,y)},bb:function(i,u,p,y,S,x,C,A,R){if(2<=Se.version)if(P.Ee)P.texImage2D(i,u,p,y,S,x,C,A,R);else if(R){var F=Bn(A);P.texImage2D(i,u,p,y,S,x,C,A,F,R>>31-Math.clz32(F.BYTES_PER_ELEMENT))}else P.texImage2D(i,u,p,y,S,x,C,A,null);else P.texImage2D(i,u,p,y,S,x,C,A,R?_s(A,C,y,S,R):null)},cb:function(i,u,p){P.texParameterf(i,u,p)},db:function(i,u,p){P.texParameterf(i,u,me[p>>2])},eb:function(i,u,p){P.texParameteri(i,u,p)},fb:function(i,u,p){P.texParameteri(i,u,ee[p>>2])},oc:function(i,u,p,y,S){P.texStorage2D(i,u,p,y,S)},gb:function(i,u,p,y,S,x,C,A,R){if(2<=Se.version)if(P.Ee)P.texSubImage2D(i,u,p,y,S,x,C,A,R);else if(R){var F=Bn(A);P.texSubImage2D(i,u,p,y,S,x,C,A,F,R>>31-Math.clz32(F.BYTES_PER_ELEMENT))}else P.texSubImage2D(i,u,p,y,S,x,C,A,null);else F=null,R&&(F=_s(A,C,S,x,R)),P.texSubImage2D(i,u,p,y,S,x,C,A,F)},hb:function(i,u){P.uniform1f(Le(i),u)},ib:function(i,u,p){if(2<=Se.version)u&&P.uniform1fv(Le(i),me,p>>2,u);else{if(288>=u)for(var y=fr[u-1],S=0;S>2];else y=me.subarray(p>>2,p+4*u>>2);P.uniform1fv(Le(i),y)}},Zc:function(i,u){P.uniform1i(Le(i),u)},_c:function(i,u,p){if(2<=Se.version)u&&P.uniform1iv(Le(i),ee,p>>2,u);else{if(288>=u)for(var y=Uo[u-1],S=0;S>2];else y=ee.subarray(p>>2,p+4*u>>2);P.uniform1iv(Le(i),y)}},$c:function(i,u,p){P.uniform2f(Le(i),u,p)},ad:function(i,u,p){if(2<=Se.version)u&&P.uniform2fv(Le(i),me,p>>2,2*u);else{if(144>=u)for(var y=fr[2*u-1],S=0;S<2*u;S+=2)y[S]=me[p+4*S>>2],y[S+1]=me[p+(4*S+4)>>2];else y=me.subarray(p>>2,p+8*u>>2);P.uniform2fv(Le(i),y)}},Yc:function(i,u,p){P.uniform2i(Le(i),u,p)},Xc:function(i,u,p){if(2<=Se.version)u&&P.uniform2iv(Le(i),ee,p>>2,2*u);else{if(144>=u)for(var y=Uo[2*u-1],S=0;S<2*u;S+=2)y[S]=ee[p+4*S>>2],y[S+1]=ee[p+(4*S+4)>>2];else y=ee.subarray(p>>2,p+8*u>>2);P.uniform2iv(Le(i),y)}},Wc:function(i,u,p,y){P.uniform3f(Le(i),u,p,y)},Vc:function(i,u,p){if(2<=Se.version)u&&P.uniform3fv(Le(i),me,p>>2,3*u);else{if(96>=u)for(var y=fr[3*u-1],S=0;S<3*u;S+=3)y[S]=me[p+4*S>>2],y[S+1]=me[p+(4*S+4)>>2],y[S+2]=me[p+(4*S+8)>>2];else y=me.subarray(p>>2,p+12*u>>2);P.uniform3fv(Le(i),y)}},Uc:function(i,u,p,y){P.uniform3i(Le(i),u,p,y)},Tc:function(i,u,p){if(2<=Se.version)u&&P.uniform3iv(Le(i),ee,p>>2,3*u);else{if(96>=u)for(var y=Uo[3*u-1],S=0;S<3*u;S+=3)y[S]=ee[p+4*S>>2],y[S+1]=ee[p+(4*S+4)>>2],y[S+2]=ee[p+(4*S+8)>>2];else y=ee.subarray(p>>2,p+12*u>>2);P.uniform3iv(Le(i),y)}},Sc:function(i,u,p,y,S){P.uniform4f(Le(i),u,p,y,S)},Rc:function(i,u,p){if(2<=Se.version)u&&P.uniform4fv(Le(i),me,p>>2,4*u);else{if(72>=u){var y=fr[4*u-1],S=me;p>>=2;for(var x=0;x<4*u;x+=4){var C=p+x;y[x]=S[C],y[x+1]=S[C+1],y[x+2]=S[C+2],y[x+3]=S[C+3]}}else y=me.subarray(p>>2,p+16*u>>2);P.uniform4fv(Le(i),y)}},Fc:function(i,u,p,y,S){P.uniform4i(Le(i),u,p,y,S)},Gc:function(i,u,p){if(2<=Se.version)u&&P.uniform4iv(Le(i),ee,p>>2,4*u);else{if(72>=u)for(var y=Uo[4*u-1],S=0;S<4*u;S+=4)y[S]=ee[p+4*S>>2],y[S+1]=ee[p+(4*S+4)>>2],y[S+2]=ee[p+(4*S+8)>>2],y[S+3]=ee[p+(4*S+12)>>2];else y=ee.subarray(p>>2,p+16*u>>2);P.uniform4iv(Le(i),y)}},Hc:function(i,u,p,y){if(2<=Se.version)u&&P.uniformMatrix2fv(Le(i),!!p,me,y>>2,4*u);else{if(72>=u)for(var S=fr[4*u-1],x=0;x<4*u;x+=4)S[x]=me[y+4*x>>2],S[x+1]=me[y+(4*x+4)>>2],S[x+2]=me[y+(4*x+8)>>2],S[x+3]=me[y+(4*x+12)>>2];else S=me.subarray(y>>2,y+16*u>>2);P.uniformMatrix2fv(Le(i),!!p,S)}},Ic:function(i,u,p,y){if(2<=Se.version)u&&P.uniformMatrix3fv(Le(i),!!p,me,y>>2,9*u);else{if(32>=u)for(var S=fr[9*u-1],x=0;x<9*u;x+=9)S[x]=me[y+4*x>>2],S[x+1]=me[y+(4*x+4)>>2],S[x+2]=me[y+(4*x+8)>>2],S[x+3]=me[y+(4*x+12)>>2],S[x+4]=me[y+(4*x+16)>>2],S[x+5]=me[y+(4*x+20)>>2],S[x+6]=me[y+(4*x+24)>>2],S[x+7]=me[y+(4*x+28)>>2],S[x+8]=me[y+(4*x+32)>>2];else S=me.subarray(y>>2,y+36*u>>2);P.uniformMatrix3fv(Le(i),!!p,S)}},Jc:function(i,u,p,y){if(2<=Se.version)u&&P.uniformMatrix4fv(Le(i),!!p,me,y>>2,16*u);else{if(18>=u){var S=fr[16*u-1],x=me;y>>=2;for(var C=0;C<16*u;C+=16){var A=y+C;S[C]=x[A],S[C+1]=x[A+1],S[C+2]=x[A+2],S[C+3]=x[A+3],S[C+4]=x[A+4],S[C+5]=x[A+5],S[C+6]=x[A+6],S[C+7]=x[A+7],S[C+8]=x[A+8],S[C+9]=x[A+9],S[C+10]=x[A+10],S[C+11]=x[A+11],S[C+12]=x[A+12],S[C+13]=x[A+13],S[C+14]=x[A+14],S[C+15]=x[A+15]}}else S=me.subarray(y>>2,y+64*u>>2);P.uniformMatrix4fv(Le(i),!!p,S)}},Kc:function(i){i=kt[i],P.useProgram(i),P.Hf=i},Lc:function(i,u){P.vertexAttrib1f(i,u)},Mc:function(i,u){P.vertexAttrib2f(i,me[u>>2],me[u+4>>2])},Nc:function(i,u){P.vertexAttrib3f(i,me[u>>2],me[u+4>>2],me[u+8>>2])},Oc:function(i,u){P.vertexAttrib4f(i,me[u>>2],me[u+4>>2],me[u+8>>2],me[u+12>>2])},pc:function(i,u){P.vertexAttribDivisor(i,u)},qc:function(i,u,p,y,S){P.vertexAttribIPointer(i,u,p,y,S)},Pc:function(i,u,p,y,S,x){P.vertexAttribPointer(i,u,p,!!y,S,x)},Qc:function(i,u,p,y){P.viewport(i,u,p,y)},lb:function(i,u,p,y){P.waitSync(Ir[i],u,(p>>>0)+4294967296*y)},tb:function(i){var u=xe.length;if(i>>>=0,2147483648=p;p*=2){var y=u*(1+.2/p);y=Math.min(y,i+100663296);var S=Math;y=Math.max(i,y),S=S.min.call(S,2147483648,y+(65536-y%65536)%65536);e:{try{Ne.grow(S-vo.byteLength+65535>>>16),xn();var x=1;break e}catch{}x=void 0}if(x)return!0}return!1},nb:function(){return Se?Se.Uf:0},wb:function(i,u){var p=0;return ql().forEach(function(y,S){var x=u+p;for(S=De[i+4*S>>2]=x,x=0;x>0]=y.charCodeAt(x);mt[S>>0]=0,p+=y.length+1}),0},xb:function(i,u){var p=ql();De[i>>2]=p.length;var y=0;return p.forEach(function(S){y+=S.length+1}),De[u>>2]=y,0},Jb:function(i){Ie||(o.onExit&&o.onExit(i),Qe=!0),v(i,new Jl(i))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(i,u,p,y){for(var S=0,x=0;x>2],A=De[u+4>>2];u+=8;for(var R=0;R>2]=S,0},c:function(){return fe},k:Qd,o:sh,l:Xd,K:lh,Lb:uh,_:gh,Z:ch,Q:oh,p:ih,x:rh,s:th,w:nh,Kb:ph,Mb:ah,Nb:eh,d:function(i){fe=i},rb:function(i,u,p,y){return $d(i,u,p,y)}};(function(){function i(S){o.asm=S.exports,Ne=o.asm.dd,xn(),So=o.asm.fd,Eo.unshift(o.asm.ed),Tr--,o.monitorRunDependencies&&o.monitorRunDependencies(Tr),Tr==0&&(ns!==null&&(clearInterval(ns),ns=null),To&&(S=To,To=null,S()))}function u(S){i(S.instance)}function p(S){return Ad().then(function(x){return WebAssembly.instantiate(x,y)}).then(function(x){return x}).then(S,function(x){oe("failed to asynchronously prepare wasm: "+x),xo(x)})}var y={a:Jd};if(Tr++,o.monitorRunDependencies&&o.monitorRunDependencies(Tr),o.instantiateWasm)try{return o.instantiateWasm(y,i)}catch(S){return oe("Module.instantiateWasm callback failed with error: "+S),!1}return function(){return pe||typeof WebAssembly.instantiateStreaming!="function"||wl()||Mt.startsWith("file://")||U||typeof fetch!="function"?p(u):fetch(Mt,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,y).then(u,function(x){return oe("wasm streaming compile failed: "+x),oe("falling back to ArrayBuffer instantiation"),p(u)})})}().catch(s),{}})(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.ed).apply(null,arguments)};var or=o._free=function(){return(or=o._free=o.asm.gd).apply(null,arguments)},Wn=o._malloc=function(){return(Wn=o._malloc=o.asm.hd).apply(null,arguments)},Kl=o.___getTypeName=function(){return(Kl=o.___getTypeName=o.asm.id).apply(null,arguments)};o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.jd).apply(null,arguments)};var ut=o._setThrew=function(){return(ut=o._setThrew=o.asm.kd).apply(null,arguments)},gt=o.stackSave=function(){return(gt=o.stackSave=o.asm.ld).apply(null,arguments)},pt=o.stackRestore=function(){return(pt=o.stackRestore=o.asm.md).apply(null,arguments)};o.dynCall_viji=function(){return(o.dynCall_viji=o.asm.nd).apply(null,arguments)},o.dynCall_vijiii=function(){return(o.dynCall_vijiii=o.asm.od).apply(null,arguments)},o.dynCall_viiiiij=function(){return(o.dynCall_viiiiij=o.asm.pd).apply(null,arguments)},o.dynCall_jiiiijiiiii=function(){return(o.dynCall_jiiiijiiiii=o.asm.qd).apply(null,arguments)},o.dynCall_viiij=function(){return(o.dynCall_viiij=o.asm.rd).apply(null,arguments)},o.dynCall_jii=function(){return(o.dynCall_jii=o.asm.sd).apply(null,arguments)},o.dynCall_vij=function(){return(o.dynCall_vij=o.asm.td).apply(null,arguments)},o.dynCall_iiij=function(){return(o.dynCall_iiij=o.asm.ud).apply(null,arguments)},o.dynCall_iiiij=function(){return(o.dynCall_iiiij=o.asm.vd).apply(null,arguments)},o.dynCall_viij=function(){return(o.dynCall_viij=o.asm.wd).apply(null,arguments)},o.dynCall_ji=function(){return(o.dynCall_ji=o.asm.xd).apply(null,arguments)},o.dynCall_iij=function(){return(o.dynCall_iij=o.asm.yd).apply(null,arguments)},o.dynCall_jiiiiii=function(){return(o.dynCall_jiiiiii=o.asm.zd).apply(null,arguments)},o.dynCall_jiiiiji=function(){return(o.dynCall_jiiiiji=o.asm.Ad).apply(null,arguments)},o.dynCall_iijj=function(){return(o.dynCall_iijj=o.asm.Bd).apply(null,arguments)},o.dynCall_iiiji=function(){return(o.dynCall_iiiji=o.asm.Cd).apply(null,arguments)},o.dynCall_iiji=function(){return(o.dynCall_iiji=o.asm.Dd).apply(null,arguments)},o.dynCall_iijjiii=function(){return(o.dynCall_iijjiii=o.asm.Ed).apply(null,arguments)},o.dynCall_vijjjii=function(){return(o.dynCall_vijjjii=o.asm.Fd).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.Gd).apply(null,arguments)},o.dynCall_viijii=function(){return(o.dynCall_viijii=o.asm.Hd).apply(null,arguments)},o.dynCall_iiiiij=function(){return(o.dynCall_iiiiij=o.asm.Id).apply(null,arguments)},o.dynCall_iiiiijj=function(){return(o.dynCall_iiiiijj=o.asm.Jd).apply(null,arguments)},o.dynCall_iiiiiijj=function(){return(o.dynCall_iiiiiijj=o.asm.Kd).apply(null,arguments)};function Xd(i,u,p,y){var S=gt();try{return it(i)(u,p,y)}catch(x){if(pt(S),x!==x+0)throw x;ut(1,0)}}function Qd(i,u){var p=gt();try{return it(i)(u)}catch(y){if(pt(p),y!==y+0)throw y;ut(1,0)}}function eh(i,u,p,y,S,x,C,A,R,F){var Z=gt();try{it(i)(u,p,y,S,x,C,A,R,F)}catch(J){if(pt(Z),J!==J+0)throw J;ut(1,0)}}function th(i,u,p,y){var S=gt();try{it(i)(u,p,y)}catch(x){if(pt(S),x!==x+0)throw x;ut(1,0)}}function rh(i,u,p){var y=gt();try{it(i)(u,p)}catch(S){if(pt(y),S!==S+0)throw S;ut(1,0)}}function oh(i){var u=gt();try{it(i)()}catch(p){if(pt(u),p!==p+0)throw p;ut(1,0)}}function nh(i,u,p,y,S){var x=gt();try{it(i)(u,p,y,S)}catch(C){if(pt(x),C!==C+0)throw C;ut(1,0)}}function ih(i,u){var p=gt();try{it(i)(u)}catch(y){if(pt(p),y!==y+0)throw y;ut(1,0)}}function sh(i,u,p){var y=gt();try{return it(i)(u,p)}catch(S){if(pt(y),S!==S+0)throw S;ut(1,0)}}function ah(i,u,p,y,S,x,C){var A=gt();try{it(i)(u,p,y,S,x,C)}catch(R){if(pt(A),R!==R+0)throw R;ut(1,0)}}function lh(i,u,p,y,S){var x=gt();try{return it(i)(u,p,y,S)}catch(C){if(pt(x),C!==C+0)throw C;ut(1,0)}}function uh(i,u,p,y,S,x){var C=gt();try{return it(i)(u,p,y,S,x)}catch(A){if(pt(C),A!==A+0)throw A;ut(1,0)}}function gh(i,u,p,y,S,x,C){var A=gt();try{return it(i)(u,p,y,S,x,C)}catch(R){if(pt(A),R!==R+0)throw R;ut(1,0)}}function ph(i,u,p,y,S,x){var C=gt();try{it(i)(u,p,y,S,x)}catch(A){if(pt(C),A!==A+0)throw A;ut(1,0)}}function ch(i,u,p,y,S,x,C,A,R,F){var Z=gt();try{return it(i)(u,p,y,S,x,C,A,R,F)}catch(J){if(pt(Z),J!==J+0)throw J;ut(1,0)}}var Vn;function Jl(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}To=function i(){Vn||Ss(),Vn||(To=i)};function Ss(){function i(){if(!Vn&&(Vn=!0,o.calledRun=!0,!Qe)){if(is(Eo),n(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var u=o.postRun.shift();Sl.unshift(u)}is(Sl)}}if(!(0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,r,o){t instanceof String&&(t=String(t));for(var n=t.length,s=0;s=s}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,o){return $jscomp.findInternal(this,r,o).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,o){var n=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var s=n.length,l=r.length;o=Math.max(0,Math.min(o|0,n.length));for(var m=0;m=l}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279>>=1)&&(o+=o);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,r,o){t=t.split("."),o=o||goog.global,t[0]in o||typeof o.execScript>"u"||o.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||r===void 0?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=r};goog.define=function(t,r){if(!COMPILED){var o=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;o&&o.nodeType===void 0&&Object.prototype.hasOwnProperty.call(o,t)?r=o[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t])}return r};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,r){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var o=t;(o=o.substring(0,o.lastIndexOf(".")))&&!goog.getObjectByName(o);)goog.implicitNamespaces_[o]=!0}goog.exportPath_(t,r)};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 r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,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,r){t=t.split("."),r=r||goog.global;for(var o=0;o{var hh=Object.create;var Gn=Object.defineProperty;var mh=Object.getOwnPropertyDescriptor;var yh=Object.getOwnPropertyNames;var _h=Object.getPrototypeOf,vh=Object.prototype.hasOwnProperty;var Ms=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var js=(t,r)=>()=>(t&&(r=t(t=0)),r);var ke=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),Rs=(t,r)=>{for(var o in r)Gn(t,o,{get:r[o],enumerable:!0})},nu=(t,r,o,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of yh(r))!vh.call(t,s)&&s!==o&&Gn(t,s,{get:()=>r[s],enumerable:!(n=mh(r,s))||n.enumerable});return t};var tt=(t,r,o)=>(o=t!=null?hh(_h(t)):{},nu(r||!t||!t.__esModule?Gn(o,"default",{value:t,enumerable:!0}):o,t)),Os=t=>nu(Gn({},"__esModule",{value:!0}),t);var bu={};Rs(bu,{Component:()=>_t,Fragment:()=>Fe,cloneElement:()=>Ds,createContext:()=>Ho,createElement:()=>wt,createRef:()=>Vo,h:()=>wt,hydrate:()=>Yn,isValidElement:()=>gu,options:()=>ae,render:()=>Or,toChildArray:()=>Vt});function nr(t,r){for(var o in r)t[o]=r[o];return t}function du(t){var r=t.parentNode;r&&r.removeChild(t)}function wt(t,r,o){var n,s,l,m={};for(l in r)l=="key"?n=r[l]:l=="ref"?s=r[l]:m[l]=r[l];if(arguments.length>2&&(m.children=arguments.length>3?Wo.call(arguments,2):o),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)m[l]===void 0&&(m[l]=t.defaultProps[l]);return ko(t,m,n,s,null)}function ko(t,r,o,n,s){var l={type:t,props:r,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++uu};return s==null&&ae.vnode!=null&&ae.vnode(l),l}function Vo(){return{current:null}}function Fe(t){return t.children}function _t(t,r){this.props=t,this.context=r}function zo(t,r){if(r==null)return t.__?zo(t.__,t.__.__k.indexOf(t)+1):null;for(var o;rr&&Rr.sort(Ns));qn.__r=0}function mu(t,r,o,n,s,l,m,v,T,R,F){var I,B,G,$,K,ne,re,ce,oe,fe=0,pe=n&&n.__k||fu,Ae=pe.length,Ne=Ae,Qe=r.length;for(o.__k=[],I=0;I0?ko($.type,$.props,$.key,$.ref?$.ref:null,$.__v):$)!=null?($.__=o,$.__b=o.__b+1,(ce=Sh($,pe,re=I+fe,Ne))===-1?G=qr:(G=pe[ce]||qr,pe[ce]=void 0,Ne--),Us(t,$,G,s,l,m,v,T,R,F),K=$.__e,(B=$.ref)&&G.ref!=B&&(G.ref&&Ps(G.ref,null,$),F.push(B,$.__c||K,$)),K!=null&&(ne==null&&(ne=K),(oe=G===qr||G.__v===null)?ce==-1&&fe--:ce!==re&&(ce===re+1?fe++:ce>re?Ne>Qe-re?fe+=ce-re:fe--:fe=ce(T!=null?1:0))for(;m>=0||v=0){if((T=r[m])&&s==T.key&&l===T.type)return m;m--}if(v2&&(v.children=arguments.length>3?Wo.call(arguments,2):o),ko(t.type,v,n||t.key,s||t.ref,null)}function Ho(t,r){var o={__c:r="__cC"+cu++,__:t,Consumer:function(n,s){return n.children(s)},Provider:function(n){var s,l;return this.getChildContext||(s=[],(l={})[r]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(m){this.props.value!==m.value&&s.some(function(v){v.__e=!0,Cs(v)})},this.sub=function(m){s.push(m);var v=m.componentWillUnmount;m.componentWillUnmount=function(){s.splice(s.indexOf(m),1),v&&v.call(m)}}),n.children}};return o.Provider.__=o.Consumer.contextType=o}var Wo,ae,uu,gu,Rr,iu,pu,Ns,cu,qr,fu,bh,Zn,Nr=js(()=>{qr={},fu=[],bh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Zn=Array.isArray;Wo=fu.slice,ae={__e:function(t,r,o,n){for(var s,l,m;r=r.__;)if((s=r.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(t)),m=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(t,n||{}),m=s.__d),m)return s.__E=s}catch(v){t=v}throw t}},uu=0,gu=function(t){return t!=null&&t.constructor===void 0},_t.prototype.setState=function(t,r){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=nr({},this.state),typeof t=="function"&&(t=t(nr({},o),this.props)),t&&nr(o,t),t!=null&&this.__v&&(r&&this._sb.push(r),Cs(this))},_t.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Cs(this))},_t.prototype.render=Fe,Rr=[],pu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ns=function(t,r){return t.__v.__b-r.__v.__b},qn.__r=0,cu=0});var Ou={};Rs(Ou,{useCallback:()=>ei,useContext:()=>ti,useDebugValue:()=>ri,useEffect:()=>qo,useErrorBoundary:()=>ju,useId:()=>oi,useImperativeHandle:()=>Qn,useLayoutEffect:()=>Fr,useMemo:()=>Yr,useReducer:()=>Go,useRef:()=>Xn,useState:()=>Zr});function Cr(t,r){ae.__h&&ae.__h(ze,t,$r||r),$r=0;var o=ze.__H||(ze.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({__V:Kn}),o.__[t]}function Zr(t){return $r=1,Go(Ru,t)}function Go(t,r,o){var n=Cr(ir++,2);if(n.t=t,!n.__c&&(n.__=[o?o(r):Ru(void 0,r),function(v){var T=n.__N?n.__N[0]:n.__[0],R=n.t(T,v);T!==R&&(n.__N=[R,n.__[1]],n.__c.setState({}))}],n.__c=ze,!ze.u)){var s=function(v,T,R){if(!n.__c.__H)return!0;var F=n.__c.__H.__.filter(function(B){return B.__c});if(F.every(function(B){return!B.__N}))return!l||l.call(this,v,T,R);var I=!1;return F.forEach(function(B){if(B.__N){var G=B.__[0];B.__=B.__N,B.__N=void 0,G!==B.__[0]&&(I=!0)}}),!(!I&&n.__c.props===v)&&(!l||l.call(this,v,T,R))};ze.u=!0;var l=ze.shouldComponentUpdate,m=ze.componentWillUpdate;ze.componentWillUpdate=function(v,T,R){if(this.__e){var F=l;l=void 0,s(v,T,R),l=F}m&&m.call(this,v,T,R)},ze.shouldComponentUpdate=s}return n.__N||n.__}function qo(t,r){var o=Cr(ir++,3);!ae.__s&&ks(o.__H,r)&&(o.__=t,o.i=r,ze.__H.__h.push(o))}function Fr(t,r){var o=Cr(ir++,4);!ae.__s&&ks(o.__H,r)&&(o.__=t,o.i=r,ze.__h.push(o))}function Xn(t){return $r=5,Yr(function(){return{current:t}},[])}function Qn(t,r,o){$r=6,Fr(function(){return typeof t=="function"?(t(r()),function(){return t(null)}):t?(t.current=r(),function(){return t.current=null}):void 0},o==null?o:o.concat(t))}function Yr(t,r){var o=Cr(ir++,7);return ks(o.__H,r)?(o.__V=t(),o.i=r,o.__h=t,o.__V):o.__}function ei(t,r){return $r=8,Yr(function(){return t},r)}function ti(t){var r=ze.context[t.__c],o=Cr(ir++,9);return o.c=t,r?(o.__==null&&(o.__=!0,r.sub(ze)),r.props.value):t.__}function ri(t,r){ae.useDebugValue&&ae.useDebugValue(r?r(t):t)}function ju(t){var r=Cr(ir++,10),o=Zr();return r.__=t,ze.componentDidCatch||(ze.componentDidCatch=function(n,s){r.__&&r.__(n,s),o[1](n)}),[o[0],function(){o[1](void 0)}]}function oi(){var t=Cr(ir++,11);if(!t.__){for(var r=ze.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;var o=r.__m||(r.__m=[0,0]);t.__="P"+o[0]+"-"+o[1]++}return t.__}function xh(){for(var t;t=Mu.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Jn),t.__H.__h.forEach(Bs),t.__H.__h=[]}catch(r){t.__H.__h=[],ae.__e(r,t.__v)}}function Ah(t){var r,o=function(){clearTimeout(n),Iu&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(o,100);Iu&&(r=requestAnimationFrame(o))}function Jn(t){var r=ze,o=t.__c;typeof o=="function"&&(t.__c=void 0,o()),ze=r}function Bs(t){var r=ze;t.__c=t.__(),ze=r}function ks(t,r){return!t||t.length!==r.length||r.some(function(o,n){return o!==t[n]})}function Ru(t,r){return typeof r=="function"?r(t):r}var ir,ze,Ls,Su,$r,Mu,Kn,wu,Eu,Tu,xu,Au,Iu,ni=js(()=>{Nr();$r=0,Mu=[],Kn=[],wu=ae.__b,Eu=ae.__r,Tu=ae.diffed,xu=ae.__c,Au=ae.unmount;ae.__b=function(t){ze=null,wu&&wu(t)},ae.__r=function(t){Eu&&Eu(t),ir=0;var r=(ze=t.__c).__H;r&&(Ls===ze?(r.__h=[],ze.__h=[],r.__.forEach(function(o){o.__N&&(o.__=o.__N),o.__V=Kn,o.__N=o.i=void 0})):(r.__h.forEach(Jn),r.__h.forEach(Bs),r.__h=[],ir=0)),Ls=ze},ae.diffed=function(t){Tu&&Tu(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(Mu.push(r)!==1&&Su===ae.requestAnimationFrame||((Su=ae.requestAnimationFrame)||Ah)(xh)),r.__H.__.forEach(function(o){o.i&&(o.__H=o.i),o.__V!==Kn&&(o.__=o.__V),o.i=void 0,o.__V=Kn})),Ls=ze=null},ae.__c=function(t,r){r.some(function(o){try{o.__h.forEach(Jn),o.__h=o.__h.filter(function(n){return!n.__||Bs(n)})}catch(n){r.some(function(s){s.__h&&(s.__h=[])}),r=[],ae.__e(n,o.__v)}}),xu&&xu(t,r)},ae.unmount=function(t){Au&&Au(t);var r,o=t.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{Jn(n)}catch(s){r=s}}),o.__H=void 0,r&&ae.__e(r,o.__v))};Iu=typeof requestAnimationFrame=="function"});var cg={};Rs(cg,{Children:()=>Vu,Component:()=>_t,Fragment:()=>Fe,PureComponent:()=>ii,StrictMode:()=>sg,Suspense:()=>$o,SuspenseList:()=>Kr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Xu,cloneElement:()=>tg,createContext:()=>Ho,createElement:()=>wt,createFactory:()=>Qu,createPortal:()=>Zu,createRef:()=>Vo,default:()=>zh,findDOMNode:()=>og,flushSync:()=>ig,forwardRef:()=>Wu,hydrate:()=>Ju,isElement:()=>gg,isFragment:()=>eg,isValidElement:()=>Zo,lazy:()=>$u,memo:()=>zu,render:()=>Ku,startTransition:()=>Hs,unmountComponentAtNode:()=>rg,unstable_batchedUpdates:()=>ng,useCallback:()=>ei,useContext:()=>ti,useDebugValue:()=>ri,useDeferredValue:()=>ag,useEffect:()=>qo,useErrorBoundary:()=>ju,useId:()=>oi,useImperativeHandle:()=>Qn,useInsertionEffect:()=>ug,useLayoutEffect:()=>Fr,useMemo:()=>Yr,useReducer:()=>Go,useRef:()=>Xn,useState:()=>Zr,useSyncExternalStore:()=>pg,useTransition:()=>lg,version:()=>kh});function ku(t,r){for(var o in r)t[o]=r[o];return t}function Ws(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function zs(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function ii(t){this.props=t}function zu(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:Ws(this.props,s)}function n(s){return this.shouldComponentUpdate=o,wt(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Wu(t){function r(o){var n=ku({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Ih,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}function Hu(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=ku({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Hu(n,r,o)})),t}function Gu(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Gu(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function $o(){this.__u=0,this.t=null,this.__b=null}function qu(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function $u(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return wt(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Kr(){this.u=null,this.o=null}function jh(t){return this.getChildContext=function(){return t.context},t.children}function Rh(t){var r=this,o=t.i;r.componentWillUnmount=function(){Or(null,r.l),r.l=null,r.i=null},r.i&&r.i!==o&&r.componentWillUnmount(),r.l||(r.i=o,r.l={nodeType:1,parentNode:o,childNodes:[],appendChild:function(n){this.childNodes.push(n),r.i.appendChild(n)},insertBefore:function(n,s){this.childNodes.push(n),r.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),r.i.removeChild(n)}}),Or(wt(jh,{context:r.context},t.__v),r.l)}function Zu(t,r){var o=wt(Rh,{__v:t,i:r});return o.containerInfo=r,o}function Ku(t,r,o){return r.__k==null&&(r.textContent=""),Or(t,r),typeof o=="function"&&o(),t?t.__c:null}function Ju(t,r,o){return Yn(t,r),typeof o=="function"&&o(),t?t.__c:null}function Ph(){}function Dh(){return this.cancelBubble}function Lh(){return this.defaultPrevented}function Qu(t){return wt.bind(null,t)}function Zo(t){return!!t&&t.$$typeof===Yu}function eg(t){return Zo(t)&&t.type===Fe}function tg(t){return Zo(t)?Ds.apply(null,arguments):t}function rg(t){return!!t.__k&&(Or(null,t),!0)}function og(t){return t&&(t.base||t.nodeType===1&&t)||null}function Hs(t){t()}function ag(t){return t}function lg(){return[!1,Hs]}function pg(t,r){var o=r(),n=Zr({h:{__:o,v:r}}),s=n[0].h,l=n[1];return Fr(function(){s.__=o,s.v=r,zs(s.__,r())||l({h:s})},[t,o,r]),qo(function(){return zs(s.__,s.v())||l({h:s}),t(function(){zs(s.__,s.v())||l({h:s})})},[t]),o}var Nu,Ih,Cu,Vu,Mh,Fu,Uu,Yu,Oh,Nh,Ch,Fh,Uh,Pu,Vs,Bh,Du,Lu,Bu,Xu,kh,ng,ig,sg,ug,gg,zh,fg=js(()=>{Nr();Nr();ni();ni();(ii.prototype=new _t).isPureReactComponent=!0,ii.prototype.shouldComponentUpdate=function(t,r){return Ws(this.props,t)||Ws(this.state,r)};Nu=ae.__b;ae.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Nu&&Nu(t)};Ih=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Cu=function(t,r){return t==null?null:Vt(Vt(t).map(r))},Vu={map:Cu,forEach:Cu,count:function(t){return t?Vt(t).length:0},only:function(t){var r=Vt(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:Vt},Mh=ae.__e;ae.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Mh(t,r,o,n)};Fu=ae.unmount;ae.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),Fu&&Fu(t)},($o.prototype=new _t).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=qu(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(v):v())};o.__R=m;var v=function(){if(!--n.__u){if(n.state.__a){var R=n.state.__a;n.__v.__k[0]=Gu(R,R.__c.__P,R.__c.__O)}var F;for(n.setState({__a:n.__b=null});F=n.t.pop();)F.forceUpdate()}},T=r.__h===!0;n.__u++||T||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},$o.prototype.componentWillUnmount=function(){this.t=[]},$o.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Hu(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&wt(Fe,null,t.fallback);return s&&(s.__h=null),[wt(Fe,null,r.__a?null:t.children),s]};Uu=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]{var{render:Wh,hydrate:Vh,unmountComponentAtNode:Hh}=(fg(),Os(cg));function dg(t){return{render(r){Wh(r,t)},unmount(){Hh(t)}}}Gs.createRoot=dg;Gs.hydrateRoot=function(t,r){return Vh(r,t),dg(t)}});var _r=ke(Me=>{var he=(Nr(),Os(bu)),at=(ni(),Os(Ou));function Ig(t,r){for(var o in r)t[o]=r[o];return t}function ra(t,r){for(var o in t)if(o!=="__source"&&!(o in r))return!0;for(var n in r)if(n!=="__source"&&t[n]!==r[n])return!0;return!1}function ta(t,r){return t===r&&(t!==0||1/t==1/r)||t!=t&&r!=r}function li(t){this.props=t}function Mg(t,r){function o(s){var l=this.props.ref,m=l==s.ref;return!m&&l&&(l.call?l(null):l.current=null),r?!r(this.props,s)||!m:ra(this.props,s)}function n(s){return this.shouldComponentUpdate=o,he.createElement(t,s)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(li.prototype=new he.Component).isPureReactComponent=!0,li.prototype.shouldComponentUpdate=function(t,r){return ra(this.props,t)||ra(this.state,r)};var vg=he.options.__b;he.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),vg&&vg(t)};var Kh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function jg(t){function r(o){var n=Ig({},o);return delete n.ref,t(n,o.ref||null)}return r.$$typeof=Kh,r.render=r,r.prototype.isReactComponent=r.__f=!0,r.displayName="ForwardRef("+(t.displayName||t.name)+")",r}var bg=function(t,r){return t==null?null:he.toChildArray(he.toChildArray(t).map(r))},Rg={map:bg,forEach:bg,count:function(t){return t?he.toChildArray(t).length:0},only:function(t){var r=he.toChildArray(t);if(r.length!==1)throw"Children.only";return r[0]},toArray:he.toChildArray},Jh=he.options.__e;he.options.__e=function(t,r,o,n){if(t.then){for(var s,l=r;l=l.__;)if((s=l.__c)&&s.__c)return r.__e==null&&(r.__e=o.__e,r.__k=o.__k),s.__c(t,r)}Jh(t,r,o,n)};var Sg=he.options.unmount;function Og(t,r,o){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),t.__c.__H=null),(t=Ig({},t)).__c!=null&&(t.__c.__P===o&&(t.__c.__P=r),t.__c=null),t.__k=t.__k&&t.__k.map(function(n){return Og(n,r,o)})),t}function Ng(t,r,o){return t&&o&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(n){return Ng(n,r,o)}),t.__c&&t.__c.__P===r&&(t.__e&&o.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=o)),t}function Xo(){this.__u=0,this.t=null,this.__b=null}function Cg(t){var r=t.__.__c;return r&&r.__a&&r.__a(t)}function Fg(t){var r,o,n;function s(l){if(r||(r=t()).then(function(m){o=m.default||m},function(m){n=m}),n)throw n;if(!o)throw r;return he.createElement(o,l)}return s.displayName="Lazy",s.__f=!0,s}function Jr(){this.u=null,this.o=null}he.options.unmount=function(t){var r=t.__c;r&&r.__R&&r.__R(),r&&t.__h===!0&&(t.type=null),Sg&&Sg(t)},(Xo.prototype=new he.Component).__c=function(t,r){var o=r.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var s=Cg(n.__v),l=!1,m=function(){l||(l=!0,o.__R=null,s?s(v):v())};o.__R=m;var v=function(){if(!--n.__u){if(n.state.__a){var R=n.state.__a;n.__v.__k[0]=Ng(R,R.__c.__P,R.__c.__O)}var F;for(n.setState({__a:n.__b=null});F=n.t.pop();)F.forceUpdate()}},T=r.__h===!0;n.__u++||T||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(m,m)},Xo.prototype.componentWillUnmount=function(){this.t=[]},Xo.prototype.render=function(t,r){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Og(this.__b,o,n.__O=n.__P)}this.__b=null}var s=r.__a&&he.createElement(he.Fragment,null,t.fallback);return s&&(s.__h=null),[he.createElement(he.Fragment,null,r.__a?null:t.children),s]};var wg=function(t,r,o){if(++o[1]===o[0]&&t.o.delete(r),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(o=t.u;o;){for(;o.length>3;)o.pop()();if(o[1]>>1,1),r.i.removeChild(n)}}),he.render(he.createElement(Xh,{context:r.context},t.__v),r.l)}function Ug(t,r){var o=he.createElement(Qh,{__v:t,i:r});return o.containerInfo=r,o}(Jr.prototype=new he.Component).__a=function(t){var r=this,o=Cg(r.__v),n=r.o.get(t);return n[0]++,function(s){var l=function(){r.props.revealOrder?(n.push(s),wg(r,t,n)):s()};o?o(l):l()}},Jr.prototype.render=function(t){this.u=null,this.o=new Map;var r=he.toChildArray(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&r.reverse();for(var o=r.length;o--;)this.o.set(r[o],this.u=[1,0,this.u]);return t.children},Jr.prototype.componentDidUpdate=Jr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(r,o){wg(t,o,r)})};var Pg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,em=/^(?: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]/,tm=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,rm=/[A-Z0-9]/g,om=typeof document<"u",nm=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};function Dg(t,r,o){return r.__k==null&&(r.textContent=""),he.render(t,r),typeof o=="function"&&o(),t?t.__c:null}function Lg(t,r,o){return he.hydrate(t,r),typeof o=="function"&&o(),t?t.__c:null}he.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(he.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})});var Eg=he.options.event;function im(){}function sm(){return this.cancelBubble}function am(){return this.defaultPrevented}he.options.event=function(t){return Eg&&(t=Eg(t)),t.persist=im,t.isPropagationStopped=sm,t.isDefaultPrevented=am,t.nativeEvent=t};var oa,lm={enumerable:!1,configurable:!0,get:function(){return this.class}},Tg=he.options.vnode;he.options.vnode=function(t){typeof t.type=="string"&&function(r){var o=r.props,n=r.type,s={};for(var l in o){var m=o[l];if(!(l==="value"&&"defaultValue"in o&&m==null||om&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var v=l.toLowerCase();l==="defaultValue"&&"value"in o&&o.value==null?l="value":l==="download"&&m===!0?m="":v==="ondoubleclick"?l="ondblclick":v!=="onchange"||n!=="input"&&n!=="textarea"||nm(o.type)?v==="onfocus"?l="onfocusin":v==="onblur"?l="onfocusout":tm.test(l)?l=v:n.indexOf("-")===-1&&em.test(l)?l=l.replace(rm,"-$&").toLowerCase():m===null&&(m=void 0):v=l="oninput",v==="oninput"&&s[l=v]&&(l="oninputCapture"),s[l]=m}}n=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=he.toChildArray(o.children).forEach(function(T){T.props.selected=s.value.indexOf(T.props.value)!=-1})),n=="select"&&s.defaultValue!=null&&(s.value=he.toChildArray(o.children).forEach(function(T){T.props.selected=s.multiple?s.defaultValue.indexOf(T.props.value)!=-1:s.defaultValue==T.props.value})),o.class&&!o.className?(s.class=o.class,Object.defineProperty(s,"className",lm)):(o.className&&!o.class||o.class&&o.className)&&(s.class=s.className=o.className),r.props=s}(t),t.$$typeof=Pg,Tg&&Tg(t)};var xg=he.options.__r;he.options.__r=function(t){xg&&xg(t),oa=t.__c};var Ag=he.options.diffed;he.options.diffed=function(t){Ag&&Ag(t);var r=t.props,o=t.__e;o!=null&&t.type==="textarea"&&"value"in r&&r.value!==o.value&&(o.value=r.value==null?"":r.value),oa=null};var Bg={ReactCurrentDispatcher:{current:{readContext:function(t){return oa.__n[t.__c].props.value}}}};function kg(t){return he.createElement.bind(null,t)}function Qo(t){return!!t&&t.$$typeof===Pg}function zg(t){return Qo(t)&&t.type===he.Fragment}function Wg(t){return Qo(t)?he.cloneElement.apply(null,arguments):t}function Vg(t){return!!t.__k&&(he.render(null,t),!0)}function Hg(t){return t&&(t.base||t.nodeType===1&&t)||null}var Gg=function(t,r){return t(r)},qg=function(t,r){return t(r)},$g=he.Fragment;function na(t){t()}function Zg(t){return t}function Yg(){return[!1,na]}var Kg=at.useLayoutEffect,Jg=Qo;function Xg(t,r){var o=r(),n=at.useState({p:{__:o,h:r}}),s=n[0].p,l=n[1];return at.useLayoutEffect(function(){s.__=o,s.h=r,ta(s.__,r())||l({p:s})},[t,o,r]),at.useEffect(function(){return ta(s.__,s.h())||l({p:s}),t(function(){ta(s.__,s.h())||l({p:s})})},[t]),o}var um={useState:at.useState,useId:at.useId,useReducer:at.useReducer,useEffect:at.useEffect,useLayoutEffect:at.useLayoutEffect,useInsertionEffect:Kg,useTransition:Yg,useDeferredValue:Zg,useSyncExternalStore:Xg,startTransition:na,useRef:at.useRef,useImperativeHandle:at.useImperativeHandle,useMemo:at.useMemo,useCallback:at.useCallback,useContext:at.useContext,useDebugValue:at.useDebugValue,version:"17.0.2",Children:Rg,render:Dg,hydrate:Lg,unmountComponentAtNode:Vg,createPortal:Ug,createElement:he.createElement,createContext:he.createContext,createFactory:kg,cloneElement:Wg,createRef:he.createRef,Fragment:he.Fragment,isValidElement:Qo,isElement:Jg,isFragment:zg,findDOMNode:Hg,Component:he.Component,PureComponent:li,memo:Mg,forwardRef:jg,flushSync:qg,unstable_batchedUpdates:Gg,StrictMode:$g,Suspense:Xo,SuspenseList:Jr,lazy:Fg,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Bg};Object.defineProperty(Me,"Component",{enumerable:!0,get:function(){return he.Component}}),Object.defineProperty(Me,"Fragment",{enumerable:!0,get:function(){return he.Fragment}}),Object.defineProperty(Me,"createContext",{enumerable:!0,get:function(){return he.createContext}}),Object.defineProperty(Me,"createElement",{enumerable:!0,get:function(){return he.createElement}}),Object.defineProperty(Me,"createRef",{enumerable:!0,get:function(){return he.createRef}}),Me.Children=Rg,Me.PureComponent=li,Me.StrictMode=$g,Me.Suspense=Xo,Me.SuspenseList=Jr,Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bg,Me.cloneElement=Wg,Me.createFactory=kg,Me.createPortal=Ug,Me.default=um,Me.findDOMNode=Hg,Me.flushSync=qg,Me.forwardRef=jg,Me.hydrate=Lg,Me.isElement=Jg,Me.isFragment=zg,Me.isValidElement=Qo,Me.lazy=Fg,Me.memo=Mg,Me.render=Dg,Me.startTransition=na,Me.unmountComponentAtNode=Vg,Me.unstable_batchedUpdates=Gg,Me.useDeferredValue=Zg,Me.useInsertionEffect=Kg,Me.useSyncExternalStore=Xg,Me.useTransition=Yg,Me.version="17.0.2",Object.keys(at).forEach(function(t){t==="default"||Me.hasOwnProperty(t)||Object.defineProperty(Me,t,{enumerable:!0,get:function(){return at[t]}})})});var ep=ke(Qg=>{"use strict";var Xr=_r();function gm(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var pm=typeof Object.is=="function"?Object.is:gm,cm=Xr.useState,fm=Xr.useEffect,dm=Xr.useLayoutEffect,hm=Xr.useDebugValue;function mm(t,r){var o=r(),n=cm({inst:{value:o,getSnapshot:r}}),s=n[0].inst,l=n[1];return dm(function(){s.value=o,s.getSnapshot=r,ia(s)&&l({inst:s})},[t,o,r]),fm(function(){return ia(s)&&l({inst:s}),t(function(){ia(s)&&l({inst:s})})},[t]),hm(o),o}function ia(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!pm(t,o)}catch{return!0}}function ym(t,r){return r()}var _m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ym:mm;Qg.useSyncExternalStore=Xr.useSyncExternalStore!==void 0?Xr.useSyncExternalStore:_m});var rp=ke((ab,tp)=>{"use strict";tp.exports=ep()});var er=ke((pb,ui)=>{(function(){"use strict";var t={}.hasOwnProperty,r="[native code]";function o(){for(var n=[],s=0;s{var sa=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(t=t||__filename),function(r){r=r||{};var o;o||(o=typeof r<"u"?r:{});var n,s;o.ready=new Promise(function(i,u){n=i,s=u}),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){i.MakeSWCanvasSurface=function(u){var p=u;if(p.tagName!=="CANVAS"&&(p=document.getElementById(u),!p))throw"Canvas with id "+u+" was not found";return(u=i.MakeSurface(p.width,p.height))&&(u.Nd=p),u},i.MakeCanvasSurface||(i.MakeCanvasSurface=i.MakeSWCanvasSurface),i.MakeSurface=function(u,p){var y={width:u,height:p,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB},S=u*p*4,x=i._malloc(S);return(y=i.Surface._makeRasterDirect(y,x,4*u))&&(y.Nd=null,y.Ef=u,y.Af=p,y.Cf=S,y.af=x,y.getCanvas().clear(i.TRANSPARENT)),y},i.MakeRasterDirectSurface=function(u,p,y){return i.Surface._makeRasterDirect(u,p.byteOffset,y)},i.Surface.prototype.flush=function(u){if(i.Od(this.Md),this._flush(),this.Nd){var p=new Uint8ClampedArray(i.HEAPU8.buffer,this.af,this.Cf);p=new ImageData(p,this.Ef,this.Af),u?this.Nd.getContext("2d").putImageData(p,0,0,u[0],u[1],u[2]-u[0],u[3]-u[1]):this.Nd.getContext("2d").putImageData(p,0,0)}},i.Surface.prototype.dispose=function(){this.af&&i._free(this.af),this.delete()},i.Od=i.Od||function(){},i.Se=i.Se||function(){return null}})}(o),function(i){i.Vd=i.Vd||[],i.Vd.push(function(){function u(A,j,U){return A&&A.hasOwnProperty(j)?A[j]:U}function p(A){var j=Hr(Ot);return Ot[j]=A,j}function y(A){return A.naturalHeight||A.videoHeight||A.displayHeight||A.height}function S(A){return A.naturalWidth||A.videoWidth||A.displayWidth||A.width}function x(A,j,U,Z){return A.bindTexture(A.TEXTURE_2D,j),Z||U.alphaType!==i.AlphaType.Premul||A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),j}function C(A,j,U){U||j.alphaType!==i.AlphaType.Premul||A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),A.bindTexture(A.TEXTURE_2D,null)}i.GetWebGLContext=function(A,j){if(!A)throw"null canvas passed into makeWebGLContext";var U={alpha:u(j,"alpha",1),depth:u(j,"depth",1),stencil:u(j,"stencil",8),antialias:u(j,"antialias",0),premultipliedAlpha:u(j,"premultipliedAlpha",1),preserveDrawingBuffer:u(j,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:u(j,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:u(j,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:u(j,"enableExtensionsByDefault",1),explicitSwapControl:u(j,"explicitSwapControl",0),renderViaOffscreenBackBuffer:u(j,"renderViaOffscreenBackBuffer",0)};if(U.majorVersion=j&&j.majorVersion?j.majorVersion:typeof WebGL2RenderingContext<"u"?2:1,U.explicitSwapControl)throw"explicitSwapControl is not supported";return A=Vd(A,U),A?(Vl(A),Se.ge.getExtension("WEBGL_debug_renderer_info"),A):0},i.deleteContext=function(A){Se===Jt[A]&&(Se=null),typeof JSEvents=="object"&&JSEvents.ug(Jt[A].ge.canvas),Jt[A]&&Jt[A].ge.canvas&&(Jt[A].ge.canvas.yf=void 0),Jt[A]=null},i._setTextureCleanup({deleteTexture:function(A,j){var U=Ot[j];U&&Jt[A].ge.deleteTexture(U),Ot[j]=null}}),i.MakeWebGLContext=function(A){if(!this.Od(A))return null;var j=this._MakeGrContext();if(!j)return null;j.Md=A;var U=j.delete.bind(j);return j.delete=function(){i.Od(this.Md),U()}.bind(j),Se.ef=j},i.MakeGrContext=i.MakeWebGLContext,i.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){i.Od(this.Md),this._getResourceCacheLimitBytes()},i.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){i.Od(this.Md),this._getResourceCacheUsageBytes()},i.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){i.Od(this.Md),this._releaseResourcesAndAbandonContext()},i.GrDirectContext.prototype.setResourceCacheLimitBytes=function(A){i.Od(this.Md),this._setResourceCacheLimitBytes(A)},i.MakeOnScreenGLSurface=function(A,j,U,Z,J,ie){return!this.Od(A.Md)||(j=J===void 0||ie===void 0?this._MakeOnScreenGLSurface(A,j,U,Z):this._MakeOnScreenGLSurface(A,j,U,Z,J,ie),!j)?null:(j.Md=A.Md,j)},i.MakeRenderTarget=function(){var A=arguments[0];if(!this.Od(A.Md))return null;if(arguments.length===3){var j=this._MakeRenderTargetWH(A,arguments[1],arguments[2]);if(!j)return null}else if(arguments.length===2){if(j=this._MakeRenderTargetII(A,arguments[1]),!j)return null}else return null;return j.Md=A.Md,j},i.MakeWebGLCanvasSurface=function(A,j,U){j=j||null;var Z=A,J=typeof OffscreenCanvas<"u"&&Z instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&Z instanceof HTMLCanvasElement||J||(Z=document.getElementById(A),Z)))throw"Canvas with id "+A+" was not found";if(A=this.GetWebGLContext(Z,U),!A||0>A)throw"failed to create webgl context: err "+A;return A=this.MakeWebGLContext(A),j=this.MakeOnScreenGLSurface(A,Z.width,Z.height,j),j||(j=Z.cloneNode(!0),Z.parentNode.replaceChild(j,Z),j.classList.add("ck-replaced"),i.MakeSWCanvasSurface(j))},i.MakeCanvasSurface=i.MakeWebGLCanvasSurface,i.Surface.prototype.makeImageFromTexture=function(A,j){return i.Od(this.Md),A=p(A),(j=this._makeImageFromTexture(this.Md,A,j))&&(j.Le=A),j},i.Surface.prototype.makeImageFromTextureSource=function(A,j,U){j||(j={height:y(A),width:S(A),colorType:i.ColorType.RGBA_8888,alphaType:U?i.AlphaType.Premul:i.AlphaType.Unpremul}),j.colorSpace||(j.colorSpace=i.ColorSpace.SRGB),i.Od(this.Md);var Z=Se.ge;return U=x(Z,Z.createTexture(),j,U),Se.version===2?Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,j.width,j.height,0,Z.RGBA,Z.UNSIGNED_BYTE,A):Z.texImage2D(Z.TEXTURE_2D,0,Z.RGBA,Z.RGBA,Z.UNSIGNED_BYTE,A),C(Z,j),this._resetContext(),this.makeImageFromTexture(U,j)},i.Surface.prototype.updateTextureFromSource=function(A,j,U){if(A.Le){i.Od(this.Md);var Z=A.getImageInfo(),J=Se.ge,ie=x(J,Ot[A.Le],Z,U);Se.version===2?J.texImage2D(J.TEXTURE_2D,0,J.RGBA,S(j),y(j),0,J.RGBA,J.UNSIGNED_BYTE,j):J.texImage2D(J.TEXTURE_2D,0,J.RGBA,J.RGBA,J.UNSIGNED_BYTE,j),C(J,Z,U),this._resetContext(),Ot[A.Le]=null,A.Le=p(ie),Z.colorSpace=A.getColorSpace(),j=this._makeImageFromTexture(this.Md,A.Le,Z),U=A.Ld.Td,J=A.Ld.$d,A.Ld.Td=j.Ld.Td,A.Ld.$d=j.Ld.$d,j.Ld.Td=U,j.Ld.$d=J,j.delete(),Z.colorSpace.delete()}},i.MakeLazyImageFromTextureSource=function(A,j,U){j||(j={height:y(A),width:S(A),colorType:i.ColorType.RGBA_8888,alphaType:U?i.AlphaType.Premul:i.AlphaType.Unpremul}),j.colorSpace||(j.colorSpace=i.ColorSpace.SRGB);var Z={makeTexture:function(){var J=Se,ie=J.ge,k=x(ie,ie.createTexture(),j,U);return J.version===2?ie.texImage2D(ie.TEXTURE_2D,0,ie.RGBA,j.width,j.height,0,ie.RGBA,ie.UNSIGNED_BYTE,A):ie.texImage2D(ie.TEXTURE_2D,0,ie.RGBA,ie.RGBA,ie.UNSIGNED_BYTE,A),C(ie,j,U),p(k)},freeSrc:function(){}};return A.constructor.name==="VideoFrame"&&(Z.freeSrc=function(){A.close()}),i.Image._makeFromGenerator(j,Z)},i.Od=function(A){return A?Vl(A):!1},i.Se=function(){return Se&&Se.ef&&!Se.ef.isDeleted()?Se.ef:null}})}(o),function(i){function u(h,g,_,E,N){for(var L=0;L>>0}function x(h){if(h&&h._ck)return h;if(h instanceof Float32Array){for(var g=Math.floor(h.length/4),_=new Uint32Array(g),E=0;EH;H++)i.HEAPF32[N+E]=h[L][H],E++;h=_}else h=je;g.ce=h}else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof h;return g}function J(h){if(!h)return je;var g=Ss.toTypedArray();if(h.length){if(h.length===6||h.length===9)return U(h,"HEAPF32",dr),h.length===6&&i.HEAPF32.set(fh,6+dr/4),dr;if(h.length===16)return g[0]=h[0],g[1]=h[1],g[2]=h[3],g[3]=h[4],g[4]=h[5],g[5]=h[7],g[6]=h[12],g[7]=h[13],g[8]=h[15],dr;throw"invalid matrix size"}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m41,g[3]=h.m12,g[4]=h.m22,g[5]=h.m42,g[6]=h.m14,g[7]=h.m24,g[8]=h.m44,dr}function ie(h){if(!h)return je;var g=ws.toTypedArray();if(h.length){if(h.length!==16&&h.length!==6&&h.length!==9)throw"invalid matrix size";return h.length===16?U(h,"HEAPF32",Gr):(g.fill(0),g[0]=h[0],g[1]=h[1],g[3]=h[2],g[4]=h[3],g[5]=h[4],g[7]=h[5],g[10]=1,g[12]=h[6],g[13]=h[7],g[15]=h[8],h.length===6&&(g[12]=0,g[13]=0,g[15]=1),Gr)}if(h.m11===void 0)throw"invalid matrix argument";return g[0]=h.m11,g[1]=h.m21,g[2]=h.m31,g[3]=h.m41,g[4]=h.m12,g[5]=h.m22,g[6]=h.m32,g[7]=h.m42,g[8]=h.m13,g[9]=h.m23,g[10]=h.m33,g[11]=h.m43,g[12]=h.m14,g[13]=h.m24,g[14]=h.m34,g[15]=h.m44,Gr}function k(h,g){return U(h,"HEAPF32",g||jr)}function ge(h,g,_,E){var N=Es.toTypedArray();return N[0]=h,N[1]=g,N[2]=_,N[3]=E,jr}function Ee(h){for(var g=new Float32Array(4),_=0;4>_;_++)g[_]=i.HEAPF32[h/4+_];return g}function Te(h,g){return U(h,"HEAPF32",g||st)}function yt(h,g){return U(h,"HEAPF32",g||Is)}function Nt(){for(var h=0,g=0;g>>0},i.Color4f=function(h,g,_,E){return E===void 0&&(E=1),Float32Array.of(h,g,_,E)},Object.defineProperty(i,"TRANSPARENT",{get:function(){return i.Color4f(0,0,0,0)}}),Object.defineProperty(i,"BLACK",{get:function(){return i.Color4f(0,0,0,1)}}),Object.defineProperty(i,"WHITE",{get:function(){return i.Color4f(1,1,1,1)}}),Object.defineProperty(i,"RED",{get:function(){return i.Color4f(1,0,0,1)}}),Object.defineProperty(i,"GREEN",{get:function(){return i.Color4f(0,1,0,1)}}),Object.defineProperty(i,"BLUE",{get:function(){return i.Color4f(0,0,1,1)}}),Object.defineProperty(i,"YELLOW",{get:function(){return i.Color4f(1,1,0,1)}}),Object.defineProperty(i,"CYAN",{get:function(){return i.Color4f(0,1,1,1)}}),Object.defineProperty(i,"MAGENTA",{get:function(){return i.Color4f(1,0,1,1)}}),i.getColorComponents=function(h){return[Math.floor(255*h[0]),Math.floor(255*h[1]),Math.floor(255*h[2]),h[3]]},i.parseColorString=function(h,g){if(h=h.toLowerCase(),h.startsWith("#")){switch(g=255,h.length){case 9:g=parseInt(h.slice(7,9),16);case 7:var _=parseInt(h.slice(1,3),16),E=parseInt(h.slice(3,5),16),N=parseInt(h.slice(5,7),16);break;case 5:g=17*parseInt(h.slice(4,5),16);case 4:_=17*parseInt(h.slice(1,2),16),E=17*parseInt(h.slice(2,3),16),N=17*parseInt(h.slice(3,4),16)}return i.Color(_,E,N,g/255)}return h.startsWith("rgba")?(h=h.slice(5,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("rgb")?(h=h.slice(4,-1),h=h.split(","),i.Color(+h[0],+h[1],+h[2],C(h[3]))):h.startsWith("gray(")||h.startsWith("hsl")||!g||(h=g[h],h===void 0)?i.BLACK:h},i.multiplyByAlpha=function(h,g){return h=h.slice(),h[3]=Math.max(0,Math.min(h[3]*g,1)),h},i.Malloc=function(h,g){var _=i._malloc(g*h.BYTES_PER_ELEMENT);return{_ck:!0,length:g,byteOffset:_,re:null,subarray:function(E,N){return E=this.toTypedArray().subarray(E,N),E._ck=!0,E},toTypedArray:function(){return this.re&&this.re.length?this.re:(this.re=new h(i.HEAPU8.buffer,_,g),this.re._ck=!0,this.re)}}},i.Free=function(h){i._free(h.byteOffset),h.byteOffset=je,h.toTypedArray=null,h.re=null};var dr=je,Ss,Gr=je,ws,jr=je,Es,Xt,st=je,Xl,hr=je,Ql,Ts=je,eu,xs=je,As,Hn=je,tu,Is=je,ru,ou=je,fh=Float32Array.of(0,0,1),je=0;i.onRuntimeInitialized=function(){function h(g,_,E,N,L,H,te){H||(H=4*N.width,N.colorType===i.ColorType.RGBA_F16?H*=2:N.colorType===i.ColorType.RGBA_F32&&(H*=4));var ye=H*N.height,de=L?L.byteOffset:i._malloc(ye);if(te?!g._readPixels(N,de,H,_,E,te):!g._readPixels(N,de,H,_,E))return L||i._free(de),null;if(L)return L.toTypedArray();switch(N.colorType){case i.ColorType.RGBA_8888:case i.ColorType.RGBA_F16:g=new Uint8Array(i.HEAPU8.buffer,de,ye).slice();break;case i.ColorType.RGBA_F32:g=new Float32Array(i.HEAPU8.buffer,de,ye).slice();break;default:return null}return i._free(de),g}Es=i.Malloc(Float32Array,4),jr=Es.byteOffset,ws=i.Malloc(Float32Array,16),Gr=ws.byteOffset,Ss=i.Malloc(Float32Array,9),dr=Ss.byteOffset,tu=i.Malloc(Float32Array,12),Is=tu.byteOffset,ru=i.Malloc(Float32Array,12),ou=ru.byteOffset,Xt=i.Malloc(Float32Array,4),st=Xt.byteOffset,Xl=i.Malloc(Float32Array,4),hr=Xl.byteOffset,Ql=i.Malloc(Float32Array,3),Ts=Ql.byteOffset,eu=i.Malloc(Float32Array,3),xs=eu.byteOffset,As=i.Malloc(Int32Array,4),Hn=As.byteOffset,i.ColorSpace.SRGB=i.ColorSpace._MakeSRGB(),i.ColorSpace.DISPLAY_P3=i.ColorSpace._MakeDisplayP3(),i.ColorSpace.ADOBE_RGB=i.ColorSpace._MakeAdobeRGB(),i.GlyphRunFlags={IsWhiteSpace:i._GlyphRunFlags_isWhiteSpace},i.Path.MakeFromCmds=function(g){var _=U(g,"HEAPF32"),E=i.Path._MakeFromCmds(_,g.length);return j(_,g),E},i.Path.MakeFromVerbsPointsWeights=function(g,_,E){var N=U(g,"HEAPU8"),L=U(_,"HEAPF32"),H=U(E,"HEAPF32"),te=i.Path._MakeFromVerbsPointsWeights(N,g.length,L,_.length,H,E&&E.length||0);return j(N,g),j(L,_),j(H,E),te},i.Path.prototype.addArc=function(g,_,E){return g=Te(g),this._addArc(g,_,E),this},i.Path.prototype.addCircle=function(g,_,E,N){return this._addCircle(g,_,E,!!N),this},i.Path.prototype.addOval=function(g,_,E){return E===void 0&&(E=1),g=Te(g),this._addOval(g,!!_,E),this},i.Path.prototype.addPath=function(){var g=Array.prototype.slice.call(arguments),_=g[0],E=!1;if(typeof g[g.length-1]=="boolean"&&(E=g.pop()),g.length===1)this._addPath(_,1,0,0,0,1,0,0,0,1,E);else if(g.length===2)g=g[1],this._addPath(_,g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1,E);else if(g.length===7||g.length===10)this._addPath(_,g[1],g[2],g[3],g[4],g[5],g[6],g[7]||0,g[8]||0,g[9]||1,E);else return null;return this},i.Path.prototype.addPoly=function(g,_){var E=U(g,"HEAPF32");return this._addPoly(E,g.length/2,_),j(E,g),this},i.Path.prototype.addRect=function(g,_){return g=Te(g),this._addRect(g,!!_),this},i.Path.prototype.addRRect=function(g,_){return g=yt(g),this._addRRect(g,!!_),this},i.Path.prototype.addVerbsPointsWeights=function(g,_,E){var N=U(g,"HEAPU8"),L=U(_,"HEAPF32"),H=U(E,"HEAPF32");this._addVerbsPointsWeights(N,g.length,L,_.length,H,E&&E.length||0),j(N,g),j(L,_),j(H,E)},i.Path.prototype.arc=function(g,_,E,N,L,H){return g=i.LTRBRect(g-E,_-E,g+E,_+E),L=(L-N)/Math.PI*180-360*!!H,H=new i.Path,H.addArc(g,N/Math.PI*180,L),this.addPath(H,!0),H.delete(),this},i.Path.prototype.arcToOval=function(g,_,E,N){return g=Te(g),this._arcToOval(g,_,E,N),this},i.Path.prototype.arcToRotated=function(g,_,E,N,L,H,te){return this._arcToRotated(g,_,E,!!N,!!L,H,te),this},i.Path.prototype.arcToTangent=function(g,_,E,N,L){return this._arcToTangent(g,_,E,N,L),this},i.Path.prototype.close=function(){return this._close(),this},i.Path.prototype.conicTo=function(g,_,E,N,L){return this._conicTo(g,_,E,N,L),this},i.Path.prototype.computeTightBounds=function(g){this._computeTightBounds(st);var _=Xt.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.cubicTo=function(g,_,E,N,L,H){return this._cubicTo(g,_,E,N,L,H),this},i.Path.prototype.dash=function(g,_,E){return this._dash(g,_,E)?this:null},i.Path.prototype.getBounds=function(g){this._getBounds(st);var _=Xt.toTypedArray();return g?(g.set(_),g):_.slice()},i.Path.prototype.lineTo=function(g,_){return this._lineTo(g,_),this},i.Path.prototype.moveTo=function(g,_){return this._moveTo(g,_),this},i.Path.prototype.offset=function(g,_){return this._transform(1,0,g,0,1,_,0,0,1),this},i.Path.prototype.quadTo=function(g,_,E,N){return this._quadTo(g,_,E,N),this},i.Path.prototype.rArcTo=function(g,_,E,N,L,H,te){return this._rArcTo(g,_,E,N,L,H,te),this},i.Path.prototype.rConicTo=function(g,_,E,N,L){return this._rConicTo(g,_,E,N,L),this},i.Path.prototype.rCubicTo=function(g,_,E,N,L,H){return this._rCubicTo(g,_,E,N,L,H),this},i.Path.prototype.rLineTo=function(g,_){return this._rLineTo(g,_),this},i.Path.prototype.rMoveTo=function(g,_){return this._rMoveTo(g,_),this},i.Path.prototype.rQuadTo=function(g,_,E,N){return this._rQuadTo(g,_,E,N),this},i.Path.prototype.stroke=function(g){return g=g||{},g.width=g.width||1,g.miter_limit=g.miter_limit||4,g.cap=g.cap||i.StrokeCap.Butt,g.join=g.join||i.StrokeJoin.Miter,g.precision=g.precision||1,this._stroke(g)?this:null},i.Path.prototype.transform=function(){if(arguments.length===1){var g=arguments[0];this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1)}else if(arguments.length===6||arguments.length===9)g=arguments,this._transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6]||0,g[7]||0,g[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this},i.Path.prototype.trim=function(g,_,E){return this._trim(g,_,!!E)?this:null},i.Image.prototype.encodeToBytes=function(g,_){var E=i.Se();return g=g||i.ImageFormat.PNG,_=_||100,E?this._encodeToBytes(g,_,E):this._encodeToBytes(g,_)},i.Image.prototype.makeShaderCubic=function(g,_,E,N,L){return L=J(L),this._makeShaderCubic(g,_,E,N,L)},i.Image.prototype.makeShaderOptions=function(g,_,E,N,L){return L=J(L),this._makeShaderOptions(g,_,E,N,L)},i.Image.prototype.readPixels=function(g,_,E,N,L){var H=i.Se();return h(this,g,_,E,N,L,H)},i.Canvas.prototype.clear=function(g){i.Od(this.Md),g=k(g),this._clear(g)},i.Canvas.prototype.clipRRect=function(g,_,E){i.Od(this.Md),g=yt(g),this._clipRRect(g,_,E)},i.Canvas.prototype.clipRect=function(g,_,E){i.Od(this.Md),g=Te(g),this._clipRect(g,_,E)},i.Canvas.prototype.concat=function(g){i.Od(this.Md),g=ie(g),this._concat(g)},i.Canvas.prototype.drawArc=function(g,_,E,N,L){i.Od(this.Md),g=Te(g),this._drawArc(g,_,E,N,L)},i.Canvas.prototype.drawAtlas=function(g,_,E,N,L,H,te){if(g&&N&&_&&E&&_.length===E.length){i.Od(this.Md),L||(L=i.BlendMode.SrcOver);var ye=U(_,"HEAPF32"),de=U(E,"HEAPF32"),Oe=E.length/4,O=U(x(H),"HEAPU32");if(te&&"B"in te&&"C"in te)this._drawAtlasCubic(g,de,ye,O,Oe,L,te.B,te.C,N);else{let q=i.FilterMode.Linear,ve=i.MipmapMode.None;te&&(q=te.filter,"mipmap"in te&&(ve=te.mipmap)),this._drawAtlasOptions(g,de,ye,O,Oe,L,q,ve,N)}j(ye,_),j(de,E),j(O,H)}},i.Canvas.prototype.drawCircle=function(g,_,E,N){i.Od(this.Md),this._drawCircle(g,_,E,N)},i.Canvas.prototype.drawColor=function(g,_){i.Od(this.Md),g=k(g),_!==void 0?this._drawColor(g,_):this._drawColor(g)},i.Canvas.prototype.drawColorInt=function(g,_){i.Od(this.Md),this._drawColorInt(g,_||i.BlendMode.SrcOver)},i.Canvas.prototype.drawColorComponents=function(g,_,E,N,L){i.Od(this.Md),g=ge(g,_,E,N),L!==void 0?this._drawColor(g,L):this._drawColor(g)},i.Canvas.prototype.drawDRRect=function(g,_,E){i.Od(this.Md),g=yt(g,Is),_=yt(_,ou),this._drawDRRect(g,_,E)},i.Canvas.prototype.drawImage=function(g,_,E,N){i.Od(this.Md),this._drawImage(g,_,E,N||null)},i.Canvas.prototype.drawImageCubic=function(g,_,E,N,L,H){i.Od(this.Md),this._drawImageCubic(g,_,E,N,L,H||null)},i.Canvas.prototype.drawImageOptions=function(g,_,E,N,L,H){i.Od(this.Md),this._drawImageOptions(g,_,E,N,L,H||null)},i.Canvas.prototype.drawImageNine=function(g,_,E,N,L){i.Od(this.Md),_=U(_,"HEAP32",Hn),E=Te(E),this._drawImageNine(g,_,E,N,L||null)},i.Canvas.prototype.drawImageRect=function(g,_,E,N,L){i.Od(this.Md),Te(_,st),Te(E,hr),this._drawImageRect(g,st,hr,N,!!L)},i.Canvas.prototype.drawImageRectCubic=function(g,_,E,N,L,H){i.Od(this.Md),Te(_,st),Te(E,hr),this._drawImageRectCubic(g,st,hr,N,L,H||null)},i.Canvas.prototype.drawImageRectOptions=function(g,_,E,N,L,H){i.Od(this.Md),Te(_,st),Te(E,hr),this._drawImageRectOptions(g,st,hr,N,L,H||null)},i.Canvas.prototype.drawLine=function(g,_,E,N,L){i.Od(this.Md),this._drawLine(g,_,E,N,L)},i.Canvas.prototype.drawOval=function(g,_){i.Od(this.Md),g=Te(g),this._drawOval(g,_)},i.Canvas.prototype.drawPaint=function(g){i.Od(this.Md),this._drawPaint(g)},i.Canvas.prototype.drawParagraph=function(g,_,E){i.Od(this.Md),this._drawParagraph(g,_,E)},i.Canvas.prototype.drawPatch=function(g,_,E,N,L){if(24>g.length)throw"Need 12 cubic points";if(_&&4>_.length)throw"Need 4 colors";if(E&&8>E.length)throw"Need 4 shader coordinates";i.Od(this.Md);let H=U(g,"HEAPF32"),te=_?U(x(_),"HEAPU32"):je,ye=E?U(E,"HEAPF32"):je;N||(N=i.BlendMode.Modulate),this._drawPatch(H,te,ye,N,L),j(ye,E),j(te,_),j(H,g)},i.Canvas.prototype.drawPath=function(g,_){i.Od(this.Md),this._drawPath(g,_)},i.Canvas.prototype.drawPicture=function(g){i.Od(this.Md),this._drawPicture(g)},i.Canvas.prototype.drawPoints=function(g,_,E){i.Od(this.Md);var N=U(_,"HEAPF32");this._drawPoints(g,N,_.length/2,E),j(N,_)},i.Canvas.prototype.drawRRect=function(g,_){i.Od(this.Md),g=yt(g),this._drawRRect(g,_)},i.Canvas.prototype.drawRect=function(g,_){i.Od(this.Md),g=Te(g),this._drawRect(g,_)},i.Canvas.prototype.drawRect4f=function(g,_,E,N,L){i.Od(this.Md),this._drawRect4f(g,_,E,N,L)},i.Canvas.prototype.drawShadow=function(g,_,E,N,L,H,te){i.Od(this.Md);var ye=U(L,"HEAPF32"),de=U(H,"HEAPF32");_=U(_,"HEAPF32",Ts),E=U(E,"HEAPF32",xs),this._drawShadow(g,_,E,N,ye,de,te),j(ye,L),j(de,H)},i.getShadowLocalBounds=function(g,_,E,N,L,H,te){return g=J(g),E=U(E,"HEAPF32",Ts),N=U(N,"HEAPF32",xs),this._getShadowLocalBounds(g,_,E,N,L,H,st)?(_=Xt.toTypedArray(),te?(te.set(_),te):_.slice()):null},i.Canvas.prototype.drawTextBlob=function(g,_,E,N){i.Od(this.Md),this._drawTextBlob(g,_,E,N)},i.Canvas.prototype.drawVertices=function(g,_,E){i.Od(this.Md),this._drawVertices(g,_,E)},i.Canvas.prototype.getDeviceClipBounds=function(g){this._getDeviceClipBounds(Hn);var _=As.toTypedArray();return g?g.set(_):g=_.slice(),g},i.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Gr);for(var g=Gr,_=Array(16),E=0;16>E;E++)_[E]=i.HEAPF32[g/4+E];return _},i.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(dr);for(var g=Array(9),_=0;9>_;_++)g[_]=i.HEAPF32[dr/4+_];return g},i.Canvas.prototype.makeSurface=function(g){return g=this._makeSurface(g),g.Md=this.Md,g},i.Canvas.prototype.readPixels=function(g,_,E,N,L){return i.Od(this.Md),h(this,g,_,E,N,L)},i.Canvas.prototype.saveLayer=function(g,_,E,N){return _=Te(_),this._saveLayer(g||null,_,E||null,N||0)},i.Canvas.prototype.writePixels=function(g,_,E,N,L,H,te,ye){if(g.byteLength%(_*E))throw"pixels length must be a multiple of the srcWidth * srcHeight";i.Od(this.Md);var de=g.byteLength/(_*E);H=H||i.AlphaType.Unpremul,te=te||i.ColorType.RGBA_8888,ye=ye||i.ColorSpace.SRGB;var Oe=de*_;return de=U(g,"HEAPU8"),_=this._writePixels({width:_,height:E,colorType:te,alphaType:H,colorSpace:ye},de,Oe,N,L),j(de,g),_},i.ColorFilter.MakeBlend=function(g,_,E){return g=k(g),E=E||i.ColorSpace.SRGB,i.ColorFilter._MakeBlend(g,_,E)},i.ColorFilter.MakeMatrix=function(g){if(!g||g.length!==20)throw"invalid color matrix";var _=U(g,"HEAPF32"),E=i.ColorFilter._makeMatrix(_);return j(_,g),E},i.ContourMeasure.prototype.getPosTan=function(g,_){return this._getPosTan(g,st),g=Xt.toTypedArray(),_?(_.set(g),_):g.slice()},i.ImageFilter.MakeDropShadow=function(g,_,E,N,L,H){return L=k(L,jr),i.ImageFilter._MakeDropShadow(g,_,E,N,L,H)},i.ImageFilter.MakeDropShadowOnly=function(g,_,E,N,L,H){return L=k(L,jr),i.ImageFilter._MakeDropShadowOnly(g,_,E,N,L,H)},i.ImageFilter.MakeImage=function(g,_,E,N){if(E=Te(E,st),N=Te(N,hr),"B"in _&&"C"in _)return i.ImageFilter._MakeImageCubic(g,_.B,_.C,E,N);let L=_.filter,H=i.MipmapMode.None;return"mipmap"in _&&(H=_.mipmap),i.ImageFilter._MakeImageOptions(g,L,H,E,N)},i.ImageFilter.MakeMatrixTransform=function(g,_,E){if(g=J(g),"B"in _&&"C"in _)return i.ImageFilter._MakeMatrixTransformCubic(g,_.B,_.C,E);let N=_.filter,L=i.MipmapMode.None;return"mipmap"in _&&(L=_.mipmap),i.ImageFilter._MakeMatrixTransformOptions(g,N,L,E)},i.Paint.prototype.getColor=function(){return this._getColor(jr),Ee(jr)},i.Paint.prototype.setColor=function(g,_){_=_||null,g=k(g),this._setColor(g,_)},i.Paint.prototype.setColorComponents=function(g,_,E,N,L){L=L||null,g=ge(g,_,E,N),this._setColor(g,L)},i.Path.prototype.getPoint=function(g,_){return this._getPoint(g,st),g=Xt.toTypedArray(),_?(_[0]=g[0],_[1]=g[1],_):g.slice(0,2)},i.Picture.prototype.makeShader=function(g,_,E,N,L){return N=J(N),L=Te(L),this._makeShader(g,_,E,N,L)},i.PictureRecorder.prototype.beginRecording=function(g){return g=Te(g),this._beginRecording(g)},i.Surface.prototype.getCanvas=function(){var g=this._getCanvas();return g.Md=this.Md,g},i.Surface.prototype.makeImageSnapshot=function(g){return i.Od(this.Md),g=U(g,"HEAP32",Hn),this._makeImageSnapshot(g)},i.Surface.prototype.makeSurface=function(g){return i.Od(this.Md),g=this._makeSurface(g),g.Md=this.Md,g},i.Surface.prototype.Df=function(g,_){return this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_)}.bind(this))},i.Surface.prototype.requestAnimationFrame||(i.Surface.prototype.requestAnimationFrame=i.Surface.prototype.Df),i.Surface.prototype.zf=function(g,_){this.He||(this.He=this.getCanvas()),requestAnimationFrame(function(){i.Od(this.Md),g(this.He),this.flush(_),this.dispose()}.bind(this))},i.Surface.prototype.drawOnce||(i.Surface.prototype.drawOnce=i.Surface.prototype.zf),i.PathEffect.MakeDash=function(g,_){if(_||(_=0),!g.length||g.length%2===1)throw"Intervals array must have even length";var E=U(g,"HEAPF32");return _=i.PathEffect._MakeDash(E,g.length,_),j(E,g),_},i.PathEffect.MakeLine2D=function(g,_){return _=J(_),i.PathEffect._MakeLine2D(g,_)},i.PathEffect.MakePath2D=function(g,_){return g=J(g),i.PathEffect._MakePath2D(g,_)},i.Shader.MakeColor=function(g,_){return _=_||null,g=k(g),i.Shader._MakeColor(g,_)},i.Shader.Blend=i.Shader.MakeBlend,i.Shader.Color=i.Shader.MakeColor,i.Shader.MakeLinearGradient=function(g,_,E,N,L,H,te,ye){ye=ye||null;var de=Z(E),Oe=U(N,"HEAPF32");te=te||0,H=J(H);var O=Xt.toTypedArray();return O.set(g),O.set(_,2),g=i.Shader._MakeLinearGradient(st,de.ce,de.colorType,Oe,de.count,L,te,H,ye),j(de.ce,E),N&&j(Oe,N),g},i.Shader.MakeRadialGradient=function(g,_,E,N,L,H,te,ye){ye=ye||null;var de=Z(E),Oe=U(N,"HEAPF32");return te=te||0,H=J(H),g=i.Shader._MakeRadialGradient(g[0],g[1],_,de.ce,de.colorType,Oe,de.count,L,te,H,ye),j(de.ce,E),N&&j(Oe,N),g},i.Shader.MakeSweepGradient=function(g,_,E,N,L,H,te,ye,de,Oe){Oe=Oe||null;var O=Z(E),q=U(N,"HEAPF32");return te=te||0,ye=ye||0,de=de||360,H=J(H),g=i.Shader._MakeSweepGradient(g,_,O.ce,O.colorType,q,O.count,L,ye,de,te,H,Oe),j(O.ce,E),N&&j(q,N),g},i.Shader.MakeTwoPointConicalGradient=function(g,_,E,N,L,H,te,ye,de,Oe){Oe=Oe||null;var O=Z(L),q=U(H,"HEAPF32");de=de||0,ye=J(ye);var ve=Xt.toTypedArray();return ve.set(g),ve.set(E,2),g=i.Shader._MakeTwoPointConicalGradient(st,_,N,O.ce,O.colorType,q,O.count,te,de,ye,Oe),j(O.ce,L),H&&j(q,H),g},i.Vertices.prototype.bounds=function(g){this._bounds(st);var _=Xt.toTypedArray();return g?(g.set(_),g):_.slice()},i.Vd&&i.Vd.forEach(function(g){g()})},i.computeTonalColors=function(h){var g=U(h.ambient,"HEAPF32"),_=U(h.spot,"HEAPF32");this._computeTonalColors(g,_);var E={ambient:Ee(g),spot:Ee(_)};return j(g,h.ambient),j(_,h.spot),E},i.LTRBRect=function(h,g,_,E){return Float32Array.of(h,g,_,E)},i.XYWHRect=function(h,g,_,E){return Float32Array.of(h,g,h+_,g+E)},i.LTRBiRect=function(h,g,_,E){return Int32Array.of(h,g,_,E)},i.XYWHiRect=function(h,g,_,E){return Int32Array.of(h,g,h+_,g+E)},i.RRectXY=function(h,g,_){return Float32Array.of(h[0],h[1],h[2],h[3],g,_,g,_,g,_,g,_)},i.MakeAnimatedImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeAnimatedImage(g,h.byteLength))?h:null},i.MakeImageFromEncoded=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._decodeImage(g,h.byteLength))?h:null};var Lo=null;i.MakeImageFromCanvasImageSource=function(h){var g=h.width,_=h.height;Lo||(Lo=document.createElement("canvas")),Lo.width=g,Lo.height=_;var E=Lo.getContext("2d",{wg:!0});return E.drawImage(h,0,0),h=E.getImageData(0,0,g,_),i.MakeImage({width:g,height:_,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},h.data,4*g)},i.MakeImage=function(h,g,_){var E=i._malloc(g.length);return i.HEAPU8.set(g,E),i._MakeImage(h,E,g.length,_)},i.MakeVertices=function(h,g,_,E,N,L){var H=N&&N.length||0,te=0;return _&&_.length&&(te|=1),E&&E.length&&(te|=2),L===void 0||L||(te|=4),h=new i._VerticesBuilder(h,g.length/2,H,te),U(g,"HEAPF32",h.positions()),h.texCoords()&&U(_,"HEAPF32",h.texCoords()),h.colors()&&U(x(E),"HEAPU32",h.colors()),h.indices()&&U(N,"HEAPU16",h.indices()),h.detach()},i.Matrix={},i.Matrix.identity=function(){return p(3)},i.Matrix.invert=function(h){var g=h[0]*h[4]*h[8]+h[1]*h[5]*h[6]+h[2]*h[3]*h[7]-h[2]*h[4]*h[6]-h[1]*h[3]*h[8]-h[0]*h[5]*h[7];return g?[(h[4]*h[8]-h[5]*h[7])/g,(h[2]*h[7]-h[1]*h[8])/g,(h[1]*h[5]-h[2]*h[4])/g,(h[5]*h[6]-h[3]*h[8])/g,(h[0]*h[8]-h[2]*h[6])/g,(h[2]*h[3]-h[0]*h[5])/g,(h[3]*h[7]-h[4]*h[6])/g,(h[1]*h[6]-h[0]*h[7])/g,(h[0]*h[4]-h[1]*h[3])/g]:null},i.Matrix.mapPoints=function(h,g){for(var _=0;_N;N+=5){for(var L=0;4>L;L++)_[E++]=h[N]*g[L]+h[N+1]*g[L+5]+h[N+2]*g[L+10]+h[N+3]*g[L+15];_[E++]=h[N]*g[4]+h[N+1]*g[9]+h[N+2]*g[14]+h[N+3]*g[19]+h[N+4]}return _},function(h){h.Vd=h.Vd||[],h.Vd.push(function(){function g(O){if(!O||!O.length)return[];for(var q=[],ve=0;veg?(i._free(h),null):(N=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(N),i._free(h),_):(_=Uint16Array.from(N),i._free(h),_))},i.Font.prototype.getGlyphIntercepts=function(h,g,_,E){var N=U(h,"HEAPU16"),L=U(g,"HEAPF32");return this._getGlyphIntercepts(N,h.length,!(h&&h._ck),L,g.length,!(g&&g._ck),_,E)},i.Font.prototype.getGlyphWidths=function(h,g,_){var E=U(h,"HEAPU16"),N=i._malloc(4*h.length);return this._getGlyphWidthBounds(E,h.length,N,je,g||null),g=new Float32Array(i.HEAPU8.buffer,N,h.length),j(E,h),_?(_.set(g),i._free(N),_):(h=Float32Array.from(g),i._free(N),h)},i.FontMgr.FromData=function(){if(!arguments.length)return null;var h=arguments;if(h.length===1&&Array.isArray(h[0])&&(h=arguments[0]),!h.length)return null;for(var g=[],_=[],E=0;Eg?(i._free(h),null):(N=new Uint16Array(i.HEAPU8.buffer,h,g),_?(_.set(N),i._free(h),_):(_=Uint16Array.from(N),i._free(h),_))},i.TextBlob.MakeOnPath=function(h,g,_,E){if(h&&h.length&&g&&g.countPoints()){if(g.countPoints()===1)return this.MakeFromText(h,_);E||(E=0);var N=_.getGlyphIDs(h);N=_.getGlyphWidths(N);var L=[];g=new i.ContourMeasureIter(g,!1,1);for(var H=g.next(),te=new Float32Array(4),ye=0;yeH.length()){if(H.delete(),H=g.next(),!H){h=h.substring(0,ye);break}E=de/2}H.getPosTan(E,te);var Oe=te[2],O=te[3];L.push(Oe,O,te[0]-de/2*Oe,te[1]-de/2*O),E+=de/2}return h=this.MakeFromRSXform(h,L,_),H&&H.delete(),g.delete(),h}},i.TextBlob.MakeFromRSXform=function(h,g,_){var E=Ye(h)+1,N=i._malloc(E);return Ue(h,xe,N,E),h=U(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXform(N,E-1,h,_),i._free(N),_||null},i.TextBlob.MakeFromRSXformGlyphs=function(h,g,_){var E=U(h,"HEAPU16");return g=U(g,"HEAPF32"),_=i.TextBlob._MakeFromRSXformGlyphs(E,2*h.length,g,_),j(E,h),_||null},i.TextBlob.MakeFromGlyphs=function(h,g){var _=U(h,"HEAPU16");return g=i.TextBlob._MakeFromGlyphs(_,2*h.length,g),j(_,h),g||null},i.TextBlob.MakeFromText=function(h,g){var _=Ye(h)+1,E=i._malloc(_);return Ue(h,xe,E,_),h=i.TextBlob._MakeFromText(E,_-1,g),i._free(E),h||null},i.MallocGlyphIDs=function(h){return i.Malloc(Uint16Array,h)}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.MakePicture=function(h){h=new Uint8Array(h);var g=i._malloc(h.byteLength);return i.HEAPU8.set(h,g),(h=i._MakePicture(g,h.byteLength))?h:null}}),i.Vd=i.Vd||[],i.Vd.push(function(){i.RuntimeEffect.Make=function(h,g){return i.RuntimeEffect._Make(h,{onError:g||function(_){console.log("RuntimeEffect error",_)}})},i.RuntimeEffect.prototype.makeShader=function(h,g){var _=!h._ck,E=U(h,"HEAPF32");return g=J(g),this._makeShader(E,4*h.length,_,g)},i.RuntimeEffect.prototype.makeShaderWithChildren=function(h,g,_){var E=!h._ck,N=U(h,"HEAPF32");_=J(_);for(var L=[],H=0;Hw||1=w||!w||(this.Ke=w,this.Qd.setStrokeWidth(w))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Qd.getStrokeMiter()},set:function(w){0>=w||!w||this.Qd.setStrokeMiter(w)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(w){0>w||!isFinite(w)||(this.we=w)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return g(this.Je)},set:function(w){this.Je=_(w)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(w){isFinite(w)&&(this.xe=w)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(w){isFinite(w)&&(this.ye=w)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return g(this.he)},set:function(w){typeof w=="string"?this.he=_(w):w.ue&&(this.he=w)}}),this.arc=function(w,M,z,V,Y,X){q(this.Sd,w,M,z,z,0,V,Y,X)},this.arcTo=function(w,M,z,V,Y){de(this.Sd,w,M,z,V,Y)},this.beginPath=function(){this.Sd.delete(),this.Sd=new i.Path},this.bezierCurveTo=function(w,M,z,V,Y,X){var se=this.Sd;h([w,M,z,V,Y,X])&&(se.isEmpty()&&se.moveTo(w,M),se.cubicTo(w,M,z,V,Y,X))},this.clearRect=function(w,M,z,V){this.Qd.setStyle(i.PaintStyle.Fill),this.Qd.setBlendMode(i.BlendMode.Clear),this.Nd.drawRect(i.XYWHRect(w,M,z,V),this.Qd),this.Qd.setBlendMode(this.Pd)},this.clip=function(w,M){typeof w=="string"?(M=w,w=this.Sd):w&&w.$e&&(w=w.Wd),w||(w=this.Sd),w=w.copy(),M&&M.toLowerCase()==="evenodd"?w.setFillType(i.FillType.EvenOdd):w.setFillType(i.FillType.Winding),this.Nd.clipPath(w,i.ClipOp.Intersect,!0),w.delete()},this.closePath=function(){Oe(this.Sd)},this.createImageData=function(){if(arguments.length===1){var w=arguments[0];return new te(new Uint8ClampedArray(4*w.width*w.height),w.width,w.height)}if(arguments.length===2){w=arguments[0];var M=arguments[1];return new te(new Uint8ClampedArray(4*w*M),w,M)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(w,M,z,V){if(h(arguments)){var Y=new ye(w,M,z,V);return this.Ce.push(Y),Y}},this.createPattern=function(w,M){return w=new et(w,M),this.Ce.push(w),w},this.createRadialGradient=function(w,M,z,V,Y,X){if(h(arguments)){var se=new St(w,M,z,V,Y,X);return this.Ce.push(se),se}},this.drawImage=function(w){w instanceof H&&(w=w.tf());var M=this.Pe();if(arguments.length===3||arguments.length===5)var z=i.XYWHRect(arguments[1],arguments[2],arguments[3]||w.width(),arguments[4]||w.height()),V=i.XYWHRect(0,0,w.width(),w.height());else if(arguments.length===9)z=i.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),V=i.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(w,V,z,M,!1),M.dispose()},this.ellipse=function(w,M,z,V,Y,X,se,Ve){q(this.Sd,w,M,z,V,Y,X,se,Ve)},this.Pe=function(){var w=this.Qd.copy();if(w.setStyle(i.PaintStyle.Fill),y(this.be)){var M=i.multiplyByAlpha(this.be,this.ke);w.setColor(M)}else M=this.be.ue(this.Ud),w.setColor(i.Color(0,0,0,this.ke)),w.setShader(M);return w.dispose=function(){this.delete()},w},this.fill=function(w,M){if(typeof w=="string"?(M=w,w=this.Sd):w&&w.$e&&(w=w.Wd),M==="evenodd")this.Sd.setFillType(i.FillType.EvenOdd);else{if(M!=="nonzero"&&M)throw"invalid fill rule";this.Sd.setFillType(i.FillType.Winding)}w||(w=this.Sd),M=this.Pe();var z=this.ze(M);z&&(this.Nd.save(),this.se(),this.Nd.drawPath(w,z),this.Nd.restore(),z.dispose()),this.Nd.drawPath(w,M),M.dispose()},this.fillRect=function(w,M,z,V){var Y=this.Pe(),X=this.ze(Y);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(w,M,z,V),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(i.XYWHRect(w,M,z,V),Y),Y.dispose()},this.fillText=function(w,M,z){var V=this.Pe();w=i.TextBlob.MakeFromText(w,this.ne);var Y=this.ze(V);Y&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(w,M,z,Y),this.Nd.restore(),Y.dispose()),this.Nd.drawTextBlob(w,M,z,V),w.delete(),V.dispose()},this.getImageData=function(w,M,z,V){return(w=this.Nd.readPixels(w,M,{width:z,height:V,colorType:i.ColorType.RGBA_8888,alphaType:i.AlphaType.Unpremul,colorSpace:i.ColorSpace.SRGB}))?new te(new Uint8ClampedArray(w.buffer),z,V):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(w){var M=i.Matrix.invert(this.Ud);return i.Matrix.mapPoints(M,w),w},this.isPointInPath=function(w,M,z){var V=arguments;if(V.length===3)var Y=this.Sd;else if(V.length===4)Y=V[0],w=V[1],M=V[2],z=V[3];else throw"invalid arg count, need 3 or 4, got "+V.length;return!isFinite(w)||!isFinite(M)||(z=z||"nonzero",z!=="nonzero"&&z!=="evenodd")?!1:(V=this.nf([w,M]),w=V[0],M=V[1],Y.setFillType(z==="nonzero"?i.FillType.Winding:i.FillType.EvenOdd),Y.contains(w,M))},this.isPointInStroke=function(w,M){var z=arguments;if(z.length===2)var V=this.Sd;else if(z.length===3)V=z[0],w=z[1],M=z[2];else throw"invalid arg count, need 2 or 3, got "+z.length;return!isFinite(w)||!isFinite(M)?!1:(z=this.nf([w,M]),w=z[0],M=z[1],V=V.copy(),V.setFillType(i.FillType.Winding),V.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Qd.getStrokeCap(),join:this.Qd.getStrokeJoin(),precision:.3}),z=V.contains(w,M),V.delete(),z)},this.lineTo=function(w,M){ve(this.Sd,w,M)},this.measureText=function(w){w=this.ne.getGlyphIDs(w),w=this.ne.getGlyphWidths(w);let M=0;for(let z of w)M+=z;return{width:M}},this.moveTo=function(w,M){var z=this.Sd;h([w,M])&&z.moveTo(w,M)},this.putImageData=function(w,M,z,V,Y,X,se){if(h([M,z,V,Y,X,se])){if(V===void 0)this.Nd.writePixels(w.data,w.width,w.height,M,z);else if(V=V||0,Y=Y||0,X=X||w.width,se=se||w.height,0>X&&(V+=X,X=Math.abs(X)),0>se&&(Y+=se,se=Math.abs(se)),0>V&&(X+=V,V=0),0>Y&&(se+=Y,Y=0),!(0>=X||0>=se)){w=i.MakeImage({width:w.width,height:w.height,alphaType:i.AlphaType.Unpremul,colorType:i.ColorType.RGBA_8888,colorSpace:i.ColorSpace.SRGB},w.data,4*w.width);var Ve=i.XYWHRect(V,Y,X,se);M=i.XYWHRect(M+V,z+Y,X,se),z=i.Matrix.invert(this.Ud),this.Nd.save(),this.Nd.concat(z),this.Nd.drawImageRect(w,Ve,M,null,!1),this.Nd.restore(),w.delete()}}},this.quadraticCurveTo=function(w,M,z,V){var Y=this.Sd;h([w,M,z,V])&&(Y.isEmpty()&&Y.moveTo(w,M),Y.quadTo(w,M,z,V))},this.rect=function(w,M,z,V){var Y=this.Sd;w=i.XYWHRect(w,M,z,V),h(w)&&Y.addRect(w)},this.resetTransform=function(){this.Sd.transform(this.Ud);var w=i.Matrix.invert(this.Ud);this.Nd.concat(w),this.Ud=this.Nd.getTotalMatrix()},this.restore=function(){var w=this.mf.pop();if(w){var M=i.Matrix.multiply(this.Ud,i.Matrix.invert(w.Gf));this.Sd.transform(M),this.Qd.delete(),this.Qd=w.$f,this.ve=w.Yf,this.Ke=w.mg,this.he=w.lg,this.be=w.fs,this.xe=w.jg,this.ye=w.kg,this.we=w.dg,this.Je=w.ig,this.ke=w.Nf,this.Pd=w.Of,this.Ie=w.Zf,this.Qe=w.Mf,this.Nd.restore(),this.Ud=this.Nd.getTotalMatrix()}},this.rotate=function(w){if(isFinite(w)){var M=i.Matrix.rotated(-w);this.Sd.transform(M),this.Nd.rotate(w/Math.PI*180,0,0),this.Ud=this.Nd.getTotalMatrix()}},this.save=function(){if(this.be.te){var w=this.be.te();this.Ce.push(w)}else w=this.be;if(this.he.te){var M=this.he.te();this.Ce.push(M)}else M=this.he;this.mf.push({Gf:this.Ud.slice(),Yf:this.ve.slice(),mg:this.Ke,lg:M,fs:w,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(w,M){if(h(arguments)){var z=i.Matrix.scaled(1/w,1/M);this.Sd.transform(z),this.Nd.scale(w,M),this.Ud=this.Nd.getTotalMatrix()}},this.setLineDash=function(w){for(var M=0;Mw[M])return;w.length%2===1&&Array.prototype.push.apply(w,w),this.ve=w},this.setTransform=function(w,M,z,V,Y,X){h(arguments)&&(this.resetTransform(),this.transform(w,M,z,V,Y,X))},this.se=function(){var w=i.Matrix.invert(this.Ud);this.Nd.concat(w),this.Nd.concat(i.Matrix.translated(this.xe,this.ye)),this.Nd.concat(this.Ud)},this.ze=function(w){var M=i.multiplyByAlpha(this.Je,this.ke);if(!i.getColorComponents(M)[3]||!(this.we||this.ye||this.xe))return null;w=w.copy(),w.setColor(M);var z=i.MaskFilter.MakeBlur(i.BlurStyle.Normal,this.we/2,!1);return w.setMaskFilter(z),w.dispose=function(){z.delete(),this.delete()},w},this.bf=function(){var w=this.Qd.copy();if(w.setStyle(i.PaintStyle.Stroke),y(this.he)){var M=i.multiplyByAlpha(this.he,this.ke);w.setColor(M)}else M=this.he.ue(this.Ud),w.setColor(i.Color(0,0,0,this.ke)),w.setShader(M);if(w.setStrokeWidth(this.Ke),this.ve.length){var z=i.PathEffect.MakeDash(this.ve,this.Ie);w.setPathEffect(z)}return w.dispose=function(){z&&z.delete(),this.delete()},w},this.stroke=function(w){w=w?w.Wd:this.Sd;var M=this.bf(),z=this.ze(M);z&&(this.Nd.save(),this.se(),this.Nd.drawPath(w,z),this.Nd.restore(),z.dispose()),this.Nd.drawPath(w,M),M.dispose()},this.strokeRect=function(w,M,z,V){var Y=this.bf(),X=this.ze(Y);X&&(this.Nd.save(),this.se(),this.Nd.drawRect(i.XYWHRect(w,M,z,V),X),this.Nd.restore(),X.dispose()),this.Nd.drawRect(i.XYWHRect(w,M,z,V),Y),Y.dispose()},this.strokeText=function(w,M,z){var V=this.bf();w=i.TextBlob.MakeFromText(w,this.ne);var Y=this.ze(V);Y&&(this.Nd.save(),this.se(),this.Nd.drawTextBlob(w,M,z,Y),this.Nd.restore(),Y.dispose()),this.Nd.drawTextBlob(w,M,z,V),w.delete(),V.dispose()},this.translate=function(w,M){if(h(arguments)){var z=i.Matrix.translated(-w,-M);this.Sd.transform(z),this.Nd.translate(w,M),this.Ud=this.Nd.getTotalMatrix()}},this.transform=function(w,M,z,V,Y,X){w=[w,z,Y,M,V,X,0,0,1],M=i.Matrix.invert(w),this.Sd.transform(M),this.Nd.concat(w),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 L(Q){this.cf=Q,this.Md=new N(Q.getCanvas()),this.Re=[],this.decodeImage=function(w){if(w=i.MakeImageFromEncoded(w),!w)throw"Invalid input";return this.Re.push(w),new H(w)},this.loadFont=function(w,M){if(w=i.Typeface.MakeFreeTypeFaceFromData(w),!w)return null;this.Re.push(w);var z=(M.style||"normal")+"|"+(M.variant||"normal")+"|"+(M.weight||"normal");M=M.family,qe[M]||(qe[M]={"*":w}),qe[M][z]=w},this.makePath2D=function(w){return w=new Be(w),this.Re.push(w.Wd),w},this.getContext=function(w){return w==="2d"?this.Md:null},this.toDataURL=function(w,M){this.cf.flush();var z=this.cf.makeImageSnapshot();if(z){w=w||"image/png";var V=i.ImageFormat.PNG;if(w==="image/jpeg"&&(V=i.ImageFormat.JPEG),M=z.encodeToBytes(V,M||.92)){if(z.delete(),w="data:"+w+";base64,",typeof Buffer<"u")M=Buffer.from(M).toString("base64");else{z=0,V=M.length;for(var Y="",X;zV||1V);X++);this.ae.splice(X,0,V),this.de.splice(X,0,Y)}},this.te=function(){var V=new ye(Q,w,M,z);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 Y=[Q,w,M,z];i.Matrix.mapPoints(V,Y),V=Y[0];var X=Y[1],se=Y[2];return Y=Y[3],this.me(),this.Yd=i.Shader.MakeLinearGradient([V,X],[se,Y],this.de,this.ae,i.TileMode.Clamp)}}function de(Q,w,M,z,V,Y){if(h([w,M,z,V,Y])){if(0>Y)throw"radii cannot be negative";Q.isEmpty()&&Q.moveTo(w,M),Q.arcToTangent(w,M,z,V,Y)}}function Oe(Q){if(!Q.isEmpty()){var w=Q.getBounds();(w[3]-w[1]||w[2]-w[0])&&Q.close()}}function O(Q,w,M,z,V,Y,X){X=(X-Y)/Math.PI*180,Y=Y/Math.PI*180,w=i.LTRBRect(w-z,M-V,w+z,M+V),1e-5>Math.abs(Math.abs(X)-360)?(M=X/2,Q.arcToOval(w,Y,M,!1),Q.arcToOval(w,Y+M,M,!1)):Q.arcToOval(w,Y,X,!1)}function q(Q,w,M,z,V,Y,X,se,Ve){if(h([w,M,z,V,Y,X,se])){if(0>z||0>V)throw"radii cannot be negative";var He=2*Math.PI,Qt=X%He;0>Qt&&(Qt+=He);var Bo=Qt-X;X=Qt,se+=Bo,!Ve&&se-X>=He?se=X+He:Ve&&X-se>=He?se=X-He:!Ve&&X>se?se=X+(He-(X-se)%He):Ve&&XX||1X);Ve++);this.ae.splice(Ve,0,X),this.de.splice(Ve,0,se)}},this.te=function(){var X=new St(Q,w,M,z,V,Y);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 se=[Q,w,z,V];i.Matrix.mapPoints(X,se);var Ve=se[0],He=se[1],Qt=se[2];se=se[3];var Bo=(Math.abs(X[0])+Math.abs(X[4]))/2;return X=M*Bo,Bo*=Y,this.me(),this.Yd=i.Shader.MakeTwoPointConicalGradient([Ve,He],X,[Qt,se],Bo,this.de,this.ae,i.TileMode.Clamp)}}i._testing={};var Ct={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)};i._testing.parseColor=_,i._testing.colorToString=g;var Wt=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)(.+)"),qe={"Noto Mono":{"*":null},monospace:{"*":null}};i._testing.parseFontString=E,i.MakeCanvas=function(Q,w){return(Q=i.MakeSurface(Q,w))?new L(Q):null},i.ImageData=function(){if(arguments.length===2){var Q=arguments[0],w=arguments[1];return new te(new Uint8ClampedArray(4*Q*w),Q,w)}if(arguments.length===3){var M=arguments[0];if(M.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(Q=arguments[1],w=arguments[2],M%4)throw"bytes must be given in a multiple of 4";if(M%Q)throw"bytes must divide evenly by width";if(w&&w!==M/(4*Q))throw"invalid height given";return new te(M,Q,M/(4*Q))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}}()}(o);var l=Object.assign({},o),m="./this.program",v=(i,u)=>{throw u},T=typeof window=="object",R=typeof importScripts=="function",F=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",I="",B,G,$,K,ne,re;F?(I=R?Ms("path").dirname(I)+"/":__dirname+"/",re=()=>{ne||(K=Ms("fs"),ne=Ms("path"))},B=function(i,u){return re(),i=ne.normalize(i),K.readFileSync(i,u?void 0:"utf8")},$=i=>(i=B(i,!0),i.buffer||(i=new Uint8Array(i)),i),G=(i,u,p)=>{re(),i=ne.normalize(i),K.readFile(i,function(y,S){y?p(y):u(S.buffer)})},1{if(Ae)throw process.exitCode=i,u;u instanceof Jl||oe("exiting due to exception: "+u),process.exit(i)},o.inspect=function(){return"[Emscripten Module object]"}):(T||R)&&(R?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),t&&(I=t),I.indexOf("blob:")!==0?I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1):I="",B=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.send(null),u.responseText},R&&($=i=>{var u=new XMLHttpRequest;return u.open("GET",i,!1),u.responseType="arraybuffer",u.send(null),new Uint8Array(u.response)}),G=(i,u,p)=>{var y=new XMLHttpRequest;y.open("GET",i,!0),y.responseType="arraybuffer",y.onload=()=>{y.status==200||y.status==0&&y.response?u(y.response):p()},y.onerror=p,y.send(null)});var ce=o.print||console.log.bind(console),oe=o.printErr||console.warn.bind(console);Object.assign(o,l),l=null,o.thisProgram&&(m=o.thisProgram),o.quit&&(v=o.quit);var fe=0,pe;o.wasmBinary&&(pe=o.wasmBinary);var Ae=o.noExitRuntime||!0;typeof WebAssembly!="object"&&xo("no native wasm support detected");var Ne,Qe=!1,le=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function _e(i,u,p){var y=u+p;for(p=u;i[p]&&!(p>=y);)++p;if(16S?y+=String.fromCharCode(S):(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023))}}else y+=String.fromCharCode(S)}return y}function ue(i,u){return i?_e(xe,i,u):""}function Ue(i,u,p,y){if(!(0=C){var A=i.charCodeAt(++x);C=65536+((C&1023)<<10)|A&1023}if(127>=C){if(p>=y)break;u[p++]=C}else{if(2047>=C){if(p+1>=y)break;u[p++]=192|C>>6}else{if(65535>=C){if(p+2>=y)break;u[p++]=224|C>>12}else{if(p+3>=y)break;u[p++]=240|C>>18,u[p++]=128|C>>12&63}u[p++]=128|C>>6&63}u[p++]=128|C&63}}return u[p]=0,p-S}function Ye(i){for(var u=0,p=0;p=y&&(y=65536+((y&1023)<<10)|i.charCodeAt(++p)&1023),127>=y?++u:u=2047>=y?u+2:65535>=y?u+3:u+4}return u}var ht=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0;function At(i,u){for(var p=i>>1,y=p+u/2;!(p>=y)&&It[p];)++p;if(p<<=1,32=u/2);++y){var S=Dt[i+2*y>>1];if(S==0)break;p+=String.fromCharCode(S)}return p}function nt(i,u,p){if(p===void 0&&(p=2147483647),2>p)return 0;p-=2;var y=u;p=p<2*i.length?p/2:i.length;for(var S=0;S>1]=i.charCodeAt(S),u+=2;return Dt[u>>1]=0,u-y}function zr(i){return 2*i.length}function Tn(i,u){for(var p=0,y="";!(p>=u/4);){var S=ee[i+4*p>>2];if(S==0)break;++p,65536<=S?(S-=65536,y+=String.fromCharCode(55296|S>>10,56320|S&1023)):y+=String.fromCharCode(S)}return y}function Zt(i,u,p){if(p===void 0&&(p=2147483647),4>p)return 0;var y=u;p=y+p-4;for(var S=0;S=x){var C=i.charCodeAt(++S);x=65536+((x&1023)<<10)|C&1023}if(ee[u>>2]=x,u+=4,u+4>p)break}return ee[u>>2]=0,u-y}function rs(i){for(var u=0,p=0;p=y&&++p,u+=4}return u}var vo,mt,xe,Dt,It,ee,De,me,bo;function xn(){var i=Ne.buffer;vo=i,o.HEAP8=mt=new Int8Array(i),o.HEAP16=Dt=new Int16Array(i),o.HEAP32=ee=new Int32Array(i),o.HEAPU8=xe=new Uint8Array(i),o.HEAPU16=It=new Uint16Array(i),o.HEAPU32=De=new Uint32Array(i),o.HEAPF32=me=new Float32Array(i),o.HEAPF64=bo=new Float64Array(i)}var So,wo=[],Eo=[],Sl=[];function xd(){var i=o.preRun.shift();wo.unshift(i)}var Tr=0,os=null,To=null;function xo(i){throw o.onAbort&&o.onAbort(i),i="Aborted("+i+")",oe(i),Qe=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),s(i),i}function wl(){return Mt.startsWith("data:application/octet-stream;base64,")}var Mt;if(Mt="canvaskit.wasm",!wl()){var El=Mt;Mt=o.locateFile?o.locateFile(El,I):I+El}function Tl(){var i=Mt;try{if(i==Mt&&pe)return new Uint8Array(pe);if($)return $(i);throw"both async and sync fetching of the wasm failed"}catch(u){xo(u)}}function Ad(){if(!pe&&(T||R)){if(typeof fetch=="function"&&!Mt.startsWith("file://"))return fetch(Mt,{credentials:"same-origin"}).then(function(i){if(!i.ok)throw"failed to load wasm binary file at '"+Mt+"'";return i.arrayBuffer()}).catch(function(){return Tl()});if(G)return new Promise(function(i,u){G(Mt,function(p){i(new Uint8Array(p))},u)})}return Promise.resolve().then(function(){return Tl()})}function ns(i){for(;0>2])}var Wr={},xr={},In={};function xl(i){if(i===void 0)return"_unknown";i=i.replace(/[^a-zA-Z0-9_]/g,"$");var u=i.charCodeAt(0);return 48<=u&&57>=u?"_"+i:i}function ss(i,u){return i=xl(i),function(){return u.apply(this,arguments)}}function as(i){var u=Error,p=ss(i,function(y){this.name=i,this.message=y,y=Error(y).stack,y!==void 0&&(this.stack=this.toString()+` +`+y.replace(/^Error(:[^\n]*)?\n/,""))});return p.prototype=Object.create(u.prototype),p.prototype.constructor=p,p.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},p}var Al=void 0;function Mn(i){throw new Al(i)}function Lt(i,u,p){function y(A){A=p(A),A.length!==i.length&&Mn("Mismatched type converter count");for(var j=0;j{xr.hasOwnProperty(A)?S[j]=xr[A]:(x.push(A),Wr.hasOwnProperty(A)||(Wr[A]=[]),Wr[A].push(()=>{S[j]=xr[A],++C,C===x.length&&y(S)}))}),x.length===0&&y(S)}function jn(i){switch(i){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+i)}}var Il=void 0;function Ke(i){for(var u="";xe[i];)u+=Il[xe[i++]];return u}var Vr=void 0;function Ce(i){throw new Vr(i)}function Yt(i,u,p={}){if(!("argPackAdvance"in u))throw new TypeError("registerType registeredInstance requires argPackAdvance");var y=u.name;if(i||Ce('type "'+y+'" must have a positive integer typeid pointer'),xr.hasOwnProperty(i)){if(p.Vf)return;Ce("Cannot register type '"+y+"' twice")}xr[i]=u,delete In[i],Wr.hasOwnProperty(i)&&(u=Wr[i],delete Wr[i],u.forEach(S=>S()))}function ls(i){Ce(i.Ld.Xd.Rd.name+" instance already deleted")}var us=!1;function Ml(){}function jl(i){--i.count.value,i.count.value===0&&(i.$d?i.fe.le(i.$d):i.Xd.Rd.le(i.Td))}function Rl(i,u,p){return u===p?i:p.ie===void 0?null:(i=Rl(i,u,p.ie),i===null?null:p.Jf(i))}var Ol={},Io=[];function gs(){for(;Io.length;){var i=Io.pop();i.Ld.Fe=!1,i.delete()}}var Mo=void 0,jo={};function Id(i,u){for(u===void 0&&Ce("ptr should not be undefined");i.ie;)u=i.Oe(u),i=i.ie;return jo[u]}function Rn(i,u){return u.Xd&&u.Td||Mn("makeClassHandle requires ptr and ptrType"),!!u.fe!=!!u.$d&&Mn("Both smartPtrType and smartPtr must be specified"),u.count={value:1},Ro(Object.create(i,{Ld:{value:u}}))}function Ro(i){return typeof FinalizationRegistry>"u"?(Ro=u=>u,i):(us=new FinalizationRegistry(u=>{jl(u.Ld)}),Ro=u=>{var p=u.Ld;return p.$d&&us.register(u,{Ld:p},u),u},Ml=u=>{us.unregister(u)},Ro(i))}function pr(){}function ps(i,u,p){if(i[u].Zd===void 0){var y=i[u];i[u]=function(){return i[u].Zd.hasOwnProperty(arguments.length)||Ce("Function '"+p+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+i[u].Zd+")!"),i[u].Zd[arguments.length].apply(this,arguments)},i[u].Zd=[],i[u].Zd[y.De]=y}}function cs(i,u,p){o.hasOwnProperty(i)?((p===void 0||o[i].Zd!==void 0&&o[i].Zd[p]!==void 0)&&Ce("Cannot register public name '"+i+"' twice"),ps(o,i,i),o.hasOwnProperty(p)&&Ce("Cannot register multiple overloads of a function with the same number of arguments ("+p+")!"),o[i].Zd[p]=u):(o[i]=u,p!==void 0&&(o[i].tg=p))}function Md(i,u,p,y,S,x,C,A){this.name=i,this.constructor=u,this.Ge=p,this.le=y,this.ie=S,this.Pf=x,this.Oe=C,this.Jf=A,this.bg=[]}function fs(i,u,p){for(;u!==p;)u.Oe||Ce("Expected null or instance of "+p.name+", got an instance of "+u.name),i=u.Oe(i),u=u.ie;return i}function jd(i,u){return u===null?(this.ff&&Ce("null is not a valid "+this.name),0):(u.Ld||Ce('Cannot pass "'+ms(u)+'" as a '+this.name),u.Ld.Td||Ce("Cannot pass deleted object as a pointer of type "+this.name),fs(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Rd(i,u){if(u===null){if(this.ff&&Ce("null is not a valid "+this.name),this.Ue){var p=this.gf();return i!==null&&i.push(this.le,p),p}return 0}if(u.Ld||Ce('Cannot pass "'+ms(u)+'" as a '+this.name),u.Ld.Td||Ce("Cannot pass deleted object as a pointer of type "+this.name),!this.Te&&u.Ld.Xd.Te&&Ce("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name),p=fs(u.Ld.Td,u.Ld.Xd.Rd,this.Rd),this.Ue)switch(u.Ld.$d===void 0&&Ce("Passing raw pointer to smart pointer is illegal"),this.hg){case 0:u.Ld.fe===this?p=u.Ld.$d:Ce("Cannot convert argument of type "+(u.Ld.fe?u.Ld.fe.name:u.Ld.Xd.name)+" to parameter type "+this.name);break;case 1:p=u.Ld.$d;break;case 2:if(u.Ld.fe===this)p=u.Ld.$d;else{var y=u.clone();p=this.cg(p,Rt(function(){y.delete()})),i!==null&&i.push(this.le,p)}break;default:Ce("Unsupporting sharing policy")}return p}function Od(i,u){return u===null?(this.ff&&Ce("null is not a valid "+this.name),0):(u.Ld||Ce('Cannot pass "'+ms(u)+'" as a '+this.name),u.Ld.Td||Ce("Cannot pass deleted object as a pointer of type "+this.name),u.Ld.Xd.Te&&Ce("Cannot convert argument of type "+u.Ld.Xd.name+" to parameter type "+this.name),fs(u.Ld.Td,u.Ld.Xd.Rd,this.Rd))}function Kt(i,u,p,y,S,x,C,A,j,U,Z){this.name=i,this.Rd=u,this.ff=p,this.Te=y,this.Ue=S,this.ag=x,this.hg=C,this.vf=A,this.gf=j,this.cg=U,this.le=Z,S||u.ie!==void 0?this.toWireType=Rd:(this.toWireType=y?jd:Od,this.ee=null)}function Nl(i,u,p){o.hasOwnProperty(i)||Mn("Replacing nonexistant public symbol"),o[i].Zd!==void 0&&p!==void 0?o[i].Zd[p]=u:(o[i]=u,o[i].De=p)}function Nd(i,u){var p=[];return function(){if(p.length=0,Object.assign(p,arguments),i.includes("j")){var y=o["dynCall_"+i];y=p&&p.length?y.apply(null,[u].concat(p)):y.call(null,u)}else y=it(u).apply(null,p);return y}}function lt(i,u){i=Ke(i);var p=i.includes("j")?Nd(i,u):it(u);return typeof p!="function"&&Ce("unknown function pointer with signature "+i+": "+u),p}var Cl=void 0;function Fl(i){i=Kl(i);var u=Ke(i);return or(i),u}function Oo(i,u){function p(x){S[x]||xr[x]||(In[x]?In[x].forEach(p):(y.push(x),S[x]=!0))}var y=[],S={};throw u.forEach(p),new Cl(i+": "+y.map(Fl).join([", "]))}function On(i,u,p,y,S){var x=u.length;2>x&&Ce("argTypes array size mismatch! Must at least get return value and 'this' types!");var C=u[1]!==null&&p!==null,A=!1;for(p=1;p>2]);return p}var ds=[],Bt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function hs(i){4(i||Ce("Cannot use deleted val. handle = "+i),Bt[i].value),Rt=i=>{switch(i){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var u=ds.length?ds.pop():Bt.length;return Bt[u]={hf:1,value:i},u}};function Cd(i,u,p){switch(u){case 0:return function(y){return this.fromWireType((p?mt:xe)[y])};case 1:return function(y){return this.fromWireType((p?Dt:It)[y>>1])};case 2:return function(y){return this.fromWireType((p?ee:De)[y>>2])};default:throw new TypeError("Unknown integer type: "+i)}}function No(i,u){var p=xr[i];return p===void 0&&Ce(u+" has unknown type "+Fl(i)),p}function ms(i){if(i===null)return"null";var u=typeof i;return u==="object"||u==="array"||u==="function"?i.toString():""+i}function Fd(i,u){switch(u){case 2:return function(p){return this.fromWireType(me[p>>2])};case 3:return function(p){return this.fromWireType(bo[p>>3])};default:throw new TypeError("Unknown float type: "+i)}}function Ud(i,u,p){switch(u){case 0:return p?function(y){return mt[y]}:function(y){return xe[y]};case 1:return p?function(y){return Dt[y>>1]}:function(y){return It[y>>1]};case 2:return p?function(y){return ee[y>>2]}:function(y){return De[y>>2]};default:throw new TypeError("Unknown integer type: "+i)}}var Pd={};function Cn(i){var u=Pd[i];return u===void 0?Ke(i):u}var Fn=[];function Ul(){function i(u){u.$$$embind_global$$$=u;var p=typeof $$$embind_global$$$=="object"&&u.$$$embind_global$$$==u;return p||delete u.$$$embind_global$$$,p}if(typeof globalThis=="object")return globalThis;if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&i(global)?$$$embind_global$$$=global:typeof self=="object"&&i(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")}function Dd(i){var u=Fn.length;return Fn.push(i),u}function Ld(i,u){for(var p=Array(i),y=0;y>2],"parameter "+y);return p}var Pl=[];function Bd(i){var u=Array(i+1);return function(p,y,S){u[0]=p;for(var x=0;x>2],"parameter "+x);u[x+1]=C.readValueFromPointer(S),S+=C.argPackAdvance}return p=new(p.bind.apply(p,u)),Rt(p)}}var Dl={},Ll;Ll=F?()=>{var i=process.hrtime();return 1e3*i[0]+i[1]/1e6}:()=>performance.now();function kd(i){var u=i.getExtension("ANGLE_instanced_arrays");u&&(i.vertexAttribDivisor=function(p,y){u.vertexAttribDivisorANGLE(p,y)},i.drawArraysInstanced=function(p,y,S,x){u.drawArraysInstancedANGLE(p,y,S,x)},i.drawElementsInstanced=function(p,y,S,x,C){u.drawElementsInstancedANGLE(p,y,S,x,C)})}function zd(i){var u=i.getExtension("OES_vertex_array_object");u&&(i.createVertexArray=function(){return u.createVertexArrayOES()},i.deleteVertexArray=function(p){u.deleteVertexArrayOES(p)},i.bindVertexArray=function(p){u.bindVertexArrayOES(p)},i.isVertexArray=function(p){return u.isVertexArrayOES(p)})}function Wd(i){var u=i.getExtension("WEBGL_draw_buffers");u&&(i.drawBuffers=function(p,y){u.drawBuffersWEBGL(p,y)})}var Bl=1,Un=[],kt=[],Pn=[],Co=[],Ot=[],zt=[],cr=[],Jt=[],Ar=[],Ir=[],kl={},zl={},Wl=4;function We(i){Dn||(Dn=i)}function Hr(i){for(var u=Bl++,p=i.length;p"u"||u.Kf)&&Gd(y),p}function Vl(i){return Se=Jt[i],o.rg=P=Se&&Se.ge,!(i&&!P)}function Gd(i){if(i||(i=Se),!i.Wf){i.Wf=!0;var u=i.ge;kd(u),zd(u),Wd(u),u.qf=u.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),u.uf=u.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=i.version&&(u.rf=u.getExtension("EXT_disjoint_timer_query_webgl2")),(2>i.version||!u.rf)&&(u.rf=u.getExtension("EXT_disjoint_timer_query")),u.sg=u.getExtension("WEBGL_multi_draw"),(u.getSupportedExtensions()||[]).forEach(function(p){p.includes("lose_context")||p.includes("debug")||u.getExtension(p)})}}var Se,Dn,Ln=[];function Mr(i,u,p,y){for(var S=0;S>2]=C}}function Hl(i,u,p){if(u){var y=void 0;switch(i){case 36346:y=1;break;case 36344:p!=0&&p!=1&&We(1280);return;case 34814:case 36345:y=0;break;case 34466:var S=P.getParameter(34467);y=S?S.length:0;break;case 33309:if(2>Se.version){We(1282);return}y=2*(P.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>Se.version){We(1280);return}y=i==33307?3:0}if(y===void 0)switch(S=P.getParameter(i),typeof S){case"number":y=S;break;case"boolean":y=S?1:0;break;case"string":We(1280);return;case"object":if(S===null)switch(i){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:y=0;break;default:We(1280);return}else{if(S instanceof Float32Array||S instanceof Uint32Array||S instanceof Int32Array||S instanceof Array){for(i=0;i>2]=S[i];break;case 2:me[u+4*i>>2]=S[i];break;case 4:mt[u+i>>0]=S[i]?1:0}return}try{y=S.name|0}catch(x){We(1280),oe("GL_INVALID_ENUM in glGet"+p+"v: Unknown object returned from WebGL getParameter("+i+")! (error: "+x+")");return}}break;default:We(1280),oe("GL_INVALID_ENUM in glGet"+p+"v: Native code calling glGet"+p+"v("+i+") and it returns "+S+" of type "+typeof S+"!");return}switch(p){case 1:p=y,De[u>>2]=p,De[u+4>>2]=(p-De[u>>2])/4294967296;break;case 0:ee[u>>2]=y;break;case 2:me[u>>2]=y;break;case 4:mt[u>>0]=y?1:0}}else We(1281)}function Fo(i){var u=Ye(i)+1,p=Wn(u);return Ue(i,xe,p,u),p}function Gl(i){return i.slice(-1)=="]"&&i.lastIndexOf("[")}function Bn(i){return i-=5120,i==0?mt:i==1?xe:i==2?Dt:i==4?ee:i==6?me:i==5||i==28922||i==28520||i==30779||i==30782?De:It}function ys(i,u,p,y,S){i=Bn(i);var x=31-Math.clz32(i.BYTES_PER_ELEMENT),C=Wl;return i.subarray(S>>x,S+y*(p*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[u-6402]||1)*(1<>x)}function Le(i){var u=P.Hf;if(u){var p=u.Ne[i];return typeof p=="number"&&(u.Ne[i]=p=P.getUniformLocation(u,u.wf[i]+(0yt?-1:0Te-k.getDate())ge-=Te-k.getDate()+1,k.setDate(1),11>Ee?k.setMonth(Ee+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+ge);break}}return Ee=new Date(k.getFullYear()+1,0,4),ge=A(new Date(k.getFullYear(),0,4)),Ee=A(Ee),0>=C(ge,k)?0>=C(Ee,k)?k.getFullYear()+1:k.getFullYear():k.getFullYear()-1}var U=ee[y+40>>2];y={pg:ee[y>>2],og:ee[y+4>>2],Ye:ee[y+8>>2],jf:ee[y+12>>2],Ze:ee[y+16>>2],qe:ee[y+20>>2],je:ee[y+24>>2],pe:ee[y+28>>2],vg:ee[y+32>>2],ng:ee[y+36>>2],qg:U?ue(U):""},p=ue(p),U={"%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 U)p=p.replace(new RegExp(Z,"g"),U[Z]);var J="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ie="January February March April May June July August September October November December".split(" ");U={"%a":function(k){return J[k.je].substring(0,3)},"%A":function(k){return J[k.je]},"%b":function(k){return ie[k.Ze].substring(0,3)},"%B":function(k){return ie[k.Ze]},"%C":function(k){return x((k.qe+1900)/100|0,2)},"%d":function(k){return x(k.jf,2)},"%e":function(k){return S(k.jf,2," ")},"%g":function(k){return j(k).toString().substring(2)},"%G":function(k){return j(k)},"%H":function(k){return x(k.Ye,2)},"%I":function(k){return k=k.Ye,k==0?k=12:12k.Ye?"AM":"PM"},"%S":function(k){return x(k.pg,2)},"%t":function(){return" "},"%u":function(k){return k.je||7},"%U":function(k){return x(Math.floor((k.pe+7-k.je)/7),2)},"%V":function(k){var ge=Math.floor((k.pe+7-(k.je+6)%7)/7);if(2>=(k.je+371-k.pe-2)%7&&ge++,ge)ge==53&&(Ee=(k.je+371-k.pe)%7,Ee==4||Ee==3&&kn(k.qe)||(ge=1));else{ge=52;var Ee=(k.je+7-k.pe-1)%7;(Ee==4||Ee==5&&kn(k.qe%400-1))&&ge++}return x(ge,2)},"%w":function(k){return k.je},"%W":function(k){return x(Math.floor((k.pe+7-(k.je+6)%7)/7),2)},"%y":function(k){return(k.qe+1900).toString().substring(2)},"%Y":function(k){return k.qe+1900},"%z":function(k){k=k.ng;var ge=0<=k;return k=Math.abs(k)/60,(ge?"+":"-")+("0000"+(k/60*100+k%60)).slice(-4)},"%Z":function(k){return k.qg},"%%":function(){return"%"}},p=p.replace(/%%/g,"\0\0");for(Z in U)p.includes(Z)&&(p=p.replace(new RegExp(Z,"g"),U[Z](y)));return p=p.replace(/\0\0/g,"%"),Z=Kd(p),Z.length>u?0:(mt.set(Z,i),Z.length-1)}Al=o.InternalError=as("InternalError");for(var Yl=Array(256),zn=0;256>zn;++zn)Yl[zn]=String.fromCharCode(zn);Il=Yl,Vr=o.BindingError=as("BindingError"),pr.prototype.isAliasOf=function(i){if(!(this instanceof pr&&i instanceof pr))return!1;var u=this.Ld.Xd.Rd,p=this.Ld.Td,y=i.Ld.Xd.Rd;for(i=i.Ld.Td;u.ie;)p=u.Oe(p),u=u.ie;for(;y.ie;)i=y.Oe(i),y=y.ie;return u===y&&p===i},pr.prototype.clone=function(){if(this.Ld.Td||ls(this),this.Ld.Me)return this.Ld.count.value+=1,this;var i=Ro,u=Object,p=u.create,y=Object.getPrototypeOf(this),S=this.Ld;return i=i(p.call(u,y,{Ld:{value:{count:S.count,Fe:S.Fe,Me:S.Me,Td:S.Td,Xd:S.Xd,$d:S.$d,fe:S.fe}}})),i.Ld.count.value+=1,i.Ld.Fe=!1,i},pr.prototype.delete=function(){this.Ld.Td||ls(this),this.Ld.Fe&&!this.Ld.Me&&Ce("Object already scheduled for deletion"),Ml(this),jl(this.Ld),this.Ld.Me||(this.Ld.$d=void 0,this.Ld.Td=void 0)},pr.prototype.isDeleted=function(){return!this.Ld.Td},pr.prototype.deleteLater=function(){return this.Ld.Td||ls(this),this.Ld.Fe&&!this.Ld.Me&&Ce("Object already scheduled for deletion"),Io.push(this),Io.length===1&&Mo&&Mo(gs),this.Ld.Fe=!0,this},o.getInheritedInstanceCount=function(){return Object.keys(jo).length},o.getLiveInheritedInstances=function(){var i=[],u;for(u in jo)jo.hasOwnProperty(u)&&i.push(jo[u]);return i},o.flushPendingDeletes=gs,o.setDelayFunction=function(i){Mo=i,Io.length&&Mo&&Mo(gs)},Kt.prototype.Qf=function(i){return this.vf&&(i=this.vf(i)),i},Kt.prototype.pf=function(i){this.le&&this.le(i)},Kt.prototype.argPackAdvance=8,Kt.prototype.readValueFromPointer=Ao,Kt.prototype.deleteObject=function(i){i!==null&&i.delete()},Kt.prototype.fromWireType=function(i){function u(){return this.Ue?Rn(this.Rd.Ge,{Xd:this.ag,Td:p,fe:this,$d:i}):Rn(this.Rd.Ge,{Xd:this,Td:i})}var p=this.Qf(i);if(!p)return this.pf(i),null;var y=Id(this.Rd,p);if(y!==void 0)return y.Ld.count.value===0?(y.Ld.Td=p,y.Ld.$d=i,y.clone()):(y=y.clone(),this.pf(i),y);if(y=this.Rd.Pf(p),y=Ol[y],!y)return u.call(this);y=this.Te?y.Ff:y.pointerType;var S=Rl(p,this.Rd,y.Rd);return S===null?u.call(this):this.Ue?Rn(y.Rd.Ge,{Xd:y,Td:S,fe:this,$d:i}):Rn(y.Rd.Ge,{Xd:y,Td:S})},Cl=o.UnboundTypeError=as("UnboundTypeError"),o.count_emval_handles=function(){for(var i=0,u=5;ubt;++bt)Ln.push(Array(bt));var Zd=new Float32Array(288);for(bt=0;288>bt;++bt)fr[bt]=Zd.subarray(0,bt+1);var Yd=new Int32Array(288);for(bt=0;288>bt;++bt)Uo[bt]=Yd.subarray(0,bt+1);function Kd(i){var u=Array(Ye(i)+1);return Ue(i,u,0,u.length),u}var Jd={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},C:function(i){var u=An[i];delete An[i];var p=u.gf,y=u.le,S=u.sf,x=S.map(C=>C.Tf).concat(S.map(C=>C.fg));Lt([i],x,C=>{var A={};return S.forEach((j,U)=>{var Z=C[U],J=j.Rf,ie=j.Sf,k=C[U+S.length],ge=j.eg,Ee=j.gg;A[j.Lf]={read:Te=>Z.fromWireType(J(ie,Te)),write:(Te,yt)=>{var Nt=[];ge(Ee,Te,k.toWireType(Nt,yt)),is(Nt)}}}),[{name:u.name,fromWireType:function(j){var U={},Z;for(Z in A)U[Z]=A[Z].read(j);return y(j),U},toWireType:function(j,U){for(var Z in A)if(!(Z in U))throw new TypeError('Missing field: "'+Z+'"');var J=p();for(Z in A)A[Z].write(J,U[Z]);return j!==null&&j.push(y,J),J},argPackAdvance:8,readValueFromPointer:Ao,ee:y}]})},qb:function(){},Hb:function(i,u,p,y,S){var x=jn(p);u=Ke(u),Yt(i,{name:u,fromWireType:function(C){return!!C},toWireType:function(C,A){return A?y:S},argPackAdvance:8,readValueFromPointer:function(C){if(p===1)var A=mt;else if(p===2)A=Dt;else if(p===4)A=ee;else throw new TypeError("Unknown boolean type size: "+u);return this.fromWireType(A[C>>x])},ee:null})},q:function(i,u,p,y,S,x,C,A,j,U,Z,J,ie){Z=Ke(Z),x=lt(S,x),A&&(A=lt(C,A)),U&&(U=lt(j,U)),ie=lt(J,ie);var k=xl(Z);cs(k,function(){Oo("Cannot construct "+Z+" due to unbound types",[y])}),Lt([i,u,p],y?[y]:[],function(ge){if(ge=ge[0],y)var Ee=ge.Rd,Te=Ee.Ge;else Te=pr.prototype;ge=ss(k,function(){if(Object.getPrototypeOf(this)!==yt)throw new Vr("Use 'new' to construct "+Z);if(Nt.oe===void 0)throw new Vr(Z+" has no accessible constructor");var Do=Nt.oe[arguments.length];if(Do===void 0)throw new Vr("Tried to invoke ctor of "+Z+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(Nt.oe).toString()+") parameters instead!");return Do.apply(this,arguments)});var yt=Object.create(Te,{constructor:{value:ge}});ge.prototype=yt;var Nt=new Md(Z,ge,yt,ie,Ee,x,A,U);Ee=new Kt(Z,Nt,!0,!1,!1),Te=new Kt(Z+"*",Nt,!1,!1,!1);var Po=new Kt(Z+" const*",Nt,!1,!0,!1);return Ol[i]={pointerType:Te,Ff:Po},Nl(k,ge),[Ee,Te,Po]})},h:function(i,u,p,y,S,x,C){var A=Nn(p,y);u=Ke(u),x=lt(S,x),Lt([],[i],function(j){function U(){Oo("Cannot call "+Z+" due to unbound types",A)}j=j[0];var Z=j.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]);var J=j.Rd.constructor;return J[u]===void 0?(U.De=p-1,J[u]=U):(ps(J,u,Z),J[u].Zd[p-1]=U),Lt([],A,function(ie){return ie=[ie[0],null].concat(ie.slice(1)),ie=On(Z,ie,null,x,C),J[u].Zd===void 0?(ie.De=p-1,J[u]=ie):J[u].Zd[p-1]=ie,[]}),[]})},B:function(i,u,p,y,S,x){0{Oo("Cannot construct "+A.name+" due to unbound types",C)},Lt([],C,function(U){return U.splice(1,0,null),A.Rd.oe[u-1]=On(j,U,null,S,x),[]}),[]})},b:function(i,u,p,y,S,x,C,A){var j=Nn(p,y);u=Ke(u),x=lt(S,x),Lt([],[i],function(U){function Z(){Oo("Cannot call "+J+" due to unbound types",j)}U=U[0];var J=U.name+"."+u;u.startsWith("@@")&&(u=Symbol[u.substring(2)]),A&&U.Rd.bg.push(u);var ie=U.Rd.Ge,k=ie[u];return k===void 0||k.Zd===void 0&&k.className!==U.name&&k.De===p-2?(Z.De=p-2,Z.className=U.name,ie[u]=Z):(ps(ie,u,J),ie[u].Zd[p-2]=Z),Lt([],j,function(ge){return ge=On(J,ge,U,x,C),ie[u].Zd===void 0?(ge.De=p-2,ie[u]=ge):ie[u].Zd[p-2]=ge,[]}),[]})},u:function(i,u,p){i=Ke(i),Lt([],[u],function(y){return y=y[0],o[i]=y.fromWireType(p),[]})},Gb:function(i,u){u=Ke(u),Yt(i,{name:u,fromWireType:function(p){var y=jt(p);return hs(p),y},toWireType:function(p,y){return Rt(y)},argPackAdvance:8,readValueFromPointer:Ao,ee:null})},n:function(i,u,p,y){function S(){}p=jn(p),u=Ke(u),S.values={},Yt(i,{name:u,constructor:S,fromWireType:function(x){return this.constructor.values[x]},toWireType:function(x,C){return C.value},argPackAdvance:8,readValueFromPointer:Cd(u,p,y),ee:null}),cs(u,S)},e:function(i,u,p){var y=No(i,"enum");u=Ke(u),i=y.constructor,y=Object.create(y.constructor.prototype,{value:{value:p},constructor:{value:ss(y.name+"_"+u,function(){})}}),i.values[p]=y,i[u]=y},Y:function(i,u,p){p=jn(p),u=Ke(u),Yt(i,{name:u,fromWireType:function(y){return y},toWireType:function(y,S){return S},argPackAdvance:8,readValueFromPointer:Fd(u,p),ee:null})},y:function(i,u,p,y,S,x){var C=Nn(u,p);i=Ke(i),S=lt(y,S),cs(i,function(){Oo("Cannot call "+i+" due to unbound types",C)},u-1),Lt([],C,function(A){return A=[A[0],null].concat(A.slice(1)),Nl(i,On(i,A,null,S,x),u-1),[]})},E:function(i,u,p,y,S){u=Ke(u),S===-1&&(S=4294967295),S=jn(p);var x=A=>A;if(y===0){var C=32-8*p;x=A=>A<>>C}p=u.includes("unsigned")?function(A,j){return j>>>0}:function(A,j){return j},Yt(i,{name:u,fromWireType:x,toWireType:p,argPackAdvance:8,readValueFromPointer:Ud(u,S,y!==0),ee:null})},v:function(i,u,p){function y(x){x>>=2;var C=De;return new S(vo,C[x+1],C[x])}var S=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][u];p=Ke(p),Yt(i,{name:p,fromWireType:y,argPackAdvance:8,readValueFromPointer:y},{Vf:!0})},t:function(i,u,p,y,S,x,C,A,j,U,Z,J){p=Ke(p),x=lt(S,x),A=lt(C,A),U=lt(j,U),J=lt(Z,J),Lt([i],[u],function(ie){return ie=ie[0],[new Kt(p,ie.Rd,!1,!1,!0,ie,y,x,A,U,J)]})},X:function(i,u){u=Ke(u);var p=u==="std::string";Yt(i,{name:u,fromWireType:function(y){var S=De[y>>2],x=y+4;if(p)for(var C=x,A=0;A<=S;++A){var j=x+A;if(A==S||xe[j]==0){if(C=ue(C,j-C),U===void 0)var U=C;else U+=String.fromCharCode(0),U+=C;C=j+1}}else{for(U=Array(S),A=0;A>2]=C,p&&x)Ue(S,xe,j,C+1);else if(x)for(x=0;xIt,A=1;else u===4&&(y=Tn,S=Zt,x=rs,C=()=>De,A=2);Yt(i,{name:p,fromWireType:function(j){for(var U=De[j>>2],Z=C(),J,ie=j+4,k=0;k<=U;++k){var ge=j+4+k*u;(k==U||Z[ge>>A]==0)&&(ie=y(ie,ge-ie),J===void 0?J=ie:(J+=String.fromCharCode(0),J+=ie),ie=ge+u)}return or(j),J},toWireType:function(j,U){typeof U!="string"&&Ce("Cannot pass non-string to C++ string type "+p);var Z=x(U),J=Wn(4+Z+u);return De[J>>2]=Z>>A,S(U,J+4,Z+u),j!==null&&j.push(or,J),J},argPackAdvance:8,readValueFromPointer:Ao,ee:function(j){or(j)}})},D:function(i,u,p,y,S,x){An[i]={name:Ke(u),gf:lt(p,y),le:lt(S,x),sf:[]}},g:function(i,u,p,y,S,x,C,A,j,U){An[i].sf.push({Lf:Ke(u),Tf:p,Rf:lt(y,S),Sf:x,fg:C,eg:lt(A,j),gg:U})},Ib:function(i,u){u=Ke(u),Yt(i,{Xf:!0,name:u,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},sb:function(){throw 1/0},I:function(i,u,p){i=jt(i),u=No(u,"emval::as");var y=[],S=Rt(y);return De[p>>2]=S,u.toWireType(y,i)},$:function(i,u,p,y,S){i=Fn[i],u=jt(u),p=Cn(p);var x=[];return De[y>>2]=Rt(x),i(u,p,x,S)},A:function(i,u,p,y){i=Fn[i],u=jt(u),p=Cn(p),i(u,p,null,y)},f:hs,M:function(i){return i===0?Rt(Ul()):(i=Cn(i),Rt(Ul()[i]))},z:function(i,u){var p=Ld(i,u),y=p[0];u=y.name+"_$"+p.slice(1).map(function(C){return C.name}).join("_")+"$";var S=Pl[u];if(S!==void 0)return S;var x=Array(i-1);return S=Dd((C,A,j,U)=>{for(var Z=0,J=0;J>>0)+4294967296*y)},ka:function(i,u,p,y){P.colorMask(!!i,!!u,!!p,!!y)},la:function(i){P.compileShader(zt[i])},ma:function(i,u,p,y,S,x,C,A){2<=Se.version?P.Ee||!C?P.compressedTexImage2D(i,u,p,y,S,x,C,A):P.compressedTexImage2D(i,u,p,y,S,x,xe,A,C):P.compressedTexImage2D(i,u,p,y,S,x,A?xe.subarray(A,A+C):null)},na:function(i,u,p,y,S,x,C,A,j){2<=Se.version?P.Ee||!A?P.compressedTexSubImage2D(i,u,p,y,S,x,C,A,j):P.compressedTexSubImage2D(i,u,p,y,S,x,C,xe,j,A):P.compressedTexSubImage2D(i,u,p,y,S,x,C,j?xe.subarray(j,j+A):null)},Zb:function(i,u,p,y,S){P.copyBufferSubData(i,u,p,y,S)},oa:function(i,u,p,y,S,x,C,A){P.copyTexSubImage2D(i,u,p,y,S,x,C,A)},pa:function(){var i=Hr(kt),u=P.createProgram();return u.name=i,u.Xe=u.Ve=u.We=0,u.kf=1,kt[i]=u,i},qa:function(i){var u=Hr(zt);return zt[u]=P.createShader(i),u},ra:function(i){P.cullFace(i)},sa:function(i,u){for(var p=0;p>2],S=Un[y];S&&(P.deleteBuffer(S),S.name=0,Un[y]=null,y==P.df&&(P.df=0),y==P.Ee&&(P.Ee=0))}},hc:function(i,u){for(var p=0;p>2],S=Pn[y];S&&(P.deleteFramebuffer(S),S.name=0,Pn[y]=null)}},ta:function(i){if(i){var u=kt[i];u?(P.deleteProgram(u),u.name=0,kt[i]=null):We(1281)}},ic:function(i,u){for(var p=0;p>2],S=Co[y];S&&(P.deleteRenderbuffer(S),S.name=0,Co[y]=null)}},Sb:function(i,u){for(var p=0;p>2],S=Ar[y];S&&(P.deleteSampler(S),S.name=0,Ar[y]=null)}},ua:function(i){if(i){var u=zt[i];u?(P.deleteShader(u),zt[i]=null):We(1281)}},_b:function(i){if(i){var u=Ir[i];u?(P.deleteSync(u),u.name=0,Ir[i]=null):We(1281)}},va:function(i,u){for(var p=0;p>2],S=Ot[y];S&&(P.deleteTexture(S),S.name=0,Ot[y]=null)}},Dc:function(i,u){for(var p=0;p>2];P.deleteVertexArray(cr[y]),cr[y]=null}},yc:function(i,u){for(var p=0;p>2];P.deleteVertexArray(cr[y]),cr[y]=null}},wa:function(i){P.depthMask(!!i)},xa:function(i){P.disable(i)},ya:function(i){P.disableVertexAttribArray(i)},za:function(i,u,p){P.drawArrays(i,u,p)},Ac:function(i,u,p,y){P.drawArraysInstanced(i,u,p,y)},vc:function(i,u,p,y,S){P.qf.drawArraysInstancedBaseInstanceWEBGL(i,u,p,y,S)},tc:function(i,u){for(var p=Ln[i],y=0;y>2];P.drawBuffers(p)},Aa:function(i,u,p,y){P.drawElements(i,u,p,y)},Bc:function(i,u,p,y,S){P.drawElementsInstanced(i,u,p,y,S)},wc:function(i,u,p,y,S,x,C){P.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(i,u,p,y,S,x,C)},nc:function(i,u,p,y,S,x){P.drawElements(i,y,S,x)},Ba:function(i){P.enable(i)},Ca:function(i){P.enableVertexAttribArray(i)},Xb:function(i,u){return(i=P.fenceSync(i,u))?(u=Hr(Ir),i.name=u,Ir[u]=i,u):0},Da:function(){P.finish()},Ea:function(){P.flush()},jc:function(i,u,p,y){P.framebufferRenderbuffer(i,u,p,Co[y])},kc:function(i,u,p,y,S){P.framebufferTexture2D(i,u,p,Ot[y],S)},Fa:function(i){P.frontFace(i)},Ga:function(i,u){Mr(i,u,"createBuffer",Un)},lc:function(i,u){Mr(i,u,"createFramebuffer",Pn)},mc:function(i,u){Mr(i,u,"createRenderbuffer",Co)},Tb:function(i,u){Mr(i,u,"createSampler",Ar)},Ha:function(i,u){Mr(i,u,"createTexture",Ot)},Ec:function(i,u){Mr(i,u,"createVertexArray",cr)},zc:function(i,u){Mr(i,u,"createVertexArray",cr)},bc:function(i){P.generateMipmap(i)},Ia:function(i,u,p){p?ee[p>>2]=P.getBufferParameter(i,u):We(1281)},Ja:function(){var i=P.getError()||Dn;return Dn=0,i},Ka:function(i,u){Hl(i,u,2)},cc:function(i,u,p,y){i=P.getFramebufferAttachmentParameter(i,u,p),(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=i.name|0),ee[y>>2]=i},N:function(i,u){Hl(i,u,0)},La:function(i,u,p,y){i=P.getProgramInfoLog(kt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ma:function(i,u,p){if(p)if(i>=Bl)We(1281);else if(i=kt[i],u==35716)i=P.getProgramInfoLog(i),i===null&&(i="(unknown error)"),ee[p>>2]=i.length+1;else if(u==35719){if(!i.Xe)for(u=0;u>2]=i.Xe}else if(u==35722){if(!i.Ve)for(u=0;u>2]=i.Ve}else if(u==35381){if(!i.We)for(u=0;u>2]=i.We}else ee[p>>2]=P.getProgramParameter(i,u);else We(1281)},dc:function(i,u,p){p?ee[p>>2]=P.getRenderbufferParameter(i,u):We(1281)},Na:function(i,u,p,y){i=P.getShaderInfoLog(zt[i]),i===null&&(i="(unknown error)"),u=0>2]=u)},Ob:function(i,u,p,y){i=P.getShaderPrecisionFormat(i,u),ee[p>>2]=i.rangeMin,ee[p+4>>2]=i.rangeMax,ee[y>>2]=i.precision},Oa:function(i,u,p){p?u==35716?(i=P.getShaderInfoLog(zt[i]),i===null&&(i="(unknown error)"),ee[p>>2]=i?i.length+1:0):u==35720?(i=P.getShaderSource(zt[i]),ee[p>>2]=i?i.length+1:0):ee[p>>2]=P.getShaderParameter(zt[i],u):We(1281)},R:function(i){var u=kl[i];if(!u){switch(i){case 7939:u=P.getSupportedExtensions()||[],u=u.concat(u.map(function(y){return"GL_"+y})),u=Fo(u.join(" "));break;case 7936:case 7937:case 37445:case 37446:(u=P.getParameter(i))||We(1280),u=u&&Fo(u);break;case 7938:u=P.getParameter(7938),u=2<=Se.version?"OpenGL ES 3.0 ("+u+")":"OpenGL ES 2.0 ("+u+")",u=Fo(u);break;case 35724:u=P.getParameter(35724);var p=u.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);p!==null&&(p[1].length==3&&(p[1]+="0"),u="OpenGL ES GLSL ES "+p[1]+" ("+u+")"),u=Fo(u);break;default:We(1280)}kl[i]=u}return u},jb:function(i,u){if(2>Se.version)return We(1282),0;var p=zl[i];if(p)return 0>u||u>=p.length?(We(1281),0):p[u];switch(i){case 7939:return p=P.getSupportedExtensions()||[],p=p.concat(p.map(function(y){return"GL_"+y})),p=p.map(function(y){return Fo(y)}),p=zl[i]=p,0>u||u>=p.length?(We(1281),0):p[u];default:return We(1280),0}},Pa:function(i,u){if(u=ue(u),i=kt[i]){var p=i,y=p.Ne,S=p.xf,x;if(!y)for(p.Ne=y={},p.wf={},x=0;x>>0,S=u.slice(0,x)),(S=i.xf[S])&&y>2];P.invalidateFramebuffer(i,y)},Qb:function(i,u,p,y,S,x,C){for(var A=Ln[u],j=0;j>2];P.invalidateSubFramebuffer(i,A,y,S,x,C)},Yb:function(i){return P.isSync(Ir[i])},Qa:function(i){return(i=Ot[i])?P.isTexture(i):0},Ra:function(i){P.lineWidth(i)},Sa:function(i){i=kt[i],P.linkProgram(i),i.Ne=0,i.xf={}},rc:function(i,u,p,y,S,x){P.uf.multiDrawArraysInstancedBaseInstanceWEBGL(i,ee,u>>2,ee,p>>2,ee,y>>2,De,S>>2,x)},sc:function(i,u,p,y,S,x,C,A){P.uf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(i,ee,u>>2,p,ee,y>>2,ee,S>>2,ee,x>>2,De,C>>2,A)},Ta:function(i,u){i==3317&&(Wl=u),P.pixelStorei(i,u)},uc:function(i){P.readBuffer(i)},Ua:function(i,u,p,y,S,x,C){if(2<=Se.version)if(P.df)P.readPixels(i,u,p,y,S,x,C);else{var A=Bn(x);P.readPixels(i,u,p,y,S,x,A,C>>31-Math.clz32(A.BYTES_PER_ELEMENT))}else(C=ys(x,S,p,y,C))?P.readPixels(i,u,p,y,S,x,C):We(1280)},ec:function(i,u,p,y){P.renderbufferStorage(i,u,p,y)},ac:function(i,u,p,y,S){P.renderbufferStorageMultisample(i,u,p,y,S)},Ub:function(i,u,p){P.samplerParameterf(Ar[i],u,p)},Vb:function(i,u,p){P.samplerParameteri(Ar[i],u,p)},Wb:function(i,u,p){P.samplerParameteri(Ar[i],u,ee[p>>2])},Va:function(i,u,p,y){P.scissor(i,u,p,y)},Wa:function(i,u,p,y){for(var S="",x=0;x>2]:-1;S+=ue(ee[p+4*x>>2],0>C?void 0:C)}P.shaderSource(zt[i],S)},Xa:function(i,u,p){P.stencilFunc(i,u,p)},Ya:function(i,u,p,y){P.stencilFuncSeparate(i,u,p,y)},Za:function(i){P.stencilMask(i)},_a:function(i,u){P.stencilMaskSeparate(i,u)},$a:function(i,u,p){P.stencilOp(i,u,p)},ab:function(i,u,p,y){P.stencilOpSeparate(i,u,p,y)},bb:function(i,u,p,y,S,x,C,A,j){if(2<=Se.version)if(P.Ee)P.texImage2D(i,u,p,y,S,x,C,A,j);else if(j){var U=Bn(A);P.texImage2D(i,u,p,y,S,x,C,A,U,j>>31-Math.clz32(U.BYTES_PER_ELEMENT))}else P.texImage2D(i,u,p,y,S,x,C,A,null);else P.texImage2D(i,u,p,y,S,x,C,A,j?ys(A,C,y,S,j):null)},cb:function(i,u,p){P.texParameterf(i,u,p)},db:function(i,u,p){P.texParameterf(i,u,me[p>>2])},eb:function(i,u,p){P.texParameteri(i,u,p)},fb:function(i,u,p){P.texParameteri(i,u,ee[p>>2])},oc:function(i,u,p,y,S){P.texStorage2D(i,u,p,y,S)},gb:function(i,u,p,y,S,x,C,A,j){if(2<=Se.version)if(P.Ee)P.texSubImage2D(i,u,p,y,S,x,C,A,j);else if(j){var U=Bn(A);P.texSubImage2D(i,u,p,y,S,x,C,A,U,j>>31-Math.clz32(U.BYTES_PER_ELEMENT))}else P.texSubImage2D(i,u,p,y,S,x,C,A,null);else U=null,j&&(U=ys(A,C,S,x,j)),P.texSubImage2D(i,u,p,y,S,x,C,A,U)},hb:function(i,u){P.uniform1f(Le(i),u)},ib:function(i,u,p){if(2<=Se.version)u&&P.uniform1fv(Le(i),me,p>>2,u);else{if(288>=u)for(var y=fr[u-1],S=0;S>2];else y=me.subarray(p>>2,p+4*u>>2);P.uniform1fv(Le(i),y)}},Zc:function(i,u){P.uniform1i(Le(i),u)},_c:function(i,u,p){if(2<=Se.version)u&&P.uniform1iv(Le(i),ee,p>>2,u);else{if(288>=u)for(var y=Uo[u-1],S=0;S>2];else y=ee.subarray(p>>2,p+4*u>>2);P.uniform1iv(Le(i),y)}},$c:function(i,u,p){P.uniform2f(Le(i),u,p)},ad:function(i,u,p){if(2<=Se.version)u&&P.uniform2fv(Le(i),me,p>>2,2*u);else{if(144>=u)for(var y=fr[2*u-1],S=0;S<2*u;S+=2)y[S]=me[p+4*S>>2],y[S+1]=me[p+(4*S+4)>>2];else y=me.subarray(p>>2,p+8*u>>2);P.uniform2fv(Le(i),y)}},Yc:function(i,u,p){P.uniform2i(Le(i),u,p)},Xc:function(i,u,p){if(2<=Se.version)u&&P.uniform2iv(Le(i),ee,p>>2,2*u);else{if(144>=u)for(var y=Uo[2*u-1],S=0;S<2*u;S+=2)y[S]=ee[p+4*S>>2],y[S+1]=ee[p+(4*S+4)>>2];else y=ee.subarray(p>>2,p+8*u>>2);P.uniform2iv(Le(i),y)}},Wc:function(i,u,p,y){P.uniform3f(Le(i),u,p,y)},Vc:function(i,u,p){if(2<=Se.version)u&&P.uniform3fv(Le(i),me,p>>2,3*u);else{if(96>=u)for(var y=fr[3*u-1],S=0;S<3*u;S+=3)y[S]=me[p+4*S>>2],y[S+1]=me[p+(4*S+4)>>2],y[S+2]=me[p+(4*S+8)>>2];else y=me.subarray(p>>2,p+12*u>>2);P.uniform3fv(Le(i),y)}},Uc:function(i,u,p,y){P.uniform3i(Le(i),u,p,y)},Tc:function(i,u,p){if(2<=Se.version)u&&P.uniform3iv(Le(i),ee,p>>2,3*u);else{if(96>=u)for(var y=Uo[3*u-1],S=0;S<3*u;S+=3)y[S]=ee[p+4*S>>2],y[S+1]=ee[p+(4*S+4)>>2],y[S+2]=ee[p+(4*S+8)>>2];else y=ee.subarray(p>>2,p+12*u>>2);P.uniform3iv(Le(i),y)}},Sc:function(i,u,p,y,S){P.uniform4f(Le(i),u,p,y,S)},Rc:function(i,u,p){if(2<=Se.version)u&&P.uniform4fv(Le(i),me,p>>2,4*u);else{if(72>=u){var y=fr[4*u-1],S=me;p>>=2;for(var x=0;x<4*u;x+=4){var C=p+x;y[x]=S[C],y[x+1]=S[C+1],y[x+2]=S[C+2],y[x+3]=S[C+3]}}else y=me.subarray(p>>2,p+16*u>>2);P.uniform4fv(Le(i),y)}},Fc:function(i,u,p,y,S){P.uniform4i(Le(i),u,p,y,S)},Gc:function(i,u,p){if(2<=Se.version)u&&P.uniform4iv(Le(i),ee,p>>2,4*u);else{if(72>=u)for(var y=Uo[4*u-1],S=0;S<4*u;S+=4)y[S]=ee[p+4*S>>2],y[S+1]=ee[p+(4*S+4)>>2],y[S+2]=ee[p+(4*S+8)>>2],y[S+3]=ee[p+(4*S+12)>>2];else y=ee.subarray(p>>2,p+16*u>>2);P.uniform4iv(Le(i),y)}},Hc:function(i,u,p,y){if(2<=Se.version)u&&P.uniformMatrix2fv(Le(i),!!p,me,y>>2,4*u);else{if(72>=u)for(var S=fr[4*u-1],x=0;x<4*u;x+=4)S[x]=me[y+4*x>>2],S[x+1]=me[y+(4*x+4)>>2],S[x+2]=me[y+(4*x+8)>>2],S[x+3]=me[y+(4*x+12)>>2];else S=me.subarray(y>>2,y+16*u>>2);P.uniformMatrix2fv(Le(i),!!p,S)}},Ic:function(i,u,p,y){if(2<=Se.version)u&&P.uniformMatrix3fv(Le(i),!!p,me,y>>2,9*u);else{if(32>=u)for(var S=fr[9*u-1],x=0;x<9*u;x+=9)S[x]=me[y+4*x>>2],S[x+1]=me[y+(4*x+4)>>2],S[x+2]=me[y+(4*x+8)>>2],S[x+3]=me[y+(4*x+12)>>2],S[x+4]=me[y+(4*x+16)>>2],S[x+5]=me[y+(4*x+20)>>2],S[x+6]=me[y+(4*x+24)>>2],S[x+7]=me[y+(4*x+28)>>2],S[x+8]=me[y+(4*x+32)>>2];else S=me.subarray(y>>2,y+36*u>>2);P.uniformMatrix3fv(Le(i),!!p,S)}},Jc:function(i,u,p,y){if(2<=Se.version)u&&P.uniformMatrix4fv(Le(i),!!p,me,y>>2,16*u);else{if(18>=u){var S=fr[16*u-1],x=me;y>>=2;for(var C=0;C<16*u;C+=16){var A=y+C;S[C]=x[A],S[C+1]=x[A+1],S[C+2]=x[A+2],S[C+3]=x[A+3],S[C+4]=x[A+4],S[C+5]=x[A+5],S[C+6]=x[A+6],S[C+7]=x[A+7],S[C+8]=x[A+8],S[C+9]=x[A+9],S[C+10]=x[A+10],S[C+11]=x[A+11],S[C+12]=x[A+12],S[C+13]=x[A+13],S[C+14]=x[A+14],S[C+15]=x[A+15]}}else S=me.subarray(y>>2,y+64*u>>2);P.uniformMatrix4fv(Le(i),!!p,S)}},Kc:function(i){i=kt[i],P.useProgram(i),P.Hf=i},Lc:function(i,u){P.vertexAttrib1f(i,u)},Mc:function(i,u){P.vertexAttrib2f(i,me[u>>2],me[u+4>>2])},Nc:function(i,u){P.vertexAttrib3f(i,me[u>>2],me[u+4>>2],me[u+8>>2])},Oc:function(i,u){P.vertexAttrib4f(i,me[u>>2],me[u+4>>2],me[u+8>>2],me[u+12>>2])},pc:function(i,u){P.vertexAttribDivisor(i,u)},qc:function(i,u,p,y,S){P.vertexAttribIPointer(i,u,p,y,S)},Pc:function(i,u,p,y,S,x){P.vertexAttribPointer(i,u,p,!!y,S,x)},Qc:function(i,u,p,y){P.viewport(i,u,p,y)},lb:function(i,u,p,y){P.waitSync(Ir[i],u,(p>>>0)+4294967296*y)},tb:function(i){var u=xe.length;if(i>>>=0,2147483648=p;p*=2){var y=u*(1+.2/p);y=Math.min(y,i+100663296);var S=Math;y=Math.max(i,y),S=S.min.call(S,2147483648,y+(65536-y%65536)%65536);e:{try{Ne.grow(S-vo.byteLength+65535>>>16),xn();var x=1;break e}catch{}x=void 0}if(x)return!0}return!1},nb:function(){return Se?Se.Uf:0},wb:function(i,u){var p=0;return ql().forEach(function(y,S){var x=u+p;for(S=De[i+4*S>>2]=x,x=0;x>0]=y.charCodeAt(x);mt[S>>0]=0,p+=y.length+1}),0},xb:function(i,u){var p=ql();De[i>>2]=p.length;var y=0;return p.forEach(function(S){y+=S.length+1}),De[u>>2]=y,0},Jb:function(i){Ae||(o.onExit&&o.onExit(i),Qe=!0),v(i,new Jl(i))},O:function(){return 52},ob:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(i,u,p,y){for(var S=0,x=0;x>2],A=De[u+4>>2];u+=8;for(var j=0;j>2]=S,0},c:function(){return fe},k:Qd,o:sh,l:Xd,K:lh,Lb:uh,_:gh,Z:ch,Q:oh,p:ih,x:rh,s:th,w:nh,Kb:ph,Mb:ah,Nb:eh,d:function(i){fe=i},rb:function(i,u,p,y){return $d(i,u,p,y)}};(function(){function i(S){o.asm=S.exports,Ne=o.asm.dd,xn(),So=o.asm.fd,Eo.unshift(o.asm.ed),Tr--,o.monitorRunDependencies&&o.monitorRunDependencies(Tr),Tr==0&&(os!==null&&(clearInterval(os),os=null),To&&(S=To,To=null,S()))}function u(S){i(S.instance)}function p(S){return Ad().then(function(x){return WebAssembly.instantiate(x,y)}).then(function(x){return x}).then(S,function(x){oe("failed to asynchronously prepare wasm: "+x),xo(x)})}var y={a:Jd};if(Tr++,o.monitorRunDependencies&&o.monitorRunDependencies(Tr),o.instantiateWasm)try{return o.instantiateWasm(y,i)}catch(S){return oe("Module.instantiateWasm callback failed with error: "+S),!1}return function(){return pe||typeof WebAssembly.instantiateStreaming!="function"||wl()||Mt.startsWith("file://")||F||typeof fetch!="function"?p(u):fetch(Mt,{credentials:"same-origin"}).then(function(S){return WebAssembly.instantiateStreaming(S,y).then(u,function(x){return oe("wasm streaming compile failed: "+x),oe("falling back to ArrayBuffer instantiation"),p(u)})})}().catch(s),{}})(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.ed).apply(null,arguments)};var or=o._free=function(){return(or=o._free=o.asm.gd).apply(null,arguments)},Wn=o._malloc=function(){return(Wn=o._malloc=o.asm.hd).apply(null,arguments)},Kl=o.___getTypeName=function(){return(Kl=o.___getTypeName=o.asm.id).apply(null,arguments)};o.___embind_register_native_and_builtin_types=function(){return(o.___embind_register_native_and_builtin_types=o.asm.jd).apply(null,arguments)};var ut=o._setThrew=function(){return(ut=o._setThrew=o.asm.kd).apply(null,arguments)},gt=o.stackSave=function(){return(gt=o.stackSave=o.asm.ld).apply(null,arguments)},pt=o.stackRestore=function(){return(pt=o.stackRestore=o.asm.md).apply(null,arguments)};o.dynCall_viji=function(){return(o.dynCall_viji=o.asm.nd).apply(null,arguments)},o.dynCall_vijiii=function(){return(o.dynCall_vijiii=o.asm.od).apply(null,arguments)},o.dynCall_viiiiij=function(){return(o.dynCall_viiiiij=o.asm.pd).apply(null,arguments)},o.dynCall_jiiiijiiiii=function(){return(o.dynCall_jiiiijiiiii=o.asm.qd).apply(null,arguments)},o.dynCall_viiij=function(){return(o.dynCall_viiij=o.asm.rd).apply(null,arguments)},o.dynCall_jii=function(){return(o.dynCall_jii=o.asm.sd).apply(null,arguments)},o.dynCall_vij=function(){return(o.dynCall_vij=o.asm.td).apply(null,arguments)},o.dynCall_iiij=function(){return(o.dynCall_iiij=o.asm.ud).apply(null,arguments)},o.dynCall_iiiij=function(){return(o.dynCall_iiiij=o.asm.vd).apply(null,arguments)},o.dynCall_viij=function(){return(o.dynCall_viij=o.asm.wd).apply(null,arguments)},o.dynCall_ji=function(){return(o.dynCall_ji=o.asm.xd).apply(null,arguments)},o.dynCall_iij=function(){return(o.dynCall_iij=o.asm.yd).apply(null,arguments)},o.dynCall_jiiiiii=function(){return(o.dynCall_jiiiiii=o.asm.zd).apply(null,arguments)},o.dynCall_jiiiiji=function(){return(o.dynCall_jiiiiji=o.asm.Ad).apply(null,arguments)},o.dynCall_iijj=function(){return(o.dynCall_iijj=o.asm.Bd).apply(null,arguments)},o.dynCall_iiiji=function(){return(o.dynCall_iiiji=o.asm.Cd).apply(null,arguments)},o.dynCall_iiji=function(){return(o.dynCall_iiji=o.asm.Dd).apply(null,arguments)},o.dynCall_iijjiii=function(){return(o.dynCall_iijjiii=o.asm.Ed).apply(null,arguments)},o.dynCall_vijjjii=function(){return(o.dynCall_vijjjii=o.asm.Fd).apply(null,arguments)},o.dynCall_jiji=function(){return(o.dynCall_jiji=o.asm.Gd).apply(null,arguments)},o.dynCall_viijii=function(){return(o.dynCall_viijii=o.asm.Hd).apply(null,arguments)},o.dynCall_iiiiij=function(){return(o.dynCall_iiiiij=o.asm.Id).apply(null,arguments)},o.dynCall_iiiiijj=function(){return(o.dynCall_iiiiijj=o.asm.Jd).apply(null,arguments)},o.dynCall_iiiiiijj=function(){return(o.dynCall_iiiiiijj=o.asm.Kd).apply(null,arguments)};function Xd(i,u,p,y){var S=gt();try{return it(i)(u,p,y)}catch(x){if(pt(S),x!==x+0)throw x;ut(1,0)}}function Qd(i,u){var p=gt();try{return it(i)(u)}catch(y){if(pt(p),y!==y+0)throw y;ut(1,0)}}function eh(i,u,p,y,S,x,C,A,j,U){var Z=gt();try{it(i)(u,p,y,S,x,C,A,j,U)}catch(J){if(pt(Z),J!==J+0)throw J;ut(1,0)}}function th(i,u,p,y){var S=gt();try{it(i)(u,p,y)}catch(x){if(pt(S),x!==x+0)throw x;ut(1,0)}}function rh(i,u,p){var y=gt();try{it(i)(u,p)}catch(S){if(pt(y),S!==S+0)throw S;ut(1,0)}}function oh(i){var u=gt();try{it(i)()}catch(p){if(pt(u),p!==p+0)throw p;ut(1,0)}}function nh(i,u,p,y,S){var x=gt();try{it(i)(u,p,y,S)}catch(C){if(pt(x),C!==C+0)throw C;ut(1,0)}}function ih(i,u){var p=gt();try{it(i)(u)}catch(y){if(pt(p),y!==y+0)throw y;ut(1,0)}}function sh(i,u,p){var y=gt();try{return it(i)(u,p)}catch(S){if(pt(y),S!==S+0)throw S;ut(1,0)}}function ah(i,u,p,y,S,x,C){var A=gt();try{it(i)(u,p,y,S,x,C)}catch(j){if(pt(A),j!==j+0)throw j;ut(1,0)}}function lh(i,u,p,y,S){var x=gt();try{return it(i)(u,p,y,S)}catch(C){if(pt(x),C!==C+0)throw C;ut(1,0)}}function uh(i,u,p,y,S,x){var C=gt();try{return it(i)(u,p,y,S,x)}catch(A){if(pt(C),A!==A+0)throw A;ut(1,0)}}function gh(i,u,p,y,S,x,C){var A=gt();try{return it(i)(u,p,y,S,x,C)}catch(j){if(pt(A),j!==j+0)throw j;ut(1,0)}}function ph(i,u,p,y,S,x){var C=gt();try{it(i)(u,p,y,S,x)}catch(A){if(pt(C),A!==A+0)throw A;ut(1,0)}}function ch(i,u,p,y,S,x,C,A,j,U){var Z=gt();try{return it(i)(u,p,y,S,x,C,A,j,U)}catch(J){if(pt(Z),J!==J+0)throw J;ut(1,0)}}var Vn;function Jl(i){this.name="ExitStatus",this.message="Program terminated with exit("+i+")",this.status=i}To=function i(){Vn||bs(),Vn||(To=i)};function bs(){function i(){if(!Vn&&(Vn=!0,o.calledRun=!0,!Qe)){if(ns(Eo),n(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var u=o.postRun.shift();Sl.unshift(u)}ns(Sl)}}if(!(0{var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(t,r,o){t instanceof String&&(t=String(t));for(var n=t.length,s=0;s=s}},"es6","es3");$jscomp.polyfill("Array.prototype.find",function(t){return t||function(r,o){return $jscomp.findInternal(this,r,o).v}},"es6","es3");$jscomp.polyfill("String.prototype.startsWith",function(t){return t||function(r,o){var n=$jscomp.checkStringArgs(this,r,"startsWith");r+="";var s=n.length,l=r.length;o=Math.max(0,Math.min(o|0,n.length));for(var m=0;m=l}},"es6","es3");$jscomp.polyfill("String.prototype.repeat",function(t){return t||function(r){var o=$jscomp.checkStringArgs(this,null,"repeat");if(0>r||1342177279>>=1)&&(o+=o);return n}},"es6","es3");var COMPILED=!0,goog=goog||{};goog.global=exports||self;goog.exportPath_=function(t,r,o){t=t.split("."),o=o||goog.global,t[0]in o||typeof o.execScript>"u"||o.execScript("var "+t[0]);for(var n;t.length&&(n=t.shift());)t.length||r===void 0?o=o[n]&&o[n]!==Object.prototype[n]?o[n]:o[n]={}:o[n]=r};goog.define=function(t,r){if(!COMPILED){var o=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;o&&o.nodeType===void 0&&Object.prototype.hasOwnProperty.call(o,t)?r=o[t]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,t)&&(r=n[t])}return r};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,r){if(!COMPILED){delete goog.implicitNamespaces_[t];for(var o=t;(o=o.substring(0,o.lastIndexOf(".")))&&!goog.getObjectByName(o);)goog.implicitNamespaces_[o]=!0}goog.exportPath_(t,r)};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 r=goog.global.$jscomp;if(!r||typeof r.getCurrentModulePath!="function")throw Error('Module with namespace "'+t+'" has been loaded incorrectly.');r=r.require(r.getCurrentModulePath()),goog.loadedModules_[t]={exports:r,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,r){t=t.split("."),r=r||goog.global;for(var o=0;o"u")return"object";return r};goog.isArray=function(t){return goog.typeOf(t)=="array"};goog.isArrayLike=function(t){var r=goog.typeOf(t);return r=="array"||r=="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 r=typeof t;return r=="object"&&t!=null||r=="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 r=goog.typeOf(t);if(r=="object"||r=="array"){if(typeof t.clone=="function")return t.clone();r=r=="array"?[]:{};for(var o in t)r[o]=goog.cloneObject(t[o]);return r}return t};goog.bindNative_=function(t,r,o){return t.call.apply(t.bind,arguments)};goog.bindJs_=function(t,r,o){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,r){if(goog.TRANSPILE=="always")return!0;if(goog.TRANSPILE=="never")return!1;if(!this.requiresTranspilation_){var o=this.createRequiresTranspilation_();this.requiresTranspilation_=o.map,this.transpilationTarget_=this.transpilationTarget_||o.target}if(t in this.requiresTranspilation_)return this.requiresTranspilation_[t]?!0:!(!goog.inHtmlDocument_()||r!="es6"||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+t)},goog.Transpiler.prototype.transpile=function(t,r){return goog.transpile_(t,r,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,r){function o(){n&&(goog.global.setTimeout(n,0),n=null)}var n=r;if(t.length){r=[];for(var s=0;s<\/script>",r.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(n):n)}else{var s=r.createElement("script");s.defer=goog.Dependency.defer_,s.async=!1,s.type="text/javascript",(n=goog.getScriptNonce())&&s.setAttribute("nonce",n),goog.DebugLoader_.IS_OLD_IE_?(t.pause(),s.onreadystatechange=function(){(s.readyState=="loaded"||s.readyState=="complete")&&(t.loaded(),t.resume())}):s.onload=function(){s.onload=null,t.loaded()},s.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,r.head.appendChild(s)}}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,r,o,n,s){goog.Dependency.call(this,t,r,o,n,s)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(t){function r(M,U){M=U?'