django-cosmograph 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,993 @@
1
+ function Im(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Zx(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var e=i.default;if(typeof e=="function"){var t=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var l=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,l.get?l:{enumerable:!0,get:function(){return i[n]}})}),t}var zb={exports:{}},Zh={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var $1;function U2(){if($1)return Zh;$1=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(n,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var d in l)d!=="key"&&(s[d]=l[d])}else s=l;return l=s.ref,{$$typeof:i,type:n,key:c,ref:l!==void 0?l:null,props:s}}return Zh.Fragment=e,Zh.jsx=t,Zh.jsxs=t,Zh}var B1;function G2(){return B1||(B1=1,zb.exports=U2()),zb.exports}var Bf=G2(),Ib={exports:{}},Er={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var H1;function V2(){if(H1)return Er;H1=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.iterator;function g(F){return F===null||typeof F!="object"?null:(F=b&&F[b]||F["@@iterator"],typeof F=="function"?F:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,X={};function y(F,H,R){this.props=F,this.context=H,this.refs=X,this.updater=R||_}y.prototype.isReactComponent={},y.prototype.setState=function(F,H){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,H,"setState")},y.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function E(){}E.prototype=y.prototype;function T(F,H,R){this.props=F,this.context=H,this.refs=X,this.updater=R||_}var w=T.prototype=new E;w.constructor=T,z(w,y.prototype),w.isPureReactComponent=!0;var I=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},U=Object.prototype.hasOwnProperty;function Y(F,H,R,$,q,se){return R=se.ref,{$$typeof:i,type:F,key:H,ref:R!==void 0?R:null,props:se}}function J(F,H){return Y(F.type,H,void 0,void 0,void 0,F.props)}function S(F){return typeof F=="object"&&F!==null&&F.$$typeof===i}function Q(F){var H={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(R){return H[R]})}var ae=/\/+/g;function x(F,H){return typeof F=="object"&&F!==null&&F.key!=null?Q(""+F.key):H.toString(36)}function A(){}function O(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(A,A):(F.status="pending",F.then(function(H){F.status==="pending"&&(F.status="fulfilled",F.value=H)},function(H){F.status==="pending"&&(F.status="rejected",F.reason=H)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function k(F,H,R,$,q){var se=typeof F;(se==="undefined"||se==="boolean")&&(F=null);var te=!1;if(F===null)te=!0;else switch(se){case"bigint":case"string":case"number":te=!0;break;case"object":switch(F.$$typeof){case i:case e:te=!0;break;case m:return te=F._init,k(te(F._payload),H,R,$,q)}}if(te)return q=q(F),te=$===""?"."+x(F,0):$,I(q)?(R="",te!=null&&(R=te.replace(ae,"$&/")+"/"),k(q,H,R,"",function(Se){return Se})):q!=null&&(S(q)&&(q=J(q,R+(q.key==null||F&&F.key===q.key?"":(""+q.key).replace(ae,"$&/")+"/")+te)),H.push(q)),1;te=0;var qe=$===""?".":$+":";if(I(F))for(var we=0;we<F.length;we++)$=F[we],se=qe+x($,we),te+=k($,H,R,se,q);else if(we=g(F),typeof we=="function")for(F=we.call(F),we=0;!($=F.next()).done;)$=$.value,se=qe+x($,we++),te+=k($,H,R,se,q);else if(se==="object"){if(typeof F.then=="function")return k(O(F),H,R,$,q);throw H=String(F),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return te}function C(F,H,R){if(F==null)return F;var $=[],q=0;return k(F,$,"","",function(se){return H.call(R,se,q++)}),$}function ee(F){if(F._status===-1){var H=F._result;H=H(),H.then(function(R){(F._status===0||F._status===-1)&&(F._status=1,F._result=R)},function(R){(F._status===0||F._status===-1)&&(F._status=2,F._result=R)}),F._status===-1&&(F._status=0,F._result=H)}if(F._status===1)return F._result.default;throw F._result}var Re=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)};function ge(){}return Er.Children={map:C,forEach:function(F,H,R){C(F,function(){H.apply(this,arguments)},R)},count:function(F){var H=0;return C(F,function(){H++}),H},toArray:function(F){return C(F,function(H){return H})||[]},only:function(F){if(!S(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Er.Component=y,Er.Fragment=t,Er.Profiler=l,Er.PureComponent=T,Er.StrictMode=n,Er.Suspense=u,Er.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,Er.__COMPILER_RUNTIME={__proto__:null,c:function(F){return K.H.useMemoCache(F)}},Er.cache=function(F){return function(){return F.apply(null,arguments)}},Er.cloneElement=function(F,H,R){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var $=z({},F.props),q=F.key,se=void 0;if(H!=null)for(te in H.ref!==void 0&&(se=void 0),H.key!==void 0&&(q=""+H.key),H)!U.call(H,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&H.ref===void 0||($[te]=H[te]);var te=arguments.length-2;if(te===1)$.children=R;else if(1<te){for(var qe=Array(te),we=0;we<te;we++)qe[we]=arguments[we+2];$.children=qe}return Y(F.type,q,void 0,void 0,se,$)},Er.createContext=function(F){return F={$$typeof:c,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:s,_context:F},F},Er.createElement=function(F,H,R){var $,q={},se=null;if(H!=null)for($ in H.key!==void 0&&(se=""+H.key),H)U.call(H,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(q[$]=H[$]);var te=arguments.length-2;if(te===1)q.children=R;else if(1<te){for(var qe=Array(te),we=0;we<te;we++)qe[we]=arguments[we+2];q.children=qe}if(F&&F.defaultProps)for($ in te=F.defaultProps,te)q[$]===void 0&&(q[$]=te[$]);return Y(F,se,void 0,void 0,null,q)},Er.createRef=function(){return{current:null}},Er.forwardRef=function(F){return{$$typeof:d,render:F}},Er.isValidElement=S,Er.lazy=function(F){return{$$typeof:m,_payload:{_status:-1,_result:F},_init:ee}},Er.memo=function(F,H){return{$$typeof:h,type:F,compare:H===void 0?null:H}},Er.startTransition=function(F){var H=K.T,R={};K.T=R;try{var $=F(),q=K.S;q!==null&&q(R,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ge,Re)}catch(se){Re(se)}finally{K.T=H}},Er.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},Er.use=function(F){return K.H.use(F)},Er.useActionState=function(F,H,R){return K.H.useActionState(F,H,R)},Er.useCallback=function(F,H){return K.H.useCallback(F,H)},Er.useContext=function(F){return K.H.useContext(F)},Er.useDebugValue=function(){},Er.useDeferredValue=function(F,H){return K.H.useDeferredValue(F,H)},Er.useEffect=function(F,H,R){var $=K.H;if(typeof R=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(F,H)},Er.useId=function(){return K.H.useId()},Er.useImperativeHandle=function(F,H,R){return K.H.useImperativeHandle(F,H,R)},Er.useInsertionEffect=function(F,H){return K.H.useInsertionEffect(F,H)},Er.useLayoutEffect=function(F,H){return K.H.useLayoutEffect(F,H)},Er.useMemo=function(F,H){return K.H.useMemo(F,H)},Er.useOptimistic=function(F,H){return K.H.useOptimistic(F,H)},Er.useReducer=function(F,H,R){return K.H.useReducer(F,H,R)},Er.useRef=function(F){return K.H.useRef(F)},Er.useState=function(F){return K.H.useState(F)},Er.useSyncExternalStore=function(F,H,R){return K.H.useSyncExternalStore(F,H,R)},Er.useTransition=function(){return K.H.useTransition()},Er.version="19.1.0",Er}var P1;function Zg(){return P1||(P1=1,Ib.exports=V2()),Ib.exports}var Qr=Zg();const $d=Im(Qr);var Lb={exports:{}},Qh={},Rb={exports:{}},Fb={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var U1;function W2(){return U1||(U1=1,function(i){function e(C,ee){var Re=C.length;C.push(ee);e:for(;0<Re;){var ge=Re-1>>>1,F=C[ge];if(0<l(F,ee))C[ge]=ee,C[Re]=F,Re=ge;else break e}}function t(C){return C.length===0?null:C[0]}function n(C){if(C.length===0)return null;var ee=C[0],Re=C.pop();if(Re!==ee){C[0]=Re;e:for(var ge=0,F=C.length,H=F>>>1;ge<H;){var R=2*(ge+1)-1,$=C[R],q=R+1,se=C[q];if(0>l($,Re))q<F&&0>l(se,$)?(C[ge]=se,C[q]=Re,ge=q):(C[ge]=$,C[R]=Re,ge=R);else if(q<F&&0>l(se,Re))C[ge]=se,C[q]=Re,ge=q;else break e}}return ee}function l(C,ee){var Re=C.sortIndex-ee.sortIndex;return Re!==0?Re:C.id-ee.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;i.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();i.unstable_now=function(){return c.now()-d}}var u=[],h=[],m=1,b=null,g=3,_=!1,z=!1,X=!1,y=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function I(C){for(var ee=t(h);ee!==null;){if(ee.callback===null)n(h);else if(ee.startTime<=C)n(h),ee.sortIndex=ee.expirationTime,e(u,ee);else break;ee=t(h)}}function K(C){if(X=!1,I(C),!z)if(t(u)!==null)z=!0,U||(U=!0,x());else{var ee=t(h);ee!==null&&k(K,ee.startTime-C)}}var U=!1,Y=-1,J=5,S=-1;function Q(){return y?!0:!(i.unstable_now()-S<J)}function ae(){if(y=!1,U){var C=i.unstable_now();S=C;var ee=!0;try{e:{z=!1,X&&(X=!1,T(Y),Y=-1),_=!0;var Re=g;try{t:{for(I(C),b=t(u);b!==null&&!(b.expirationTime>C&&Q());){var ge=b.callback;if(typeof ge=="function"){b.callback=null,g=b.priorityLevel;var F=ge(b.expirationTime<=C);if(C=i.unstable_now(),typeof F=="function"){b.callback=F,I(C),ee=!0;break t}b===t(u)&&n(u),I(C)}else n(u);b=t(u)}if(b!==null)ee=!0;else{var H=t(h);H!==null&&k(K,H.startTime-C),ee=!1}}break e}finally{b=null,g=Re,_=!1}ee=void 0}}finally{ee?x():U=!1}}}var x;if(typeof w=="function")x=function(){w(ae)};else if(typeof MessageChannel<"u"){var A=new MessageChannel,O=A.port2;A.port1.onmessage=ae,x=function(){O.postMessage(null)}}else x=function(){E(ae,0)};function k(C,ee){Y=E(function(){C(i.unstable_now())},ee)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(C){C.callback=null},i.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<C?Math.floor(1e3/C):5},i.unstable_getCurrentPriorityLevel=function(){return g},i.unstable_next=function(C){switch(g){case 1:case 2:case 3:var ee=3;break;default:ee=g}var Re=g;g=ee;try{return C()}finally{g=Re}},i.unstable_requestPaint=function(){y=!0},i.unstable_runWithPriority=function(C,ee){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var Re=g;g=C;try{return ee()}finally{g=Re}},i.unstable_scheduleCallback=function(C,ee,Re){var ge=i.unstable_now();switch(typeof Re=="object"&&Re!==null?(Re=Re.delay,Re=typeof Re=="number"&&0<Re?ge+Re:ge):Re=ge,C){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=Re+F,C={id:m++,callback:ee,priorityLevel:C,startTime:Re,expirationTime:F,sortIndex:-1},Re>ge?(C.sortIndex=Re,e(h,C),t(u)===null&&C===t(h)&&(X?(T(Y),Y=-1):X=!0,k(K,Re-ge))):(C.sortIndex=F,e(u,C),z||_||(z=!0,U||(U=!0,x()))),C},i.unstable_shouldYield=Q,i.unstable_wrapCallback=function(C){var ee=g;return function(){var Re=g;g=ee;try{return C.apply(this,arguments)}finally{g=Re}}}}(Fb)),Fb}var G1;function j2(){return G1||(G1=1,Rb.exports=W2()),Rb.exports}var Mb={exports:{}},Lo={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var V1;function q2(){if(V1)return Lo;V1=1;var i=Zg();function e(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(u,h,m){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:u,containerInfo:h,implementation:m}}var c=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(u,h){if(u==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Lo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Lo.createPortal=function(u,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(u,h,null,m)},Lo.flushSync=function(u){var h=c.T,m=n.p;try{if(c.T=null,n.p=2,u)return u()}finally{c.T=h,n.p=m,n.d.f()}},Lo.preconnect=function(u,h){typeof u=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,n.d.C(u,h))},Lo.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},Lo.preinit=function(u,h){if(typeof u=="string"&&h&&typeof h.as=="string"){var m=h.as,b=d(m,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?n.d.S(u,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:g,fetchPriority:_}):m==="script"&&n.d.X(u,{crossOrigin:b,integrity:g,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Lo.preinitModule=function(u,h){if(typeof u=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);n.d.M(u,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&n.d.M(u)},Lo.preload=function(u,h){if(typeof u=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,b=d(m,h.crossOrigin);n.d.L(u,m,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Lo.preloadModule=function(u,h){if(typeof u=="string")if(h){var m=d(h.as,h.crossOrigin);n.d.m(u,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else n.d.m(u)},Lo.requestFormReset=function(u){n.d.r(u)},Lo.unstable_batchedUpdates=function(u,h){return u(h)},Lo.useFormState=function(u,h,m){return c.H.useFormState(u,h,m)},Lo.useFormStatus=function(){return c.H.useHostTransitionStatus()},Lo.version="19.1.0",Lo}var W1;function Y2(){if(W1)return Mb.exports;W1=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),Mb.exports=q2(),Mb.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var j1;function X2(){if(j1)return Qh;j1=1;var i=j2(),e=Zg(),t=Y2();function n(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function d(r){if(s(r)!==r)throw Error(n(188))}function u(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(n(188));return a!==r?null:r}for(var o=r,f=a;;){var p=o.return;if(p===null)break;var v=p.alternate;if(v===null){if(f=p.return,f!==null){o=f;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===o)return d(p),r;if(v===f)return d(p),a;v=v.sibling}throw Error(n(188))}if(o.return!==f.return)o=p,f=v;else{for(var V=!1,_e=p.child;_e;){if(_e===o){V=!0,o=p,f=v;break}if(_e===f){V=!0,f=p,o=v;break}_e=_e.sibling}if(!V){for(_e=v.child;_e;){if(_e===o){V=!0,o=v,f=p;break}if(_e===f){V=!0,f=v,o=p;break}_e=_e.sibling}if(!V)throw Error(n(189))}}if(o.alternate!==f)throw Error(n(190))}if(o.tag!==3)throw Error(n(188));return o.stateNode.current===o?r:a}function h(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=h(r),a!==null)return a;r=r.sibling}return null}var m=Object.assign,b=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),w=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),Q=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function x(r){return r===null||typeof r!="object"?null:(r=ae&&r[ae]||r["@@iterator"],typeof r=="function"?r:null)}var A=Symbol.for("react.client.reference");function O(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===A?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case z:return"Fragment";case y:return"Profiler";case X:return"StrictMode";case K:return"Suspense";case U:return"SuspenseList";case S:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case _:return"Portal";case w:return(r.displayName||"Context")+".Provider";case T:return(r._context.displayName||"Context")+".Consumer";case I:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Y:return a=r.displayName||null,a!==null?a:O(r.type)||"Memo";case J:a=r._payload,r=r._init;try{return O(r(a))}catch{}}return null}var k=Array.isArray,C=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re={pending:!1,data:null,method:null,action:null},ge=[],F=-1;function H(r){return{current:r}}function R(r){0>F||(r.current=ge[F],ge[F]=null,F--)}function $(r,a){F++,ge[F]=r.current,r.current=a}var q=H(null),se=H(null),te=H(null),qe=H(null);function we(r,a){switch($(te,a),$(se,r),$(q,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?u1(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=u1(a),r=h1(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}R(q),$(q,r)}function Se(){R(q),R(se),R(te)}function G(r){r.memoizedState!==null&&$(qe,r);var a=q.current,o=h1(a,r.type);a!==o&&($(se,r),$(q,o))}function de(r){se.current===r&&(R(q),R(se)),qe.current===r&&(R(qe),Wh._currentValue=Re)}var Ae=Object.prototype.hasOwnProperty,W=i.unstable_scheduleCallback,re=i.unstable_cancelCallback,Rt=i.unstable_shouldYield,Ve=i.unstable_requestPaint,Fe=i.unstable_now,he=i.unstable_getCurrentPriorityLevel,L=i.unstable_ImmediatePriority,Z=i.unstable_UserBlockingPriority,ie=i.unstable_NormalPriority,be=i.unstable_LowPriority,Ge=i.unstable_IdlePriority,N=i.log,$e=i.unstable_setDisableYieldValue,He=null,ne=null;function me(r){if(typeof N=="function"&&$e(r),ne&&typeof ne.setStrictMode=="function")try{ne.setStrictMode(He,r)}catch{}}var B=Math.clz32?Math.clz32:M,j=Math.log,ue=Math.LN2;function M(r){return r>>>=0,r===0?32:31-(j(r)/ue|0)|0}var le=256,De=4194304;function Ee(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function ft(r,a,o){var f=r.pendingLanes;if(f===0)return 0;var p=0,v=r.suspendedLanes,V=r.pingedLanes;r=r.warmLanes;var _e=f&134217727;return _e!==0?(f=_e&~v,f!==0?p=Ee(f):(V&=_e,V!==0?p=Ee(V):o||(o=_e&~r,o!==0&&(p=Ee(o))))):(_e=f&~v,_e!==0?p=Ee(_e):V!==0?p=Ee(V):o||(o=f&~r,o!==0&&(p=Ee(o)))),p===0?0:a!==0&&a!==p&&(a&v)===0&&(v=p&-p,o=a&-a,v>=o||v===32&&(o&4194048)!==0)?a:p}function At(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function lt(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ke(){var r=le;return le<<=1,(le&4194048)===0&&(le=256),r}function tt(){var r=De;return De<<=1,(De&62914560)===0&&(De=4194304),r}function fe(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function je(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function ot(r,a,o,f,p,v){var V=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var _e=r.entanglements,Ct=r.expirationTimes,ci=r.hiddenUpdates;for(o=V&~o;0<o;){var ki=31-B(o),Bi=1<<ki;_e[ki]=0,Ct[ki]=-1;var pi=ci[ki];if(pi!==null)for(ci[ki]=null,ki=0;ki<pi.length;ki++){var bi=pi[ki];bi!==null&&(bi.lane&=-536870913)}o&=~Bi}f!==0&&Ne(r,f,0),v!==0&&p===0&&r.tag!==0&&(r.suspendedLanes|=v&~(V&~a))}function Ne(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var f=31-B(a);r.entangledLanes|=a,r.entanglements[f]=r.entanglements[f]|1073741824|o&4194090}function et(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var f=31-B(o),p=1<<f;p&a|r[f]&a&&(r[f]|=a),o&=~p}}function ht(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ue(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Me(){var r=ee.p;return r!==0?r:(r=window.event,r===void 0?32:L1(r.type))}function Be(r,a){var o=ee.p;try{return ee.p=r,a()}finally{ee.p=o}}var ke=Math.random().toString(36).slice(2),Te="__reactFiber$"+ke,ze="__reactProps$"+ke,Xe="__reactContainer$"+ke,ut="__reactEvents$"+ke,at="__reactListeners$"+ke,Je="__reactHandles$"+ke,it="__reactResources$"+ke,ct="__reactMarker$"+ke;function ve(r){delete r[Te],delete r[ze],delete r[ut],delete r[at],delete r[Je]}function D(r){var a=r[Te];if(a)return a;for(var o=r.parentNode;o;){if(a=o[Xe]||o[Te]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=g1(r);r!==null;){if(o=r[Te])return o;r=g1(r)}return a}r=o,o=r.parentNode}return null}function oe(r){if(r=r[Te]||r[Xe]){var a=r.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return r}return null}function xe(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(n(33))}function ce(r){var a=r[it];return a||(a=r[it]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Oe(r){r[ct]=!0}var Ye=new Set,pe={};function Ce(r,a){Qe(r,a),Qe(r+"Capture",a)}function Qe(r,a){for(pe[r]=a,r=0;r<a.length;r++)Ye.add(a[r])}var Pe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ye={},mt={};function wt(r){return Ae.call(mt,r)?!0:Ae.call(ye,r)?!1:Pe.test(r)?mt[r]=!0:(ye[r]=!0,!1)}function Le(r,a,o){if(wt(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function _t(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function bt(r,a,o,f){if(f===null)r.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(a,o,""+f)}}var nt,yt;function Lt(r){if(nt===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);nt=a&&a[1]||"",yt=-1<o.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+nt+r+yt}var Tt=!1;function Nt(r,a){if(!r||Tt)return"";Tt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var Bi=function(){throw Error()};if(Object.defineProperty(Bi.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Bi,[])}catch(bi){var pi=bi}Reflect.construct(r,[],Bi)}else{try{Bi.call()}catch(bi){pi=bi}r.call(Bi.prototype)}}else{try{throw Error()}catch(bi){pi=bi}(Bi=r())&&typeof Bi.catch=="function"&&Bi.catch(function(){})}}catch(bi){if(bi&&pi&&typeof bi.stack=="string")return[bi.stack,pi.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=f.DetermineComponentFrameRoot(),V=v[0],_e=v[1];if(V&&_e){var Ct=V.split(`
44
+ `),ci=_e.split(`
45
+ `);for(p=f=0;f<Ct.length&&!Ct[f].includes("DetermineComponentFrameRoot");)f++;for(;p<ci.length&&!ci[p].includes("DetermineComponentFrameRoot");)p++;if(f===Ct.length||p===ci.length)for(f=Ct.length-1,p=ci.length-1;1<=f&&0<=p&&Ct[f]!==ci[p];)p--;for(;1<=f&&0<=p;f--,p--)if(Ct[f]!==ci[p]){if(f!==1||p!==1)do if(f--,p--,0>p||Ct[f]!==ci[p]){var ki=`
46
+ `+Ct[f].replace(" at new "," at ");return r.displayName&&ki.includes("<anonymous>")&&(ki=ki.replace("<anonymous>",r.displayName)),ki}while(1<=f&&0<=p);break}}}finally{Tt=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Lt(o):""}function zt(r){switch(r.tag){case 26:case 27:case 5:return Lt(r.type);case 16:return Lt("Lazy");case 13:return Lt("Suspense");case 19:return Lt("SuspenseList");case 0:case 15:return Nt(r.type,!1);case 11:return Nt(r.type.render,!1);case 1:return Nt(r.type,!0);case 31:return Lt("Activity");default:return""}}function Ut(r){try{var a="";do a+=zt(r),r=r.return;while(r);return a}catch(o){return`
47
+ Error generating stack: `+o.message+`
48
+ `+o.stack}}function Mt(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Kt(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ei(r){var a=Kt(r)?"checked":"value",o=Object.getOwnPropertyDescriptor(r.constructor.prototype,a),f=""+r[a];if(!r.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var p=o.get,v=o.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return p.call(this)},set:function(V){f=""+V,v.call(this,V)}}),Object.defineProperty(r,a,{enumerable:o.enumerable}),{getValue:function(){return f},setValue:function(V){f=""+V},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Jt(r){r._valueTracker||(r._valueTracker=ei(r))}function Wt(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),f="";return r&&(f=Kt(r)?r.checked?"true":"false":r.value),r=f,r!==o?(a.setValue(r),!0):!1}function $t(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Gt=/[\n"\\]/g;function Ot(r){return r.replace(Gt,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Bt(r,a,o,f,p,v,V,_e){r.name="",V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?r.type=V:r.removeAttribute("type"),a!=null?V==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Mt(a)):r.value!==""+Mt(a)&&(r.value=""+Mt(a)):V!=="submit"&&V!=="reset"||r.removeAttribute("value"),a!=null?St(r,V,Mt(a)):o!=null?St(r,V,Mt(o)):f!=null&&r.removeAttribute("value"),p==null&&v!=null&&(r.defaultChecked=!!v),p!=null&&(r.checked=p&&typeof p!="function"&&typeof p!="symbol"),_e!=null&&typeof _e!="function"&&typeof _e!="symbol"&&typeof _e!="boolean"?r.name=""+Mt(_e):r.removeAttribute("name")}function Zt(r,a,o,f,p,v,V,_e){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(r.type=v),a!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||a!=null))return;o=o!=null?""+Mt(o):"",a=a!=null?""+Mt(a):o,_e||a===r.value||(r.value=a),r.defaultValue=a}f=f??p,f=typeof f!="function"&&typeof f!="symbol"&&!!f,r.checked=_e?r.checked:!!f,r.defaultChecked=!!f,V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(r.name=V)}function St(r,a,o){a==="number"&&$t(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Vt(r,a,o,f){if(r=r.options,a){a={};for(var p=0;p<o.length;p++)a["$"+o[p]]=!0;for(o=0;o<r.length;o++)p=a.hasOwnProperty("$"+r[o].value),r[o].selected!==p&&(r[o].selected=p),p&&f&&(r[o].defaultSelected=!0)}else{for(o=""+Mt(o),a=null,p=0;p<r.length;p++){if(r[p].value===o){r[p].selected=!0,f&&(r[p].defaultSelected=!0);return}a!==null||r[p].disabled||(a=r[p])}a!==null&&(a.selected=!0)}}function Dt(r,a,o){if(a!=null&&(a=""+Mt(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+Mt(o):""}function ii(r,a,o,f){if(a==null){if(f!=null){if(o!=null)throw Error(n(92));if(k(f)){if(1<f.length)throw Error(n(93));f=f[0]}o=f}o==null&&(o=""),a=o}o=Mt(a),r.defaultValue=o,f=r.textContent,f===o&&f!==""&&f!==null&&(r.value=f)}function Pt(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var Qt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xt(r,a,o){var f=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?f?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":f?r.setProperty(a,o):typeof o!="number"||o===0||Qt.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function pt(r,a,o){if(a!=null&&typeof a!="object")throw Error(n(62));if(r=r.style,o!=null){for(var f in o)!o.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="");for(var p in a)f=a[p],a.hasOwnProperty(p)&&o[p]!==f&&xt(r,p,f)}else for(var v in a)a.hasOwnProperty(v)&&xt(r,v,a[v])}function vt(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var It=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ft=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qt(r){return Ft.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var zi=null;function Mi(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var di=null,Ri=null;function yi(r){var a=oe(r);if(a&&(r=a.stateNode)){var o=r[ze]||null;e:switch(r=a.stateNode,a.type){case"input":if(Bt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Ot(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var f=o[a];if(f!==r&&f.form===r.form){var p=f[ze]||null;if(!p)throw Error(n(90));Bt(f,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<o.length;a++)f=o[a],f.form===r.form&&Wt(f)}break e;case"textarea":Dt(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Vt(r,!!o.multiple,a,!1)}}}var Ui=!1;function Li(r,a,o){if(Ui)return r(a,o);Ui=!0;try{var f=r(a);return f}finally{if(Ui=!1,(di!==null||Ri!==null)&&(Km(),di&&(a=di,r=Ri,Ri=di=null,yi(a),r)))for(a=0;a<r.length;a++)yi(r[a])}}function Ei(r,a){var o=r.stateNode;if(o===null)return null;var f=o[ze]||null;if(f===null)return null;o=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(n(231,a,typeof o));return o}var wi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ci=!1;if(wi)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){Ci=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Ci=!1}var $i=null,Gi=null,tn=null;function Wi(){if(tn)return tn;var r,a=Gi,o=a.length,f,p="value"in $i?$i.value:$i.textContent,v=p.length;for(r=0;r<o&&a[r]===p[r];r++);var V=o-r;for(f=1;f<=V&&a[o-f]===p[v-f];f++);return tn=p.slice(r,1<f?1-f:void 0)}function qi(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Xi(){return!0}function un(){return!1}function Qi(r){function a(o,f,p,v,V){this._reactName=o,this._targetInst=p,this.type=f,this.nativeEvent=v,this.target=V,this.currentTarget=null;for(var _e in r)r.hasOwnProperty(_e)&&(o=r[_e],this[_e]=o?o(v):v[_e]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Xi:un,this.isPropagationStopped=un,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Xi)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Xi)},persist:function(){},isPersistent:Xi}),a}var sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=Qi(sn),wn=m({},sn,{view:0,detail:0}),fn=Qi(wn),zn,Ln,Dn,Wn=m({},wn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ca,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Dn&&(Dn&&r.type==="mousemove"?(zn=r.screenX-Dn.screenX,Ln=r.screenY-Dn.screenY):Ln=zn=0,Dn=r),zn)},movementY:function(r){return"movementY"in r?r.movementY:Ln}}),Nn=Qi(Wn),Gn=m({},Wn,{dataTransfer:0}),Zn=Qi(Gn),jn=m({},wn,{relatedTarget:0}),Sn=Qi(jn),Qn=m({},sn,{animationName:0,elapsedTime:0,pseudoElement:0}),Hn=Qi(Qn),Pn=m({},sn,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),vr=Qi(Pn),Jn=m({},sn,{data:0}),rr=Qi(Jn),hr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ur={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Na(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=Ur[r])?!!a[r]:!1}function ca(){return Na}var Xa=m({},wn,{key:function(r){if(r.key){var a=hr[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=qi(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Rn[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ca,charCode:function(r){return r.type==="keypress"?qi(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?qi(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ya=Qi(Xa),va=m({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),al=Qi(va),Ll=m({},wn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ca}),xa=Qi(Ll),hs=m({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ms=Qi(hs),pl=m({},Wn,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),ps=Qi(pl),bs=m({},sn,{newState:0,oldState:0}),gs=Qi(bs),Pl=[9,13,27,32],gr=wi&&"CompositionEvent"in window,ll=null;wi&&"documentMode"in document&&(ll=document.documentMode);var $a=wi&&"TextEvent"in window&&!ll,bl=wi&&(!gr||ll&&8<ll&&11>=ll),wa=" ",Zl=!1;function Rl(r,a){switch(r){case"keyup":return Pl.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sl(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Br=!1;function Sa(r,a){switch(r){case"compositionend":return sl(a);case"keypress":return a.which!==32?null:(Zl=!0,wa);case"textInput":return r=a.data,r===wa&&Zl?null:r;default:return null}}function so(r,a){if(Br)return r==="compositionend"||!gr&&Rl(r,a)?(r=Wi(),tn=Gi=$i=null,Br=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return bl&&a.locale!=="ko"?null:a.data;default:return null}}var Aa={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Aa[r.type]:a==="textarea"}function _s(r,a,o,f){di?Ri?Ri.push(f):Ri=[f]:di=f,a=rp(a,"onChange"),0<a.length&&(o=new xn("onChange","change",null,o,f),r.push({event:o,listeners:a}))}var Ql=null,Za=null;function Fs(r){s1(r,0)}function mr(r){var a=xe(r);if(Wt(a))return r}function Ms(r,a){if(r==="change")return a}var oo=!1;if(wi){var Ds;if(wi){var Qa="oninput"in document;if(!Qa){var ys=document.createElement("div");ys.setAttribute("oninput","return;"),Qa=typeof ys.oninput=="function"}Ds=Qa}else Ds=!1;oo=Ds&&(!document.documentMode||9<document.documentMode)}function Kl(){Ql&&(Ql.detachEvent("onpropertychange",Ul),Za=Ql=null)}function Ul(r){if(r.propertyName==="value"&&mr(Za)){var a=[];_s(a,Za,r,Mi(r)),Li(Fs,a)}}function vs(r,a,o){r==="focusin"?(Kl(),Ql=a,Za=o,Ql.attachEvent("onpropertychange",Ul)):r==="focusout"&&Kl()}function Ba(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return mr(Za)}function Ao(r,a){if(r==="click")return mr(a)}function gl(r,a){if(r==="input"||r==="change")return mr(a)}function _r(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var zr=typeof Object.is=="function"?Object.is:_r;function _l(r,a){if(zr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),f=Object.keys(a);if(o.length!==f.length)return!1;for(f=0;f<o.length;f++){var p=o[f];if(!Ae.call(a,p)||!zr(r[p],a[p]))return!1}return!0}function xs(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Gl(r,a){var o=xs(r);r=0;for(var f;o;){if(o.nodeType===3){if(f=r+o.textContent.length,r<=a&&f>=a)return{node:o,offset:a-r};r=f}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=xs(o)}}function er(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?er(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Jl(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=$t(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=$t(r.document)}return a}function ws(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var es=wi&&"documentMode"in document&&11>=document.documentMode,ia=null,ts=null,ol=null,Gr=!1;function is(r,a,o){var f=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Gr||ia==null||ia!==$t(f)||(f=ia,"selectionStart"in f&&ws(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),ol&&_l(ol,f)||(ol=f,f=rp(ts,"onSelect"),0<f.length&&(a=new xn("onSelect","select",null,a,o),r.push({event:a,listeners:f}),a.target=ia)))}function qr(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var da={animationend:qr("Animation","AnimationEnd"),animationiteration:qr("Animation","AnimationIteration"),animationstart:qr("Animation","AnimationStart"),transitionrun:qr("Transition","TransitionRun"),transitionstart:qr("Transition","TransitionStart"),transitioncancel:qr("Transition","TransitionCancel"),transitionend:qr("Transition","TransitionEnd")},yl={},dr={};wi&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function vl(r){if(yl[r])return yl[r];if(!da[r])return r;var a=da[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in dr)return yl[r]=a[o];return r}var co=vl("animationend"),Xs=vl("animationiteration"),Ss=vl("animationstart"),xr=vl("transitionrun"),Zs=vl("transitionstart"),Eo=vl("transitioncancel"),Qs=vl("transitionend"),cl=new Map,fo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");fo.push("scrollEnd");function Ha(r,a){cl.set(r,a),Ce(a,[r])}var Fl=new WeakMap;function na(r,a){if(typeof r=="object"&&r!==null){var o=Fl.get(r);return o!==void 0?o:(a={value:r,source:a,stack:Ut(a)},Fl.set(r,a),a)}return{value:r,source:a,stack:Ut(a)}}var Nr=[],ns=0,dl=0;function fr(){for(var r=ns,a=dl=ns=0;a<r;){var o=Nr[a];Nr[a++]=null;var f=Nr[a];Nr[a++]=null;var p=Nr[a];Nr[a++]=null;var v=Nr[a];if(Nr[a++]=null,f!==null&&p!==null){var V=f.pending;V===null?p.next=p:(p.next=V.next,V.next=p),f.pending=p}v!==0&&Bo(o,p,v)}}function As(r,a,o,f){Nr[ns++]=r,Nr[ns++]=a,Nr[ns++]=o,Nr[ns++]=f,dl|=f,r.lanes|=f,r=r.alternate,r!==null&&(r.lanes|=f)}function Ns(r,a,o,f){return As(r,a,o,f),$s(r)}function rs(r,a){return As(r,null,null,a),$s(r)}function Bo(r,a,o){r.lanes|=o;var f=r.alternate;f!==null&&(f.lanes|=o);for(var p=!1,v=r.return;v!==null;)v.childLanes|=o,f=v.alternate,f!==null&&(f.childLanes|=o),v.tag===22&&(r=v.stateNode,r===null||r._visibility&1||(p=!0)),r=v,v=v.return;return r.tag===3?(v=r.stateNode,p&&a!==null&&(p=31-B(o),r=v.hiddenUpdates,f=r[p],f===null?r[p]=[a]:f.push(a),a.lane=o|536870912),v):null}function $s(r){if(50<Nh)throw Nh=0,eb=null,Error(n(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var as={};function To(r,a,o,f){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(r,a,o,f){return new To(r,a,o,f)}function Ka(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ra(r,a){var o=r.alternate;return o===null?(o=Cr(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Bs(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function xl(r,a,o,f,p,v){var V=0;if(f=r,typeof r=="function")Ka(r)&&(V=1);else if(typeof r=="string")V=C2(r,o,q.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case S:return r=Cr(31,o,a,p),r.elementType=S,r.lanes=v,r;case z:return wl(o.children,p,v,a);case X:V=8,p|=24;break;case y:return r=Cr(12,o,a,p|2),r.elementType=y,r.lanes=v,r;case K:return r=Cr(13,o,a,p),r.elementType=K,r.lanes=v,r;case U:return r=Cr(19,o,a,p),r.elementType=U,r.lanes=v,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case E:case w:V=10;break e;case T:V=9;break e;case I:V=11;break e;case Y:V=14;break e;case J:V=16,f=null;break e}V=29,o=Error(n(130,r===null?"null":typeof r,"")),f=null}return a=Cr(V,o,a,p),a.elementType=r,a.type=f,a.lanes=v,a}function wl(r,a,o,f){return r=Cr(7,r,f,a),r.lanes=o,r}function Hs(r,a,o){return r=Cr(6,r,null,a),r.lanes=o,r}function Ps(r,a,o){return a=Cr(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Sl=[],pr=0,Es=null,Ea=0,fa=[],Ta=0,Ja=null,$r=1,Pa="";function fl(r,a){Sl[pr++]=Ea,Sl[pr++]=Es,Es=r,Ea=a}function ua(r,a,o){fa[Ta++]=$r,fa[Ta++]=Pa,fa[Ta++]=Ja,Ja=r;var f=$r;r=Pa;var p=32-B(f)-1;f&=~(1<<p),o+=1;var v=32-B(a)+p;if(30<v){var V=p-p%5;v=(f&(1<<V)-1).toString(32),f>>=V,p-=V,$r=1<<32-B(a)+p|o<<p|f,Pa=v+r}else $r=1<<v|o<<p|f,Pa=r}function Ks(r){r.return!==null&&(fl(r,1),ua(r,1,0))}function Ts(r){for(;r===Es;)Es=Sl[--pr],Sl[pr]=null,Ea=Sl[--pr],Sl[pr]=null;for(;r===Ja;)Ja=fa[--Ta],fa[Ta]=null,Pa=fa[--Ta],fa[Ta]=null,$r=fa[--Ta],fa[Ta]=null}var tr=null,br=null,Kn=!1,Ml=null,Vr=!1,wr=Error(n(519));function Ua(r){var a=Error(n(418,""));throw Vl(na(a,r)),wr}function uo(r){var a=r.stateNode,o=r.type,f=r.memoizedProps;switch(a[Te]=r,a[ze]=f,o){case"dialog":Rr("cancel",a),Rr("close",a);break;case"iframe":case"object":case"embed":Rr("load",a);break;case"video":case"audio":for(o=0;o<Bh.length;o++)Rr(Bh[o],a);break;case"source":Rr("error",a);break;case"img":case"image":case"link":Rr("error",a),Rr("load",a);break;case"details":Rr("toggle",a);break;case"input":Rr("invalid",a),Zt(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),Jt(a);break;case"select":Rr("invalid",a);break;case"textarea":Rr("invalid",a),ii(a,f.value,f.defaultValue,f.children),Jt(a)}o=f.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||f.suppressHydrationWarning===!0||f1(a.textContent,o)?(f.popover!=null&&(Rr("beforetoggle",a),Rr("toggle",a)),f.onScroll!=null&&Rr("scroll",a),f.onScrollEnd!=null&&Rr("scrollend",a),f.onClick!=null&&(a.onclick=ap),a=!0):a=!1,a||Ua(r)}function ho(r){for(tr=r.return;tr;)switch(tr.tag){case 5:case 13:Vr=!1;return;case 27:case 3:Vr=!0;return;default:tr=tr.return}}function Os(r){if(r!==tr)return!1;if(!Kn)return ho(r),Kn=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||bb(r.type,r.memoizedProps)),o=!o),o&&br&&Ua(r),ho(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,a=0;r;){if(r.nodeType===8)if(o=r.data,o==="/$"){if(a===0){br=Bc(r.nextSibling);break e}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;r=r.nextSibling}br=null}}else a===27?(a=br,af(r.type)?(r=vb,vb=null,br=r):br=a):br=tr?Bc(r.stateNode.nextSibling):null;return!0}function ks(){br=tr=null,Kn=!1}function mo(){var r=Ml;return r!==null&&(tc===null?tc=r:tc.push.apply(tc,r),Ml=null),r}function Vl(r){Ml===null?Ml=[r]:Ml.push(r)}var po=H(null),Wl=null,Al=null;function Oa(r,a,o){$(po,a._currentValue),a._currentValue=o}function el(r){r._currentValue=po.current,R(po)}function Cs(r,a,o){for(;r!==null;){var f=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),r===o)break;r=r.return}}function El(r,a,o,f){var p=r.child;for(p!==null&&(p.return=r);p!==null;){var v=p.dependencies;if(v!==null){var V=p.child;v=v.firstContext;e:for(;v!==null;){var _e=v;v=p;for(var Ct=0;Ct<a.length;Ct++)if(_e.context===a[Ct]){v.lanes|=o,_e=v.alternate,_e!==null&&(_e.lanes|=o),Cs(v.return,o,r),f||(V=null);break e}v=_e.next}}else if(p.tag===18){if(V=p.return,V===null)throw Error(n(341));V.lanes|=o,v=V.alternate,v!==null&&(v.lanes|=o),Cs(V,o,r),V=null}else V=p.child;if(V!==null)V.return=p;else for(V=p;V!==null;){if(V===r){V=null;break}if(p=V.sibling,p!==null){p.return=V.return,V=p;break}V=V.return}p=V}}function ha(r,a,o,f){r=null;for(var p=a,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var V=p.alternate;if(V===null)throw Error(n(387));if(V=V.memoizedProps,V!==null){var _e=p.type;zr(p.pendingProps.value,V.value)||(r!==null?r.push(_e):r=[_e])}}else if(p===qe.current){if(V=p.alternate,V===null)throw Error(n(387));V.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(r!==null?r.push(Wh):r=[Wh])}p=p.return}r!==null&&El(a,r,o,f),a.flags|=262144}function zs(r){for(r=r.firstContext;r!==null;){if(!zr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function jl(r){Wl=r,Al=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Wr(r){return ka(Wl,r)}function Is(r,a){return Wl===null&&jl(r),ka(r,a)}function ka(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Al===null){if(r===null)throw Error(n(308));Al=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else Al=Al.next=a;return o}var Oo=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,f){r.push(f)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},tl=i.unstable_scheduleCallback,Wo=i.unstable_NormalPriority,Yr={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ko(){return{controller:new Oo,data:new Map,refCount:0}}function Rc(r){r.refCount--,r.refCount===0&&tl(Wo,function(){r.controller.abort()})}var Fc=null,Xc=0,wc=0,Sc=null;function Pd(r,a){if(Fc===null){var o=Fc=[];Xc=0,wc=sb(),Sc={status:"pending",value:void 0,then:function(f){o.push(f)}}}return Xc++,a.then(gd,gd),a}function gd(){if(--Xc===0&&Fc!==null){Sc!==null&&(Sc.status="fulfilled");var r=Fc;Fc=null,wc=0,Sc=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Zc(r,a){var o=[],f={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return r.then(function(){f.status="fulfilled",f.value=a;for(var p=0;p<o.length;p++)(0,o[p])(a)},function(p){for(f.status="rejected",f.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),f}var Ud=C.S;C.S=function(r,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Pd(r,a),Ud!==null&&Ud(r,a)};var Co=H(null);function bo(){var r=Co.current;return r!==null?r:nl.pooledCache}function jo(r,a){a===null?$(Co,Co.current):$(Co,a.pool)}function qo(){var r=bo();return r===null?null:{parent:Yr._currentValue,pool:r}}var Ho=Error(n(460)),Ac=Error(n(474)),Dl=Error(n(542)),Yo={then:function(){}};function dc(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Xo(){}function Qc(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(Xo,Xo),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,_d(r),r;default:if(typeof a.status=="string")a.then(Xo,Xo);else{if(r=nl,r!==null&&100<r.shellSuspendCounter)throw Error(n(482));r=a,r.status="pending",r.then(function(f){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=f}},function(f){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,_d(r),r}throw Zo=a,Ho}}var Zo=null;function Kc(){if(Zo===null)throw Error(n(459));var r=Zo;return Zo=null,r}function _d(r){if(r===Ho||r===Dl)throw Error(n(483))}var Js=!1;function fc(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gd(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function uc(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Qo(r,a,o){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(ba&2)!==0){var p=f.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),f.pending=a,a=$s(r),Bo(r,null,o),a}return As(r,f,a,o),$s(r)}function Mc(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,et(r,o)}}function yd(r,a){var o=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,o===f)){var p=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var V={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?p=v=V:v=v.next=V,o=o.next}while(o!==null);v===null?p=v=a:v=v.next=a}else p=v=a;o={baseState:f.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var Vd=!1;function Po(){if(Vd){var r=Sc;if(r!==null)throw r}}function Ec(r,a,o,f){Vd=!1;var p=r.updateQueue;Js=!1;var v=p.firstBaseUpdate,V=p.lastBaseUpdate,_e=p.shared.pending;if(_e!==null){p.shared.pending=null;var Ct=_e,ci=Ct.next;Ct.next=null,V===null?v=ci:V.next=ci,V=Ct;var ki=r.alternate;ki!==null&&(ki=ki.updateQueue,_e=ki.lastBaseUpdate,_e!==V&&(_e===null?ki.firstBaseUpdate=ci:_e.next=ci,ki.lastBaseUpdate=Ct))}if(v!==null){var Bi=p.baseState;V=0,ki=ci=Ct=null,_e=v;do{var pi=_e.lane&-536870913,bi=pi!==_e.lane;if(bi?(Pr&pi)===pi:(f&pi)===pi){pi!==0&&pi===wc&&(Vd=!0),ki!==null&&(ki=ki.next={lane:0,tag:_e.tag,payload:_e.payload,callback:null,next:null});e:{var cr=r,nr=_e;pi=a;var Ra=o;switch(nr.tag){case 1:if(cr=nr.payload,typeof cr=="function"){Bi=cr.call(Ra,Bi,pi);break e}Bi=cr;break e;case 3:cr.flags=cr.flags&-65537|128;case 0:if(cr=nr.payload,pi=typeof cr=="function"?cr.call(Ra,Bi,pi):cr,pi==null)break e;Bi=m({},Bi,pi);break e;case 2:Js=!0}}pi=_e.callback,pi!==null&&(r.flags|=64,bi&&(r.flags|=8192),bi=p.callbacks,bi===null?p.callbacks=[pi]:bi.push(pi))}else bi={lane:pi,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null},ki===null?(ci=ki=bi,Ct=Bi):ki=ki.next=bi,V|=pi;if(_e=_e.next,_e===null){if(_e=p.shared.pending,_e===null)break;bi=_e,_e=bi.next,bi.next=null,p.lastBaseUpdate=bi,p.shared.pending=null}}while(!0);ki===null&&(Ct=Bi),p.baseState=Ct,p.firstBaseUpdate=ci,p.lastBaseUpdate=ki,v===null&&(p.shared.lanes=0),ef|=V,r.lanes=V,r.memoizedState=Bi}}function Tf(r,a){if(typeof r!="function")throw Error(n(191,r));r.call(a)}function Of(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)Tf(o[r],a)}var Dc=H(null),nu=H(0);function $m(r,a){r=Ad,$(nu,r),$(Dc,a),Ad=r|a.baseLanes}function gh(){$(nu,Ad),$(Dc,Dc.current)}function _h(){Ad=nu.current,R(Dc),R(nu)}var Jc=0,Sr=null,aa=null,Tl=null,Wd=!1,ed=!1,td=!1,jd=0,vd=0,id=null,Bm=0;function ul(){throw Error(n(321))}function kf(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!zr(r[o],a[o]))return!1;return!0}function Cf(r,a,o,f,p,v){return Jc=v,Sr=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,C.H=r===null||r.memoizedState===null?Ji:Tn,td=!1,v=o(f,p),td=!1,ed&&(v=au(a,o,f,p)),ru(r),v}function ru(r){C.H=an;var a=aa!==null&&aa.next!==null;if(Jc=0,Tl=aa=Sr=null,Wd=!1,vd=0,id=null,a)throw Error(n(300));r===null||We||(r=r.dependencies,r!==null&&zs(r)&&(We=!0))}function au(r,a,o,f){Sr=r;var p=0;do{if(ed&&(id=null),vd=0,ed=!1,25<=p)throw Error(n(301));if(p+=1,Tl=aa=null,r.updateQueue!=null){var v=r.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}C.H=Oi,v=a(o,f)}while(ed);return v}function yh(){var r=C.H,a=r.useState()[0];return a=typeof a.then=="function"?xd(a):a,r=r.useState()[0],(aa!==null?aa.memoizedState:null)!==r&&(Sr.flags|=1024),a}function zf(){var r=jd!==0;return jd=0,r}function If(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function Lf(r){if(Wd){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Wd=!1}Jc=0,Tl=aa=Sr=null,ed=!1,vd=jd=0,id=null}function Ls(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tl===null?Sr.memoizedState=Tl=r:Tl=Tl.next=r,Tl}function Ca(){if(aa===null){var r=Sr.alternate;r=r!==null?r.memoizedState:null}else r=aa.next;var a=Tl===null?Sr.memoizedState:Tl.next;if(a!==null)Tl=a,aa=r;else{if(r===null)throw Sr.alternate===null?Error(n(467)):Error(n(310));aa=r,r={memoizedState:aa.memoizedState,baseState:aa.baseState,baseQueue:aa.baseQueue,queue:aa.queue,next:null},Tl===null?Sr.memoizedState=Tl=r:Tl=Tl.next=r}return Tl}function lu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xd(r){var a=vd;return vd+=1,id===null&&(id=[]),r=Qc(id,r,a),a=Sr,(Tl===null?a.memoizedState:Tl.next)===null&&(a=a.alternate,C.H=a===null||a.memoizedState===null?Ji:Tn),r}function su(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return xd(r);if(r.$$typeof===w)return Wr(r)}throw Error(n(438,String(r)))}function vh(r){var a=null,o=Sr.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var f=Sr.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=lu(),Sr.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),f=0;f<r;f++)o[f]=Q;return a.index++,o}function Nc(r,a){return typeof a=="function"?a(r):a}function hc(r){var a=Ca();return ou(a,aa,r)}function ou(r,a,o){var f=r.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=o;var p=r.baseQueue,v=f.pending;if(v!==null){if(p!==null){var V=p.next;p.next=v.next,v.next=V}a.baseQueue=p=v,f.pending=null}if(v=r.baseState,p===null)r.memoizedState=v;else{a=p.next;var _e=V=null,Ct=null,ci=a,ki=!1;do{var Bi=ci.lane&-536870913;if(Bi!==ci.lane?(Pr&Bi)===Bi:(Jc&Bi)===Bi){var pi=ci.revertLane;if(pi===0)Ct!==null&&(Ct=Ct.next={lane:0,revertLane:0,action:ci.action,hasEagerState:ci.hasEagerState,eagerState:ci.eagerState,next:null}),Bi===wc&&(ki=!0);else if((Jc&pi)===pi){ci=ci.next,pi===wc&&(ki=!0);continue}else Bi={lane:0,revertLane:ci.revertLane,action:ci.action,hasEagerState:ci.hasEagerState,eagerState:ci.eagerState,next:null},Ct===null?(_e=Ct=Bi,V=v):Ct=Ct.next=Bi,Sr.lanes|=pi,ef|=pi;Bi=ci.action,td&&o(v,Bi),v=ci.hasEagerState?ci.eagerState:o(v,Bi)}else pi={lane:Bi,revertLane:ci.revertLane,action:ci.action,hasEagerState:ci.hasEagerState,eagerState:ci.eagerState,next:null},Ct===null?(_e=Ct=pi,V=v):Ct=Ct.next=pi,Sr.lanes|=Bi,ef|=Bi;ci=ci.next}while(ci!==null&&ci!==a);if(Ct===null?V=v:Ct.next=_e,!zr(v,r.memoizedState)&&(We=!0,ki&&(o=Sc,o!==null)))throw o;r.memoizedState=v,r.baseState=V,r.baseQueue=Ct,f.lastRenderedState=v}return p===null&&(f.lanes=0),[r.memoizedState,f.dispatch]}function cu(r){var a=Ca(),o=a.queue;if(o===null)throw Error(n(311));o.lastRenderedReducer=r;var f=o.dispatch,p=o.pending,v=a.memoizedState;if(p!==null){o.pending=null;var V=p=p.next;do v=r(v,V.action),V=V.next;while(V!==p);zr(v,a.memoizedState)||(We=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),o.lastRenderedState=v}return[v,f]}function xh(r,a,o){var f=Sr,p=Ca(),v=Kn;if(v){if(o===void 0)throw Error(n(407));o=o()}else o=a();var V=!zr((aa||p).memoizedState,o);V&&(p.memoizedState=o,We=!0),p=p.queue;var _e=Pm.bind(null,f,p,r);if(Rf(2048,8,_e,[r]),p.getSnapshot!==a||V||Tl!==null&&Tl.memoizedState.tag&1){if(f.flags|=2048,Xd(9,uu(),wh.bind(null,f,p,o,a),null),nl===null)throw Error(n(349));v||(Jc&124)!==0||Hm(f,a,o)}return o}function Hm(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=Sr.updateQueue,a===null?(a=lu(),Sr.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function wh(r,a,o,f){a.value=o,a.getSnapshot=f,qd(a)&&du(r)}function Pm(r,a,o){return o(function(){qd(a)&&du(r)})}function qd(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!zr(r,o)}catch{return!0}}function du(r){var a=rs(r,2);a!==null&&yc(a,r,2)}function Yd(r){var a=Ls();if(typeof r=="function"){var o=r;if(r=o(),td){me(!0);try{o()}finally{me(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nc,lastRenderedState:r},a}function Sh(r,a,o,f){return r.baseState=o,ou(r,aa,typeof f=="function"?f:Nc)}function fu(r,a,o,f,p){if(Ni(r))throw Error(n(485));if(r=a.action,r!==null){var v={payload:p,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(V){v.listeners.push(V)}};C.T!==null?o(!0):v.isTransition=!1,f(v),o=a.pending,o===null?(v.next=a.pending=v,Ah(a,v)):(v.next=o.next,a.pending=o.next=v)}}function Ah(r,a){var o=a.action,f=a.payload,p=r.state;if(a.isTransition){var v=C.T,V={};C.T=V;try{var _e=o(p,f),Ct=C.S;Ct!==null&&Ct(V,_e),Nl(r,a,_e)}catch(ci){il(r,a,ci)}finally{C.T=v}}else try{v=o(p,f),Nl(r,a,v)}catch(ci){il(r,a,ci)}}function Nl(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(f){mc(r,a,f)},function(f){return il(r,a,f)}):mc(r,a,o)}function mc(r,a,o){a.status="fulfilled",a.value=o,go(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,Ah(r,o)))}function il(r,a,o){var f=r.pending;if(r.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=o,go(a),a=a.next;while(a!==f)}r.action=null}function go(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Eh(r,a){return a}function Um(r,a){if(Kn){var o=nl.formState;if(o!==null){e:{var f=Sr;if(Kn){if(br){t:{for(var p=br,v=Vr;p.nodeType!==8;){if(!v){p=null;break t}if(p=Bc(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){br=Bc(p.nextSibling),f=p.data==="F!";break e}}Ua(f)}f=!1}f&&(a=o[0])}}return o=Ls(),o.memoizedState=o.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:a},o.queue=f,o=Ii.bind(null,Sr,f),f.dispatch=o,f=Yd(!1),v=mi.bind(null,Sr,!1,f.queue),f=Ls(),p={state:a,dispatch:null,action:r,pending:null},f.queue=p,o=fu.bind(null,Sr,p,v,o),p.dispatch=o,f.memoizedState=r,[a,o,!1]}function Gm(r){var a=Ca();return Vm(a,aa,r)}function Vm(r,a,o){if(a=ou(r,a,Eh)[0],r=hc(Nc)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var f=xd(a)}catch(V){throw V===Ho?Dl:V}else f=a;a=Ca();var p=a.queue,v=p.dispatch;return o!==a.memoizedState&&(Sr.flags|=2048,Xd(9,uu(),H0.bind(null,p,o),null)),[f,v,r]}function H0(r,a){r.action=a}function Th(r){var a=Ca(),o=aa;if(o!==null)return Vm(a,o,r);Ca(),a=a.memoizedState,o=Ca();var f=o.queue.dispatch;return o.memoizedState=r,[a,f,!1]}function Xd(r,a,o,f){return r={tag:r,create:o,deps:f,inst:a,next:null},a=Sr.updateQueue,a===null&&(a=lu(),Sr.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(f=o.next,o.next=r,r.next=f,a.lastEffect=r),r}function uu(){return{destroy:void 0,resource:void 0}}function Wm(){return Ca().memoizedState}function hu(r,a,o,f){var p=Ls();f=f===void 0?null:f,Sr.flags|=r,p.memoizedState=Xd(1|a,uu(),o,f)}function Rf(r,a,o,f){var p=Ca();f=f===void 0?null:f;var v=p.memoizedState.inst;aa!==null&&f!==null&&kf(f,aa.memoizedState.deps)?p.memoizedState=Xd(a,v,o,f):(Sr.flags|=r,p.memoizedState=Xd(1|a,v,o,f))}function Oh(r,a){hu(8390656,8,r,a)}function kh(r,a){Rf(2048,8,r,a)}function Ch(r,a){return Rf(4,2,r,a)}function jm(r,a){return Rf(4,4,r,a)}function qm(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function zh(r,a,o){o=o!=null?o.concat([r]):null,Rf(4,4,qm.bind(null,a,r),o)}function Ih(){}function P(r,a){var o=Ca();a=a===void 0?null:a;var f=o.memoizedState;return a!==null&&kf(a,f[1])?f[0]:(o.memoizedState=[r,a],r)}function rt(r,a){var o=Ca();a=a===void 0?null:a;var f=o.memoizedState;if(a!==null&&kf(a,f[1]))return f[0];if(f=r(),td){me(!0);try{r()}finally{me(!1)}}return o.memoizedState=[f,a],f}function gt(r,a,o){return o===void 0||(Jc&1073741824)!==0?r.memoizedState=a:(r.memoizedState=o,r=$_(),Sr.lanes|=r,ef|=r,o)}function ui(r,a,o,f){return zr(o,a)?o:Dc.current!==null?(r=gt(r,o,f),zr(r,a)||(We=!0),r):(Jc&42)===0?(We=!0,r.memoizedState=o):(r=$_(),Sr.lanes|=r,ef|=r,a)}function Ti(r,a,o,f,p){var v=ee.p;ee.p=v!==0&&8>v?v:8;var V=C.T,_e={};C.T=_e,mi(r,!1,a,o);try{var Ct=p(),ci=C.S;if(ci!==null&&ci(_e,Ct),Ct!==null&&typeof Ct=="object"&&typeof Ct.then=="function"){var ki=Zc(Ct,f);Yt(r,a,ki,_c(r))}else Yt(r,a,f,_c(r))}catch(Bi){Yt(r,a,{then:function(){},status:"rejected",reason:Bi},_c())}finally{ee.p=v,C.T=V}}function xi(){}function gi(r,a,o,f){if(r.tag!==5)throw Error(n(476));var p=Zi(r).queue;Ti(r,p,a,Re,o===null?xi:function(){return Ki(r),o(f)})}function Zi(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:Re,baseState:Re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nc,lastRenderedState:Re},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nc,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Ki(r){var a=Zi(r).next.queue;Yt(r,a,{},_c())}function Yi(){return Wr(Wh)}function dn(){return Ca().memoizedState}function Fn(){return Ca().memoizedState}function En(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=_c();r=uc(o);var f=Qo(a,r,o);f!==null&&(yc(f,a,o),Mc(f,a,o)),a={cache:ko()},r.payload=a;return}a=a.return}}function en(r,a,o){var f=_c();o={lane:f,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Ni(r)?Pi(a,o):(o=Ns(r,a,o,f),o!==null&&(yc(o,r,f),Si(o,a,f)))}function Ii(r,a,o){var f=_c();Yt(r,a,o,f)}function Yt(r,a,o,f){var p={lane:f,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ni(r))Pi(a,p);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var V=a.lastRenderedState,_e=v(V,o);if(p.hasEagerState=!0,p.eagerState=_e,zr(_e,V))return As(r,a,p,0),nl===null&&fr(),!1}catch{}finally{}if(o=Ns(r,a,p,f),o!==null)return yc(o,r,f),Si(o,a,f),!0}return!1}function mi(r,a,o,f){if(f={lane:2,revertLane:sb(),action:f,hasEagerState:!1,eagerState:null,next:null},Ni(r)){if(a)throw Error(n(479))}else a=Ns(r,o,f,2),a!==null&&yc(a,r,2)}function Ni(r){var a=r.alternate;return r===Sr||a!==null&&a===Sr}function Pi(r,a){ed=Wd=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function Si(r,a,o){if((o&4194048)!==0){var f=a.lanes;f&=r.pendingLanes,o|=f,a.lanes=o,et(r,o)}}var an={readContext:Wr,use:su,useCallback:ul,useContext:ul,useEffect:ul,useImperativeHandle:ul,useLayoutEffect:ul,useInsertionEffect:ul,useMemo:ul,useReducer:ul,useRef:ul,useState:ul,useDebugValue:ul,useDeferredValue:ul,useTransition:ul,useSyncExternalStore:ul,useId:ul,useHostTransitionStatus:ul,useFormState:ul,useActionState:ul,useOptimistic:ul,useMemoCache:ul,useCacheRefresh:ul},Ji={readContext:Wr,use:su,useCallback:function(r,a){return Ls().memoizedState=[r,a===void 0?null:a],r},useContext:Wr,useEffect:Oh,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,hu(4194308,4,qm.bind(null,a,r),o)},useLayoutEffect:function(r,a){return hu(4194308,4,r,a)},useInsertionEffect:function(r,a){hu(4,2,r,a)},useMemo:function(r,a){var o=Ls();a=a===void 0?null:a;var f=r();if(td){me(!0);try{r()}finally{me(!1)}}return o.memoizedState=[f,a],f},useReducer:function(r,a,o){var f=Ls();if(o!==void 0){var p=o(a);if(td){me(!0);try{o(a)}finally{me(!1)}}}else p=a;return f.memoizedState=f.baseState=p,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:p},f.queue=r,r=r.dispatch=en.bind(null,Sr,r),[f.memoizedState,r]},useRef:function(r){var a=Ls();return r={current:r},a.memoizedState=r},useState:function(r){r=Yd(r);var a=r.queue,o=Ii.bind(null,Sr,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:Ih,useDeferredValue:function(r,a){var o=Ls();return gt(o,r,a)},useTransition:function(){var r=Yd(!1);return r=Ti.bind(null,Sr,r.queue,!0,!1),Ls().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var f=Sr,p=Ls();if(Kn){if(o===void 0)throw Error(n(407));o=o()}else{if(o=a(),nl===null)throw Error(n(349));(Pr&124)!==0||Hm(f,a,o)}p.memoizedState=o;var v={value:o,getSnapshot:a};return p.queue=v,Oh(Pm.bind(null,f,v,r),[r]),f.flags|=2048,Xd(9,uu(),wh.bind(null,f,v,o,a),null),o},useId:function(){var r=Ls(),a=nl.identifierPrefix;if(Kn){var o=Pa,f=$r;o=(f&~(1<<32-B(f)-1)).toString(32)+o,a="«"+a+"R"+o,o=jd++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=Bm++,a="«"+a+"r"+o.toString(32)+"»";return r.memoizedState=a},useHostTransitionStatus:Yi,useFormState:Um,useActionState:Um,useOptimistic:function(r){var a=Ls();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=mi.bind(null,Sr,!0,o),o.dispatch=a,[r,a]},useMemoCache:vh,useCacheRefresh:function(){return Ls().memoizedState=En.bind(null,Sr)}},Tn={readContext:Wr,use:su,useCallback:P,useContext:Wr,useEffect:kh,useImperativeHandle:zh,useInsertionEffect:Ch,useLayoutEffect:jm,useMemo:rt,useReducer:hc,useRef:Wm,useState:function(){return hc(Nc)},useDebugValue:Ih,useDeferredValue:function(r,a){var o=Ca();return ui(o,aa.memoizedState,r,a)},useTransition:function(){var r=hc(Nc)[0],a=Ca().memoizedState;return[typeof r=="boolean"?r:xd(r),a]},useSyncExternalStore:xh,useId:dn,useHostTransitionStatus:Yi,useFormState:Gm,useActionState:Gm,useOptimistic:function(r,a){var o=Ca();return Sh(o,aa,r,a)},useMemoCache:vh,useCacheRefresh:Fn},Oi={readContext:Wr,use:su,useCallback:P,useContext:Wr,useEffect:kh,useImperativeHandle:zh,useInsertionEffect:Ch,useLayoutEffect:jm,useMemo:rt,useReducer:cu,useRef:Wm,useState:function(){return cu(Nc)},useDebugValue:Ih,useDeferredValue:function(r,a){var o=Ca();return aa===null?gt(o,r,a):ui(o,aa.memoizedState,r,a)},useTransition:function(){var r=cu(Nc)[0],a=Ca().memoizedState;return[typeof r=="boolean"?r:xd(r),a]},useSyncExternalStore:xh,useId:dn,useHostTransitionStatus:Yi,useFormState:Th,useActionState:Th,useOptimistic:function(r,a){var o=Ca();return aa!==null?Sh(o,aa,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:vh,useCacheRefresh:Fn},vi=null,ln=0;function hi(r){var a=ln;return ln+=1,vi===null&&(vi=[]),Qc(vi,r,a)}function nn(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Hi(r,a){throw a.$$typeof===b?Error(n(525)):(r=Object.prototype.toString.call(a),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function On(r){var a=r._init;return a(r._payload)}function sr(r){function a(ni,jt){if(r){var si=ni.deletions;si===null?(ni.deletions=[jt],ni.flags|=16):si.push(jt)}}function o(ni,jt){if(!r)return null;for(;jt!==null;)a(ni,jt),jt=jt.sibling;return null}function f(ni){for(var jt=new Map;ni!==null;)ni.key!==null?jt.set(ni.key,ni):jt.set(ni.index,ni),ni=ni.sibling;return jt}function p(ni,jt){return ni=ra(ni,jt),ni.index=0,ni.sibling=null,ni}function v(ni,jt,si){return ni.index=si,r?(si=ni.alternate,si!==null?(si=si.index,si<jt?(ni.flags|=67108866,jt):si):(ni.flags|=67108866,jt)):(ni.flags|=1048576,jt)}function V(ni){return r&&ni.alternate===null&&(ni.flags|=67108866),ni}function _e(ni,jt,si,Fi){return jt===null||jt.tag!==6?(jt=Hs(si,ni.mode,Fi),jt.return=ni,jt):(jt=p(jt,si),jt.return=ni,jt)}function Ct(ni,jt,si,Fi){var Mn=si.type;return Mn===z?ki(ni,jt,si.props.children,Fi,si.key):jt!==null&&(jt.elementType===Mn||typeof Mn=="object"&&Mn!==null&&Mn.$$typeof===J&&On(Mn)===jt.type)?(jt=p(jt,si.props),nn(jt,si),jt.return=ni,jt):(jt=xl(si.type,si.key,si.props,null,ni.mode,Fi),nn(jt,si),jt.return=ni,jt)}function ci(ni,jt,si,Fi){return jt===null||jt.tag!==4||jt.stateNode.containerInfo!==si.containerInfo||jt.stateNode.implementation!==si.implementation?(jt=Ps(si,ni.mode,Fi),jt.return=ni,jt):(jt=p(jt,si.children||[]),jt.return=ni,jt)}function ki(ni,jt,si,Fi,Mn){return jt===null||jt.tag!==7?(jt=wl(si,ni.mode,Fi,Mn),jt.return=ni,jt):(jt=p(jt,si),jt.return=ni,jt)}function Bi(ni,jt,si){if(typeof jt=="string"&&jt!==""||typeof jt=="number"||typeof jt=="bigint")return jt=Hs(""+jt,ni.mode,si),jt.return=ni,jt;if(typeof jt=="object"&&jt!==null){switch(jt.$$typeof){case g:return si=xl(jt.type,jt.key,jt.props,null,ni.mode,si),nn(si,jt),si.return=ni,si;case _:return jt=Ps(jt,ni.mode,si),jt.return=ni,jt;case J:var Fi=jt._init;return jt=Fi(jt._payload),Bi(ni,jt,si)}if(k(jt)||x(jt))return jt=wl(jt,ni.mode,si,null),jt.return=ni,jt;if(typeof jt.then=="function")return Bi(ni,hi(jt),si);if(jt.$$typeof===w)return Bi(ni,Is(ni,jt),si);Hi(ni,jt)}return null}function pi(ni,jt,si,Fi){var Mn=jt!==null?jt.key:null;if(typeof si=="string"&&si!==""||typeof si=="number"||typeof si=="bigint")return Mn!==null?null:_e(ni,jt,""+si,Fi);if(typeof si=="object"&&si!==null){switch(si.$$typeof){case g:return si.key===Mn?Ct(ni,jt,si,Fi):null;case _:return si.key===Mn?ci(ni,jt,si,Fi):null;case J:return Mn=si._init,si=Mn(si._payload),pi(ni,jt,si,Fi)}if(k(si)||x(si))return Mn!==null?null:ki(ni,jt,si,Fi,null);if(typeof si.then=="function")return pi(ni,jt,hi(si),Fi);if(si.$$typeof===w)return pi(ni,jt,Is(ni,si),Fi);Hi(ni,si)}return null}function bi(ni,jt,si,Fi,Mn){if(typeof Fi=="string"&&Fi!==""||typeof Fi=="number"||typeof Fi=="bigint")return ni=ni.get(si)||null,_e(jt,ni,""+Fi,Mn);if(typeof Fi=="object"&&Fi!==null){switch(Fi.$$typeof){case g:return ni=ni.get(Fi.key===null?si:Fi.key)||null,Ct(jt,ni,Fi,Mn);case _:return ni=ni.get(Fi.key===null?si:Fi.key)||null,ci(jt,ni,Fi,Mn);case J:var Ir=Fi._init;return Fi=Ir(Fi._payload),bi(ni,jt,si,Fi,Mn)}if(k(Fi)||x(Fi))return ni=ni.get(si)||null,ki(jt,ni,Fi,Mn,null);if(typeof Fi.then=="function")return bi(ni,jt,si,hi(Fi),Mn);if(Fi.$$typeof===w)return bi(ni,jt,si,Is(jt,Fi),Mn);Hi(jt,Fi)}return null}function cr(ni,jt,si,Fi){for(var Mn=null,Ir=null,Vn=jt,ar=jt=0,no=null;Vn!==null&&ar<si.length;ar++){Vn.index>ar?(no=Vn,Vn=null):no=Vn.sibling;var Zr=pi(ni,Vn,si[ar],Fi);if(Zr===null){Vn===null&&(Vn=no);break}r&&Vn&&Zr.alternate===null&&a(ni,Vn),jt=v(Zr,jt,ar),Ir===null?Mn=Zr:Ir.sibling=Zr,Ir=Zr,Vn=no}if(ar===si.length)return o(ni,Vn),Kn&&fl(ni,ar),Mn;if(Vn===null){for(;ar<si.length;ar++)Vn=Bi(ni,si[ar],Fi),Vn!==null&&(jt=v(Vn,jt,ar),Ir===null?Mn=Vn:Ir.sibling=Vn,Ir=Vn);return Kn&&fl(ni,ar),Mn}for(Vn=f(Vn);ar<si.length;ar++)no=bi(Vn,ni,ar,si[ar],Fi),no!==null&&(r&&no.alternate!==null&&Vn.delete(no.key===null?ar:no.key),jt=v(no,jt,ar),Ir===null?Mn=no:Ir.sibling=no,Ir=no);return r&&Vn.forEach(function(df){return a(ni,df)}),Kn&&fl(ni,ar),Mn}function nr(ni,jt,si,Fi){if(si==null)throw Error(n(151));for(var Mn=null,Ir=null,Vn=jt,ar=jt=0,no=null,Zr=si.next();Vn!==null&&!Zr.done;ar++,Zr=si.next()){Vn.index>ar?(no=Vn,Vn=null):no=Vn.sibling;var df=pi(ni,Vn,Zr.value,Fi);if(df===null){Vn===null&&(Vn=no);break}r&&Vn&&df.alternate===null&&a(ni,Vn),jt=v(df,jt,ar),Ir===null?Mn=df:Ir.sibling=df,Ir=df,Vn=no}if(Zr.done)return o(ni,Vn),Kn&&fl(ni,ar),Mn;if(Vn===null){for(;!Zr.done;ar++,Zr=si.next())Zr=Bi(ni,Zr.value,Fi),Zr!==null&&(jt=v(Zr,jt,ar),Ir===null?Mn=Zr:Ir.sibling=Zr,Ir=Zr);return Kn&&fl(ni,ar),Mn}for(Vn=f(Vn);!Zr.done;ar++,Zr=si.next())Zr=bi(Vn,ni,ar,Zr.value,Fi),Zr!==null&&(r&&Zr.alternate!==null&&Vn.delete(Zr.key===null?ar:Zr.key),jt=v(Zr,jt,ar),Ir===null?Mn=Zr:Ir.sibling=Zr,Ir=Zr);return r&&Vn.forEach(function(P2){return a(ni,P2)}),Kn&&fl(ni,ar),Mn}function Ra(ni,jt,si,Fi){if(typeof si=="object"&&si!==null&&si.type===z&&si.key===null&&(si=si.props.children),typeof si=="object"&&si!==null){switch(si.$$typeof){case g:e:{for(var Mn=si.key;jt!==null;){if(jt.key===Mn){if(Mn=si.type,Mn===z){if(jt.tag===7){o(ni,jt.sibling),Fi=p(jt,si.props.children),Fi.return=ni,ni=Fi;break e}}else if(jt.elementType===Mn||typeof Mn=="object"&&Mn!==null&&Mn.$$typeof===J&&On(Mn)===jt.type){o(ni,jt.sibling),Fi=p(jt,si.props),nn(Fi,si),Fi.return=ni,ni=Fi;break e}o(ni,jt);break}else a(ni,jt);jt=jt.sibling}si.type===z?(Fi=wl(si.props.children,ni.mode,Fi,si.key),Fi.return=ni,ni=Fi):(Fi=xl(si.type,si.key,si.props,null,ni.mode,Fi),nn(Fi,si),Fi.return=ni,ni=Fi)}return V(ni);case _:e:{for(Mn=si.key;jt!==null;){if(jt.key===Mn)if(jt.tag===4&&jt.stateNode.containerInfo===si.containerInfo&&jt.stateNode.implementation===si.implementation){o(ni,jt.sibling),Fi=p(jt,si.children||[]),Fi.return=ni,ni=Fi;break e}else{o(ni,jt);break}else a(ni,jt);jt=jt.sibling}Fi=Ps(si,ni.mode,Fi),Fi.return=ni,ni=Fi}return V(ni);case J:return Mn=si._init,si=Mn(si._payload),Ra(ni,jt,si,Fi)}if(k(si))return cr(ni,jt,si,Fi);if(x(si)){if(Mn=x(si),typeof Mn!="function")throw Error(n(150));return si=Mn.call(si),nr(ni,jt,si,Fi)}if(typeof si.then=="function")return Ra(ni,jt,hi(si),Fi);if(si.$$typeof===w)return Ra(ni,jt,Is(ni,si),Fi);Hi(ni,si)}return typeof si=="string"&&si!==""||typeof si=="number"||typeof si=="bigint"?(si=""+si,jt!==null&&jt.tag===6?(o(ni,jt.sibling),Fi=p(jt,si),Fi.return=ni,ni=Fi):(o(ni,jt),Fi=Hs(si,ni.mode,Fi),Fi.return=ni,ni=Fi),V(ni)):o(ni,jt)}return function(ni,jt,si,Fi){try{ln=0;var Mn=Ra(ni,jt,si,Fi);return vi=null,Mn}catch(Vn){if(Vn===Ho||Vn===Dl)throw Vn;var Ir=Cr(29,Vn,null,ni.mode);return Ir.lanes=Fi,Ir.return=ni,Ir}finally{}}}var on=sr(!0),In=sr(!1),Vi=H(null),qn=null;function or(r){var a=r.alternate;$(Hr,Hr.current&1),$(Vi,r),qn===null&&(a===null||Dc.current!==null||a.memoizedState!==null)&&(qn=r)}function kr(r){if(r.tag===22){if($(Hr,Hr.current),$(Vi,r),qn===null){var a=r.alternate;a!==null&&a.memoizedState!==null&&(qn=r)}}else za()}function za(){$(Hr,Hr.current),$(Vi,Vi.current)}function lr(r){R(Vi),qn===r&&(qn=null),R(Hr)}var Hr=H(0);function jr(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||yb(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function ls(r,a,o,f){a=r.memoizedState,o=o(f,a),o=o==null?a:m({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var eo={enqueueSetState:function(r,a,o){r=r._reactInternals;var f=_c(),p=uc(f);p.payload=a,o!=null&&(p.callback=o),a=Qo(r,p,f),a!==null&&(yc(a,r,f),Mc(a,r,f))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var f=_c(),p=uc(f);p.tag=1,p.payload=a,o!=null&&(p.callback=o),a=Qo(r,p,f),a!==null&&(yc(a,r,f),Mc(a,r,f))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=_c(),f=uc(o);f.tag=2,a!=null&&(f.callback=a),a=Qo(r,f,o),a!==null&&(yc(a,r,o),Mc(a,r,o))}};function Us(r,a,o,f,p,v,V){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,v,V):a.prototype&&a.prototype.isPureReactComponent?!_l(o,f)||!_l(p,v):!0}function Ko(r,a,o,f){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,f),a.state!==r&&eo.enqueueReplaceState(a,a.state,null)}function Ga(r,a){var o=a;if("ref"in a){o={};for(var f in a)f!=="ref"&&(o[f]=a[f])}if(r=r.defaultProps){o===a&&(o=m({},o));for(var p in r)o[p]===void 0&&(o[p]=r[p])}return o}var Ol=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function Yn(r){Ol(r)}function zo(r){console.error(r)}function Xr(r){Ol(r)}function kl(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function to(r,a,o){try{var f=r.onCaughtError;f(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Gs(r,a,o){return o=uc(o),o.tag=3,o.payload={element:null},o.callback=function(){kl(r,a)},o}function ir(r){return r=uc(r),r.tag=3,r}function Ar(r,a,o,f){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var v=f.value;r.payload=function(){return p(v)},r.callback=function(){to(a,o,f)}}var V=o.stateNode;V!==null&&typeof V.componentDidCatch=="function"&&(r.callback=function(){to(a,o,f),typeof p!="function"&&(tf===null?tf=new Set([this]):tf.add(this));var _e=f.stack;this.componentDidCatch(f.value,{componentStack:_e!==null?_e:""})})}function ma(r,a,o,f,p){if(o.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=o.alternate,a!==null&&ha(a,o,p,!0),o=Vi.current,o!==null){switch(o.tag){case 13:return qn===null?ib():o.alternate===null&&Yl===0&&(Yl=3),o.flags&=-257,o.flags|=65536,o.lanes=p,f===Yo?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([f]):a.add(f),rb(r,f,p)),!1;case 22:return o.flags|=65536,f===Yo?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([f]):o.add(f)),rb(r,f,p)),!1}throw Error(n(435,o.tag))}return rb(r,f,p),ib(),!1}if(Kn)return a=Vi.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,f!==wr&&(r=Error(n(422),{cause:f}),Vl(na(r,o)))):(f!==wr&&(a=Error(n(423),{cause:f}),Vl(na(a,o))),r=r.current.alternate,r.flags|=65536,p&=-p,r.lanes|=p,f=na(f,o),p=Gs(r.stateNode,f,p),yd(r,p),Yl!==4&&(Yl=2)),!1;var v=Error(n(520),{cause:f});if(v=na(v,o),Dh===null?Dh=[v]:Dh.push(v),Yl!==4&&(Yl=2),a===null)return!0;f=na(f,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=p&-p,o.lanes|=r,r=Gs(o.stateNode,f,r),yd(o,r),!1;case 1:if(a=o.type,v=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(tf===null||!tf.has(v))))return o.flags|=65536,p&=-p,o.lanes|=p,p=ir(p),Ar(p,r,o,f),yd(o,p),!1}o=o.return}while(o!==null);return!1}var ql=Error(n(461)),We=!1;function ri(r,a,o,f){a.child=r===null?In(a,null,o,f):on(a,r.child,o,f)}function oi(r,a,o,f,p){o=o.render;var v=a.ref;if("ref"in f){var V={};for(var _e in f)_e!=="ref"&&(V[_e]=f[_e])}else V=f;return jl(a),f=Cf(r,a,o,V,v,p),_e=zf(),r!==null&&!We?(If(r,a,p),hn(r,a,p)):(Kn&&_e&&Ks(a),a.flags|=1,ri(r,a,f,p),a.child)}function _n(r,a,o,f,p){if(r===null){var v=o.type;return typeof v=="function"&&!Ka(v)&&v.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=v,ur(r,a,v,f,p)):(r=xl(o.type,null,f,a,a.mode,p),r.ref=a.ref,r.return=a,a.child=r)}if(v=r.child,!cn(r,p)){var V=v.memoizedProps;if(o=o.compare,o=o!==null?o:_l,o(V,f)&&r.ref===a.ref)return hn(r,a,p)}return a.flags|=1,r=ra(v,f),r.ref=a.ref,r.return=a,a.child=r}function ur(r,a,o,f,p){if(r!==null){var v=r.memoizedProps;if(_l(v,f)&&r.ref===a.ref)if(We=!1,a.pendingProps=f=v,cn(r,p))(r.flags&131072)!==0&&(We=!0);else return a.lanes=r.lanes,hn(r,a,p)}return Ze(r,a,o,f,p)}function pa(r,a,o){var f=a.pendingProps,p=f.children,v=r!==null?r.memoizedState:null;if(f.mode==="hidden"){if((a.flags&128)!==0){if(f=v!==null?v.baseLanes|o:o,r!==null){for(p=a.child=r.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;a.childLanes=v&~f}else a.childLanes=0,a.child=null;return yn(r,a,f,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&jo(a,v!==null?v.cachePool:null),v!==null?$m(a,v):gh(),kr(a);else return a.lanes=a.childLanes=536870912,yn(r,a,v!==null?v.baseLanes|o:o,o)}else v!==null?(jo(a,v.cachePool),$m(a,v),za(),a.memoizedState=null):(r!==null&&jo(a,null),gh(),za());return ri(r,a,p,o),a.child}function yn(r,a,o,f){var p=bo();return p=p===null?null:{parent:Yr._currentValue,pool:p},a.memoizedState={baseLanes:o,cachePool:p},r!==null&&jo(a,null),gh(),kr(a),r!==null&&ha(r,a,f,!0),null}function Ie(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(n(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function Ze(r,a,o,f,p){return jl(a),o=Cf(r,a,o,f,void 0,p),f=zf(),r!==null&&!We?(If(r,a,p),hn(r,a,p)):(Kn&&f&&Ks(a),a.flags|=1,ri(r,a,o,p),a.child)}function Et(r,a,o,f,p,v){return jl(a),a.updateQueue=null,o=au(a,f,o,p),ru(r),f=zf(),r!==null&&!We?(If(r,a,v),hn(r,a,v)):(Kn&&f&&Ks(a),a.flags|=1,ri(r,a,o,v),a.child)}function fi(r,a,o,f,p){if(jl(a),a.stateNode===null){var v=as,V=o.contextType;typeof V=="object"&&V!==null&&(v=Wr(V)),v=new o(f,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=eo,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=f,v.state=a.memoizedState,v.refs={},fc(a),V=o.contextType,v.context=typeof V=="object"&&V!==null?Wr(V):as,v.state=a.memoizedState,V=o.getDerivedStateFromProps,typeof V=="function"&&(ls(a,o,V,f),v.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(V=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),V!==v.state&&eo.enqueueReplaceState(v,v.state,null),Ec(a,f,v,p),Po(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(r===null){v=a.stateNode;var _e=a.memoizedProps,Ct=Ga(o,_e);v.props=Ct;var ci=v.context,ki=o.contextType;V=as,typeof ki=="object"&&ki!==null&&(V=Wr(ki));var Bi=o.getDerivedStateFromProps;ki=typeof Bi=="function"||typeof v.getSnapshotBeforeUpdate=="function",_e=a.pendingProps!==_e,ki||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_e||ci!==V)&&Ko(a,v,f,V),Js=!1;var pi=a.memoizedState;v.state=pi,Ec(a,f,v,p),Po(),ci=a.memoizedState,_e||pi!==ci||Js?(typeof Bi=="function"&&(ls(a,o,Bi,f),ci=a.memoizedState),(Ct=Js||Us(a,o,Ct,f,pi,ci,V))?(ki||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=ci),v.props=f,v.state=ci,v.context=V,f=Ct):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{v=a.stateNode,Gd(r,a),V=a.memoizedProps,ki=Ga(o,V),v.props=ki,Bi=a.pendingProps,pi=v.context,ci=o.contextType,Ct=as,typeof ci=="object"&&ci!==null&&(Ct=Wr(ci)),_e=o.getDerivedStateFromProps,(ci=typeof _e=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(V!==Bi||pi!==Ct)&&Ko(a,v,f,Ct),Js=!1,pi=a.memoizedState,v.state=pi,Ec(a,f,v,p),Po();var bi=a.memoizedState;V!==Bi||pi!==bi||Js||r!==null&&r.dependencies!==null&&zs(r.dependencies)?(typeof _e=="function"&&(ls(a,o,_e,f),bi=a.memoizedState),(ki=Js||Us(a,o,ki,f,pi,bi,Ct)||r!==null&&r.dependencies!==null&&zs(r.dependencies))?(ci||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(f,bi,Ct),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(f,bi,Ct)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||V===r.memoizedProps&&pi===r.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||V===r.memoizedProps&&pi===r.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=bi),v.props=f,v.state=bi,v.context=Ct,f=ki):(typeof v.componentDidUpdate!="function"||V===r.memoizedProps&&pi===r.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||V===r.memoizedProps&&pi===r.memoizedState||(a.flags|=1024),f=!1)}return v=f,Ie(r,a),f=(a.flags&128)!==0,v||f?(v=a.stateNode,o=f&&typeof o.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,r!==null&&f?(a.child=on(a,r.child,null,p),a.child=on(a,null,o,p)):ri(r,a,o,p),a.memoizedState=v.state,r=a.child):r=hn(r,a,p),r}function ai(r,a,o,f){return ks(),a.flags|=256,ri(r,a,o,f),a.child}var ti={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xt(r){return{baseLanes:r,cachePool:qo()}}function Ht(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Oc),r}function dt(r,a,o){var f=a.pendingProps,p=!1,v=(a.flags&128)!==0,V;if((V=v)||(V=r!==null&&r.memoizedState===null?!1:(Hr.current&2)!==0),V&&(p=!0,a.flags&=-129),V=(a.flags&32)!==0,a.flags&=-33,r===null){if(Kn){if(p?or(a):za(),Kn){var _e=br,Ct;if(Ct=_e){e:{for(Ct=_e,_e=Vr;Ct.nodeType!==8;){if(!_e){_e=null;break e}if(Ct=Bc(Ct.nextSibling),Ct===null){_e=null;break e}}_e=Ct}_e!==null?(a.memoizedState={dehydrated:_e,treeContext:Ja!==null?{id:$r,overflow:Pa}:null,retryLane:536870912,hydrationErrors:null},Ct=Cr(18,null,null,0),Ct.stateNode=_e,Ct.return=a,a.child=Ct,tr=a,br=null,Ct=!0):Ct=!1}Ct||Ua(a)}if(_e=a.memoizedState,_e!==null&&(_e=_e.dehydrated,_e!==null))return yb(_e)?a.lanes=32:a.lanes=536870912,null;lr(a)}return _e=f.children,f=f.fallback,p?(za(),p=a.mode,_e=st({mode:"hidden",children:_e},p),f=wl(f,p,o,null),_e.return=a,f.return=a,_e.sibling=f,a.child=_e,p=a.child,p.memoizedState=Xt(o),p.childLanes=Ht(r,V,o),a.memoizedState=ti,f):(or(a),kt(a,_e))}if(Ct=r.memoizedState,Ct!==null&&(_e=Ct.dehydrated,_e!==null)){if(v)a.flags&256?(or(a),a.flags&=-257,a=li(r,a,o)):a.memoizedState!==null?(za(),a.child=r.child,a.flags|=128,a=null):(za(),p=f.fallback,_e=a.mode,f=st({mode:"visible",children:f.children},_e),p=wl(p,_e,o,null),p.flags|=2,f.return=a,p.return=a,f.sibling=p,a.child=f,on(a,r.child,null,o),f=a.child,f.memoizedState=Xt(o),f.childLanes=Ht(r,V,o),a.memoizedState=ti,a=p);else if(or(a),yb(_e)){if(V=_e.nextSibling&&_e.nextSibling.dataset,V)var ci=V.dgst;V=ci,f=Error(n(419)),f.stack="",f.digest=V,Vl({value:f,source:null,stack:null}),a=li(r,a,o)}else if(We||ha(r,a,o,!1),V=(o&r.childLanes)!==0,We||V){if(V=nl,V!==null&&(f=o&-o,f=(f&42)!==0?1:ht(f),f=(f&(V.suspendedLanes|o))!==0?0:f,f!==0&&f!==Ct.retryLane))throw Ct.retryLane=f,rs(r,f),yc(V,r,f),ql;_e.data==="$?"||ib(),a=li(r,a,o)}else _e.data==="$?"?(a.flags|=192,a.child=r.child,a=null):(r=Ct.treeContext,br=Bc(_e.nextSibling),tr=a,Kn=!0,Ml=null,Vr=!1,r!==null&&(fa[Ta++]=$r,fa[Ta++]=Pa,fa[Ta++]=Ja,$r=r.id,Pa=r.overflow,Ja=a),a=kt(a,f.children),a.flags|=4096);return a}return p?(za(),p=f.fallback,_e=a.mode,Ct=r.child,ci=Ct.sibling,f=ra(Ct,{mode:"hidden",children:f.children}),f.subtreeFlags=Ct.subtreeFlags&65011712,ci!==null?p=ra(ci,p):(p=wl(p,_e,o,null),p.flags|=2),p.return=a,f.return=a,f.sibling=p,a.child=f,f=p,p=a.child,_e=r.child.memoizedState,_e===null?_e=Xt(o):(Ct=_e.cachePool,Ct!==null?(ci=Yr._currentValue,Ct=Ct.parent!==ci?{parent:ci,pool:ci}:Ct):Ct=qo(),_e={baseLanes:_e.baseLanes|o,cachePool:Ct}),p.memoizedState=_e,p.childLanes=Ht(r,V,o),a.memoizedState=ti,f):(or(a),o=r.child,r=o.sibling,o=ra(o,{mode:"visible",children:f.children}),o.return=a,o.sibling=null,r!==null&&(V=a.deletions,V===null?(a.deletions=[r],a.flags|=16):V.push(r)),a.child=o,a.memoizedState=null,o)}function kt(r,a){return a=st({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function st(r,a){return r=Cr(22,r,null,a),r.lanes=0,r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function li(r,a,o){return on(a,r.child,null,o),r=kt(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function _i(r,a,o){r.lanes|=a;var f=r.alternate;f!==null&&(f.lanes|=a),Cs(r.return,a,o)}function Ai(r,a,o,f,p){var v=r.memoizedState;v===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:o,tailMode:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=o,v.tailMode=p)}function Cn(r,a,o){var f=a.pendingProps,p=f.revealOrder,v=f.tail;if(ri(r,a,f.children,o),f=Hr.current,(f&2)!==0)f=f&1|2,a.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&_i(r,o,a);else if(r.tag===19)_i(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}f&=1}switch($(Hr,f),p){case"forwards":for(o=a.child,p=null;o!==null;)r=o.alternate,r!==null&&jr(r)===null&&(p=o),o=o.sibling;o=p,o===null?(p=a.child,a.child=null):(p=o.sibling,o.sibling=null),Ai(a,!1,p,o,v);break;case"backwards":for(o=null,p=a.child,a.child=null;p!==null;){if(r=p.alternate,r!==null&&jr(r)===null){a.child=p;break}r=p.sibling,p.sibling=o,o=p,p=r}Ai(a,!0,o,null,v);break;case"together":Ai(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function hn(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),ef|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(ha(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(n(153));if(a.child!==null){for(r=a.child,o=ra(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=ra(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function cn(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&zs(r)))}function kn(r,a,o){switch(a.tag){case 3:we(a,a.stateNode.containerInfo),Oa(a,Yr,r.memoizedState.cache),ks();break;case 27:case 5:G(a);break;case 4:we(a,a.stateNode.containerInfo);break;case 10:Oa(a,a.type,a.memoizedProps.value);break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(or(a),a.flags|=128,null):(o&a.child.childLanes)!==0?dt(r,a,o):(or(a),r=hn(r,a,o),r!==null?r.sibling:null);or(a);break;case 19:var p=(r.flags&128)!==0;if(f=(o&a.childLanes)!==0,f||(ha(r,a,o,!1),f=(o&a.childLanes)!==0),p){if(f)return Cn(r,a,o);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),$(Hr,Hr.current),f)break;return null;case 22:case 23:return a.lanes=0,pa(r,a,o);case 24:Oa(a,Yr,r.memoizedState.cache)}return hn(r,a,o)}function bn(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)We=!0;else{if(!cn(r,o)&&(a.flags&128)===0)return We=!1,kn(r,a,o);We=(r.flags&131072)!==0}else We=!1,Kn&&(a.flags&1048576)!==0&&ua(a,Ea,a.index);switch(a.lanes=0,a.tag){case 16:e:{r=a.pendingProps;var f=a.elementType,p=f._init;if(f=p(f._payload),a.type=f,typeof f=="function")Ka(f)?(r=Ga(f,r),a.tag=1,a=fi(null,a,f,r,o)):(a.tag=0,a=Ze(null,a,f,r,o));else{if(f!=null){if(p=f.$$typeof,p===I){a.tag=11,a=oi(null,a,f,r,o);break e}else if(p===Y){a.tag=14,a=_n(null,a,f,r,o);break e}}throw a=O(f)||f,Error(n(306,a,""))}}return a;case 0:return Ze(r,a,a.type,a.pendingProps,o);case 1:return f=a.type,p=Ga(f,a.pendingProps),fi(r,a,f,p,o);case 3:e:{if(we(a,a.stateNode.containerInfo),r===null)throw Error(n(387));f=a.pendingProps;var v=a.memoizedState;p=v.element,Gd(r,a),Ec(a,f,null,o);var V=a.memoizedState;if(f=V.cache,Oa(a,Yr,f),f!==v.cache&&El(a,[Yr],o,!0),Po(),f=V.element,v.isDehydrated)if(v={element:f,isDehydrated:!1,cache:V.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=ai(r,a,f,o);break e}else if(f!==p){p=na(Error(n(424)),a),Vl(p),a=ai(r,a,f,o);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(br=Bc(r.firstChild),tr=a,Kn=!0,Ml=null,Vr=!0,o=In(a,null,f,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(ks(),f===p){a=hn(r,a,o);break e}ri(r,a,f,o)}a=a.child}return a;case 26:return Ie(r,a),r===null?(o=x1(a.type,null,a.pendingProps,null))?a.memoizedState=o:Kn||(o=a.type,r=a.pendingProps,f=lp(te.current).createElement(o),f[Te]=a,f[ze]=r,vo(f,o,r),Oe(f),a.stateNode=f):a.memoizedState=x1(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return G(a),r===null&&Kn&&(f=a.stateNode=_1(a.type,a.pendingProps,te.current),tr=a,Vr=!0,p=br,af(a.type)?(vb=p,br=Bc(f.firstChild)):br=p),ri(r,a,a.pendingProps.children,o),Ie(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Kn&&((p=f=br)&&(f=b2(f,a.type,a.pendingProps,Vr),f!==null?(a.stateNode=f,tr=a,br=Bc(f.firstChild),Vr=!1,p=!0):p=!1),p||Ua(a)),G(a),p=a.type,v=a.pendingProps,V=r!==null?r.memoizedProps:null,f=v.children,bb(p,v)?f=null:V!==null&&bb(p,V)&&(a.flags|=32),a.memoizedState!==null&&(p=Cf(r,a,yh,null,null,o),Wh._currentValue=p),Ie(r,a),ri(r,a,f,o),a.child;case 6:return r===null&&Kn&&((r=o=br)&&(o=g2(o,a.pendingProps,Vr),o!==null?(a.stateNode=o,tr=a,br=null,r=!0):r=!1),r||Ua(a)),null;case 13:return dt(r,a,o);case 4:return we(a,a.stateNode.containerInfo),f=a.pendingProps,r===null?a.child=on(a,null,f,o):ri(r,a,f,o),a.child;case 11:return oi(r,a,a.type,a.pendingProps,o);case 7:return ri(r,a,a.pendingProps,o),a.child;case 8:return ri(r,a,a.pendingProps.children,o),a.child;case 12:return ri(r,a,a.pendingProps.children,o),a.child;case 10:return f=a.pendingProps,Oa(a,a.type,f.value),ri(r,a,f.children,o),a.child;case 9:return p=a.type._context,f=a.pendingProps.children,jl(a),p=Wr(p),f=f(p),a.flags|=1,ri(r,a,f,o),a.child;case 14:return _n(r,a,a.type,a.pendingProps,o);case 15:return ur(r,a,a.type,a.pendingProps,o);case 19:return Cn(r,a,o);case 31:return f=a.pendingProps,o=a.mode,f={mode:f.mode,children:f.children},r===null?(o=st(f,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=ra(r.child,f),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return pa(r,a,o);case 24:return jl(a),f=Wr(Yr),r===null?(p=bo(),p===null&&(p=nl,v=ko(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=o),p=v),a.memoizedState={parent:f,cache:p},fc(a),Oa(a,Yr,p)):((r.lanes&o)!==0&&(Gd(r,a),Ec(a,null,null,o),Po()),p=r.memoizedState,v=a.memoizedState,p.parent!==f?(p={parent:f,cache:f},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),Oa(a,Yr,f)):(f=v.cache,Oa(a,Yr,f),f!==p.cache&&El(a,[Yr],o,!0))),ri(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(n(156,a.tag))}function An(r){r.flags|=4}function mn(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!T1(a)){if(a=Vi.current,a!==null&&((Pr&4194048)===Pr?qn!==null:(Pr&62914560)!==Pr&&(Pr&536870912)===0||a!==qn))throw Zo=Yo,Ac;r.flags|=8192}}function pn(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?tt():536870912,r.lanes|=a,gu|=a)}function gn(r,a){if(!Kn)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function vn(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,f=0;if(a)for(var p=r.child;p!==null;)o|=p.lanes|p.childLanes,f|=p.subtreeFlags&65011712,f|=p.flags&65011712,p.return=r,p=p.sibling;else for(p=r.child;p!==null;)o|=p.lanes|p.childLanes,f|=p.subtreeFlags,f|=p.flags,p.return=r,p=p.sibling;return r.subtreeFlags|=f,r.childLanes=o,a}function Ia(r,a,o){var f=a.pendingProps;switch(Ts(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(a),null;case 1:return vn(a),null;case 3:return o=a.stateNode,f=null,r!==null&&(f=r.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),el(Yr),Se(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(Os(a)?An(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,mo())),vn(a),null;case 26:return o=a.memoizedState,r===null?(An(a),o!==null?(vn(a),mn(a,o)):(vn(a),a.flags&=-16777217)):o?o!==r.memoizedState?(An(a),vn(a),mn(a,o)):(vn(a),a.flags&=-16777217):(r.memoizedProps!==f&&An(a),vn(a),a.flags&=-16777217),null;case 27:de(a),o=te.current;var p=a.type;if(r!==null&&a.stateNode!=null)r.memoizedProps!==f&&An(a);else{if(!f){if(a.stateNode===null)throw Error(n(166));return vn(a),null}r=q.current,Os(a)?uo(a):(r=_1(p,f,o),a.stateNode=r,An(a))}return vn(a),null;case 5:if(de(a),o=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==f&&An(a);else{if(!f){if(a.stateNode===null)throw Error(n(166));return vn(a),null}if(r=q.current,Os(a))uo(a);else{switch(p=lp(te.current),r){case 1:r=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=p.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof f.is=="string"?p.createElement("select",{is:f.is}):p.createElement("select"),f.multiple?r.multiple=!0:f.size&&(r.size=f.size);break;default:r=typeof f.is=="string"?p.createElement(o,{is:f.is}):p.createElement(o)}}r[Te]=a,r[ze]=f;e:for(p=a.child;p!==null;){if(p.tag===5||p.tag===6)r.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===a)break e;for(;p.sibling===null;){if(p.return===null||p.return===a)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a.stateNode=r;e:switch(vo(r,o,f),o){case"button":case"input":case"select":case"textarea":r=!!f.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&An(a)}}return vn(a),a.flags&=-16777217,null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==f&&An(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(n(166));if(r=te.current,Os(a)){if(r=a.stateNode,o=a.memoizedProps,f=null,p=tr,p!==null)switch(p.tag){case 27:case 5:f=p.memoizedProps}r[Te]=a,r=!!(r.nodeValue===o||f!==null&&f.suppressHydrationWarning===!0||f1(r.nodeValue,o)),r||Ua(a)}else r=lp(r).createTextNode(f),r[Te]=a,a.stateNode=r}return vn(a),null;case 13:if(f=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(p=Os(a),f!==null&&f.dehydrated!==null){if(r===null){if(!p)throw Error(n(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(n(317));p[Te]=a}else ks(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vn(a),p=!1}else p=mo(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(lr(a),a):(lr(a),null)}if(lr(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=f!==null,r=r!==null&&r.memoizedState!==null,o){f=a.child,p=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(p=f.alternate.memoizedState.cachePool.pool);var v=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==p&&(f.flags|=2048)}return o!==r&&o&&(a.child.flags|=8192),pn(a,a.updateQueue),vn(a),null;case 4:return Se(),r===null&&fb(a.stateNode.containerInfo),vn(a),null;case 10:return el(a.type),vn(a),null;case 19:if(R(Hr),p=a.memoizedState,p===null)return vn(a),null;if(f=(a.flags&128)!==0,v=p.rendering,v===null)if(f)gn(p,!1);else{if(Yl!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(v=jr(r),v!==null){for(a.flags|=128,gn(p,!1),r=v.updateQueue,a.updateQueue=r,pn(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)Bs(o,r),o=o.sibling;return $(Hr,Hr.current&1|2),a.child}r=r.sibling}p.tail!==null&&Fe()>Zm&&(a.flags|=128,f=!0,gn(p,!1),a.lanes=4194304)}else{if(!f)if(r=jr(v),r!==null){if(a.flags|=128,f=!0,r=r.updateQueue,a.updateQueue=r,pn(a,r),gn(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Kn)return vn(a),null}else 2*Fe()-p.renderingStartTime>Zm&&o!==536870912&&(a.flags|=128,f=!0,gn(p,!1),a.lanes=4194304);p.isBackwards?(v.sibling=a.child,a.child=v):(r=p.last,r!==null?r.sibling=v:a.child=v,p.last=v)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=Fe(),a.sibling=null,r=Hr.current,$(Hr,f?r&1|2:r&1),a):(vn(a),null);case 22:case 23:return lr(a),_h(),f=a.memoizedState!==null,r!==null?r.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?(o&536870912)!==0&&(a.flags&128)===0&&(vn(a),a.subtreeFlags&6&&(a.flags|=8192)):vn(a),o=a.updateQueue,o!==null&&pn(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==o&&(a.flags|=2048),r!==null&&R(Co),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),el(Yr),vn(a),null;case 25:return null;case 30:return null}throw Error(n(156,a.tag))}function Io(r,a){switch(Ts(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return el(Yr),Se(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return de(a),null;case 13:if(lr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(n(340));ks()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return R(Hr),null;case 4:return Se(),null;case 10:return el(a.type),null;case 22:case 23:return lr(a),_h(),r!==null&&R(Co),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return el(Yr),null;case 25:return null;default:return null}}function Tc(r,a){switch(Ts(a),a.tag){case 3:el(Yr),Se();break;case 26:case 27:case 5:de(a);break;case 4:Se();break;case 13:lr(a);break;case 19:R(Hr);break;case 10:el(a.type);break;case 22:case 23:lr(a),_h(),r!==null&&R(Co);break;case 24:el(Yr)}}function Jo(r,a){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var p=f.next;o=p;do{if((o.tag&r)===r){f=void 0;var v=o.create,V=o.inst;f=v(),V.destroy=f}o=o.next}while(o!==p)}}catch(_e){Va(a,a.return,_e)}}function _o(r,a,o){try{var f=a.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var v=p.next;f=v;do{if((f.tag&r)===r){var V=f.inst,_e=V.destroy;if(_e!==void 0){V.destroy=void 0,p=a;var Ct=o,ci=_e;try{ci()}catch(ki){Va(p,Ct,ki)}}}f=f.next}while(f!==v)}}catch(ki){Va(a,a.return,ki)}}function Uo(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{Of(a,o)}catch(f){Va(r,r.return,f)}}}function Zd(r,a,o){o.props=Ga(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(f){Va(r,a,f)}}function Lh(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var f=r.stateNode;break;case 30:f=r.stateNode;break;default:f=r.stateNode}typeof o=="function"?r.refCleanup=o(f):o.current=f}}catch(p){Va(r,a,p)}}function nd(r,a){var o=r.ref,f=r.refCleanup;if(o!==null)if(typeof f=="function")try{f()}catch(p){Va(r,a,p)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Va(r,a,p)}else o.current=null}function w_(r){var a=r.type,o=r.memoizedProps,f=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&f.focus();break e;case"img":o.src?f.src=o.src:o.srcSet&&(f.srcset=o.srcSet)}}catch(p){Va(r,r.return,p)}}function P0(r,a,o){try{var f=r.stateNode;f2(f,r.type,o,a),f[ze]=a}catch(p){Va(r,r.return,p)}}function S_(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&af(r.type)||r.tag===4}function U0(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||S_(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&af(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function G0(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=ap));else if(f!==4&&(f===27&&af(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(G0(r,a,o),r=r.sibling;r!==null;)G0(r,a,o),r=r.sibling}function Ym(r,a,o){var f=r.tag;if(f===5||f===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(f!==4&&(f===27&&af(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Ym(r,a,o),r=r.sibling;r!==null;)Ym(r,a,o),r=r.sibling}function A_(r){var a=r.stateNode,o=r.memoizedProps;try{for(var f=r.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);vo(a,f,o),a[Te]=r,a[ze]=o}catch(v){Va(r,r.return,v)}}var wd=!1,ss=!1,V0=!1,E_=typeof WeakSet=="function"?WeakSet:Set,io=null;function Ww(r,a){if(r=r.containerInfo,mb=up,r=Jl(r),ws(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var f=o.getSelection&&o.getSelection();if(f&&f.rangeCount!==0){o=f.anchorNode;var p=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var V=0,_e=-1,Ct=-1,ci=0,ki=0,Bi=r,pi=null;t:for(;;){for(var bi;Bi!==o||p!==0&&Bi.nodeType!==3||(_e=V+p),Bi!==v||f!==0&&Bi.nodeType!==3||(Ct=V+f),Bi.nodeType===3&&(V+=Bi.nodeValue.length),(bi=Bi.firstChild)!==null;)pi=Bi,Bi=bi;for(;;){if(Bi===r)break t;if(pi===o&&++ci===p&&(_e=V),pi===v&&++ki===f&&(Ct=V),(bi=Bi.nextSibling)!==null)break;Bi=pi,pi=Bi.parentNode}Bi=bi}o=_e===-1||Ct===-1?null:{start:_e,end:Ct}}else o=null}o=o||{start:0,end:0}}else o=null;for(pb={focusedElem:r,selectionRange:o},up=!1,io=a;io!==null;)if(a=io,r=a.child,(a.subtreeFlags&1024)!==0&&r!==null)r.return=a,io=r;else for(;io!==null;){switch(a=io,v=a.alternate,r=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&v!==null){r=void 0,o=a,p=v.memoizedProps,v=v.memoizedState,f=o.stateNode;try{var cr=Ga(o.type,p,o.elementType===o.type);r=f.getSnapshotBeforeUpdate(cr,v),f.__reactInternalSnapshotBeforeUpdate=r}catch(nr){Va(o,o.return,nr)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)_b(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":_b(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(n(163))}if(r=a.sibling,r!==null){r.return=a.return,io=r;break}io=a.return}}function T_(r,a,o){var f=o.flags;switch(o.tag){case 0:case 11:case 15:Qd(r,o),f&4&&Jo(5,o);break;case 1:if(Qd(r,o),f&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(V){Va(o,o.return,V)}else{var p=Ga(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(p,a,r.__reactInternalSnapshotBeforeUpdate)}catch(V){Va(o,o.return,V)}}f&64&&Uo(o),f&512&&Lh(o,o.return);break;case 3:if(Qd(r,o),f&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{Of(r,a)}catch(V){Va(o,o.return,V)}}break;case 27:a===null&&f&4&&A_(o);case 26:case 5:Qd(r,o),a===null&&f&4&&w_(o),f&512&&Lh(o,o.return);break;case 12:Qd(r,o);break;case 13:Qd(r,o),f&4&&C_(r,o),f&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=e2.bind(null,o),_2(r,o))));break;case 22:if(f=o.memoizedState!==null||wd,!f){a=a!==null&&a.memoizedState!==null||ss,p=wd;var v=ss;wd=f,(ss=a)&&!v?Kd(r,o,(o.subtreeFlags&8772)!==0):Qd(r,o),wd=p,ss=v}break;case 30:break;default:Qd(r,o)}}function O_(r){var a=r.alternate;a!==null&&(r.alternate=null,O_(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&ve(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Cl=null,ec=!1;function Sd(r,a,o){for(o=o.child;o!==null;)k_(r,a,o),o=o.sibling}function k_(r,a,o){if(ne&&typeof ne.onCommitFiberUnmount=="function")try{ne.onCommitFiberUnmount(He,o)}catch{}switch(o.tag){case 26:ss||nd(o,a),Sd(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ss||nd(o,a);var f=Cl,p=ec;af(o.type)&&(Cl=o.stateNode,ec=!1),Sd(r,a,o),Ph(o.stateNode),Cl=f,ec=p;break;case 5:ss||nd(o,a);case 6:if(f=Cl,p=ec,Cl=null,Sd(r,a,o),Cl=f,ec=p,Cl!==null)if(ec)try{(Cl.nodeType===9?Cl.body:Cl.nodeName==="HTML"?Cl.ownerDocument.body:Cl).removeChild(o.stateNode)}catch(v){Va(o,a,v)}else try{Cl.removeChild(o.stateNode)}catch(v){Va(o,a,v)}break;case 18:Cl!==null&&(ec?(r=Cl,b1(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Xh(r)):b1(Cl,o.stateNode));break;case 4:f=Cl,p=ec,Cl=o.stateNode.containerInfo,ec=!0,Sd(r,a,o),Cl=f,ec=p;break;case 0:case 11:case 14:case 15:ss||_o(2,o,a),ss||_o(4,o,a),Sd(r,a,o);break;case 1:ss||(nd(o,a),f=o.stateNode,typeof f.componentWillUnmount=="function"&&Zd(o,a,f)),Sd(r,a,o);break;case 21:Sd(r,a,o);break;case 22:ss=(f=ss)||o.memoizedState!==null,Sd(r,a,o),ss=f;break;default:Sd(r,a,o)}}function C_(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Xh(r)}catch(o){Va(a,a.return,o)}}function jw(r){switch(r.tag){case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new E_),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new E_),a;default:throw Error(n(435,r.tag))}}function W0(r,a){var o=jw(r);a.forEach(function(f){var p=t2.bind(null,r,f);o.has(f)||(o.add(f),f.then(p,p))})}function pc(r,a){var o=a.deletions;if(o!==null)for(var f=0;f<o.length;f++){var p=o[f],v=r,V=a,_e=V;e:for(;_e!==null;){switch(_e.tag){case 27:if(af(_e.type)){Cl=_e.stateNode,ec=!1;break e}break;case 5:Cl=_e.stateNode,ec=!1;break e;case 3:case 4:Cl=_e.stateNode.containerInfo,ec=!0;break e}_e=_e.return}if(Cl===null)throw Error(n(160));k_(v,V,p),Cl=null,ec=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)z_(a,r),a=a.sibling}var $c=null;function z_(r,a){var o=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:pc(a,r),bc(r),f&4&&(_o(3,r,r.return),Jo(3,r),_o(5,r,r.return));break;case 1:pc(a,r),bc(r),f&512&&(ss||o===null||nd(o,o.return)),f&64&&wd&&(r=r.updateQueue,r!==null&&(f=r.callbacks,f!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?f:o.concat(f))));break;case 26:var p=$c;if(pc(a,r),bc(r),f&512&&(ss||o===null||nd(o,o.return)),f&4){var v=o!==null?o.memoizedState:null;if(f=r.memoizedState,o===null)if(f===null)if(r.stateNode===null){e:{f=r.type,o=r.memoizedProps,p=p.ownerDocument||p;t:switch(f){case"title":v=p.getElementsByTagName("title")[0],(!v||v[ct]||v[Te]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(f),p.head.insertBefore(v,p.querySelector("head > title"))),vo(v,f,o),v[Te]=r,Oe(v),f=v;break e;case"link":var V=A1("link","href",p).get(f+(o.href||""));if(V){for(var _e=0;_e<V.length;_e++)if(v=V[_e],v.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&v.getAttribute("rel")===(o.rel==null?null:o.rel)&&v.getAttribute("title")===(o.title==null?null:o.title)&&v.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){V.splice(_e,1);break t}}v=p.createElement(f),vo(v,f,o),p.head.appendChild(v);break;case"meta":if(V=A1("meta","content",p).get(f+(o.content||""))){for(_e=0;_e<V.length;_e++)if(v=V[_e],v.getAttribute("content")===(o.content==null?null:""+o.content)&&v.getAttribute("name")===(o.name==null?null:o.name)&&v.getAttribute("property")===(o.property==null?null:o.property)&&v.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&v.getAttribute("charset")===(o.charSet==null?null:o.charSet)){V.splice(_e,1);break t}}v=p.createElement(f),vo(v,f,o),p.head.appendChild(v);break;default:throw Error(n(468,f))}v[Te]=r,Oe(v),f=v}r.stateNode=f}else E1(p,r.type,r.stateNode);else r.stateNode=S1(p,f,r.memoizedProps);else v!==f?(v===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):v.count--,f===null?E1(p,r.type,r.stateNode):S1(p,f,r.memoizedProps)):f===null&&r.stateNode!==null&&P0(r,r.memoizedProps,o.memoizedProps)}break;case 27:pc(a,r),bc(r),f&512&&(ss||o===null||nd(o,o.return)),o!==null&&f&4&&P0(r,r.memoizedProps,o.memoizedProps);break;case 5:if(pc(a,r),bc(r),f&512&&(ss||o===null||nd(o,o.return)),r.flags&32){p=r.stateNode;try{Pt(p,"")}catch(bi){Va(r,r.return,bi)}}f&4&&r.stateNode!=null&&(p=r.memoizedProps,P0(r,p,o!==null?o.memoizedProps:p)),f&1024&&(V0=!0);break;case 6:if(pc(a,r),bc(r),f&4){if(r.stateNode===null)throw Error(n(162));f=r.memoizedProps,o=r.stateNode;try{o.nodeValue=f}catch(bi){Va(r,r.return,bi)}}break;case 3:if(cp=null,p=$c,$c=sp(a.containerInfo),pc(a,r),$c=p,bc(r),f&4&&o!==null&&o.memoizedState.isDehydrated)try{Xh(a.containerInfo)}catch(bi){Va(r,r.return,bi)}V0&&(V0=!1,I_(r));break;case 4:f=$c,$c=sp(r.stateNode.containerInfo),pc(a,r),bc(r),$c=f;break;case 12:pc(a,r),bc(r);break;case 13:pc(a,r),bc(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Q0=Fe()),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,W0(r,f)));break;case 22:p=r.memoizedState!==null;var Ct=o!==null&&o.memoizedState!==null,ci=wd,ki=ss;if(wd=ci||p,ss=ki||Ct,pc(a,r),ss=ki,wd=ci,bc(r),f&8192)e:for(a=r.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(o===null||Ct||wd||ss||Ff(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){Ct=o=a;try{if(v=Ct.stateNode,p)V=v.style,typeof V.setProperty=="function"?V.setProperty("display","none","important"):V.display="none";else{_e=Ct.stateNode;var Bi=Ct.memoizedProps.style,pi=Bi!=null&&Bi.hasOwnProperty("display")?Bi.display:null;_e.style.display=pi==null||typeof pi=="boolean"?"":(""+pi).trim()}}catch(bi){Va(Ct,Ct.return,bi)}}}else if(a.tag===6){if(o===null){Ct=a;try{Ct.stateNode.nodeValue=p?"":Ct.memoizedProps}catch(bi){Va(Ct,Ct.return,bi)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=r.updateQueue,f!==null&&(o=f.retryQueue,o!==null&&(f.retryQueue=null,W0(r,o))));break;case 19:pc(a,r),bc(r),f&4&&(f=r.updateQueue,f!==null&&(r.updateQueue=null,W0(r,f)));break;case 30:break;case 21:break;default:pc(a,r),bc(r)}}function bc(r){var a=r.flags;if(a&2){try{for(var o,f=r.return;f!==null;){if(S_(f)){o=f;break}f=f.return}if(o==null)throw Error(n(160));switch(o.tag){case 27:var p=o.stateNode,v=U0(r);Ym(r,v,p);break;case 5:var V=o.stateNode;o.flags&32&&(Pt(V,""),o.flags&=-33);var _e=U0(r);Ym(r,_e,V);break;case 3:case 4:var Ct=o.stateNode.containerInfo,ci=U0(r);G0(r,ci,Ct);break;default:throw Error(n(161))}}catch(ki){Va(r,r.return,ki)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function I_(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;I_(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Qd(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)T_(r,a.alternate,a),a=a.sibling}function Ff(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:_o(4,a,a.return),Ff(a);break;case 1:nd(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Zd(a,a.return,o),Ff(a);break;case 27:Ph(a.stateNode);case 26:case 5:nd(a,a.return),Ff(a);break;case 22:a.memoizedState===null&&Ff(a);break;case 30:Ff(a);break;default:Ff(a)}r=r.sibling}}function Kd(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,p=r,v=a,V=v.flags;switch(v.tag){case 0:case 11:case 15:Kd(p,v,o),Jo(4,v);break;case 1:if(Kd(p,v,o),f=v,p=f.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(ci){Va(f,f.return,ci)}if(f=v,p=f.updateQueue,p!==null){var _e=f.stateNode;try{var Ct=p.shared.hiddenCallbacks;if(Ct!==null)for(p.shared.hiddenCallbacks=null,p=0;p<Ct.length;p++)Tf(Ct[p],_e)}catch(ci){Va(f,f.return,ci)}}o&&V&64&&Uo(v),Lh(v,v.return);break;case 27:A_(v);case 26:case 5:Kd(p,v,o),o&&f===null&&V&4&&w_(v),Lh(v,v.return);break;case 12:Kd(p,v,o);break;case 13:Kd(p,v,o),o&&V&4&&C_(p,v);break;case 22:v.memoizedState===null&&Kd(p,v,o),Lh(v,v.return);break;case 30:break;default:Kd(p,v,o)}a=a.sibling}}function j0(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Rc(o))}function q0(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Rc(r))}function rd(r,a,o,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)L_(r,a,o,f),a=a.sibling}function L_(r,a,o,f){var p=a.flags;switch(a.tag){case 0:case 11:case 15:rd(r,a,o,f),p&2048&&Jo(9,a);break;case 1:rd(r,a,o,f);break;case 3:rd(r,a,o,f),p&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Rc(r)));break;case 12:if(p&2048){rd(r,a,o,f),r=a.stateNode;try{var v=a.memoizedProps,V=v.id,_e=v.onPostCommit;typeof _e=="function"&&_e(V,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(Ct){Va(a,a.return,Ct)}}else rd(r,a,o,f);break;case 13:rd(r,a,o,f);break;case 23:break;case 22:v=a.stateNode,V=a.alternate,a.memoizedState!==null?v._visibility&2?rd(r,a,o,f):Rh(r,a):v._visibility&2?rd(r,a,o,f):(v._visibility|=2,mu(r,a,o,f,(a.subtreeFlags&10256)!==0)),p&2048&&j0(V,a);break;case 24:rd(r,a,o,f),p&2048&&q0(a.alternate,a);break;default:rd(r,a,o,f)}}function mu(r,a,o,f,p){for(p=p&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var v=r,V=a,_e=o,Ct=f,ci=V.flags;switch(V.tag){case 0:case 11:case 15:mu(v,V,_e,Ct,p),Jo(8,V);break;case 23:break;case 22:var ki=V.stateNode;V.memoizedState!==null?ki._visibility&2?mu(v,V,_e,Ct,p):Rh(v,V):(ki._visibility|=2,mu(v,V,_e,Ct,p)),p&&ci&2048&&j0(V.alternate,V);break;case 24:mu(v,V,_e,Ct,p),p&&ci&2048&&q0(V.alternate,V);break;default:mu(v,V,_e,Ct,p)}a=a.sibling}}function Rh(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,f=a,p=f.flags;switch(f.tag){case 22:Rh(o,f),p&2048&&j0(f.alternate,f);break;case 24:Rh(o,f),p&2048&&q0(f.alternate,f);break;default:Rh(o,f)}a=a.sibling}}var Fh=8192;function pu(r){if(r.subtreeFlags&Fh)for(r=r.child;r!==null;)R_(r),r=r.sibling}function R_(r){switch(r.tag){case 26:pu(r),r.flags&Fh&&r.memoizedState!==null&&I2($c,r.memoizedState,r.memoizedProps);break;case 5:pu(r);break;case 3:case 4:var a=$c;$c=sp(r.stateNode.containerInfo),pu(r),$c=a;break;case 22:r.memoizedState===null&&(a=r.alternate,a!==null&&a.memoizedState!==null?(a=Fh,Fh=16777216,pu(r),Fh=a):pu(r));break;default:pu(r)}}function F_(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Mh(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];io=f,D_(f,r)}F_(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)M_(r),r=r.sibling}function M_(r){switch(r.tag){case 0:case 11:case 15:Mh(r),r.flags&2048&&_o(9,r,r.return);break;case 3:Mh(r);break;case 12:Mh(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Xm(r)):Mh(r);break;default:Mh(r)}}function Xm(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var f=a[o];io=f,D_(f,r)}F_(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:_o(8,a,a.return),Xm(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Xm(a));break;default:Xm(a)}r=r.sibling}}function D_(r,a){for(;io!==null;){var o=io;switch(o.tag){case 0:case 11:case 15:_o(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var f=o.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:Rc(o.memoizedState.cache)}if(f=o.child,f!==null)f.return=o,io=f;else e:for(o=r;io!==null;){f=io;var p=f.sibling,v=f.return;if(O_(f),f===o){io=null;break e}if(p!==null){p.return=v,io=p;break e}io=v}}}var qw={getCacheForType:function(r){var a=Wr(Yr),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o}},Yw=typeof WeakMap=="function"?WeakMap:Map,ba=0,nl=null,Lr=null,Pr=0,ga=0,gc=null,Jd=!1,bu=!1,Y0=!1,Ad=0,Yl=0,ef=0,Mf=0,X0=0,Oc=0,gu=0,Dh=null,tc=null,Z0=!1,Q0=0,Zm=1/0,Qm=null,tf=null,yo=0,nf=null,_u=null,yu=0,K0=0,J0=null,N_=null,Nh=0,eb=null;function _c(){if((ba&2)!==0&&Pr!==0)return Pr&-Pr;if(C.T!==null){var r=wc;return r!==0?r:sb()}return Me()}function $_(){Oc===0&&(Oc=(Pr&536870912)===0||Kn?Ke():536870912);var r=Vi.current;return r!==null&&(r.flags|=32),Oc}function yc(r,a,o){(r===nl&&(ga===2||ga===9)||r.cancelPendingCommit!==null)&&(vu(r,0),rf(r,Pr,Oc,!1)),je(r,o),((ba&2)===0||r!==nl)&&(r===nl&&((ba&2)===0&&(Mf|=o),Yl===4&&rf(r,Pr,Oc,!1)),ad(r))}function B_(r,a,o){if((ba&6)!==0)throw Error(n(327));var f=!o&&(a&124)===0&&(a&r.expiredLanes)===0||At(r,a),p=f?Qw(r,a):nb(r,a,!0),v=f;do{if(p===0){bu&&!f&&rf(r,a,0,!1);break}else{if(o=r.current.alternate,v&&!Xw(o)){p=nb(r,a,!1),v=!1;continue}if(p===2){if(v=a,r.errorRecoveryDisabledLanes&v)var V=0;else V=r.pendingLanes&-536870913,V=V!==0?V:V&536870912?536870912:0;if(V!==0){a=V;e:{var _e=r;p=Dh;var Ct=_e.current.memoizedState.isDehydrated;if(Ct&&(vu(_e,V).flags|=256),V=nb(_e,V,!1),V!==2){if(Y0&&!Ct){_e.errorRecoveryDisabledLanes|=v,Mf|=v,p=4;break e}v=tc,tc=p,v!==null&&(tc===null?tc=v:tc.push.apply(tc,v))}p=V}if(v=!1,p!==2)continue}}if(p===1){vu(r,0),rf(r,a,0,!0);break}e:{switch(f=r,v=p,v){case 0:case 1:throw Error(n(345));case 4:if((a&4194048)!==a)break;case 6:rf(f,a,Oc,!Jd);break e;case 2:tc=null;break;case 3:case 5:break;default:throw Error(n(329))}if((a&62914560)===a&&(p=Q0+300-Fe(),10<p)){if(rf(f,a,Oc,!Jd),ft(f,0,!0)!==0)break e;f.timeoutHandle=m1(H_.bind(null,f,o,tc,Qm,Z0,a,Oc,Mf,gu,Jd,v,2,-0,0),p);break e}H_(f,o,tc,Qm,Z0,a,Oc,Mf,gu,Jd,v,0,-0,0)}}break}while(!0);ad(r)}function H_(r,a,o,f,p,v,V,_e,Ct,ci,ki,Bi,pi,bi){if(r.timeoutHandle=-1,Bi=a.subtreeFlags,(Bi&8192||(Bi&16785408)===16785408)&&(Vh={stylesheets:null,count:0,unsuspend:z2},R_(a),Bi=L2(),Bi!==null)){r.cancelPendingCommit=Bi(q_.bind(null,r,a,v,o,f,p,V,_e,Ct,ki,1,pi,bi)),rf(r,v,V,!ci);return}q_(r,a,v,o,f,p,V,_e,Ct)}function Xw(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var f=0;f<o.length;f++){var p=o[f],v=p.getSnapshot;p=p.value;try{if(!zr(v(),p))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function rf(r,a,o,f){a&=~X0,a&=~Mf,r.suspendedLanes|=a,r.pingedLanes&=~a,f&&(r.warmLanes|=a),f=r.expirationTimes;for(var p=a;0<p;){var v=31-B(p),V=1<<v;f[v]=-1,p&=~V}o!==0&&Ne(r,o,a)}function Km(){return(ba&6)===0?($h(0),!1):!0}function tb(){if(Lr!==null){if(ga===0)var r=Lr.return;else r=Lr,Al=Wl=null,Lf(r),vi=null,ln=0,r=Lr;for(;r!==null;)Tc(r.alternate,r),r=r.return;Lr=null}}function vu(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,h2(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),tb(),nl=r,Lr=o=ra(r.current,null),Pr=a,ga=0,gc=null,Jd=!1,bu=At(r,a),Y0=!1,gu=Oc=X0=Mf=ef=Yl=0,tc=Dh=null,Z0=!1,(a&8)!==0&&(a|=a&32);var f=r.entangledLanes;if(f!==0)for(r=r.entanglements,f&=a;0<f;){var p=31-B(f),v=1<<p;a|=r[p],f&=~v}return Ad=a,fr(),o}function P_(r,a){Sr=null,C.H=an,a===Ho||a===Dl?(a=Kc(),ga=3):a===Ac?(a=Kc(),ga=4):ga=a===ql?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,gc=a,Lr===null&&(Yl=1,kl(r,na(a,r.current)))}function U_(){var r=C.H;return C.H=an,r===null?an:r}function G_(){var r=C.A;return C.A=qw,r}function ib(){Yl=4,Jd||(Pr&4194048)!==Pr&&Vi.current!==null||(bu=!0),(ef&134217727)===0&&(Mf&134217727)===0||nl===null||rf(nl,Pr,Oc,!1)}function nb(r,a,o){var f=ba;ba|=2;var p=U_(),v=G_();(nl!==r||Pr!==a)&&(Qm=null,vu(r,a)),a=!1;var V=Yl;e:do try{if(ga!==0&&Lr!==null){var _e=Lr,Ct=gc;switch(ga){case 8:tb(),V=6;break e;case 3:case 2:case 9:case 6:Vi.current===null&&(a=!0);var ci=ga;if(ga=0,gc=null,xu(r,_e,Ct,ci),o&&bu){V=0;break e}break;default:ci=ga,ga=0,gc=null,xu(r,_e,Ct,ci)}}Zw(),V=Yl;break}catch(ki){P_(r,ki)}while(!0);return a&&r.shellSuspendCounter++,Al=Wl=null,ba=f,C.H=p,C.A=v,Lr===null&&(nl=null,Pr=0,fr()),V}function Zw(){for(;Lr!==null;)V_(Lr)}function Qw(r,a){var o=ba;ba|=2;var f=U_(),p=G_();nl!==r||Pr!==a?(Qm=null,Zm=Fe()+500,vu(r,a)):bu=At(r,a);e:do try{if(ga!==0&&Lr!==null){a=Lr;var v=gc;t:switch(ga){case 1:ga=0,gc=null,xu(r,a,v,1);break;case 2:case 9:if(dc(v)){ga=0,gc=null,W_(a);break}a=function(){ga!==2&&ga!==9||nl!==r||(ga=7),ad(r)},v.then(a,a);break e;case 3:ga=7;break e;case 4:ga=5;break e;case 7:dc(v)?(ga=0,gc=null,W_(a)):(ga=0,gc=null,xu(r,a,v,7));break;case 5:var V=null;switch(Lr.tag){case 26:V=Lr.memoizedState;case 5:case 27:var _e=Lr;if(!V||T1(V)){ga=0,gc=null;var Ct=_e.sibling;if(Ct!==null)Lr=Ct;else{var ci=_e.return;ci!==null?(Lr=ci,Jm(ci)):Lr=null}break t}}ga=0,gc=null,xu(r,a,v,5);break;case 6:ga=0,gc=null,xu(r,a,v,6);break;case 8:tb(),Yl=6;break e;default:throw Error(n(462))}}Kw();break}catch(ki){P_(r,ki)}while(!0);return Al=Wl=null,C.H=f,C.A=p,ba=o,Lr!==null?0:(nl=null,Pr=0,fr(),Yl)}function Kw(){for(;Lr!==null&&!Rt();)V_(Lr)}function V_(r){var a=bn(r.alternate,r,Ad);r.memoizedProps=r.pendingProps,a===null?Jm(r):Lr=a}function W_(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=Et(o,a,a.pendingProps,a.type,void 0,Pr);break;case 11:a=Et(o,a,a.pendingProps,a.type.render,a.ref,Pr);break;case 5:Lf(a);default:Tc(o,a),a=Lr=Bs(a,Ad),a=bn(o,a,Ad)}r.memoizedProps=r.pendingProps,a===null?Jm(r):Lr=a}function xu(r,a,o,f){Al=Wl=null,Lf(a),vi=null,ln=0;var p=a.return;try{if(ma(r,p,a,o,Pr)){Yl=1,kl(r,na(o,r.current)),Lr=null;return}}catch(v){if(p!==null)throw Lr=p,v;Yl=1,kl(r,na(o,r.current)),Lr=null;return}a.flags&32768?(Kn||f===1?r=!0:bu||(Pr&536870912)!==0?r=!1:(Jd=r=!0,(f===2||f===9||f===3||f===6)&&(f=Vi.current,f!==null&&f.tag===13&&(f.flags|=16384))),j_(a,r)):Jm(a)}function Jm(r){var a=r;do{if((a.flags&32768)!==0){j_(a,Jd);return}r=a.return;var o=Ia(a.alternate,a,Ad);if(o!==null){Lr=o;return}if(a=a.sibling,a!==null){Lr=a;return}Lr=a=r}while(a!==null);Yl===0&&(Yl=5)}function j_(r,a){do{var o=Io(r.alternate,r);if(o!==null){o.flags&=32767,Lr=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){Lr=r;return}Lr=r=o}while(r!==null);Yl=6,Lr=null}function q_(r,a,o,f,p,v,V,_e,Ct){r.cancelPendingCommit=null;do ep();while(yo!==0);if((ba&6)!==0)throw Error(n(327));if(a!==null){if(a===r.current)throw Error(n(177));if(v=a.lanes|a.childLanes,v|=dl,ot(r,o,v,V,_e,Ct),r===nl&&(Lr=nl=null,Pr=0),_u=a,nf=r,yu=o,K0=v,J0=p,N_=f,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,i2(ie,function(){return K_(),null})):(r.callbackNode=null,r.callbackPriority=0),f=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||f){f=C.T,C.T=null,p=ee.p,ee.p=2,V=ba,ba|=4;try{Ww(r,a,o)}finally{ba=V,ee.p=p,C.T=f}}yo=1,Y_(),X_(),Z_()}}function Y_(){if(yo===1){yo=0;var r=nf,a=_u,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=C.T,C.T=null;var f=ee.p;ee.p=2;var p=ba;ba|=4;try{z_(a,r);var v=pb,V=Jl(r.containerInfo),_e=v.focusedElem,Ct=v.selectionRange;if(V!==_e&&_e&&_e.ownerDocument&&er(_e.ownerDocument.documentElement,_e)){if(Ct!==null&&ws(_e)){var ci=Ct.start,ki=Ct.end;if(ki===void 0&&(ki=ci),"selectionStart"in _e)_e.selectionStart=ci,_e.selectionEnd=Math.min(ki,_e.value.length);else{var Bi=_e.ownerDocument||document,pi=Bi&&Bi.defaultView||window;if(pi.getSelection){var bi=pi.getSelection(),cr=_e.textContent.length,nr=Math.min(Ct.start,cr),Ra=Ct.end===void 0?nr:Math.min(Ct.end,cr);!bi.extend&&nr>Ra&&(V=Ra,Ra=nr,nr=V);var ni=Gl(_e,nr),jt=Gl(_e,Ra);if(ni&&jt&&(bi.rangeCount!==1||bi.anchorNode!==ni.node||bi.anchorOffset!==ni.offset||bi.focusNode!==jt.node||bi.focusOffset!==jt.offset)){var si=Bi.createRange();si.setStart(ni.node,ni.offset),bi.removeAllRanges(),nr>Ra?(bi.addRange(si),bi.extend(jt.node,jt.offset)):(si.setEnd(jt.node,jt.offset),bi.addRange(si))}}}}for(Bi=[],bi=_e;bi=bi.parentNode;)bi.nodeType===1&&Bi.push({element:bi,left:bi.scrollLeft,top:bi.scrollTop});for(typeof _e.focus=="function"&&_e.focus(),_e=0;_e<Bi.length;_e++){var Fi=Bi[_e];Fi.element.scrollLeft=Fi.left,Fi.element.scrollTop=Fi.top}}up=!!mb,pb=mb=null}finally{ba=p,ee.p=f,C.T=o}}r.current=a,yo=2}}function X_(){if(yo===2){yo=0;var r=nf,a=_u,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=C.T,C.T=null;var f=ee.p;ee.p=2;var p=ba;ba|=4;try{T_(r,a.alternate,a)}finally{ba=p,ee.p=f,C.T=o}}yo=3}}function Z_(){if(yo===4||yo===3){yo=0,Ve();var r=nf,a=_u,o=yu,f=N_;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?yo=5:(yo=0,_u=nf=null,Q_(r,r.pendingLanes));var p=r.pendingLanes;if(p===0&&(tf=null),Ue(o),a=a.stateNode,ne&&typeof ne.onCommitFiberRoot=="function")try{ne.onCommitFiberRoot(He,a,void 0,(a.current.flags&128)===128)}catch{}if(f!==null){a=C.T,p=ee.p,ee.p=2,C.T=null;try{for(var v=r.onRecoverableError,V=0;V<f.length;V++){var _e=f[V];v(_e.value,{componentStack:_e.stack})}}finally{C.T=a,ee.p=p}}(yu&3)!==0&&ep(),ad(r),p=r.pendingLanes,(o&4194090)!==0&&(p&42)!==0?r===eb?Nh++:(Nh=0,eb=r):Nh=0,$h(0)}}function Q_(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Rc(a)))}function ep(r){return Y_(),X_(),Z_(),K_()}function K_(){if(yo!==5)return!1;var r=nf,a=K0;K0=0;var o=Ue(yu),f=C.T,p=ee.p;try{ee.p=32>o?32:o,C.T=null,o=J0,J0=null;var v=nf,V=yu;if(yo=0,_u=nf=null,yu=0,(ba&6)!==0)throw Error(n(331));var _e=ba;if(ba|=4,M_(v.current),L_(v,v.current,V,o),ba=_e,$h(0,!1),ne&&typeof ne.onPostCommitFiberRoot=="function")try{ne.onPostCommitFiberRoot(He,v)}catch{}return!0}finally{ee.p=p,C.T=f,Q_(r,a)}}function J_(r,a,o){a=na(o,a),a=Gs(r.stateNode,a,2),r=Qo(r,a,2),r!==null&&(je(r,2),ad(r))}function Va(r,a,o){if(r.tag===3)J_(r,r,o);else for(;a!==null;){if(a.tag===3){J_(a,r,o);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(tf===null||!tf.has(f))){r=na(o,r),o=ir(2),f=Qo(a,o,2),f!==null&&(Ar(o,f,a,r),je(f,2),ad(f));break}}a=a.return}}function rb(r,a,o){var f=r.pingCache;if(f===null){f=r.pingCache=new Yw;var p=new Set;f.set(a,p)}else p=f.get(a),p===void 0&&(p=new Set,f.set(a,p));p.has(o)||(Y0=!0,p.add(o),r=Jw.bind(null,r,a,o),a.then(r,r))}function Jw(r,a,o){var f=r.pingCache;f!==null&&f.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,nl===r&&(Pr&o)===o&&(Yl===4||Yl===3&&(Pr&62914560)===Pr&&300>Fe()-Q0?(ba&2)===0&&vu(r,0):X0|=o,gu===Pr&&(gu=0)),ad(r)}function e1(r,a){a===0&&(a=tt()),r=rs(r,a),r!==null&&(je(r,a),ad(r))}function e2(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),e1(r,o)}function t2(r,a){var o=0;switch(r.tag){case 13:var f=r.stateNode,p=r.memoizedState;p!==null&&(o=p.retryLane);break;case 19:f=r.stateNode;break;case 22:f=r.stateNode._retryCache;break;default:throw Error(n(314))}f!==null&&f.delete(a),e1(r,o)}function i2(r,a){return W(r,a)}var tp=null,wu=null,ab=!1,ip=!1,lb=!1,Df=0;function ad(r){r!==wu&&r.next===null&&(wu===null?tp=wu=r:wu=wu.next=r),ip=!0,ab||(ab=!0,r2())}function $h(r,a){if(!lb&&ip){lb=!0;do for(var o=!1,f=tp;f!==null;){if(r!==0){var p=f.pendingLanes;if(p===0)var v=0;else{var V=f.suspendedLanes,_e=f.pingedLanes;v=(1<<31-B(42|r)+1)-1,v&=p&~(V&~_e),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,r1(f,v))}else v=Pr,v=ft(f,f===nl?v:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),(v&3)===0||At(f,v)||(o=!0,r1(f,v));f=f.next}while(o);lb=!1}}function n2(){t1()}function t1(){ip=ab=!1;var r=0;Df!==0&&(u2()&&(r=Df),Df=0);for(var a=Fe(),o=null,f=tp;f!==null;){var p=f.next,v=i1(f,a);v===0?(f.next=null,o===null?tp=p:o.next=p,p===null&&(wu=o)):(o=f,(r!==0||(v&3)!==0)&&(ip=!0)),f=p}$h(r)}function i1(r,a){for(var o=r.suspendedLanes,f=r.pingedLanes,p=r.expirationTimes,v=r.pendingLanes&-62914561;0<v;){var V=31-B(v),_e=1<<V,Ct=p[V];Ct===-1?((_e&o)===0||(_e&f)!==0)&&(p[V]=lt(_e,a)):Ct<=a&&(r.expiredLanes|=_e),v&=~_e}if(a=nl,o=Pr,o=ft(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f=r.callbackNode,o===0||r===a&&(ga===2||ga===9)||r.cancelPendingCommit!==null)return f!==null&&f!==null&&re(f),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||At(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(f!==null&&re(f),Ue(o)){case 2:case 8:o=Z;break;case 32:o=ie;break;case 268435456:o=Ge;break;default:o=ie}return f=n1.bind(null,r),o=W(o,f),r.callbackPriority=a,r.callbackNode=o,a}return f!==null&&f!==null&&re(f),r.callbackPriority=2,r.callbackNode=null,2}function n1(r,a){if(yo!==0&&yo!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(ep()&&r.callbackNode!==o)return null;var f=Pr;return f=ft(r,r===nl?f:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),f===0?null:(B_(r,f,a),i1(r,Fe()),r.callbackNode!=null&&r.callbackNode===o?n1.bind(null,r):null)}function r1(r,a){if(ep())return null;B_(r,a,!0)}function r2(){m2(function(){(ba&6)!==0?W(L,n2):t1()})}function sb(){return Df===0&&(Df=Ke()),Df}function a1(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:qt(""+r)}function l1(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function a2(r,a,o,f,p){if(a==="submit"&&o&&o.stateNode===p){var v=a1((p[ze]||null).action),V=f.submitter;V&&(a=(a=V[ze]||null)?a1(a.formAction):V.getAttribute("formAction"),a!==null&&(v=a,V=null));var _e=new xn("action","action",null,f,p);r.push({event:_e,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Df!==0){var Ct=V?l1(p,V):new FormData(p);gi(o,{pending:!0,data:Ct,method:p.method,action:v},null,Ct)}}else typeof v=="function"&&(_e.preventDefault(),Ct=V?l1(p,V):new FormData(p),gi(o,{pending:!0,data:Ct,method:p.method,action:v},v,Ct))},currentTarget:p}]})}}for(var ob=0;ob<fo.length;ob++){var cb=fo[ob],l2=cb.toLowerCase(),s2=cb[0].toUpperCase()+cb.slice(1);Ha(l2,"on"+s2)}Ha(co,"onAnimationEnd"),Ha(Xs,"onAnimationIteration"),Ha(Ss,"onAnimationStart"),Ha("dblclick","onDoubleClick"),Ha("focusin","onFocus"),Ha("focusout","onBlur"),Ha(xr,"onTransitionRun"),Ha(Zs,"onTransitionStart"),Ha(Eo,"onTransitionCancel"),Ha(Qs,"onTransitionEnd"),Qe("onMouseEnter",["mouseout","mouseover"]),Qe("onMouseLeave",["mouseout","mouseover"]),Qe("onPointerEnter",["pointerout","pointerover"]),Qe("onPointerLeave",["pointerout","pointerover"]),Ce("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ce("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ce("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ce("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ce("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ce("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),o2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bh));function s1(r,a){a=(a&4)!==0;for(var o=0;o<r.length;o++){var f=r[o],p=f.event;f=f.listeners;e:{var v=void 0;if(a)for(var V=f.length-1;0<=V;V--){var _e=f[V],Ct=_e.instance,ci=_e.currentTarget;if(_e=_e.listener,Ct!==v&&p.isPropagationStopped())break e;v=_e,p.currentTarget=ci;try{v(p)}catch(ki){Ol(ki)}p.currentTarget=null,v=Ct}else for(V=0;V<f.length;V++){if(_e=f[V],Ct=_e.instance,ci=_e.currentTarget,_e=_e.listener,Ct!==v&&p.isPropagationStopped())break e;v=_e,p.currentTarget=ci;try{v(p)}catch(ki){Ol(ki)}p.currentTarget=null,v=Ct}}}}function Rr(r,a){var o=a[ut];o===void 0&&(o=a[ut]=new Set);var f=r+"__bubble";o.has(f)||(o1(a,r,2,!1),o.add(f))}function db(r,a,o){var f=0;a&&(f|=4),o1(o,r,f,a)}var np="_reactListening"+Math.random().toString(36).slice(2);function fb(r){if(!r[np]){r[np]=!0,Ye.forEach(function(o){o!=="selectionchange"&&(o2.has(o)||db(o,!1,r),db(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[np]||(a[np]=!0,db("selectionchange",!1,a))}}function o1(r,a,o,f){switch(L1(a)){case 2:var p=M2;break;case 8:p=D2;break;default:p=Eb}o=p.bind(null,a,o,r),p=void 0,!Ci||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),f?p!==void 0?r.addEventListener(a,o,{capture:!0,passive:p}):r.addEventListener(a,o,!0):p!==void 0?r.addEventListener(a,o,{passive:p}):r.addEventListener(a,o,!1)}function ub(r,a,o,f,p){var v=f;if((a&1)===0&&(a&2)===0&&f!==null)e:for(;;){if(f===null)return;var V=f.tag;if(V===3||V===4){var _e=f.stateNode.containerInfo;if(_e===p)break;if(V===4)for(V=f.return;V!==null;){var Ct=V.tag;if((Ct===3||Ct===4)&&V.stateNode.containerInfo===p)return;V=V.return}for(;_e!==null;){if(V=D(_e),V===null)return;if(Ct=V.tag,Ct===5||Ct===6||Ct===26||Ct===27){f=v=V;continue e}_e=_e.parentNode}}f=f.return}Li(function(){var ci=v,ki=Mi(o),Bi=[];e:{var pi=cl.get(r);if(pi!==void 0){var bi=xn,cr=r;switch(r){case"keypress":if(qi(o)===0)break e;case"keydown":case"keyup":bi=ya;break;case"focusin":cr="focus",bi=Sn;break;case"focusout":cr="blur",bi=Sn;break;case"beforeblur":case"afterblur":bi=Sn;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":bi=Nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":bi=Zn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":bi=xa;break;case co:case Xs:case Ss:bi=Hn;break;case Qs:bi=ms;break;case"scroll":case"scrollend":bi=fn;break;case"wheel":bi=ps;break;case"copy":case"cut":case"paste":bi=vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":bi=al;break;case"toggle":case"beforetoggle":bi=gs}var nr=(a&4)!==0,Ra=!nr&&(r==="scroll"||r==="scrollend"),ni=nr?pi!==null?pi+"Capture":null:pi;nr=[];for(var jt=ci,si;jt!==null;){var Fi=jt;if(si=Fi.stateNode,Fi=Fi.tag,Fi!==5&&Fi!==26&&Fi!==27||si===null||ni===null||(Fi=Ei(jt,ni),Fi!=null&&nr.push(Hh(jt,Fi,si))),Ra)break;jt=jt.return}0<nr.length&&(pi=new bi(pi,cr,null,o,ki),Bi.push({event:pi,listeners:nr}))}}if((a&7)===0){e:{if(pi=r==="mouseover"||r==="pointerover",bi=r==="mouseout"||r==="pointerout",pi&&o!==zi&&(cr=o.relatedTarget||o.fromElement)&&(D(cr)||cr[Xe]))break e;if((bi||pi)&&(pi=ki.window===ki?ki:(pi=ki.ownerDocument)?pi.defaultView||pi.parentWindow:window,bi?(cr=o.relatedTarget||o.toElement,bi=ci,cr=cr?D(cr):null,cr!==null&&(Ra=s(cr),nr=cr.tag,cr!==Ra||nr!==5&&nr!==27&&nr!==6)&&(cr=null)):(bi=null,cr=ci),bi!==cr)){if(nr=Nn,Fi="onMouseLeave",ni="onMouseEnter",jt="mouse",(r==="pointerout"||r==="pointerover")&&(nr=al,Fi="onPointerLeave",ni="onPointerEnter",jt="pointer"),Ra=bi==null?pi:xe(bi),si=cr==null?pi:xe(cr),pi=new nr(Fi,jt+"leave",bi,o,ki),pi.target=Ra,pi.relatedTarget=si,Fi=null,D(ki)===ci&&(nr=new nr(ni,jt+"enter",cr,o,ki),nr.target=si,nr.relatedTarget=Ra,Fi=nr),Ra=Fi,bi&&cr)t:{for(nr=bi,ni=cr,jt=0,si=nr;si;si=Su(si))jt++;for(si=0,Fi=ni;Fi;Fi=Su(Fi))si++;for(;0<jt-si;)nr=Su(nr),jt--;for(;0<si-jt;)ni=Su(ni),si--;for(;jt--;){if(nr===ni||ni!==null&&nr===ni.alternate)break t;nr=Su(nr),ni=Su(ni)}nr=null}else nr=null;bi!==null&&c1(Bi,pi,bi,nr,!1),cr!==null&&Ra!==null&&c1(Bi,Ra,cr,nr,!0)}}e:{if(pi=ci?xe(ci):window,bi=pi.nodeName&&pi.nodeName.toLowerCase(),bi==="select"||bi==="input"&&pi.type==="file")var Mn=Ms;else if($n(pi))if(oo)Mn=gl;else{Mn=Ba;var Ir=vs}else bi=pi.nodeName,!bi||bi.toLowerCase()!=="input"||pi.type!=="checkbox"&&pi.type!=="radio"?ci&&vt(ci.elementType)&&(Mn=Ms):Mn=Ao;if(Mn&&(Mn=Mn(r,ci))){_s(Bi,Mn,o,ki);break e}Ir&&Ir(r,pi,ci),r==="focusout"&&ci&&pi.type==="number"&&ci.memoizedProps.value!=null&&St(pi,"number",pi.value)}switch(Ir=ci?xe(ci):window,r){case"focusin":($n(Ir)||Ir.contentEditable==="true")&&(ia=Ir,ts=ci,ol=null);break;case"focusout":ol=ts=ia=null;break;case"mousedown":Gr=!0;break;case"contextmenu":case"mouseup":case"dragend":Gr=!1,is(Bi,o,ki);break;case"selectionchange":if(es)break;case"keydown":case"keyup":is(Bi,o,ki)}var Vn;if(gr)e:{switch(r){case"compositionstart":var ar="onCompositionStart";break e;case"compositionend":ar="onCompositionEnd";break e;case"compositionupdate":ar="onCompositionUpdate";break e}ar=void 0}else Br?Rl(r,o)&&(ar="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(ar="onCompositionStart");ar&&(bl&&o.locale!=="ko"&&(Br||ar!=="onCompositionStart"?ar==="onCompositionEnd"&&Br&&(Vn=Wi()):($i=ki,Gi="value"in $i?$i.value:$i.textContent,Br=!0)),Ir=rp(ci,ar),0<Ir.length&&(ar=new rr(ar,r,null,o,ki),Bi.push({event:ar,listeners:Ir}),Vn?ar.data=Vn:(Vn=sl(o),Vn!==null&&(ar.data=Vn)))),(Vn=$a?Sa(r,o):so(r,o))&&(ar=rp(ci,"onBeforeInput"),0<ar.length&&(Ir=new rr("onBeforeInput","beforeinput",null,o,ki),Bi.push({event:Ir,listeners:ar}),Ir.data=Vn)),a2(Bi,r,ci,o,ki)}s1(Bi,a)})}function Hh(r,a,o){return{instance:r,listener:a,currentTarget:o}}function rp(r,a){for(var o=a+"Capture",f=[];r!==null;){var p=r,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=Ei(r,o),p!=null&&f.unshift(Hh(r,p,v)),p=Ei(r,a),p!=null&&f.push(Hh(r,p,v))),r.tag===3)return f;r=r.return}return[]}function Su(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function c1(r,a,o,f,p){for(var v=a._reactName,V=[];o!==null&&o!==f;){var _e=o,Ct=_e.alternate,ci=_e.stateNode;if(_e=_e.tag,Ct!==null&&Ct===f)break;_e!==5&&_e!==26&&_e!==27||ci===null||(Ct=ci,p?(ci=Ei(o,v),ci!=null&&V.unshift(Hh(o,ci,Ct))):p||(ci=Ei(o,v),ci!=null&&V.push(Hh(o,ci,Ct)))),o=o.return}V.length!==0&&r.push({event:a,listeners:V})}var c2=/\r\n?/g,d2=/\u0000|\uFFFD/g;function d1(r){return(typeof r=="string"?r:""+r).replace(c2,`
49
+ `).replace(d2,"")}function f1(r,a){return a=d1(a),d1(r)===a}function ap(){}function La(r,a,o,f,p,v){switch(o){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||Pt(r,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&Pt(r,""+f);break;case"className":_t(r,"class",f);break;case"tabIndex":_t(r,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":_t(r,o,f);break;case"style":pt(r,f,v);break;case"data":if(a!=="object"){_t(r,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=qt(""+f),r.setAttribute(o,f);break;case"action":case"formAction":if(typeof f=="function"){r.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(o==="formAction"?(a!=="input"&&La(r,a,"name",p.name,p,null),La(r,a,"formEncType",p.formEncType,p,null),La(r,a,"formMethod",p.formMethod,p,null),La(r,a,"formTarget",p.formTarget,p,null)):(La(r,a,"encType",p.encType,p,null),La(r,a,"method",p.method,p,null),La(r,a,"target",p.target,p,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){r.removeAttribute(o);break}f=qt(""+f),r.setAttribute(o,f);break;case"onClick":f!=null&&(r.onclick=ap);break;case"onScroll":f!=null&&Rr("scroll",r);break;case"onScrollEnd":f!=null&&Rr("scrollend",r);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(n(61));if(o=f.__html,o!=null){if(p.children!=null)throw Error(n(60));r.innerHTML=o}}break;case"multiple":r.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":r.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){r.removeAttribute("xlink:href");break}o=qt(""+f),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""+f):r.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":f===!0?r.setAttribute(o,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?r.setAttribute(o,f):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?r.setAttribute(o,f):r.removeAttribute(o);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?r.removeAttribute(o):r.setAttribute(o,f);break;case"popover":Rr("beforetoggle",r),Rr("toggle",r),Le(r,"popover",f);break;case"xlinkActuate":bt(r,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":bt(r,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":bt(r,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":bt(r,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":bt(r,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":bt(r,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":bt(r,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":bt(r,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":bt(r,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":Le(r,"is",f);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=It.get(o)||o,Le(r,o,f))}}function hb(r,a,o,f,p,v){switch(o){case"style":pt(r,f,v);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(n(61));if(o=f.__html,o!=null){if(p.children!=null)throw Error(n(60));r.innerHTML=o}}break;case"children":typeof f=="string"?Pt(r,f):(typeof f=="number"||typeof f=="bigint")&&Pt(r,""+f);break;case"onScroll":f!=null&&Rr("scroll",r);break;case"onScrollEnd":f!=null&&Rr("scrollend",r);break;case"onClick":f!=null&&(r.onclick=ap);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pe.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),a=o.slice(2,p?o.length-7:void 0),v=r[ze]||null,v=v!=null?v[o]:null,typeof v=="function"&&r.removeEventListener(a,v,p),typeof f=="function")){typeof v!="function"&&v!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,f,p);break e}o in r?r[o]=f:f===!0?r.setAttribute(o,""):Le(r,o,f)}}}function vo(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rr("error",r),Rr("load",r);var f=!1,p=!1,v;for(v in o)if(o.hasOwnProperty(v)){var V=o[v];if(V!=null)switch(v){case"src":f=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:La(r,a,v,V,o,null)}}p&&La(r,a,"srcSet",o.srcSet,o,null),f&&La(r,a,"src",o.src,o,null);return;case"input":Rr("invalid",r);var _e=v=V=p=null,Ct=null,ci=null;for(f in o)if(o.hasOwnProperty(f)){var ki=o[f];if(ki!=null)switch(f){case"name":p=ki;break;case"type":V=ki;break;case"checked":Ct=ki;break;case"defaultChecked":ci=ki;break;case"value":v=ki;break;case"defaultValue":_e=ki;break;case"children":case"dangerouslySetInnerHTML":if(ki!=null)throw Error(n(137,a));break;default:La(r,a,f,ki,o,null)}}Zt(r,v,_e,Ct,ci,V,p,!1),Jt(r);return;case"select":Rr("invalid",r),f=V=v=null;for(p in o)if(o.hasOwnProperty(p)&&(_e=o[p],_e!=null))switch(p){case"value":v=_e;break;case"defaultValue":V=_e;break;case"multiple":f=_e;default:La(r,a,p,_e,o,null)}a=v,o=V,r.multiple=!!f,a!=null?Vt(r,!!f,a,!1):o!=null&&Vt(r,!!f,o,!0);return;case"textarea":Rr("invalid",r),v=p=f=null;for(V in o)if(o.hasOwnProperty(V)&&(_e=o[V],_e!=null))switch(V){case"value":f=_e;break;case"defaultValue":p=_e;break;case"children":v=_e;break;case"dangerouslySetInnerHTML":if(_e!=null)throw Error(n(91));break;default:La(r,a,V,_e,o,null)}ii(r,f,p,v),Jt(r);return;case"option":for(Ct in o)if(o.hasOwnProperty(Ct)&&(f=o[Ct],f!=null))switch(Ct){case"selected":r.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:La(r,a,Ct,f,o,null)}return;case"dialog":Rr("beforetoggle",r),Rr("toggle",r),Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":Rr("load",r);break;case"video":case"audio":for(f=0;f<Bh.length;f++)Rr(Bh[f],r);break;case"image":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"embed":case"source":case"link":Rr("error",r),Rr("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ci in o)if(o.hasOwnProperty(ci)&&(f=o[ci],f!=null))switch(ci){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,a));default:La(r,a,ci,f,o,null)}return;default:if(vt(a)){for(ki in o)o.hasOwnProperty(ki)&&(f=o[ki],f!==void 0&&hb(r,a,ki,f,o,void 0));return}}for(_e in o)o.hasOwnProperty(_e)&&(f=o[_e],f!=null&&La(r,a,_e,f,o,null))}function f2(r,a,o,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,V=null,_e=null,Ct=null,ci=null,ki=null;for(bi in o){var Bi=o[bi];if(o.hasOwnProperty(bi)&&Bi!=null)switch(bi){case"checked":break;case"value":break;case"defaultValue":Ct=Bi;default:f.hasOwnProperty(bi)||La(r,a,bi,null,f,Bi)}}for(var pi in f){var bi=f[pi];if(Bi=o[pi],f.hasOwnProperty(pi)&&(bi!=null||Bi!=null))switch(pi){case"type":v=bi;break;case"name":p=bi;break;case"checked":ci=bi;break;case"defaultChecked":ki=bi;break;case"value":V=bi;break;case"defaultValue":_e=bi;break;case"children":case"dangerouslySetInnerHTML":if(bi!=null)throw Error(n(137,a));break;default:bi!==Bi&&La(r,a,pi,bi,f,Bi)}}Bt(r,V,_e,Ct,ci,ki,v,p);return;case"select":bi=V=_e=pi=null;for(v in o)if(Ct=o[v],o.hasOwnProperty(v)&&Ct!=null)switch(v){case"value":break;case"multiple":bi=Ct;default:f.hasOwnProperty(v)||La(r,a,v,null,f,Ct)}for(p in f)if(v=f[p],Ct=o[p],f.hasOwnProperty(p)&&(v!=null||Ct!=null))switch(p){case"value":pi=v;break;case"defaultValue":_e=v;break;case"multiple":V=v;default:v!==Ct&&La(r,a,p,v,f,Ct)}a=_e,o=V,f=bi,pi!=null?Vt(r,!!o,pi,!1):!!f!=!!o&&(a!=null?Vt(r,!!o,a,!0):Vt(r,!!o,o?[]:"",!1));return;case"textarea":bi=pi=null;for(_e in o)if(p=o[_e],o.hasOwnProperty(_e)&&p!=null&&!f.hasOwnProperty(_e))switch(_e){case"value":break;case"children":break;default:La(r,a,_e,null,f,p)}for(V in f)if(p=f[V],v=o[V],f.hasOwnProperty(V)&&(p!=null||v!=null))switch(V){case"value":pi=p;break;case"defaultValue":bi=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(n(91));break;default:p!==v&&La(r,a,V,p,f,v)}Dt(r,pi,bi);return;case"option":for(var cr in o)if(pi=o[cr],o.hasOwnProperty(cr)&&pi!=null&&!f.hasOwnProperty(cr))switch(cr){case"selected":r.selected=!1;break;default:La(r,a,cr,null,f,pi)}for(Ct in f)if(pi=f[Ct],bi=o[Ct],f.hasOwnProperty(Ct)&&pi!==bi&&(pi!=null||bi!=null))switch(Ct){case"selected":r.selected=pi&&typeof pi!="function"&&typeof pi!="symbol";break;default:La(r,a,Ct,pi,f,bi)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nr in o)pi=o[nr],o.hasOwnProperty(nr)&&pi!=null&&!f.hasOwnProperty(nr)&&La(r,a,nr,null,f,pi);for(ci in f)if(pi=f[ci],bi=o[ci],f.hasOwnProperty(ci)&&pi!==bi&&(pi!=null||bi!=null))switch(ci){case"children":case"dangerouslySetInnerHTML":if(pi!=null)throw Error(n(137,a));break;default:La(r,a,ci,pi,f,bi)}return;default:if(vt(a)){for(var Ra in o)pi=o[Ra],o.hasOwnProperty(Ra)&&pi!==void 0&&!f.hasOwnProperty(Ra)&&hb(r,a,Ra,void 0,f,pi);for(ki in f)pi=f[ki],bi=o[ki],!f.hasOwnProperty(ki)||pi===bi||pi===void 0&&bi===void 0||hb(r,a,ki,pi,f,bi);return}}for(var ni in o)pi=o[ni],o.hasOwnProperty(ni)&&pi!=null&&!f.hasOwnProperty(ni)&&La(r,a,ni,null,f,pi);for(Bi in f)pi=f[Bi],bi=o[Bi],!f.hasOwnProperty(Bi)||pi===bi||pi==null&&bi==null||La(r,a,Bi,pi,f,bi)}var mb=null,pb=null;function lp(r){return r.nodeType===9?r:r.ownerDocument}function u1(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function h1(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function bb(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var gb=null;function u2(){var r=window.event;return r&&r.type==="popstate"?r===gb?!1:(gb=r,!0):(gb=null,!1)}var m1=typeof setTimeout=="function"?setTimeout:void 0,h2=typeof clearTimeout=="function"?clearTimeout:void 0,p1=typeof Promise=="function"?Promise:void 0,m2=typeof queueMicrotask=="function"?queueMicrotask:typeof p1<"u"?function(r){return p1.resolve(null).then(r).catch(p2)}:m1;function p2(r){setTimeout(function(){throw r})}function af(r){return r==="head"}function b1(r,a){var o=a,f=0,p=0;do{var v=o.nextSibling;if(r.removeChild(o),v&&v.nodeType===8)if(o=v.data,o==="/$"){if(0<f&&8>f){o=f;var V=r.ownerDocument;if(o&1&&Ph(V.documentElement),o&2&&Ph(V.body),o&4)for(o=V.head,Ph(o),V=o.firstChild;V;){var _e=V.nextSibling,Ct=V.nodeName;V[ct]||Ct==="SCRIPT"||Ct==="STYLE"||Ct==="LINK"&&V.rel.toLowerCase()==="stylesheet"||o.removeChild(V),V=_e}}if(p===0){r.removeChild(v),Xh(a);return}p--}else o==="$"||o==="$?"||o==="$!"?p++:f=o.charCodeAt(0)-48;else f=0;o=v}while(o);Xh(a)}function _b(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":_b(o),ve(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function b2(r,a,o,f){for(;r.nodeType===1;){var p=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(f){if(!r[ct])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(v=r.getAttribute("rel"),v==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(v!==p.rel||r.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||r.getAttribute("title")!==(p.title==null?null:p.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(v=r.getAttribute("src"),(v!==(p.src==null?null:p.src)||r.getAttribute("type")!==(p.type==null?null:p.type)||r.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&r.getAttribute("name")===v)return r}else return r;if(r=Bc(r.nextSibling),r===null)break}return null}function g2(r,a,o){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=Bc(r.nextSibling),r===null))return null;return r}function yb(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState==="complete"}function _2(r,a){var o=r.ownerDocument;if(r.data!=="$?"||o.readyState==="complete")a();else{var f=function(){a(),o.removeEventListener("DOMContentLoaded",f)};o.addEventListener("DOMContentLoaded",f),r._reactRetry=f}}function Bc(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return r}var vb=null;function g1(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return r;a--}else o==="/$"&&a++}r=r.previousSibling}return null}function _1(r,a,o){switch(a=lp(o),r){case"html":if(r=a.documentElement,!r)throw Error(n(452));return r;case"head":if(r=a.head,!r)throw Error(n(453));return r;case"body":if(r=a.body,!r)throw Error(n(454));return r;default:throw Error(n(451))}}function Ph(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);ve(r)}var kc=new Map,y1=new Set;function sp(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Ed=ee.d;ee.d={f:y2,r:v2,D:x2,C:w2,L:S2,m:A2,X:T2,S:E2,M:O2};function y2(){var r=Ed.f(),a=Km();return r||a}function v2(r){var a=oe(r);a!==null&&a.tag===5&&a.type==="form"?Ki(a):Ed.r(r)}var Au=typeof document>"u"?null:document;function v1(r,a,o){var f=Au;if(f&&typeof a=="string"&&a){var p=Ot(a);p='link[rel="'+r+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),y1.has(p)||(y1.add(p),r={rel:r,crossOrigin:o,href:a},f.querySelector(p)===null&&(a=f.createElement("link"),vo(a,"link",r),Oe(a),f.head.appendChild(a)))}}function x2(r){Ed.D(r),v1("dns-prefetch",r,null)}function w2(r,a){Ed.C(r,a),v1("preconnect",r,a)}function S2(r,a,o){Ed.L(r,a,o);var f=Au;if(f&&r&&a){var p='link[rel="preload"][as="'+Ot(a)+'"]';a==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Ot(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Ot(o.imageSizes)+'"]')):p+='[href="'+Ot(r)+'"]';var v=p;switch(a){case"style":v=Eu(r);break;case"script":v=Tu(r)}kc.has(v)||(r=m({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),kc.set(v,r),f.querySelector(p)!==null||a==="style"&&f.querySelector(Uh(v))||a==="script"&&f.querySelector(Gh(v))||(a=f.createElement("link"),vo(a,"link",r),Oe(a),f.head.appendChild(a)))}}function A2(r,a){Ed.m(r,a);var o=Au;if(o&&r){var f=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+Ot(f)+'"][href="'+Ot(r)+'"]',v=p;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Tu(r)}if(!kc.has(v)&&(r=m({rel:"modulepreload",href:r},a),kc.set(v,r),o.querySelector(p)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Gh(v)))return}f=o.createElement("link"),vo(f,"link",r),Oe(f),o.head.appendChild(f)}}}function E2(r,a,o){Ed.S(r,a,o);var f=Au;if(f&&r){var p=ce(f).hoistableStyles,v=Eu(r);a=a||"default";var V=p.get(v);if(!V){var _e={loading:0,preload:null};if(V=f.querySelector(Uh(v)))_e.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":a},o),(o=kc.get(v))&&xb(r,o);var Ct=V=f.createElement("link");Oe(Ct),vo(Ct,"link",r),Ct._p=new Promise(function(ci,ki){Ct.onload=ci,Ct.onerror=ki}),Ct.addEventListener("load",function(){_e.loading|=1}),Ct.addEventListener("error",function(){_e.loading|=2}),_e.loading|=4,op(V,a,f)}V={type:"stylesheet",instance:V,count:1,state:_e},p.set(v,V)}}}function T2(r,a){Ed.X(r,a);var o=Au;if(o&&r){var f=ce(o).hoistableScripts,p=Tu(r),v=f.get(p);v||(v=o.querySelector(Gh(p)),v||(r=m({src:r,async:!0},a),(a=kc.get(p))&&wb(r,a),v=o.createElement("script"),Oe(v),vo(v,"link",r),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(p,v))}}function O2(r,a){Ed.M(r,a);var o=Au;if(o&&r){var f=ce(o).hoistableScripts,p=Tu(r),v=f.get(p);v||(v=o.querySelector(Gh(p)),v||(r=m({src:r,async:!0,type:"module"},a),(a=kc.get(p))&&wb(r,a),v=o.createElement("script"),Oe(v),vo(v,"link",r),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(p,v))}}function x1(r,a,o,f){var p=(p=te.current)?sp(p):null;if(!p)throw Error(n(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Eu(o.href),o=ce(p).hoistableStyles,f=o.get(a),f||(f={type:"style",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Eu(o.href);var v=ce(p).hoistableStyles,V=v.get(r);if(V||(p=p.ownerDocument||p,V={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(r,V),(v=p.querySelector(Uh(r)))&&!v._p&&(V.instance=v,V.state.loading=5),kc.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},kc.set(r,o),v||k2(p,r,o,V.state))),a&&f===null)throw Error(n(528,""));return V}if(a&&f!==null)throw Error(n(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Tu(o),o=ce(p).hoistableScripts,f=o.get(a),f||(f={type:"script",instance:null,count:0,state:null},o.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,r))}}function Eu(r){return'href="'+Ot(r)+'"'}function Uh(r){return'link[rel="stylesheet"]['+r+"]"}function w1(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function k2(r,a,o,f){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=r.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),vo(a,"link",o),Oe(a),r.head.appendChild(a))}function Tu(r){return'[src="'+Ot(r)+'"]'}function Gh(r){return"script[async]"+r}function S1(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var f=r.querySelector('style[data-href~="'+Ot(o.href)+'"]');if(f)return a.instance=f,Oe(f),f;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return f=(r.ownerDocument||r).createElement("style"),Oe(f),vo(f,"style",p),op(f,o.precedence,r),a.instance=f;case"stylesheet":p=Eu(o.href);var v=r.querySelector(Uh(p));if(v)return a.state.loading|=4,a.instance=v,Oe(v),v;f=w1(o),(p=kc.get(p))&&xb(f,p),v=(r.ownerDocument||r).createElement("link"),Oe(v);var V=v;return V._p=new Promise(function(_e,Ct){V.onload=_e,V.onerror=Ct}),vo(v,"link",f),a.state.loading|=4,op(v,o.precedence,r),a.instance=v;case"script":return v=Tu(o.src),(p=r.querySelector(Gh(v)))?(a.instance=p,Oe(p),p):(f=o,(p=kc.get(v))&&(f=m({},o),wb(f,p)),r=r.ownerDocument||r,p=r.createElement("script"),Oe(p),vo(p,"link",f),r.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(n(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(f=a.instance,a.state.loading|=4,op(f,o.precedence,r));return a.instance}function op(r,a,o){for(var f=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=f.length?f[f.length-1]:null,v=p,V=0;V<f.length;V++){var _e=f[V];if(_e.dataset.precedence===a)v=_e;else if(v!==p)break}v?v.parentNode.insertBefore(r,v.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function xb(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function wb(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var cp=null;function A1(r,a,o){if(cp===null){var f=new Map,p=cp=new Map;p.set(o,f)}else p=cp,f=p.get(o),f||(f=new Map,p.set(o,f));if(f.has(r))return f;for(f.set(r,null),o=o.getElementsByTagName(r),p=0;p<o.length;p++){var v=o[p];if(!(v[ct]||v[Te]||r==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var V=v.getAttribute(a)||"";V=r+V;var _e=f.get(V);_e?_e.push(v):f.set(V,[v])}}return f}function E1(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function C2(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function T1(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var Vh=null;function z2(){}function I2(r,a,o){if(Vh===null)throw Error(n(475));var f=Vh;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=Eu(o.href),v=r.querySelector(Uh(p));if(v){r=v._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(f.count++,f=dp.bind(f),r.then(f,f)),a.state.loading|=4,a.instance=v,Oe(v);return}v=r.ownerDocument||r,o=w1(o),(p=kc.get(p))&&xb(o,p),v=v.createElement("link"),Oe(v);var V=v;V._p=new Promise(function(_e,Ct){V.onload=_e,V.onerror=Ct}),vo(v,"link",o),a.instance=v}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(a,r),(r=a.state.preload)&&(a.state.loading&3)===0&&(f.count++,a=dp.bind(f),r.addEventListener("load",a),r.addEventListener("error",a))}}function L2(){if(Vh===null)throw Error(n(475));var r=Vh;return r.stylesheets&&r.count===0&&Sb(r,r.stylesheets),0<r.count?function(a){var o=setTimeout(function(){if(r.stylesheets&&Sb(r,r.stylesheets),r.unsuspend){var f=r.unsuspend;r.unsuspend=null,f()}},6e4);return r.unsuspend=a,function(){r.unsuspend=null,clearTimeout(o)}}:null}function dp(){if(this.count--,this.count===0){if(this.stylesheets)Sb(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var fp=null;function Sb(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,fp=new Map,a.forEach(R2,r),fp=null,dp.call(r))}function R2(r,a){if(!(a.state.loading&4)){var o=fp.get(r);if(o)var f=o.get(null);else{o=new Map,fp.set(r,o);for(var p=r.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var V=p[v];(V.nodeName==="LINK"||V.getAttribute("media")!=="not all")&&(o.set(V.dataset.precedence,V),f=V)}f&&o.set(null,f)}p=a.instance,V=p.getAttribute("data-precedence"),v=o.get(V)||f,v===f&&o.set(null,p),o.set(V,p),this.count++,f=dp.bind(this),p.addEventListener("load",f),p.addEventListener("error",f),v?v.parentNode.insertBefore(p,v.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(p,r.firstChild)),a.state.loading|=4}}var Wh={$$typeof:w,Provider:null,Consumer:null,_currentValue:Re,_currentValue2:Re,_threadCount:0};function F2(r,a,o,f,p,v,V,_e){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fe(0),this.hiddenUpdates=fe(null),this.identifierPrefix=f,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=V,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_e,this.incompleteTransitions=new Map}function O1(r,a,o,f,p,v,V,_e,Ct,ci,ki,Bi){return r=new F2(r,a,o,V,_e,Ct,ci,Bi),a=1,v===!0&&(a|=24),v=Cr(3,null,null,a),r.current=v,v.stateNode=r,a=ko(),a.refCount++,r.pooledCache=a,a.refCount++,v.memoizedState={element:f,isDehydrated:o,cache:a},fc(v),r}function k1(r){return r?(r=as,r):as}function C1(r,a,o,f,p,v){p=k1(p),f.context===null?f.context=p:f.pendingContext=p,f=uc(a),f.payload={element:o},v=v===void 0?null:v,v!==null&&(f.callback=v),o=Qo(r,f,a),o!==null&&(yc(o,r,a),Mc(o,r,a))}function z1(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function Ab(r,a){z1(r,a),(r=r.alternate)&&z1(r,a)}function I1(r){if(r.tag===13){var a=rs(r,67108864);a!==null&&yc(a,r,67108864),Ab(r,67108864)}}var up=!0;function M2(r,a,o,f){var p=C.T;C.T=null;var v=ee.p;try{ee.p=2,Eb(r,a,o,f)}finally{ee.p=v,C.T=p}}function D2(r,a,o,f){var p=C.T;C.T=null;var v=ee.p;try{ee.p=8,Eb(r,a,o,f)}finally{ee.p=v,C.T=p}}function Eb(r,a,o,f){if(up){var p=Tb(f);if(p===null)ub(r,a,f,hp,o),R1(r,f);else if($2(p,r,a,o,f))f.stopPropagation();else if(R1(r,f),a&4&&-1<N2.indexOf(r)){for(;p!==null;){var v=oe(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var V=Ee(v.pendingLanes);if(V!==0){var _e=v;for(_e.pendingLanes|=2,_e.entangledLanes|=2;V;){var Ct=1<<31-B(V);_e.entanglements[1]|=Ct,V&=~Ct}ad(v),(ba&6)===0&&(Zm=Fe()+500,$h(0))}}break;case 13:_e=rs(v,2),_e!==null&&yc(_e,v,2),Km(),Ab(v,2)}if(v=Tb(f),v===null&&ub(r,a,f,hp,o),v===p)break;p=v}p!==null&&f.stopPropagation()}else ub(r,a,f,null,o)}}function Tb(r){return r=Mi(r),Ob(r)}var hp=null;function Ob(r){if(hp=null,r=D(r),r!==null){var a=s(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=c(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return hp=r,null}function L1(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(he()){case L:return 2;case Z:return 8;case ie:case be:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var kb=!1,lf=null,sf=null,of=null,jh=new Map,qh=new Map,cf=[],N2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function R1(r,a){switch(r){case"focusin":case"focusout":lf=null;break;case"dragenter":case"dragleave":sf=null;break;case"mouseover":case"mouseout":of=null;break;case"pointerover":case"pointerout":jh.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":qh.delete(a.pointerId)}}function Yh(r,a,o,f,p,v){return r===null||r.nativeEvent!==v?(r={blockedOn:a,domEventName:o,eventSystemFlags:f,nativeEvent:v,targetContainers:[p]},a!==null&&(a=oe(a),a!==null&&I1(a)),r):(r.eventSystemFlags|=f,a=r.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),r)}function $2(r,a,o,f,p){switch(a){case"focusin":return lf=Yh(lf,r,a,o,f,p),!0;case"dragenter":return sf=Yh(sf,r,a,o,f,p),!0;case"mouseover":return of=Yh(of,r,a,o,f,p),!0;case"pointerover":var v=p.pointerId;return jh.set(v,Yh(jh.get(v)||null,r,a,o,f,p)),!0;case"gotpointercapture":return v=p.pointerId,qh.set(v,Yh(qh.get(v)||null,r,a,o,f,p)),!0}return!1}function F1(r){var a=D(r.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){r.blockedOn=a,Be(r.priority,function(){if(o.tag===13){var f=_c();f=ht(f);var p=rs(o,f);p!==null&&yc(p,o,f),Ab(o,f)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function mp(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=Tb(r.nativeEvent);if(o===null){o=r.nativeEvent;var f=new o.constructor(o.type,o);zi=f,o.target.dispatchEvent(f),zi=null}else return a=oe(o),a!==null&&I1(a),r.blockedOn=o,!1;a.shift()}return!0}function M1(r,a,o){mp(r)&&o.delete(a)}function B2(){kb=!1,lf!==null&&mp(lf)&&(lf=null),sf!==null&&mp(sf)&&(sf=null),of!==null&&mp(of)&&(of=null),jh.forEach(M1),qh.forEach(M1)}function pp(r,a){r.blockedOn===a&&(r.blockedOn=null,kb||(kb=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,B2)))}var bp=null;function D1(r){bp!==r&&(bp=r,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){bp===r&&(bp=null);for(var a=0;a<r.length;a+=3){var o=r[a],f=r[a+1],p=r[a+2];if(typeof f!="function"){if(Ob(f||o)===null)continue;break}var v=oe(o);v!==null&&(r.splice(a,3),a-=3,gi(v,{pending:!0,data:p,method:o.method,action:f},f,p))}}))}function Xh(r){function a(Ct){return pp(Ct,r)}lf!==null&&pp(lf,r),sf!==null&&pp(sf,r),of!==null&&pp(of,r),jh.forEach(a),qh.forEach(a);for(var o=0;o<cf.length;o++){var f=cf[o];f.blockedOn===r&&(f.blockedOn=null)}for(;0<cf.length&&(o=cf[0],o.blockedOn===null);)F1(o),o.blockedOn===null&&cf.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(f=0;f<o.length;f+=3){var p=o[f],v=o[f+1],V=p[ze]||null;if(typeof v=="function")V||D1(o);else if(V){var _e=null;if(v&&v.hasAttribute("formAction")){if(p=v,V=v[ze]||null)_e=V.formAction;else if(Ob(p)!==null)continue}else _e=V.action;typeof _e=="function"?o[f+1]=_e:(o.splice(f,3),f-=3),D1(o)}}}function Cb(r){this._internalRoot=r}gp.prototype.render=Cb.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(n(409));var o=a.current,f=_c();C1(o,f,r,a,null,null)},gp.prototype.unmount=Cb.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;C1(r.current,2,null,r,null,null),Km(),a[Xe]=null}};function gp(r){this._internalRoot=r}gp.prototype.unstable_scheduleHydration=function(r){if(r){var a=Me();r={blockedOn:null,target:r,priority:a};for(var o=0;o<cf.length&&a!==0&&a<cf[o].priority;o++);cf.splice(o,0,r),o===0&&F1(r)}};var N1=e.version;if(N1!=="19.1.0")throw Error(n(527,N1,"19.1.0"));ee.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=u(a),r=r!==null?h(r):null,r=r===null?null:r.stateNode,r};var H2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_p.isDisabled&&_p.supportsFiber)try{He=_p.inject(H2),ne=_p}catch{}}return Qh.createRoot=function(r,a){if(!l(r))throw Error(n(299));var o=!1,f="",p=Yn,v=zo,V=Xr,_e=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(V=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(_e=a.unstable_transitionCallbacks)),a=O1(r,1,!1,null,null,o,f,p,v,V,_e,null),r[Xe]=a.current,fb(r),new Cb(a)},Qh.hydrateRoot=function(r,a,o){if(!l(r))throw Error(n(299));var f=!1,p="",v=Yn,V=zo,_e=Xr,Ct=null,ci=null;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(V=o.onCaughtError),o.onRecoverableError!==void 0&&(_e=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(Ct=o.unstable_transitionCallbacks),o.formState!==void 0&&(ci=o.formState)),a=O1(r,1,!0,a,o??null,f,p,v,V,_e,Ct,ci),a.context=k1(null),o=a.current,f=_c(),f=ht(f),p=uc(f),p.callback=null,Qo(o,p,f),o=f,a.current.lanes=o,je(a,o),ad(a),r[Xe]=a.current,fb(r),new gp(a)},Qh.version="19.1.0",Qh}var q1;function Z2(){if(q1)return Lb.exports;q1=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),Lb.exports=X2(),Lb.exports}var Q2=Z2();const K2=Im(Q2),Qx=Qr.createContext(null);function J2({children:i,nodes:e,links:t}){const[n,l]=Qr.useState();return $d.createElement(Qx.Provider,{value:{cosmograph:n,nodes:e,links:t,initCosmograph:s=>{l(s)}}},i)}function E0(){const i=Qr.useContext(Qx);return i||console.warn("useCosmograph must be used under CosmographProvider"),i}var fg="http://www.w3.org/1999/xhtml";const Y1={svg:"http://www.w3.org/2000/svg",xhtml:fg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function T0(i){var e=i+="",t=e.indexOf(":");return t>=0&&(e=i.slice(0,t))!=="xmlns"&&(i=i.slice(t+1)),Y1.hasOwnProperty(e)?{space:Y1[e],local:i}:i}function eS(i){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===fg&&e.documentElement.namespaceURI===fg?e.createElement(i):e.createElementNS(t,i)}}function tS(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function Kx(i){var e=T0(i);return(e.local?tS:eS)(e)}function iS(){}function Qg(i){return i==null?iS:function(){return this.querySelector(i)}}function nS(i){typeof i!="function"&&(i=Qg(i));for(var e=this._groups,t=e.length,n=new Array(t),l=0;l<t;++l)for(var s=e[l],c=s.length,d=n[l]=new Array(c),u,h,m=0;m<c;++m)(u=s[m])&&(h=i.call(u,u.__data__,m,s))&&("__data__"in u&&(h.__data__=u.__data__),d[m]=h);return new xc(n,this._parents)}function rS(i){return i==null?[]:Array.isArray(i)?i:Array.from(i)}function aS(){return[]}function Jx(i){return i==null?aS:function(){return this.querySelectorAll(i)}}function lS(i){return function(){return rS(i.apply(this,arguments))}}function sS(i){typeof i=="function"?i=lS(i):i=Jx(i);for(var e=this._groups,t=e.length,n=[],l=[],s=0;s<t;++s)for(var c=e[s],d=c.length,u,h=0;h<d;++h)(u=c[h])&&(n.push(i.call(u,u.__data__,h,c)),l.push(u));return new xc(n,l)}function e3(i){return function(){return this.matches(i)}}function t3(i){return function(e){return e.matches(i)}}var oS=Array.prototype.find;function cS(i){return function(){return oS.call(this.children,i)}}function dS(){return this.firstElementChild}function fS(i){return this.select(i==null?dS:cS(typeof i=="function"?i:t3(i)))}var uS=Array.prototype.filter;function hS(){return Array.from(this.children)}function mS(i){return function(){return uS.call(this.children,i)}}function pS(i){return this.selectAll(i==null?hS:mS(typeof i=="function"?i:t3(i)))}function bS(i){typeof i!="function"&&(i=e3(i));for(var e=this._groups,t=e.length,n=new Array(t),l=0;l<t;++l)for(var s=e[l],c=s.length,d=n[l]=[],u,h=0;h<c;++h)(u=s[h])&&i.call(u,u.__data__,h,s)&&d.push(u);return new xc(n,this._parents)}function i3(i){return new Array(i.length)}function gS(){return new xc(this._enter||this._groups.map(i3),this._parents)}function t0(i,e){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=e}t0.prototype={constructor:t0,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,e){return this._parent.insertBefore(i,e)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};function _S(i){return function(){return i}}function yS(i,e,t,n,l,s){for(var c=0,d,u=e.length,h=s.length;c<h;++c)(d=e[c])?(d.__data__=s[c],n[c]=d):t[c]=new t0(i,s[c]);for(;c<u;++c)(d=e[c])&&(l[c]=d)}function vS(i,e,t,n,l,s,c){var d,u,h=new Map,m=e.length,b=s.length,g=new Array(m),_;for(d=0;d<m;++d)(u=e[d])&&(g[d]=_=c.call(u,u.__data__,d,e)+"",h.has(_)?l[d]=u:h.set(_,u));for(d=0;d<b;++d)_=c.call(i,s[d],d,s)+"",(u=h.get(_))?(n[d]=u,u.__data__=s[d],h.delete(_)):t[d]=new t0(i,s[d]);for(d=0;d<m;++d)(u=e[d])&&h.get(g[d])===u&&(l[d]=u)}function xS(i){return i.__data__}function wS(i,e){if(!arguments.length)return Array.from(this,xS);var t=e?vS:yS,n=this._parents,l=this._groups;typeof i!="function"&&(i=_S(i));for(var s=l.length,c=new Array(s),d=new Array(s),u=new Array(s),h=0;h<s;++h){var m=n[h],b=l[h],g=b.length,_=SS(i.call(m,m&&m.__data__,h,n)),z=_.length,X=d[h]=new Array(z),y=c[h]=new Array(z),E=u[h]=new Array(g);t(m,b,X,y,E,_,e);for(var T=0,w=0,I,K;T<z;++T)if(I=X[T]){for(T>=w&&(w=T+1);!(K=y[w])&&++w<z;);I._next=K||null}}return c=new xc(c,n),c._enter=d,c._exit=u,c}function SS(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function AS(){return new xc(this._exit||this._groups.map(i3),this._parents)}function ES(i,e,t){var n=this.enter(),l=this,s=this.exit();return typeof i=="function"?(n=i(n),n&&(n=n.selection())):n=n.append(i+""),e!=null&&(l=e(l),l&&(l=l.selection())),t==null?s.remove():t(s),n&&l?n.merge(l).order():l}function TS(i){for(var e=i.selection?i.selection():i,t=this._groups,n=e._groups,l=t.length,s=n.length,c=Math.min(l,s),d=new Array(l),u=0;u<c;++u)for(var h=t[u],m=n[u],b=h.length,g=d[u]=new Array(b),_,z=0;z<b;++z)(_=h[z]||m[z])&&(g[z]=_);for(;u<l;++u)d[u]=t[u];return new xc(d,this._parents)}function OS(){for(var i=this._groups,e=-1,t=i.length;++e<t;)for(var n=i[e],l=n.length-1,s=n[l],c;--l>=0;)(c=n[l])&&(s&&c.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(c,s),s=c);return this}function kS(i){i||(i=CS);function e(b,g){return b&&g?i(b.__data__,g.__data__):!b-!g}for(var t=this._groups,n=t.length,l=new Array(n),s=0;s<n;++s){for(var c=t[s],d=c.length,u=l[s]=new Array(d),h,m=0;m<d;++m)(h=c[m])&&(u[m]=h);u.sort(e)}return new xc(l,this._parents).order()}function CS(i,e){return i<e?-1:i>e?1:i>=e?0:NaN}function zS(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function IS(){return Array.from(this)}function LS(){for(var i=this._groups,e=0,t=i.length;e<t;++e)for(var n=i[e],l=0,s=n.length;l<s;++l){var c=n[l];if(c)return c}return null}function RS(){let i=0;for(const e of this)++i;return i}function FS(){return!this.node()}function MS(i){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var l=e[t],s=0,c=l.length,d;s<c;++s)(d=l[s])&&i.call(d,d.__data__,s,l);return this}function DS(i){return function(){this.removeAttribute(i)}}function NS(i){return function(){this.removeAttributeNS(i.space,i.local)}}function $S(i,e){return function(){this.setAttribute(i,e)}}function BS(i,e){return function(){this.setAttributeNS(i.space,i.local,e)}}function HS(i,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttribute(i):this.setAttribute(i,t)}}function PS(i,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,t)}}function US(i,e){var t=T0(i);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((e==null?t.local?NS:DS:typeof e=="function"?t.local?PS:HS:t.local?BS:$S)(t,e))}function n3(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function GS(i){return function(){this.style.removeProperty(i)}}function VS(i,e,t){return function(){this.style.setProperty(i,e,t)}}function WS(i,e,t){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(i):this.style.setProperty(i,n,t)}}function jS(i,e,t){return arguments.length>1?this.each((e==null?GS:typeof e=="function"?WS:VS)(i,e,t??"")):rh(this.node(),i)}function rh(i,e){return i.style.getPropertyValue(e)||n3(i).getComputedStyle(i,null).getPropertyValue(e)}function qS(i){return function(){delete this[i]}}function YS(i,e){return function(){this[i]=e}}function XS(i,e){return function(){var t=e.apply(this,arguments);t==null?delete this[i]:this[i]=t}}function ZS(i,e){return arguments.length>1?this.each((e==null?qS:typeof e=="function"?XS:YS)(i,e)):this.node()[i]}function r3(i){return i.trim().split(/^|\s+/)}function Kg(i){return i.classList||new a3(i)}function a3(i){this._node=i,this._names=r3(i.getAttribute("class")||"")}a3.prototype={add:function(i){var e=this._names.indexOf(i);e<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var e=this._names.indexOf(i);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function l3(i,e){for(var t=Kg(i),n=-1,l=e.length;++n<l;)t.add(e[n])}function s3(i,e){for(var t=Kg(i),n=-1,l=e.length;++n<l;)t.remove(e[n])}function QS(i){return function(){l3(this,i)}}function KS(i){return function(){s3(this,i)}}function JS(i,e){return function(){(e.apply(this,arguments)?l3:s3)(this,i)}}function eA(i,e){var t=r3(i+"");if(arguments.length<2){for(var n=Kg(this.node()),l=-1,s=t.length;++l<s;)if(!n.contains(t[l]))return!1;return!0}return this.each((typeof e=="function"?JS:e?QS:KS)(t,e))}function tA(){this.textContent=""}function iA(i){return function(){this.textContent=i}}function nA(i){return function(){var e=i.apply(this,arguments);this.textContent=e??""}}function rA(i){return arguments.length?this.each(i==null?tA:(typeof i=="function"?nA:iA)(i)):this.node().textContent}function aA(){this.innerHTML=""}function lA(i){return function(){this.innerHTML=i}}function sA(i){return function(){var e=i.apply(this,arguments);this.innerHTML=e??""}}function oA(i){return arguments.length?this.each(i==null?aA:(typeof i=="function"?sA:lA)(i)):this.node().innerHTML}function cA(){this.nextSibling&&this.parentNode.appendChild(this)}function dA(){return this.each(cA)}function fA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uA(){return this.each(fA)}function hA(i){var e=typeof i=="function"?i:Kx(i);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function mA(){return null}function pA(i,e){var t=typeof i=="function"?i:Kx(i),n=e==null?mA:typeof e=="function"?e:Qg(e);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function bA(){var i=this.parentNode;i&&i.removeChild(this)}function gA(){return this.each(bA)}function _A(){var i=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(i,this.nextSibling):i}function yA(){var i=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(i,this.nextSibling):i}function vA(i){return this.select(i?yA:_A)}function xA(i){return arguments.length?this.property("__data__",i):this.node().__data__}function wA(i){return function(e){i.call(this,e,this.__data__)}}function SA(i){return i.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function AA(i){return function(){var e=this.__on;if(e){for(var t=0,n=-1,l=e.length,s;t<l;++t)s=e[t],(!i.type||s.type===i.type)&&s.name===i.name?this.removeEventListener(s.type,s.listener,s.options):e[++n]=s;++n?e.length=n:delete this.__on}}}function EA(i,e,t){return function(){var n=this.__on,l,s=wA(e);if(n){for(var c=0,d=n.length;c<d;++c)if((l=n[c]).type===i.type&&l.name===i.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=s,l.options=t),l.value=e;return}}this.addEventListener(i.type,s,t),l={type:i.type,name:i.name,value:e,listener:s,options:t},n?n.push(l):this.__on=[l]}}function TA(i,e,t){var n=SA(i+""),l,s=n.length,c;if(arguments.length<2){var d=this.node().__on;if(d){for(var u=0,h=d.length,m;u<h;++u)for(l=0,m=d[u];l<s;++l)if((c=n[l]).type===m.type&&c.name===m.name)return m.value}return}for(d=e?EA:AA,l=0;l<s;++l)this.each(d(n[l],e,t));return this}function o3(i,e,t){var n=n3(i),l=n.CustomEvent;typeof l=="function"?l=new l(e,t):(l=n.document.createEvent("Event"),t?(l.initEvent(e,t.bubbles,t.cancelable),l.detail=t.detail):l.initEvent(e,!1,!1)),i.dispatchEvent(l)}function OA(i,e){return function(){return o3(this,i,e)}}function kA(i,e){return function(){return o3(this,i,e.apply(this,arguments))}}function CA(i,e){return this.each((typeof e=="function"?kA:OA)(i,e))}function*zA(){for(var i=this._groups,e=0,t=i.length;e<t;++e)for(var n=i[e],l=0,s=n.length,c;l<s;++l)(c=n[l])&&(yield c)}var c3=[null];function xc(i,e){this._groups=i,this._parents=e}function Lm(){return new xc([[document.documentElement]],c3)}function IA(){return this}xc.prototype=Lm.prototype={constructor:xc,select:nS,selectAll:sS,selectChild:fS,selectChildren:pS,filter:bS,data:wS,enter:gS,exit:AS,join:ES,merge:TS,selection:IA,order:OS,sort:kS,call:zS,nodes:IS,node:LS,size:RS,empty:FS,each:MS,attr:US,style:jS,property:ZS,classed:eA,text:rA,html:oA,raise:dA,lower:uA,append:hA,insert:pA,remove:gA,clone:vA,datum:xA,on:TA,dispatch:CA,[Symbol.iterator]:zA};function Ma(i){return typeof i=="string"?new xc([[document.querySelector(i)]],[document.documentElement]):new xc([[i]],c3)}function LA(i){let e;for(;e=i.sourceEvent;)i=e;return i}function Cd(i,e){if(i=LA(i),e===void 0&&(e=i.currentTarget),e){var t=e.ownerSVGElement||e;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=i.clientX,n.y=i.clientY,n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.y]}if(e.getBoundingClientRect){var l=e.getBoundingClientRect();return[i.clientX-l.left-e.clientLeft,i.clientY-l.top-e.clientTop]}}return[i.pageX,i.pageY]}var RA={value:()=>{}};function O0(){for(var i=0,e=arguments.length,t={},n;i<e;++i){if(!(n=arguments[i]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new $p(t)}function $p(i){this._=i}function FA(i,e){return i.trim().split(/^|\s+/).map(function(t){var n="",l=t.indexOf(".");if(l>=0&&(n=t.slice(l+1),t=t.slice(0,l)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}$p.prototype=O0.prototype={constructor:$p,on:function(i,e){var t=this._,n=FA(i+"",t),l,s=-1,c=n.length;if(arguments.length<2){for(;++s<c;)if((l=(i=n[s]).type)&&(l=MA(t[l],i.name)))return l;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<c;)if(l=(i=n[s]).type)t[l]=X1(t[l],i.name,e);else if(e==null)for(l in t)t[l]=X1(t[l],i.name,null);return this},copy:function(){var i={},e=this._;for(var t in e)i[t]=e[t].slice();return new $p(i)},call:function(i,e){if((l=arguments.length-2)>0)for(var t=new Array(l),n=0,l,s;n<l;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(s=this._[i],n=0,l=s.length;n<l;++n)s[n].value.apply(e,t)},apply:function(i,e,t){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var n=this._[i],l=0,s=n.length;l<s;++l)n[l].value.apply(e,t)}};function MA(i,e){for(var t=0,n=i.length,l;t<n;++t)if((l=i[t]).name===e)return l.value}function X1(i,e,t){for(var n=0,l=i.length;n<l;++n)if(i[n].name===e){i[n]=RA,i=i.slice(0,n).concat(i.slice(n+1));break}return t!=null&&i.push({name:e,value:t}),i}var ah=0,fm=0,Kh=0,d3=1e3,i0,um,n0=0,Xf=0,k0=0,Sm=typeof performance=="object"&&performance.now?performance:Date,f3=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function Jg(){return Xf||(f3(DA),Xf=Sm.now()+k0)}function DA(){Xf=0}function r0(){this._call=this._time=this._next=null}r0.prototype=u3.prototype={constructor:r0,restart:function(i,e,t){if(typeof i!="function")throw new TypeError("callback is not a function");t=(t==null?Jg():+t)+(e==null?0:+e),!this._next&&um!==this&&(um?um._next=this:i0=this,um=this),this._call=i,this._time=t,ug()},stop:function(){this._call&&(this._call=null,this._time=1/0,ug())}};function u3(i,e,t){var n=new r0;return n.restart(i,e,t),n}function NA(){Jg(),++ah;for(var i=i0,e;i;)(e=Xf-i._time)>=0&&i._call.call(void 0,e),i=i._next;--ah}function Z1(){Xf=(n0=Sm.now())+k0,ah=fm=0;try{NA()}finally{ah=0,BA(),Xf=0}}function $A(){var i=Sm.now(),e=i-n0;e>d3&&(k0-=e,n0=i)}function BA(){for(var i,e=i0,t,n=1/0;e;)e._call?(n>e._time&&(n=e._time),i=e,e=e._next):(t=e._next,e._next=null,e=i?i._next=t:i0=t);um=i,ug(n)}function ug(i){if(!ah){fm&&(fm=clearTimeout(fm));var e=i-Xf;e>24?(i<1/0&&(fm=setTimeout(Z1,i-Sm.now()-k0)),Kh&&(Kh=clearInterval(Kh))):(Kh||(n0=Sm.now(),Kh=setInterval($A,d3)),ah=1,f3(Z1))}}function Q1(i,e,t){var n=new r0;return e=e==null?0:+e,n.restart(l=>{n.stop(),i(l+e)},e,t),n}var HA=O0("start","end","cancel","interrupt"),PA=[],h3=0,K1=1,hg=2,Bp=3,J1=4,mg=5,Hp=6;function C0(i,e,t,n,l,s){var c=i.__transition;if(!c)i.__transition={};else if(t in c)return;UA(i,t,{name:e,index:n,group:l,on:HA,tween:PA,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:h3})}function e_(i,e){var t=Yc(i,e);if(t.state>h3)throw new Error("too late; already scheduled");return t}function ud(i,e){var t=Yc(i,e);if(t.state>Bp)throw new Error("too late; already running");return t}function Yc(i,e){var t=i.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function UA(i,e,t){var n=i.__transition,l;n[e]=t,t.timer=u3(s,0,t.time);function s(h){t.state=K1,t.timer.restart(c,t.delay,t.time),t.delay<=h&&c(h-t.delay)}function c(h){var m,b,g,_;if(t.state!==K1)return u();for(m in n)if(_=n[m],_.name===t.name){if(_.state===Bp)return Q1(c);_.state===J1?(_.state=Hp,_.timer.stop(),_.on.call("interrupt",i,i.__data__,_.index,_.group),delete n[m]):+m<e&&(_.state=Hp,_.timer.stop(),_.on.call("cancel",i,i.__data__,_.index,_.group),delete n[m])}if(Q1(function(){t.state===Bp&&(t.state=J1,t.timer.restart(d,t.delay,t.time),d(h))}),t.state=hg,t.on.call("start",i,i.__data__,t.index,t.group),t.state===hg){for(t.state=Bp,l=new Array(g=t.tween.length),m=0,b=-1;m<g;++m)(_=t.tween[m].value.call(i,i.__data__,t.index,t.group))&&(l[++b]=_);l.length=b+1}}function d(h){for(var m=h<t.duration?t.ease.call(null,h/t.duration):(t.timer.restart(u),t.state=mg,1),b=-1,g=l.length;++b<g;)l[b].call(i,m);t.state===mg&&(t.on.call("end",i,i.__data__,t.index,t.group),u())}function u(){t.state=Hp,t.timer.stop(),delete n[e];for(var h in n)return;delete i.__transition}}function Zu(i,e){var t=i.__transition,n,l,s=!0,c;if(t){e=e==null?null:e+"";for(c in t){if((n=t[c]).name!==e){s=!1;continue}l=n.state>hg&&n.state<mg,n.state=Hp,n.timer.stop(),n.on.call(l?"interrupt":"cancel",i,i.__data__,n.index,n.group),delete t[c]}s&&delete i.__transition}}function GA(i){return this.each(function(){Zu(this,i)})}function t_(i,e,t){i.prototype=e.prototype=t,t.constructor=i}function m3(i,e){var t=Object.create(i.prototype);for(var n in e)t[n]=e[n];return t}function Rm(){}var Am=.7,a0=1/Am,Qu="\\s*([+-]?\\d+)\\s*",Em="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",VA=/^#([0-9a-f]{3,8})$/,WA=new RegExp(`^rgb\\(${Qu},${Qu},${Qu}\\)$`),jA=new RegExp(`^rgb\\(${dd},${dd},${dd}\\)$`),qA=new RegExp(`^rgba\\(${Qu},${Qu},${Qu},${Em}\\)$`),YA=new RegExp(`^rgba\\(${dd},${dd},${dd},${Em}\\)$`),XA=new RegExp(`^hsl\\(${Em},${dd},${dd}\\)$`),ZA=new RegExp(`^hsla\\(${Em},${dd},${dd},${Em}\\)$`),ey={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};t_(Rm,Md,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:ty,formatHex:ty,formatHex8:QA,formatHsl:KA,formatRgb:iy,toString:iy});function ty(){return this.rgb().formatHex()}function QA(){return this.rgb().formatHex8()}function KA(){return p3(this).formatHsl()}function iy(){return this.rgb().formatRgb()}function Md(i){var e,t;return i=(i+"").trim().toLowerCase(),(e=VA.exec(i))?(t=e[1].length,e=parseInt(e[1],16),t===6?ny(e):t===3?new ac(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?yp(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?yp(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=WA.exec(i))?new ac(e[1],e[2],e[3],1):(e=jA.exec(i))?new ac(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=qA.exec(i))?yp(e[1],e[2],e[3],e[4]):(e=YA.exec(i))?yp(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=XA.exec(i))?ly(e[1],e[2]/100,e[3]/100,1):(e=ZA.exec(i))?ly(e[1],e[2]/100,e[3]/100,e[4]):ey.hasOwnProperty(i)?ny(ey[i]):i==="transparent"?new ac(NaN,NaN,NaN,0):null}function ny(i){return new ac(i>>16&255,i>>8&255,i&255,1)}function yp(i,e,t,n){return n<=0&&(i=e=t=NaN),new ac(i,e,t,n)}function JA(i){return i instanceof Rm||(i=Md(i)),i?(i=i.rgb(),new ac(i.r,i.g,i.b,i.opacity)):new ac}function pg(i,e,t,n){return arguments.length===1?JA(i):new ac(i,e,t,n??1)}function ac(i,e,t,n){this.r=+i,this.g=+e,this.b=+t,this.opacity=+n}t_(ac,pg,m3(Rm,{brighter(i){return i=i==null?a0:Math.pow(a0,i),new ac(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?Am:Math.pow(Am,i),new ac(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new ac(jf(this.r),jf(this.g),jf(this.b),l0(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ry,formatHex:ry,formatHex8:eE,formatRgb:ay,toString:ay}));function ry(){return`#${Gf(this.r)}${Gf(this.g)}${Gf(this.b)}`}function eE(){return`#${Gf(this.r)}${Gf(this.g)}${Gf(this.b)}${Gf((isNaN(this.opacity)?1:this.opacity)*255)}`}function ay(){const i=l0(this.opacity);return`${i===1?"rgb(":"rgba("}${jf(this.r)}, ${jf(this.g)}, ${jf(this.b)}${i===1?")":`, ${i})`}`}function l0(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function jf(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function Gf(i){return i=jf(i),(i<16?"0":"")+i.toString(16)}function ly(i,e,t,n){return n<=0?i=e=t=NaN:t<=0||t>=1?i=e=NaN:e<=0&&(i=NaN),new Gc(i,e,t,n)}function p3(i){if(i instanceof Gc)return new Gc(i.h,i.s,i.l,i.opacity);if(i instanceof Rm||(i=Md(i)),!i)return new Gc;if(i instanceof Gc)return i;i=i.rgb();var e=i.r/255,t=i.g/255,n=i.b/255,l=Math.min(e,t,n),s=Math.max(e,t,n),c=NaN,d=s-l,u=(s+l)/2;return d?(e===s?c=(t-n)/d+(t<n)*6:t===s?c=(n-e)/d+2:c=(e-t)/d+4,d/=u<.5?s+l:2-s-l,c*=60):d=u>0&&u<1?0:c,new Gc(c,d,u,i.opacity)}function tE(i,e,t,n){return arguments.length===1?p3(i):new Gc(i,e,t,n??1)}function Gc(i,e,t,n){this.h=+i,this.s=+e,this.l=+t,this.opacity=+n}t_(Gc,tE,m3(Rm,{brighter(i){return i=i==null?a0:Math.pow(a0,i),new Gc(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?Am:Math.pow(Am,i),new Gc(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,e=isNaN(i)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,l=2*t-n;return new ac(Db(i>=240?i-240:i+120,l,n),Db(i,l,n),Db(i<120?i+240:i-120,l,n),this.opacity)},clamp(){return new Gc(sy(this.h),vp(this.s),vp(this.l),l0(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const i=l0(this.opacity);return`${i===1?"hsl(":"hsla("}${sy(this.h)}, ${vp(this.s)*100}%, ${vp(this.l)*100}%${i===1?")":`, ${i})`}`}}));function sy(i){return i=(i||0)%360,i<0?i+360:i}function vp(i){return Math.max(0,Math.min(1,i||0))}function Db(i,e,t){return(i<60?e+(t-e)*i/60:i<180?t:i<240?e+(t-e)*(240-i)/60:e)*255}const i_=i=>()=>i;function iE(i,e){return function(t){return i+t*e}}function nE(i,e,t){return i=Math.pow(i,t),e=Math.pow(e,t)-i,t=1/t,function(n){return Math.pow(i+n*e,t)}}function rE(i){return(i=+i)==1?b3:function(e,t){return t-e?nE(e,t,i):i_(isNaN(e)?t:e)}}function b3(i,e){var t=e-i;return t?iE(i,t):i_(isNaN(i)?e:i)}const s0=function i(e){var t=rE(e);function n(l,s){var c=t((l=pg(l)).r,(s=pg(s)).r),d=t(l.g,s.g),u=t(l.b,s.b),h=b3(l.opacity,s.opacity);return function(m){return l.r=c(m),l.g=d(m),l.b=u(m),l.opacity=h(m),l+""}}return n.gamma=i,n}(1);function aE(i,e){e||(e=[]);var t=i?Math.min(e.length,i.length):0,n=e.slice(),l;return function(s){for(l=0;l<t;++l)n[l]=i[l]*(1-s)+e[l]*s;return n}}function lE(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}function sE(i,e){var t=e?e.length:0,n=i?Math.min(t,i.length):0,l=new Array(n),s=new Array(t),c;for(c=0;c<n;++c)l[c]=z0(i[c],e[c]);for(;c<t;++c)s[c]=e[c];return function(d){for(c=0;c<n;++c)s[c]=l[c](d);return s}}function oE(i,e){var t=new Date;return i=+i,e=+e,function(n){return t.setTime(i*(1-n)+e*n),t}}function Uc(i,e){return i=+i,e=+e,function(t){return i*(1-t)+e*t}}function cE(i,e){var t={},n={},l;(i===null||typeof i!="object")&&(i={}),(e===null||typeof e!="object")&&(e={});for(l in e)l in i?t[l]=z0(i[l],e[l]):n[l]=e[l];return function(s){for(l in t)n[l]=t[l](s);return n}}var bg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nb=new RegExp(bg.source,"g");function dE(i){return function(){return i}}function fE(i){return function(e){return i(e)+""}}function g3(i,e){var t=bg.lastIndex=Nb.lastIndex=0,n,l,s,c=-1,d=[],u=[];for(i=i+"",e=e+"";(n=bg.exec(i))&&(l=Nb.exec(e));)(s=l.index)>t&&(s=e.slice(t,s),d[c]?d[c]+=s:d[++c]=s),(n=n[0])===(l=l[0])?d[c]?d[c]+=l:d[++c]=l:(d[++c]=null,u.push({i:c,x:Uc(n,l)})),t=Nb.lastIndex;return t<e.length&&(s=e.slice(t),d[c]?d[c]+=s:d[++c]=s),d.length<2?u[0]?fE(u[0].x):dE(e):(e=u.length,function(h){for(var m=0,b;m<e;++m)d[(b=u[m]).i]=b.x(h);return d.join("")})}function z0(i,e){var t=typeof e,n;return e==null||t==="boolean"?i_(e):(t==="number"?Uc:t==="string"?(n=Md(e))?(e=n,s0):g3:e instanceof Md?s0:e instanceof Date?oE:lE(e)?aE:Array.isArray(e)?sE:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?cE:Uc)(i,e)}function uE(i,e){return i=+i,e=+e,function(t){return Math.round(i*(1-t)+e*t)}}var oy=180/Math.PI,gg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _3(i,e,t,n,l,s){var c,d,u;return(c=Math.sqrt(i*i+e*e))&&(i/=c,e/=c),(u=i*t+e*n)&&(t-=i*u,n-=e*u),(d=Math.sqrt(t*t+n*n))&&(t/=d,n/=d,u/=d),i*n<e*t&&(i=-i,e=-e,u=-u,c=-c),{translateX:l,translateY:s,rotate:Math.atan2(e,i)*oy,skewX:Math.atan(u)*oy,scaleX:c,scaleY:d}}var xp;function hE(i){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return e.isIdentity?gg:_3(e.a,e.b,e.c,e.d,e.e,e.f)}function mE(i){return i==null||(xp||(xp=document.createElementNS("http://www.w3.org/2000/svg","g")),xp.setAttribute("transform",i),!(i=xp.transform.baseVal.consolidate()))?gg:(i=i.matrix,_3(i.a,i.b,i.c,i.d,i.e,i.f))}function y3(i,e,t,n){function l(h){return h.length?h.pop()+" ":""}function s(h,m,b,g,_,z){if(h!==b||m!==g){var X=_.push("translate(",null,e,null,t);z.push({i:X-4,x:Uc(h,b)},{i:X-2,x:Uc(m,g)})}else(b||g)&&_.push("translate("+b+e+g+t)}function c(h,m,b,g){h!==m?(h-m>180?m+=360:m-h>180&&(h+=360),g.push({i:b.push(l(b)+"rotate(",null,n)-2,x:Uc(h,m)})):m&&b.push(l(b)+"rotate("+m+n)}function d(h,m,b,g){h!==m?g.push({i:b.push(l(b)+"skewX(",null,n)-2,x:Uc(h,m)}):m&&b.push(l(b)+"skewX("+m+n)}function u(h,m,b,g,_,z){if(h!==b||m!==g){var X=_.push(l(_)+"scale(",null,",",null,")");z.push({i:X-4,x:Uc(h,b)},{i:X-2,x:Uc(m,g)})}else(b!==1||g!==1)&&_.push(l(_)+"scale("+b+","+g+")")}return function(h,m){var b=[],g=[];return h=i(h),m=i(m),s(h.translateX,h.translateY,m.translateX,m.translateY,b,g),c(h.rotate,m.rotate,b,g),d(h.skewX,m.skewX,b,g),u(h.scaleX,h.scaleY,m.scaleX,m.scaleY,b,g),h=m=null,function(_){for(var z=-1,X=g.length,y;++z<X;)b[(y=g[z]).i]=y.x(_);return b.join("")}}}var pE=y3(hE,"px, ","px)","deg)"),bE=y3(mE,", ",")",")"),gE=1e-12;function cy(i){return((i=Math.exp(i))+1/i)/2}function _E(i){return((i=Math.exp(i))-1/i)/2}function yE(i){return((i=Math.exp(2*i))-1)/(i+1)}const vE=function i(e,t,n){function l(s,c){var d=s[0],u=s[1],h=s[2],m=c[0],b=c[1],g=c[2],_=m-d,z=b-u,X=_*_+z*z,y,E;if(X<gE)E=Math.log(g/h)/e,y=function(Y){return[d+Y*_,u+Y*z,h*Math.exp(e*Y*E)]};else{var T=Math.sqrt(X),w=(g*g-h*h+n*X)/(2*h*t*T),I=(g*g-h*h-n*X)/(2*g*t*T),K=Math.log(Math.sqrt(w*w+1)-w),U=Math.log(Math.sqrt(I*I+1)-I);E=(U-K)/e,y=function(Y){var J=Y*E,S=cy(K),Q=h/(t*T)*(S*yE(e*J+K)-_E(K));return[d+Q*_,u+Q*z,h*S/cy(e*J+K)]}}return y.duration=E*1e3*e/Math.SQRT2,y}return l.rho=function(s){var c=Math.max(.001,+s),d=c*c,u=d*d;return i(c,d,u)},l}(Math.SQRT2,2,4);function xE(i,e){var t,n;return function(){var l=ud(this,i),s=l.tween;if(s!==t){n=t=s;for(var c=0,d=n.length;c<d;++c)if(n[c].name===e){n=n.slice(),n.splice(c,1);break}}l.tween=n}}function wE(i,e,t){var n,l;if(typeof t!="function")throw new Error;return function(){var s=ud(this,i),c=s.tween;if(c!==n){l=(n=c).slice();for(var d={name:e,value:t},u=0,h=l.length;u<h;++u)if(l[u].name===e){l[u]=d;break}u===h&&l.push(d)}s.tween=l}}function SE(i,e){var t=this._id;if(i+="",arguments.length<2){for(var n=Yc(this.node(),t).tween,l=0,s=n.length,c;l<s;++l)if((c=n[l]).name===i)return c.value;return null}return this.each((e==null?xE:wE)(t,i,e))}function n_(i,e,t){var n=i._id;return i.each(function(){var l=ud(this,n);(l.value||(l.value={}))[e]=t.apply(this,arguments)}),function(l){return Yc(l,n).value[e]}}function v3(i,e){var t;return(typeof e=="number"?Uc:e instanceof Md?s0:(t=Md(e))?(e=t,s0):g3)(i,e)}function AE(i){return function(){this.removeAttribute(i)}}function EE(i){return function(){this.removeAttributeNS(i.space,i.local)}}function TE(i,e,t){var n,l=t+"",s;return function(){var c=this.getAttribute(i);return c===l?null:c===n?s:s=e(n=c,t)}}function OE(i,e,t){var n,l=t+"",s;return function(){var c=this.getAttributeNS(i.space,i.local);return c===l?null:c===n?s:s=e(n=c,t)}}function kE(i,e,t){var n,l,s;return function(){var c,d=t(this),u;return d==null?void this.removeAttribute(i):(c=this.getAttribute(i),u=d+"",c===u?null:c===n&&u===l?s:(l=u,s=e(n=c,d)))}}function CE(i,e,t){var n,l,s;return function(){var c,d=t(this),u;return d==null?void this.removeAttributeNS(i.space,i.local):(c=this.getAttributeNS(i.space,i.local),u=d+"",c===u?null:c===n&&u===l?s:(l=u,s=e(n=c,d)))}}function zE(i,e){var t=T0(i),n=t==="transform"?bE:v3;return this.attrTween(i,typeof e=="function"?(t.local?CE:kE)(t,n,n_(this,"attr."+i,e)):e==null?(t.local?EE:AE)(t):(t.local?OE:TE)(t,n,e))}function IE(i,e){return function(t){this.setAttribute(i,e.call(this,t))}}function LE(i,e){return function(t){this.setAttributeNS(i.space,i.local,e.call(this,t))}}function RE(i,e){var t,n;function l(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&LE(i,s)),t}return l._value=e,l}function FE(i,e){var t,n;function l(){var s=e.apply(this,arguments);return s!==n&&(t=(n=s)&&IE(i,s)),t}return l._value=e,l}function ME(i,e){var t="attr."+i;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;var n=T0(i);return this.tween(t,(n.local?RE:FE)(n,e))}function DE(i,e){return function(){e_(this,i).delay=+e.apply(this,arguments)}}function NE(i,e){return e=+e,function(){e_(this,i).delay=e}}function $E(i){var e=this._id;return arguments.length?this.each((typeof i=="function"?DE:NE)(e,i)):Yc(this.node(),e).delay}function BE(i,e){return function(){ud(this,i).duration=+e.apply(this,arguments)}}function HE(i,e){return e=+e,function(){ud(this,i).duration=e}}function PE(i){var e=this._id;return arguments.length?this.each((typeof i=="function"?BE:HE)(e,i)):Yc(this.node(),e).duration}function UE(i,e){if(typeof e!="function")throw new Error;return function(){ud(this,i).ease=e}}function GE(i){var e=this._id;return arguments.length?this.each(UE(e,i)):Yc(this.node(),e).ease}function VE(i,e){return function(){var t=e.apply(this,arguments);if(typeof t!="function")throw new Error;ud(this,i).ease=t}}function WE(i){if(typeof i!="function")throw new Error;return this.each(VE(this._id,i))}function jE(i){typeof i!="function"&&(i=e3(i));for(var e=this._groups,t=e.length,n=new Array(t),l=0;l<t;++l)for(var s=e[l],c=s.length,d=n[l]=[],u,h=0;h<c;++h)(u=s[h])&&i.call(u,u.__data__,h,s)&&d.push(u);return new Dd(n,this._parents,this._name,this._id)}function qE(i){if(i._id!==this._id)throw new Error;for(var e=this._groups,t=i._groups,n=e.length,l=t.length,s=Math.min(n,l),c=new Array(n),d=0;d<s;++d)for(var u=e[d],h=t[d],m=u.length,b=c[d]=new Array(m),g,_=0;_<m;++_)(g=u[_]||h[_])&&(b[_]=g);for(;d<n;++d)c[d]=e[d];return new Dd(c,this._parents,this._name,this._id)}function YE(i){return(i+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||e==="start"})}function XE(i,e,t){var n,l,s=YE(e)?e_:ud;return function(){var c=s(this,i),d=c.on;d!==n&&(l=(n=d).copy()).on(e,t),c.on=l}}function ZE(i,e){var t=this._id;return arguments.length<2?Yc(this.node(),t).on.on(i):this.each(XE(t,i,e))}function QE(i){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==i)return;e&&e.removeChild(this)}}function KE(){return this.on("end.remove",QE(this._id))}function JE(i){var e=this._name,t=this._id;typeof i!="function"&&(i=Qg(i));for(var n=this._groups,l=n.length,s=new Array(l),c=0;c<l;++c)for(var d=n[c],u=d.length,h=s[c]=new Array(u),m,b,g=0;g<u;++g)(m=d[g])&&(b=i.call(m,m.__data__,g,d))&&("__data__"in m&&(b.__data__=m.__data__),h[g]=b,C0(h[g],e,t,g,h,Yc(m,t)));return new Dd(s,this._parents,e,t)}function eT(i){var e=this._name,t=this._id;typeof i!="function"&&(i=Jx(i));for(var n=this._groups,l=n.length,s=[],c=[],d=0;d<l;++d)for(var u=n[d],h=u.length,m,b=0;b<h;++b)if(m=u[b]){for(var g=i.call(m,m.__data__,b,u),_,z=Yc(m,t),X=0,y=g.length;X<y;++X)(_=g[X])&&C0(_,e,t,X,g,z);s.push(g),c.push(m)}return new Dd(s,c,e,t)}var tT=Lm.prototype.constructor;function iT(){return new tT(this._groups,this._parents)}function nT(i,e){var t,n,l;return function(){var s=rh(this,i),c=(this.style.removeProperty(i),rh(this,i));return s===c?null:s===t&&c===n?l:l=e(t=s,n=c)}}function x3(i){return function(){this.style.removeProperty(i)}}function rT(i,e,t){var n,l=t+"",s;return function(){var c=rh(this,i);return c===l?null:c===n?s:s=e(n=c,t)}}function aT(i,e,t){var n,l,s;return function(){var c=rh(this,i),d=t(this),u=d+"";return d==null&&(u=d=(this.style.removeProperty(i),rh(this,i))),c===u?null:c===n&&u===l?s:(l=u,s=e(n=c,d))}}function lT(i,e){var t,n,l,s="style."+e,c="end."+s,d;return function(){var u=ud(this,i),h=u.on,m=u.value[s]==null?d||(d=x3(e)):void 0;(h!==t||l!==m)&&(n=(t=h).copy()).on(c,l=m),u.on=n}}function sT(i,e,t){var n=(i+="")=="transform"?pE:v3;return e==null?this.styleTween(i,nT(i,n)).on("end.style."+i,x3(i)):typeof e=="function"?this.styleTween(i,aT(i,n,n_(this,"style."+i,e))).each(lT(this._id,i)):this.styleTween(i,rT(i,n,e),t).on("end.style."+i,null)}function oT(i,e,t){return function(n){this.style.setProperty(i,e.call(this,n),t)}}function cT(i,e,t){var n,l;function s(){var c=e.apply(this,arguments);return c!==l&&(n=(l=c)&&oT(i,c,t)),n}return s._value=e,s}function dT(i,e,t){var n="style."+(i+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,cT(i,e,t??""))}function fT(i){return function(){this.textContent=i}}function uT(i){return function(){var e=i(this);this.textContent=e??""}}function hT(i){return this.tween("text",typeof i=="function"?uT(n_(this,"text",i)):fT(i==null?"":i+""))}function mT(i){return function(e){this.textContent=i.call(this,e)}}function pT(i){var e,t;function n(){var l=i.apply(this,arguments);return l!==t&&(e=(t=l)&&mT(l)),e}return n._value=i,n}function bT(i){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(i==null)return this.tween(e,null);if(typeof i!="function")throw new Error;return this.tween(e,pT(i))}function gT(){for(var i=this._name,e=this._id,t=w3(),n=this._groups,l=n.length,s=0;s<l;++s)for(var c=n[s],d=c.length,u,h=0;h<d;++h)if(u=c[h]){var m=Yc(u,e);C0(u,i,t,h,c,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new Dd(n,this._parents,i,t)}function _T(){var i,e,t=this,n=t._id,l=t.size();return new Promise(function(s,c){var d={value:c},u={value:function(){--l===0&&s()}};t.each(function(){var h=ud(this,n),m=h.on;m!==i&&(e=(i=m).copy(),e._.cancel.push(d),e._.interrupt.push(d),e._.end.push(u)),h.on=e}),l===0&&s()})}var yT=0;function Dd(i,e,t,n){this._groups=i,this._parents=e,this._name=t,this._id=n}function w3(){return++yT}var Td=Lm.prototype;Dd.prototype={constructor:Dd,select:JE,selectAll:eT,selectChild:Td.selectChild,selectChildren:Td.selectChildren,filter:jE,merge:qE,selection:iT,transition:gT,call:Td.call,nodes:Td.nodes,node:Td.node,size:Td.size,empty:Td.empty,each:Td.each,on:ZE,attr:zE,attrTween:ME,style:sT,styleTween:dT,text:hT,textTween:bT,remove:KE,tween:SE,delay:$E,duration:PE,ease:GE,easeVarying:WE,end:_T,[Symbol.iterator]:Td[Symbol.iterator]};function vT(i){return i*i}function xT(i){return i*(2-i)}function wT(i){return((i*=2)<=1?i*i:--i*(2-i)+1)/2}function ST(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}var AT={time:null,delay:0,duration:250,ease:ST};function ET(i,e){for(var t;!(t=i.__transition)||!(t=t[e]);)if(!(i=i.parentNode))throw new Error(`transition ${e} not found`);return t}function TT(i){var e,t;i instanceof Dd?(e=i._id,i=i._name):(e=w3(),(t=AT).time=Jg(),i=i==null?null:i+"");for(var n=this._groups,l=n.length,s=0;s<l;++s)for(var c=n[s],d=c.length,u,h=0;h<d;++h)(u=c[h])&&C0(u,i,e,h,c,t||ET(u,e));return new Dd(n,this._parents,i,e)}Lm.prototype.interrupt=GA;Lm.prototype.transition=TT;var Pp={exports:{}},OT=Pp.exports,dy;function kT(){return dy||(dy=1,function(i,e){(function(t,n){i.exports=n()})(OT,function(){var t=function(P,rt){for(var gt=Object.keys(rt),ui=0;ui<gt.length;++ui)P[gt[ui]]=rt[gt[ui]];return P},n=0,l=0,s=5,c=6;function d(P,rt){this.id=n++,this.type=P,this.data=rt}function u(P){return P.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function h(P){if(P.length===0)return[];var rt=P.charAt(0),gt=P.charAt(P.length-1);if(P.length>1&&rt===gt&&(rt==='"'||rt==="'"))return['"'+u(P.substr(1,P.length-2))+'"'];var ui=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(P);if(ui)return h(P.substr(0,ui.index)).concat(h(ui[1])).concat(h(P.substr(ui.index+ui[0].length)));var Ti=P.split(".");if(Ti.length===1)return['"'+u(P)+'"'];for(var xi=[],gi=0;gi<Ti.length;++gi)xi=xi.concat(h(Ti[gi]));return xi}function m(P){return"["+h(P).join("][")+"]"}function b(P,rt){return new d(P,m(rt+""))}function g(P){return typeof P=="function"&&!P._reglType||P instanceof d}function _(P,rt){if(typeof P=="function")return new d(l,P);if(typeof P=="number"||typeof P=="boolean")return new d(s,P);if(Array.isArray(P))return new d(c,P.map(function(gt,ui){return _(gt)}));if(P instanceof d)return P}var z={DynamicVariable:d,define:b,isDynamic:g,unbox:_,accessor:m},X={next:typeof requestAnimationFrame=="function"?function(P){return requestAnimationFrame(P)}:function(P){return setTimeout(P,16)},cancel:typeof cancelAnimationFrame=="function"?function(P){return cancelAnimationFrame(P)}:clearTimeout},y=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function E(){var P={"":0},rt=[""];return{id:function(gt){var ui=P[gt];return ui||(ui=P[gt]=rt.length,rt.push(gt),ui)},str:function(gt){return rt[gt]}}}function T(P,rt,gt){var ui=document.createElement("canvas");t(ui.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),P.appendChild(ui),P===document.body&&(ui.style.position="absolute",t(P.style,{margin:0,padding:0}));function Ti(){var Zi=window.innerWidth,Ki=window.innerHeight;if(P!==document.body){var Yi=ui.getBoundingClientRect();Zi=Yi.right-Yi.left,Ki=Yi.bottom-Yi.top}ui.width=gt*Zi,ui.height=gt*Ki}var xi;P!==document.body&&typeof ResizeObserver=="function"?(xi=new ResizeObserver(function(){setTimeout(Ti)}),xi.observe(P)):window.addEventListener("resize",Ti,!1);function gi(){xi?xi.disconnect():window.removeEventListener("resize",Ti),P.removeChild(ui)}return Ti(),{canvas:ui,onDestroy:gi}}function w(P,rt){function gt(ui){try{return P.getContext(ui,rt)}catch{return null}}return gt("webgl")||gt("experimental-webgl")||gt("webgl-experimental")}function I(P){return typeof P.nodeName=="string"&&typeof P.appendChild=="function"&&typeof P.getBoundingClientRect=="function"}function K(P){return typeof P.drawArrays=="function"||typeof P.drawElements=="function"}function U(P){return typeof P=="string"?P.split():P}function Y(P){return typeof P=="string"?document.querySelector(P):P}function J(P){var rt=P||{},gt,ui,Ti,xi,gi={},Zi=[],Ki=[],Yi=typeof window>"u"?1:window.devicePixelRatio,dn=!1,Fn={},En=function(Yt){},en=function(){};if(typeof rt=="string"?gt=document.querySelector(rt):typeof rt=="object"&&(I(rt)?gt=rt:K(rt)?(xi=rt,Ti=xi.canvas):("gl"in rt?xi=rt.gl:"canvas"in rt?Ti=Y(rt.canvas):"container"in rt&&(ui=Y(rt.container)),"attributes"in rt&&(gi=rt.attributes),"extensions"in rt&&(Zi=U(rt.extensions)),"optionalExtensions"in rt&&(Ki=U(rt.optionalExtensions)),"onDone"in rt&&(En=rt.onDone),"profile"in rt&&(dn=!!rt.profile),"pixelRatio"in rt&&(Yi=+rt.pixelRatio),"cachedCode"in rt&&(Fn=rt.cachedCode))),gt&&(gt.nodeName.toLowerCase()==="canvas"?Ti=gt:ui=gt),!xi){if(!Ti){var Ii=T(ui||document.body,En,Yi);if(!Ii)return null;Ti=Ii.canvas,en=Ii.onDestroy}gi.premultipliedAlpha===void 0&&(gi.premultipliedAlpha=!0),xi=w(Ti,gi)}return xi?{gl:xi,canvas:Ti,container:ui,extensions:Zi,optionalExtensions:Ki,pixelRatio:Yi,profile:dn,cachedCode:Fn,onDone:En,onDestroy:en}:(en(),En("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function S(P,rt){var gt={};function ui(gi){var Zi=gi.toLowerCase(),Ki;try{Ki=gt[Zi]=P.getExtension(Zi)}catch{}return!!Ki}for(var Ti=0;Ti<rt.extensions.length;++Ti){var xi=rt.extensions[Ti];if(!ui(xi))return rt.onDestroy(),rt.onDone('"'+xi+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return rt.optionalExtensions.forEach(ui),{extensions:gt,restore:function(){Object.keys(gt).forEach(function(gi){if(gt[gi]&&!ui(gi))throw new Error("(regl): error restoring extension "+gi)})}}}function Q(P,rt){for(var gt=Array(P),ui=0;ui<P;++ui)gt[ui]=rt(ui);return gt}var ae=5120,x=5121,A=5122,O=5123,k=5124,C=5125,ee=5126;function Re(P){for(var rt=16;rt<=1<<28;rt*=16)if(P<=rt)return rt;return 0}function ge(P){var rt,gt;return rt=(P>65535)<<4,P>>>=rt,gt=(P>255)<<3,P>>>=gt,rt|=gt,gt=(P>15)<<2,P>>>=gt,rt|=gt,gt=(P>3)<<1,P>>>=gt,rt|=gt,rt|P>>1}function F(){var P=Q(8,function(){return[]});function rt(xi){var gi=Re(xi),Zi=P[ge(gi)>>2];return Zi.length>0?Zi.pop():new ArrayBuffer(gi)}function gt(xi){P[ge(xi.byteLength)>>2].push(xi)}function ui(xi,gi){var Zi=null;switch(xi){case ae:Zi=new Int8Array(rt(gi),0,gi);break;case x:Zi=new Uint8Array(rt(gi),0,gi);break;case A:Zi=new Int16Array(rt(2*gi),0,gi);break;case O:Zi=new Uint16Array(rt(2*gi),0,gi);break;case k:Zi=new Int32Array(rt(4*gi),0,gi);break;case C:Zi=new Uint32Array(rt(4*gi),0,gi);break;case ee:Zi=new Float32Array(rt(4*gi),0,gi);break;default:return null}return Zi.length!==gi?Zi.subarray(0,gi):Zi}function Ti(xi){gt(xi.buffer)}return{alloc:rt,free:gt,allocType:ui,freeType:Ti}}var H=F();H.zero=F();var R=3408,$=3410,q=3411,se=3412,te=3413,qe=3414,we=3415,Se=33901,G=33902,de=3379,Ae=3386,W=34921,re=36347,Rt=36348,Ve=35661,Fe=35660,he=34930,L=36349,Z=34076,ie=34024,be=7936,Ge=7937,N=7938,$e=35724,He=34047,ne=36063,me=34852,B=3553,j=34067,ue=34069,M=33984,le=6408,De=5126,Ee=5121,ft=36160,At=36053,lt=36064,Ke=16384,tt=function(P,rt){var gt=1;rt.ext_texture_filter_anisotropic&&(gt=P.getParameter(He));var ui=1,Ti=1;rt.webgl_draw_buffers&&(ui=P.getParameter(me),Ti=P.getParameter(ne));var xi=!!rt.oes_texture_float;if(xi){var gi=P.createTexture();P.bindTexture(B,gi),P.texImage2D(B,0,le,1,1,0,le,De,null);var Zi=P.createFramebuffer();if(P.bindFramebuffer(ft,Zi),P.framebufferTexture2D(ft,lt,B,gi,0),P.bindTexture(B,null),P.checkFramebufferStatus(ft)!==At)xi=!1;else{P.viewport(0,0,1,1),P.clearColor(1,0,0,1),P.clear(Ke);var Ki=H.allocType(De,4);P.readPixels(0,0,1,1,le,De,Ki),P.getError()?xi=!1:(P.deleteFramebuffer(Zi),P.deleteTexture(gi),xi=Ki[0]===1),H.freeType(Ki)}}var Yi=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),dn=!0;if(!Yi){var Fn=P.createTexture(),En=H.allocType(Ee,36);P.activeTexture(M),P.bindTexture(j,Fn),P.texImage2D(ue,0,le,3,3,0,le,Ee,En),H.freeType(En),P.bindTexture(j,null),P.deleteTexture(Fn),dn=!P.getError()}return{colorBits:[P.getParameter($),P.getParameter(q),P.getParameter(se),P.getParameter(te)],depthBits:P.getParameter(qe),stencilBits:P.getParameter(we),subpixelBits:P.getParameter(R),extensions:Object.keys(rt).filter(function(en){return!!rt[en]}),maxAnisotropic:gt,maxDrawbuffers:ui,maxColorAttachments:Ti,pointSizeDims:P.getParameter(Se),lineWidthDims:P.getParameter(G),maxViewportDims:P.getParameter(Ae),maxCombinedTextureUnits:P.getParameter(Ve),maxCubeMapSize:P.getParameter(Z),maxRenderbufferSize:P.getParameter(ie),maxTextureUnits:P.getParameter(he),maxTextureSize:P.getParameter(de),maxAttributes:P.getParameter(W),maxVertexUniforms:P.getParameter(re),maxVertexTextureUnits:P.getParameter(Fe),maxVaryingVectors:P.getParameter(Rt),maxFragmentUniforms:P.getParameter(L),glsl:P.getParameter($e),renderer:P.getParameter(Ge),vendor:P.getParameter(be),version:P.getParameter(N),readFloat:xi,npotTextureCube:dn}},fe=function(P){return P instanceof Uint8Array||P instanceof Uint16Array||P instanceof Uint32Array||P instanceof Int8Array||P instanceof Int16Array||P instanceof Int32Array||P instanceof Float32Array||P instanceof Float64Array||P instanceof Uint8ClampedArray};function je(P){return!!P&&typeof P=="object"&&Array.isArray(P.shape)&&Array.isArray(P.stride)&&typeof P.offset=="number"&&P.shape.length===P.stride.length&&(Array.isArray(P.data)||fe(P.data))}var ot=function(P){return Object.keys(P).map(function(rt){return P[rt]})},Ne={shape:ke,flatten:Be};function et(P,rt,gt){for(var ui=0;ui<rt;++ui)gt[ui]=P[ui]}function ht(P,rt,gt,ui){for(var Ti=0,xi=0;xi<rt;++xi)for(var gi=P[xi],Zi=0;Zi<gt;++Zi)ui[Ti++]=gi[Zi]}function Ue(P,rt,gt,ui,Ti,xi){for(var gi=xi,Zi=0;Zi<rt;++Zi)for(var Ki=P[Zi],Yi=0;Yi<gt;++Yi)for(var dn=Ki[Yi],Fn=0;Fn<ui;++Fn)Ti[gi++]=dn[Fn]}function Me(P,rt,gt,ui,Ti){for(var xi=1,gi=gt+1;gi<rt.length;++gi)xi*=rt[gi];var Zi=rt[gt];if(rt.length-gt===4){var Ki=rt[gt+1],Yi=rt[gt+2],dn=rt[gt+3];for(gi=0;gi<Zi;++gi)Ue(P[gi],Ki,Yi,dn,ui,Ti),Ti+=xi}else for(gi=0;gi<Zi;++gi)Me(P[gi],rt,gt+1,ui,Ti),Ti+=xi}function Be(P,rt,gt,ui){var Ti=1;if(rt.length)for(var xi=0;xi<rt.length;++xi)Ti*=rt[xi];else Ti=0;var gi=ui||H.allocType(gt,Ti);switch(rt.length){case 0:break;case 1:et(P,rt[0],gi);break;case 2:ht(P,rt[0],rt[1],gi);break;case 3:Ue(P,rt[0],rt[1],rt[2],gi,0);break;default:Me(P,rt,0,gi,0)}return gi}function ke(P){for(var rt=[],gt=P;gt.length;gt=gt[0])rt.push(gt.length);return rt}var Te={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},ze=5120,Xe=5122,ut=5124,at=5121,Je=5123,it=5125,ct=5126,ve=5126,D={int8:ze,int16:Xe,int32:ut,uint8:at,uint16:Je,uint32:it,float:ct,float32:ve},oe=35048,xe=35040,ce={dynamic:oe,stream:xe,static:35044},Oe=Ne.flatten,Ye=Ne.shape,pe=35044,Ce=35040,Qe=5121,Pe=5126,ye=[];ye[5120]=1,ye[5122]=2,ye[5124]=4,ye[5121]=1,ye[5123]=2,ye[5125]=4,ye[5126]=4;function mt(P){return Te[Object.prototype.toString.call(P)]|0}function wt(P,rt){for(var gt=0;gt<rt.length;++gt)P[gt]=rt[gt]}function Le(P,rt,gt,ui,Ti,xi,gi){for(var Zi=0,Ki=0;Ki<gt;++Ki)for(var Yi=0;Yi<ui;++Yi)P[Zi++]=rt[Ti*Ki+xi*Yi+gi]}function _t(P,rt,gt,ui){var Ti=0,xi={};function gi(Yt){this.id=Ti++,this.buffer=P.createBuffer(),this.type=Yt,this.usage=pe,this.byteLength=0,this.dimension=1,this.dtype=Qe,this.persistentData=null,gt.profile&&(this.stats={size:0})}gi.prototype.bind=function(){P.bindBuffer(this.type,this.buffer)},gi.prototype.destroy=function(){En(this)};var Zi=[];function Ki(Yt,mi){var Ni=Zi.pop();return Ni||(Ni=new gi(Yt)),Ni.bind(),Fn(Ni,mi,Ce,0,1,!1),Ni}function Yi(Yt){Zi.push(Yt)}function dn(Yt,mi,Ni){Yt.byteLength=mi.byteLength,P.bufferData(Yt.type,mi,Ni)}function Fn(Yt,mi,Ni,Pi,Si,an){var Ji;if(Yt.usage=Ni,Array.isArray(mi)){if(Yt.dtype=Pi||Pe,mi.length>0){var Tn;if(Array.isArray(mi[0])){Ji=Ye(mi);for(var Oi=1,vi=1;vi<Ji.length;++vi)Oi*=Ji[vi];Yt.dimension=Oi,Tn=Oe(mi,Ji,Yt.dtype),dn(Yt,Tn,Ni),an?Yt.persistentData=Tn:H.freeType(Tn)}else if(typeof mi[0]=="number"){Yt.dimension=Si;var ln=H.allocType(Yt.dtype,mi.length);wt(ln,mi),dn(Yt,ln,Ni),an?Yt.persistentData=ln:H.freeType(ln)}else fe(mi[0])&&(Yt.dimension=mi[0].length,Yt.dtype=Pi||mt(mi[0])||Pe,Tn=Oe(mi,[mi.length,mi[0].length],Yt.dtype),dn(Yt,Tn,Ni),an?Yt.persistentData=Tn:H.freeType(Tn))}}else if(fe(mi))Yt.dtype=Pi||mt(mi),Yt.dimension=Si,dn(Yt,mi,Ni),an&&(Yt.persistentData=new Uint8Array(new Uint8Array(mi.buffer)));else if(je(mi)){Ji=mi.shape;var hi=mi.stride,nn=mi.offset,Hi=0,On=0,sr=0,on=0;Ji.length===1?(Hi=Ji[0],On=1,sr=hi[0],on=0):Ji.length===2&&(Hi=Ji[0],On=Ji[1],sr=hi[0],on=hi[1]),Yt.dtype=Pi||mt(mi.data)||Pe,Yt.dimension=On;var In=H.allocType(Yt.dtype,Hi*On);Le(In,mi.data,Hi,On,sr,on,nn),dn(Yt,In,Ni),an?Yt.persistentData=In:H.freeType(In)}else mi instanceof ArrayBuffer&&(Yt.dtype=Qe,Yt.dimension=Si,dn(Yt,mi,Ni),an&&(Yt.persistentData=new Uint8Array(new Uint8Array(mi))))}function En(Yt){rt.bufferCount--,ui(Yt);var mi=Yt.buffer;P.deleteBuffer(mi),Yt.buffer=null,delete xi[Yt.id]}function en(Yt,mi,Ni,Pi){rt.bufferCount++;var Si=new gi(mi);xi[Si.id]=Si;function an(Oi){var vi=pe,ln=null,hi=0,nn=0,Hi=1;return Array.isArray(Oi)||fe(Oi)||je(Oi)||Oi instanceof ArrayBuffer?ln=Oi:typeof Oi=="number"?hi=Oi|0:Oi&&("data"in Oi&&(ln=Oi.data),"usage"in Oi&&(vi=ce[Oi.usage]),"type"in Oi&&(nn=D[Oi.type]),"dimension"in Oi&&(Hi=Oi.dimension|0),"length"in Oi&&(hi=Oi.length|0)),Si.bind(),ln?Fn(Si,ln,vi,nn,Hi,Pi):(hi&&P.bufferData(Si.type,hi,vi),Si.dtype=nn||Qe,Si.usage=vi,Si.dimension=Hi,Si.byteLength=hi),gt.profile&&(Si.stats.size=Si.byteLength*ye[Si.dtype]),an}function Ji(Oi,vi){P.bufferSubData(Si.type,vi,Oi)}function Tn(Oi,vi){var ln=(vi||0)|0,hi;if(Si.bind(),fe(Oi)||Oi instanceof ArrayBuffer)Ji(Oi,ln);else if(Array.isArray(Oi)){if(Oi.length>0){if(typeof Oi[0]=="number"){var nn=H.allocType(Si.dtype,Oi.length);wt(nn,Oi),Ji(nn,ln),H.freeType(nn)}else if(Array.isArray(Oi[0])||fe(Oi[0])){hi=Ye(Oi);var Hi=Oe(Oi,hi,Si.dtype);Ji(Hi,ln),H.freeType(Hi)}}}else if(je(Oi)){hi=Oi.shape;var On=Oi.stride,sr=0,on=0,In=0,Vi=0;hi.length===1?(sr=hi[0],on=1,In=On[0],Vi=0):hi.length===2&&(sr=hi[0],on=hi[1],In=On[0],Vi=On[1]);var qn=Array.isArray(Oi.data)?Si.dtype:mt(Oi.data),or=H.allocType(qn,sr*on);Le(or,Oi.data,sr,on,In,Vi,Oi.offset),Ji(or,ln),H.freeType(or)}return an}return Ni||an(Yt),an._reglType="buffer",an._buffer=Si,an.subdata=Tn,gt.profile&&(an.stats=Si.stats),an.destroy=function(){En(Si)},an}function Ii(){ot(xi).forEach(function(Yt){Yt.buffer=P.createBuffer(),P.bindBuffer(Yt.type,Yt.buffer),P.bufferData(Yt.type,Yt.persistentData||Yt.byteLength,Yt.usage)})}return gt.profile&&(rt.getTotalBufferSize=function(){var Yt=0;return Object.keys(xi).forEach(function(mi){Yt+=xi[mi].stats.size}),Yt}),{create:en,createStream:Ki,destroyStream:Yi,clear:function(){ot(xi).forEach(En),Zi.forEach(En)},getBuffer:function(Yt){return Yt&&Yt._buffer instanceof gi?Yt._buffer:null},restore:Ii,_initBuffer:Fn}}var bt=0,nt=0,yt=1,Lt=1,Tt=4,Nt=4,zt={points:bt,point:nt,lines:yt,line:Lt,triangles:Tt,triangle:Nt,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ut=0,Mt=1,Kt=4,ei=5120,Jt=5121,Wt=5122,$t=5123,Gt=5124,Ot=5125,Bt=34963,Zt=35040,St=35044;function Vt(P,rt,gt,ui){var Ti={},xi=0,gi={uint8:Jt,uint16:$t};rt.oes_element_index_uint&&(gi.uint32=Ot);function Zi(Ii){this.id=xi++,Ti[this.id]=this,this.buffer=Ii,this.primType=Kt,this.vertCount=0,this.type=0}Zi.prototype.bind=function(){this.buffer.bind()};var Ki=[];function Yi(Ii){var Yt=Ki.pop();return Yt||(Yt=new Zi(gt.create(null,Bt,!0,!1)._buffer)),Fn(Yt,Ii,Zt,-1,-1,0,0),Yt}function dn(Ii){Ki.push(Ii)}function Fn(Ii,Yt,mi,Ni,Pi,Si,an){Ii.buffer.bind();var Ji;if(Yt){var Tn=an;!an&&(!fe(Yt)||je(Yt)&&!fe(Yt.data))&&(Tn=rt.oes_element_index_uint?Ot:$t),gt._initBuffer(Ii.buffer,Yt,mi,Tn,3)}else P.bufferData(Bt,Si,mi),Ii.buffer.dtype=Ji||Jt,Ii.buffer.usage=mi,Ii.buffer.dimension=3,Ii.buffer.byteLength=Si;if(Ji=an,!an){switch(Ii.buffer.dtype){case Jt:case ei:Ji=Jt;break;case $t:case Wt:Ji=$t;break;case Ot:case Gt:Ji=Ot;break}Ii.buffer.dtype=Ji}Ii.type=Ji;var Oi=Pi;Oi<0&&(Oi=Ii.buffer.byteLength,Ji===$t?Oi>>=1:Ji===Ot&&(Oi>>=2)),Ii.vertCount=Oi;var vi=Ni;if(Ni<0){vi=Kt;var ln=Ii.buffer.dimension;ln===1&&(vi=Ut),ln===2&&(vi=Mt),ln===3&&(vi=Kt)}Ii.primType=vi}function En(Ii){ui.elementsCount--,delete Ti[Ii.id],Ii.buffer.destroy(),Ii.buffer=null}function en(Ii,Yt){var mi=gt.create(null,Bt,!0),Ni=new Zi(mi._buffer);ui.elementsCount++;function Pi(Si){if(!Si)mi(),Ni.primType=Kt,Ni.vertCount=0,Ni.type=Jt;else if(typeof Si=="number")mi(Si),Ni.primType=Kt,Ni.vertCount=Si|0,Ni.type=Jt;else{var an=null,Ji=St,Tn=-1,Oi=-1,vi=0,ln=0;Array.isArray(Si)||fe(Si)||je(Si)?an=Si:("data"in Si&&(an=Si.data),"usage"in Si&&(Ji=ce[Si.usage]),"primitive"in Si&&(Tn=zt[Si.primitive]),"count"in Si&&(Oi=Si.count|0),"type"in Si&&(ln=gi[Si.type]),"length"in Si?vi=Si.length|0:(vi=Oi,ln===$t||ln===Wt?vi*=2:(ln===Ot||ln===Gt)&&(vi*=4))),Fn(Ni,an,Ji,Tn,Oi,vi,ln)}return Pi}return Pi(Ii),Pi._reglType="elements",Pi._elements=Ni,Pi.subdata=function(Si,an){return mi.subdata(Si,an),Pi},Pi.destroy=function(){En(Ni)},Pi}return{create:en,createStream:Yi,destroyStream:dn,getElements:function(Ii){return typeof Ii=="function"&&Ii._elements instanceof Zi?Ii._elements:null},clear:function(){ot(Ti).forEach(En)}}}var Dt=new Float32Array(1),ii=new Uint32Array(Dt.buffer),Pt=5123;function Qt(P){for(var rt=H.allocType(Pt,P.length),gt=0;gt<P.length;++gt)if(isNaN(P[gt]))rt[gt]=65535;else if(P[gt]===1/0)rt[gt]=31744;else if(P[gt]===-1/0)rt[gt]=64512;else{Dt[0]=P[gt];var ui=ii[0],Ti=ui>>>31<<15,xi=(ui<<1>>>24)-127,gi=ui>>13&1023;if(xi<-24)rt[gt]=Ti;else if(xi<-14){var Zi=-14-xi;rt[gt]=Ti+(gi+1024>>Zi)}else xi>15?rt[gt]=Ti+31744:rt[gt]=Ti+(xi+15<<10)+gi}return rt}function xt(P){return Array.isArray(P)||fe(P)}var pt=34467,vt=3553,It=34067,Ft=34069,qt=6408,zi=6406,Mi=6407,di=6409,Ri=6410,yi=32854,Ui=32855,Li=36194,Ei=32819,wi=32820,Ci=33635,Di=34042,$i=6402,Gi=34041,tn=35904,Wi=35906,qi=36193,Xi=33776,un=33777,Qi=33778,sn=33779,xn=35986,wn=35987,fn=34798,zn=35840,Ln=35841,Dn=35842,Wn=35843,Nn=36196,Gn=5121,Zn=5123,jn=5125,Sn=5126,Qn=10242,Hn=10243,Pn=10497,vr=33071,Jn=33648,rr=10240,hr=10241,Rn=9728,Ur=9729,Na=9984,ca=9985,Xa=9986,ya=9987,va=33170,al=4352,Ll=4353,xa=4354,hs=34046,ms=3317,pl=37440,ps=37441,bs=37443,gs=37444,Pl=33984,gr=[Na,Xa,ca,ya],ll=[0,di,Ri,Mi,qt],$a={};$a[di]=$a[zi]=$a[$i]=1,$a[Gi]=$a[Ri]=2,$a[Mi]=$a[tn]=3,$a[qt]=$a[Wi]=4;function bl(P){return"[object "+P+"]"}var wa=bl("HTMLCanvasElement"),Zl=bl("OffscreenCanvas"),Rl=bl("CanvasRenderingContext2D"),sl=bl("ImageBitmap"),Br=bl("HTMLImageElement"),Sa=bl("HTMLVideoElement"),so=Object.keys(Te).concat([wa,Zl,Rl,sl,Br,Sa]),Aa=[];Aa[Gn]=1,Aa[Sn]=4,Aa[qi]=2,Aa[Zn]=2,Aa[jn]=4;var $n=[];$n[yi]=2,$n[Ui]=2,$n[Li]=2,$n[Gi]=4,$n[Xi]=.5,$n[un]=.5,$n[Qi]=1,$n[sn]=1,$n[xn]=.5,$n[wn]=1,$n[fn]=1,$n[zn]=.5,$n[Ln]=.25,$n[Dn]=.5,$n[Wn]=.25,$n[Nn]=.5;function _s(P){return Array.isArray(P)&&(P.length===0||typeof P[0]=="number")}function Ql(P){if(!Array.isArray(P))return!1;var rt=P.length;return!(rt===0||!xt(P[0]))}function Za(P){return Object.prototype.toString.call(P)}function Fs(P){return Za(P)===wa}function mr(P){return Za(P)===Zl}function Ms(P){return Za(P)===Rl}function oo(P){return Za(P)===sl}function Ds(P){return Za(P)===Br}function Qa(P){return Za(P)===Sa}function ys(P){if(!P)return!1;var rt=Za(P);return so.indexOf(rt)>=0?!0:_s(P)||Ql(P)||je(P)}function Kl(P){return Te[Object.prototype.toString.call(P)]|0}function Ul(P,rt){var gt=rt.length;switch(P.type){case Gn:case Zn:case jn:case Sn:var ui=H.allocType(P.type,gt);ui.set(rt),P.data=ui;break;case qi:P.data=Qt(rt);break}}function vs(P,rt){return H.allocType(P.type===qi?Sn:P.type,rt)}function Ba(P,rt){P.type===qi?(P.data=Qt(rt),H.freeType(rt)):P.data=rt}function Ao(P,rt,gt,ui,Ti,xi){for(var gi=P.width,Zi=P.height,Ki=P.channels,Yi=gi*Zi*Ki,dn=vs(P,Yi),Fn=0,En=0;En<Zi;++En)for(var en=0;en<gi;++en)for(var Ii=0;Ii<Ki;++Ii)dn[Fn++]=rt[gt*en+ui*En+Ti*Ii+xi];Ba(P,dn)}function gl(P,rt,gt,ui,Ti,xi){var gi;if(typeof $n[P]<"u"?gi=$n[P]:gi=$a[P]*Aa[rt],xi&&(gi*=6),Ti){for(var Zi=0,Ki=gt;Ki>=1;)Zi+=gi*Ki*Ki,Ki/=2;return Zi}else return gi*gt*ui}function _r(P,rt,gt,ui,Ti,xi,gi){var Zi={"don't care":al,"dont care":al,nice:xa,fast:Ll},Ki={repeat:Pn,clamp:vr,mirror:Jn},Yi={nearest:Rn,linear:Ur},dn=t({mipmap:ya,"nearest mipmap nearest":Na,"linear mipmap nearest":ca,"nearest mipmap linear":Xa,"linear mipmap linear":ya},Yi),Fn={none:0,browser:gs},En={uint8:Gn,rgba4:Ei,rgb565:Ci,"rgb5 a1":wi},en={alpha:zi,luminance:di,"luminance alpha":Ri,rgb:Mi,rgba:qt,rgba4:yi,"rgb5 a1":Ui,rgb565:Li},Ii={};rt.ext_srgb&&(en.srgb=tn,en.srgba=Wi),rt.oes_texture_float&&(En.float32=En.float=Sn),rt.oes_texture_half_float&&(En.float16=En["half float"]=qi),rt.webgl_depth_texture&&(t(en,{depth:$i,"depth stencil":Gi}),t(En,{uint16:Zn,uint32:jn,"depth stencil":Di})),rt.webgl_compressed_texture_s3tc&&t(Ii,{"rgb s3tc dxt1":Xi,"rgba s3tc dxt1":un,"rgba s3tc dxt3":Qi,"rgba s3tc dxt5":sn}),rt.webgl_compressed_texture_atc&&t(Ii,{"rgb atc":xn,"rgba atc explicit alpha":wn,"rgba atc interpolated alpha":fn}),rt.webgl_compressed_texture_pvrtc&&t(Ii,{"rgb pvrtc 4bppv1":zn,"rgb pvrtc 2bppv1":Ln,"rgba pvrtc 4bppv1":Dn,"rgba pvrtc 2bppv1":Wn}),rt.webgl_compressed_texture_etc1&&(Ii["rgb etc1"]=Nn);var Yt=Array.prototype.slice.call(P.getParameter(pt));Object.keys(Ii).forEach(function(We){var ri=Ii[We];Yt.indexOf(ri)>=0&&(en[We]=ri)});var mi=Object.keys(en);gt.textureFormats=mi;var Ni=[];Object.keys(en).forEach(function(We){var ri=en[We];Ni[ri]=We});var Pi=[];Object.keys(En).forEach(function(We){var ri=En[We];Pi[ri]=We});var Si=[];Object.keys(Yi).forEach(function(We){var ri=Yi[We];Si[ri]=We});var an=[];Object.keys(dn).forEach(function(We){var ri=dn[We];an[ri]=We});var Ji=[];Object.keys(Ki).forEach(function(We){var ri=Ki[We];Ji[ri]=We});var Tn=mi.reduce(function(We,ri){var oi=en[ri];return oi===di||oi===zi||oi===di||oi===Ri||oi===$i||oi===Gi||rt.ext_srgb&&(oi===tn||oi===Wi)?We[oi]=oi:oi===Ui||ri.indexOf("rgba")>=0?We[oi]=qt:We[oi]=Mi,We},{});function Oi(){this.internalformat=qt,this.format=qt,this.type=Gn,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=gs,this.width=0,this.height=0,this.channels=0}function vi(We,ri){We.internalformat=ri.internalformat,We.format=ri.format,We.type=ri.type,We.compressed=ri.compressed,We.premultiplyAlpha=ri.premultiplyAlpha,We.flipY=ri.flipY,We.unpackAlignment=ri.unpackAlignment,We.colorSpace=ri.colorSpace,We.width=ri.width,We.height=ri.height,We.channels=ri.channels}function ln(We,ri){if(!(typeof ri!="object"||!ri)){if("premultiplyAlpha"in ri&&(We.premultiplyAlpha=ri.premultiplyAlpha),"flipY"in ri&&(We.flipY=ri.flipY),"alignment"in ri&&(We.unpackAlignment=ri.alignment),"colorSpace"in ri&&(We.colorSpace=Fn[ri.colorSpace]),"type"in ri){var oi=ri.type;We.type=En[oi]}var _n=We.width,ur=We.height,pa=We.channels,yn=!1;"shape"in ri?(_n=ri.shape[0],ur=ri.shape[1],ri.shape.length===3&&(pa=ri.shape[2],yn=!0)):("radius"in ri&&(_n=ur=ri.radius),"width"in ri&&(_n=ri.width),"height"in ri&&(ur=ri.height),"channels"in ri&&(pa=ri.channels,yn=!0)),We.width=_n|0,We.height=ur|0,We.channels=pa|0;var Ie=!1;if("format"in ri){var Ze=ri.format,Et=We.internalformat=en[Ze];We.format=Tn[Et],Ze in En&&("type"in ri||(We.type=En[Ze])),Ze in Ii&&(We.compressed=!0),Ie=!0}!yn&&Ie?We.channels=$a[We.format]:yn&&!Ie&&We.channels!==ll[We.format]&&(We.format=We.internalformat=ll[We.channels])}}function hi(We){P.pixelStorei(pl,We.flipY),P.pixelStorei(ps,We.premultiplyAlpha),P.pixelStorei(bs,We.colorSpace),P.pixelStorei(ms,We.unpackAlignment)}function nn(){Oi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Hi(We,ri){var oi=null;if(ys(ri)?oi=ri:ri&&(ln(We,ri),"x"in ri&&(We.xOffset=ri.x|0),"y"in ri&&(We.yOffset=ri.y|0),ys(ri.data)&&(oi=ri.data)),ri.copy){var _n=Ti.viewportWidth,ur=Ti.viewportHeight;We.width=We.width||_n-We.xOffset,We.height=We.height||ur-We.yOffset,We.needsCopy=!0}else if(!oi)We.width=We.width||1,We.height=We.height||1,We.channels=We.channels||4;else if(fe(oi))We.channels=We.channels||4,We.data=oi,!("type"in ri)&&We.type===Gn&&(We.type=Kl(oi));else if(_s(oi))We.channels=We.channels||4,Ul(We,oi),We.alignment=1,We.needsFree=!0;else if(je(oi)){var pa=oi.data;!Array.isArray(pa)&&We.type===Gn&&(We.type=Kl(pa));var yn=oi.shape,Ie=oi.stride,Ze,Et,fi,ai,ti,Xt;yn.length===3?(fi=yn[2],Xt=Ie[2]):(fi=1,Xt=1),Ze=yn[0],Et=yn[1],ai=Ie[0],ti=Ie[1],We.alignment=1,We.width=Ze,We.height=Et,We.channels=fi,We.format=We.internalformat=ll[fi],We.needsFree=!0,Ao(We,pa,ai,ti,Xt,oi.offset)}else if(Fs(oi)||mr(oi)||Ms(oi))Fs(oi)||mr(oi)?We.element=oi:We.element=oi.canvas,We.width=We.element.width,We.height=We.element.height,We.channels=4;else if(oo(oi))We.element=oi,We.width=oi.width,We.height=oi.height,We.channels=4;else if(Ds(oi))We.element=oi,We.width=oi.naturalWidth,We.height=oi.naturalHeight,We.channels=4;else if(Qa(oi))We.element=oi,We.width=oi.videoWidth,We.height=oi.videoHeight,We.channels=4;else if(Ql(oi)){var Ht=We.width||oi[0].length,dt=We.height||oi.length,kt=We.channels;xt(oi[0][0])?kt=kt||oi[0][0].length:kt=kt||1;for(var st=Ne.shape(oi),li=1,_i=0;_i<st.length;++_i)li*=st[_i];var Ai=vs(We,li);Ne.flatten(oi,st,"",Ai),Ba(We,Ai),We.alignment=1,We.width=Ht,We.height=dt,We.channels=kt,We.format=We.internalformat=ll[kt],We.needsFree=!0}We.type===Sn||We.type}function On(We,ri,oi){var _n=We.element,ur=We.data,pa=We.internalformat,yn=We.format,Ie=We.type,Ze=We.width,Et=We.height;hi(We),_n?P.texImage2D(ri,oi,yn,yn,Ie,_n):We.compressed?P.compressedTexImage2D(ri,oi,pa,Ze,Et,0,ur):We.needsCopy?(ui(),P.copyTexImage2D(ri,oi,yn,We.xOffset,We.yOffset,Ze,Et,0)):P.texImage2D(ri,oi,yn,Ze,Et,0,yn,Ie,ur||null)}function sr(We,ri,oi,_n,ur){var pa=We.element,yn=We.data,Ie=We.internalformat,Ze=We.format,Et=We.type,fi=We.width,ai=We.height;hi(We),pa?P.texSubImage2D(ri,ur,oi,_n,Ze,Et,pa):We.compressed?P.compressedTexSubImage2D(ri,ur,oi,_n,Ie,fi,ai,yn):We.needsCopy?(ui(),P.copyTexSubImage2D(ri,ur,oi,_n,We.xOffset,We.yOffset,fi,ai)):P.texSubImage2D(ri,ur,oi,_n,fi,ai,Ze,Et,yn)}var on=[];function In(){return on.pop()||new nn}function Vi(We){We.needsFree&&H.freeType(We.data),nn.call(We),on.push(We)}function qn(){Oi.call(this),this.genMipmaps=!1,this.mipmapHint=al,this.mipmask=0,this.images=Array(16)}function or(We,ri,oi){var _n=We.images[0]=In();We.mipmask=1,_n.width=We.width=ri,_n.height=We.height=oi,_n.channels=We.channels=4}function kr(We,ri){var oi=null;if(ys(ri))oi=We.images[0]=In(),vi(oi,We),Hi(oi,ri),We.mipmask=1;else if(ln(We,ri),Array.isArray(ri.mipmap))for(var _n=ri.mipmap,ur=0;ur<_n.length;++ur)oi=We.images[ur]=In(),vi(oi,We),oi.width>>=ur,oi.height>>=ur,Hi(oi,_n[ur]),We.mipmask|=1<<ur;else oi=We.images[0]=In(),vi(oi,We),Hi(oi,ri),We.mipmask=1;vi(We,We.images[0]),We.compressed&&(We.internalformat===Xi||We.internalformat===un||We.internalformat===Qi||We.internalformat)}function za(We,ri){for(var oi=We.images,_n=0;_n<oi.length;++_n){if(!oi[_n])return;On(oi[_n],ri,_n)}}var lr=[];function Hr(){var We=lr.pop()||new qn;Oi.call(We),We.mipmask=0;for(var ri=0;ri<16;++ri)We.images[ri]=null;return We}function jr(We){for(var ri=We.images,oi=0;oi<ri.length;++oi)ri[oi]&&Vi(ri[oi]),ri[oi]=null;lr.push(We)}function ls(){this.minFilter=Rn,this.magFilter=Rn,this.wrapS=vr,this.wrapT=vr,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=al}function eo(We,ri){if("min"in ri){var oi=ri.min;We.minFilter=dn[oi],gr.indexOf(We.minFilter)>=0&&!("faces"in ri)&&(We.genMipmaps=!0)}if("mag"in ri){var _n=ri.mag;We.magFilter=Yi[_n]}var ur=We.wrapS,pa=We.wrapT;if("wrap"in ri){var yn=ri.wrap;typeof yn=="string"?ur=pa=Ki[yn]:Array.isArray(yn)&&(ur=Ki[yn[0]],pa=Ki[yn[1]])}else{if("wrapS"in ri){var Ie=ri.wrapS;ur=Ki[Ie]}if("wrapT"in ri){var Ze=ri.wrapT;pa=Ki[Ze]}}if(We.wrapS=ur,We.wrapT=pa,"anisotropic"in ri&&(ri.anisotropic,We.anisotropic=ri.anisotropic),"mipmap"in ri){var Et=!1;switch(typeof ri.mipmap){case"string":We.mipmapHint=Zi[ri.mipmap],We.genMipmaps=!0,Et=!0;break;case"boolean":Et=We.genMipmaps=ri.mipmap;break;case"object":We.genMipmaps=!1,Et=!0;break}Et&&!("min"in ri)&&(We.minFilter=Na)}}function Us(We,ri){P.texParameteri(ri,hr,We.minFilter),P.texParameteri(ri,rr,We.magFilter),P.texParameteri(ri,Qn,We.wrapS),P.texParameteri(ri,Hn,We.wrapT),rt.ext_texture_filter_anisotropic&&P.texParameteri(ri,hs,We.anisotropic),We.genMipmaps&&(P.hint(va,We.mipmapHint),P.generateMipmap(ri))}var Ko=0,Ga={},Ol=gt.maxTextureUnits,Yn=Array(Ol).map(function(){return null});function zo(We){Oi.call(this),this.mipmask=0,this.internalformat=qt,this.id=Ko++,this.refCount=1,this.target=We,this.texture=P.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new ls,gi.profile&&(this.stats={size:0})}function Xr(We){P.activeTexture(Pl),P.bindTexture(We.target,We.texture)}function kl(){var We=Yn[0];We?P.bindTexture(We.target,We.texture):P.bindTexture(vt,null)}function to(We){var ri=We.texture,oi=We.unit,_n=We.target;oi>=0&&(P.activeTexture(Pl+oi),P.bindTexture(_n,null),Yn[oi]=null),P.deleteTexture(ri),We.texture=null,We.params=null,We.pixels=null,We.refCount=0,delete Ga[We.id],xi.textureCount--}t(zo.prototype,{bind:function(){var We=this;We.bindCount+=1;var ri=We.unit;if(ri<0){for(var oi=0;oi<Ol;++oi){var _n=Yn[oi];if(_n){if(_n.bindCount>0)continue;_n.unit=-1}Yn[oi]=We,ri=oi;break}gi.profile&&xi.maxTextureUnits<ri+1&&(xi.maxTextureUnits=ri+1),We.unit=ri,P.activeTexture(Pl+ri),P.bindTexture(We.target,We.texture)}return ri},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&to(this)}});function Gs(We,ri){var oi=new zo(vt);Ga[oi.id]=oi,xi.textureCount++;function _n(yn,Ie){var Ze=oi.texInfo;ls.call(Ze);var Et=Hr();return typeof yn=="number"?typeof Ie=="number"?or(Et,yn|0,Ie|0):or(Et,yn|0,yn|0):yn?(eo(Ze,yn),kr(Et,yn)):or(Et,1,1),Ze.genMipmaps&&(Et.mipmask=(Et.width<<1)-1),oi.mipmask=Et.mipmask,vi(oi,Et),oi.internalformat=Et.internalformat,_n.width=Et.width,_n.height=Et.height,Xr(oi),za(Et,vt),Us(Ze,vt),kl(),jr(Et),gi.profile&&(oi.stats.size=gl(oi.internalformat,oi.type,Et.width,Et.height,Ze.genMipmaps,!1)),_n.format=Ni[oi.internalformat],_n.type=Pi[oi.type],_n.mag=Si[Ze.magFilter],_n.min=an[Ze.minFilter],_n.wrapS=Ji[Ze.wrapS],_n.wrapT=Ji[Ze.wrapT],_n}function ur(yn,Ie,Ze,Et){var fi=Ie|0,ai=Ze|0,ti=Et|0,Xt=In();return vi(Xt,oi),Xt.width=0,Xt.height=0,Hi(Xt,yn),Xt.width=Xt.width||(oi.width>>ti)-fi,Xt.height=Xt.height||(oi.height>>ti)-ai,Xr(oi),sr(Xt,vt,fi,ai,ti),kl(),Vi(Xt),_n}function pa(yn,Ie){var Ze=yn|0,Et=Ie|0||Ze;if(Ze===oi.width&&Et===oi.height)return _n;_n.width=oi.width=Ze,_n.height=oi.height=Et,Xr(oi);for(var fi=0;oi.mipmask>>fi;++fi){var ai=Ze>>fi,ti=Et>>fi;if(!ai||!ti)break;P.texImage2D(vt,fi,oi.format,ai,ti,0,oi.format,oi.type,null)}return kl(),gi.profile&&(oi.stats.size=gl(oi.internalformat,oi.type,Ze,Et,!1,!1)),_n}return _n(We,ri),_n.subimage=ur,_n.resize=pa,_n._reglType="texture2d",_n._texture=oi,gi.profile&&(_n.stats=oi.stats),_n.destroy=function(){oi.decRef()},_n}function ir(We,ri,oi,_n,ur,pa){var yn=new zo(It);Ga[yn.id]=yn,xi.cubeCount++;var Ie=new Array(6);function Ze(ai,ti,Xt,Ht,dt,kt){var st,li=yn.texInfo;for(ls.call(li),st=0;st<6;++st)Ie[st]=Hr();if(typeof ai=="number"||!ai){var _i=ai|0||1;for(st=0;st<6;++st)or(Ie[st],_i,_i)}else if(typeof ai=="object")if(ti)kr(Ie[0],ai),kr(Ie[1],ti),kr(Ie[2],Xt),kr(Ie[3],Ht),kr(Ie[4],dt),kr(Ie[5],kt);else if(eo(li,ai),ln(yn,ai),"faces"in ai){var Ai=ai.faces;for(st=0;st<6;++st)vi(Ie[st],yn),kr(Ie[st],Ai[st])}else for(st=0;st<6;++st)kr(Ie[st],ai);for(vi(yn,Ie[0]),li.genMipmaps?yn.mipmask=(Ie[0].width<<1)-1:yn.mipmask=Ie[0].mipmask,yn.internalformat=Ie[0].internalformat,Ze.width=Ie[0].width,Ze.height=Ie[0].height,Xr(yn),st=0;st<6;++st)za(Ie[st],Ft+st);for(Us(li,It),kl(),gi.profile&&(yn.stats.size=gl(yn.internalformat,yn.type,Ze.width,Ze.height,li.genMipmaps,!0)),Ze.format=Ni[yn.internalformat],Ze.type=Pi[yn.type],Ze.mag=Si[li.magFilter],Ze.min=an[li.minFilter],Ze.wrapS=Ji[li.wrapS],Ze.wrapT=Ji[li.wrapT],st=0;st<6;++st)jr(Ie[st]);return Ze}function Et(ai,ti,Xt,Ht,dt){var kt=Xt|0,st=Ht|0,li=dt|0,_i=In();return vi(_i,yn),_i.width=0,_i.height=0,Hi(_i,ti),_i.width=_i.width||(yn.width>>li)-kt,_i.height=_i.height||(yn.height>>li)-st,Xr(yn),sr(_i,Ft+ai,kt,st,li),kl(),Vi(_i),Ze}function fi(ai){var ti=ai|0;if(ti!==yn.width){Ze.width=yn.width=ti,Ze.height=yn.height=ti,Xr(yn);for(var Xt=0;Xt<6;++Xt)for(var Ht=0;yn.mipmask>>Ht;++Ht)P.texImage2D(Ft+Xt,Ht,yn.format,ti>>Ht,ti>>Ht,0,yn.format,yn.type,null);return kl(),gi.profile&&(yn.stats.size=gl(yn.internalformat,yn.type,Ze.width,Ze.height,!1,!0)),Ze}}return Ze(We,ri,oi,_n,ur,pa),Ze.subimage=Et,Ze.resize=fi,Ze._reglType="textureCube",Ze._texture=yn,gi.profile&&(Ze.stats=yn.stats),Ze.destroy=function(){yn.decRef()},Ze}function Ar(){for(var We=0;We<Ol;++We)P.activeTexture(Pl+We),P.bindTexture(vt,null),Yn[We]=null;ot(Ga).forEach(to),xi.cubeCount=0,xi.textureCount=0}gi.profile&&(xi.getTotalTextureSize=function(){var We=0;return Object.keys(Ga).forEach(function(ri){We+=Ga[ri].stats.size}),We});function ma(){for(var We=0;We<Ol;++We){var ri=Yn[We];ri&&(ri.bindCount=0,ri.unit=-1,Yn[We]=null)}ot(Ga).forEach(function(oi){oi.texture=P.createTexture(),P.bindTexture(oi.target,oi.texture);for(var _n=0;_n<32;++_n)if((oi.mipmask&1<<_n)!==0)if(oi.target===vt)P.texImage2D(vt,_n,oi.internalformat,oi.width>>_n,oi.height>>_n,0,oi.internalformat,oi.type,null);else for(var ur=0;ur<6;++ur)P.texImage2D(Ft+ur,_n,oi.internalformat,oi.width>>_n,oi.height>>_n,0,oi.internalformat,oi.type,null);Us(oi.texInfo,oi.target)})}function ql(){for(var We=0;We<Ol;++We){var ri=Yn[We];ri&&(ri.bindCount=0,ri.unit=-1,Yn[We]=null),P.activeTexture(Pl+We),P.bindTexture(vt,null),P.bindTexture(It,null)}}return{create2D:Gs,createCube:ir,clear:Ar,getTexture:function(We){return null},restore:ma,refresh:ql}}var zr=36161,_l=32854,xs=32855,Gl=36194,er=33189,Jl=36168,ws=34041,es=35907,ia=34836,ts=34842,ol=34843,Gr=[];Gr[_l]=2,Gr[xs]=2,Gr[Gl]=2,Gr[er]=2,Gr[Jl]=1,Gr[ws]=4,Gr[es]=4,Gr[ia]=16,Gr[ts]=8,Gr[ol]=6;function is(P,rt,gt){return Gr[P]*rt*gt}var qr=function(P,rt,gt,ui,Ti){var xi={rgba4:_l,rgb565:Gl,"rgb5 a1":xs,depth:er,stencil:Jl,"depth stencil":ws};rt.ext_srgb&&(xi.srgba=es),rt.ext_color_buffer_half_float&&(xi.rgba16f=ts,xi.rgb16f=ol),rt.webgl_color_buffer_float&&(xi.rgba32f=ia);var gi=[];Object.keys(xi).forEach(function(en){var Ii=xi[en];gi[Ii]=en});var Zi=0,Ki={};function Yi(en){this.id=Zi++,this.refCount=1,this.renderbuffer=en,this.format=_l,this.width=0,this.height=0,Ti.profile&&(this.stats={size:0})}Yi.prototype.decRef=function(){--this.refCount<=0&&dn(this)};function dn(en){var Ii=en.renderbuffer;P.bindRenderbuffer(zr,null),P.deleteRenderbuffer(Ii),en.renderbuffer=null,en.refCount=0,delete Ki[en.id],ui.renderbufferCount--}function Fn(en,Ii){var Yt=new Yi(P.createRenderbuffer());Ki[Yt.id]=Yt,ui.renderbufferCount++;function mi(Pi,Si){var an=0,Ji=0,Tn=_l;if(typeof Pi=="object"&&Pi){var Oi=Pi;if("shape"in Oi){var vi=Oi.shape;an=vi[0]|0,Ji=vi[1]|0}else"radius"in Oi&&(an=Ji=Oi.radius|0),"width"in Oi&&(an=Oi.width|0),"height"in Oi&&(Ji=Oi.height|0);"format"in Oi&&(Tn=xi[Oi.format])}else typeof Pi=="number"?(an=Pi|0,typeof Si=="number"?Ji=Si|0:Ji=an):Pi||(an=Ji=1);if(!(an===Yt.width&&Ji===Yt.height&&Tn===Yt.format))return mi.width=Yt.width=an,mi.height=Yt.height=Ji,Yt.format=Tn,P.bindRenderbuffer(zr,Yt.renderbuffer),P.renderbufferStorage(zr,Tn,an,Ji),Ti.profile&&(Yt.stats.size=is(Yt.format,Yt.width,Yt.height)),mi.format=gi[Yt.format],mi}function Ni(Pi,Si){var an=Pi|0,Ji=Si|0||an;return an===Yt.width&&Ji===Yt.height||(mi.width=Yt.width=an,mi.height=Yt.height=Ji,P.bindRenderbuffer(zr,Yt.renderbuffer),P.renderbufferStorage(zr,Yt.format,an,Ji),Ti.profile&&(Yt.stats.size=is(Yt.format,Yt.width,Yt.height))),mi}return mi(en,Ii),mi.resize=Ni,mi._reglType="renderbuffer",mi._renderbuffer=Yt,Ti.profile&&(mi.stats=Yt.stats),mi.destroy=function(){Yt.decRef()},mi}Ti.profile&&(ui.getTotalRenderbufferSize=function(){var en=0;return Object.keys(Ki).forEach(function(Ii){en+=Ki[Ii].stats.size}),en});function En(){ot(Ki).forEach(function(en){en.renderbuffer=P.createRenderbuffer(),P.bindRenderbuffer(zr,en.renderbuffer),P.renderbufferStorage(zr,en.format,en.width,en.height)}),P.bindRenderbuffer(zr,null)}return{create:Fn,clear:function(){ot(Ki).forEach(dn)},restore:En}},da=36160,yl=36161,dr=3553,vl=34069,co=36064,Xs=36096,Ss=36128,xr=33306,Zs=36053,Eo=36193,Qs=5121,cl=5126,fo=6407,Ha=6408,Fl=[];Fl[Ha]=4,Fl[fo]=3;var na=[];na[Qs]=1,na[cl]=4,na[Eo]=2;function Nr(P,rt,gt,ui,Ti,xi){var gi={cur:null,next:null,dirty:!1,setFBO:null},Zi=["rgba"],Ki=["rgba4","rgb565","rgb5 a1"];rt.ext_srgb&&Ki.push("srgba"),rt.ext_color_buffer_half_float&&Ki.push("rgba16f","rgb16f"),rt.webgl_color_buffer_float&&Ki.push("rgba32f"),rt.oes_texture_half_float,rt.oes_texture_float;function Yi(hi,nn,Hi){this.target=hi,this.texture=nn,this.renderbuffer=Hi;var On=0,sr=0;nn?(On=nn.width,sr=nn.height):Hi&&(On=Hi.width,sr=Hi.height),this.width=On,this.height=sr}function dn(hi){hi&&(hi.texture&&hi.texture._texture.decRef(),hi.renderbuffer&&hi.renderbuffer._renderbuffer.decRef())}function Fn(hi,nn,Hi){if(hi)if(hi.texture){var On=hi.texture._texture;Math.max(1,On.width),Math.max(1,On.height),On.refCount+=1}else{var sr=hi.renderbuffer._renderbuffer;sr.refCount+=1}}function En(hi,nn){nn&&(nn.texture?P.framebufferTexture2D(da,hi,nn.target,nn.texture._texture.texture,0):P.framebufferRenderbuffer(da,hi,yl,nn.renderbuffer._renderbuffer.renderbuffer))}function en(hi){var nn=dr,Hi=null,On=null,sr=hi;typeof hi=="object"&&(sr=hi.data,"target"in hi&&(nn=hi.target|0));var on=sr._reglType;return on==="texture2d"||on==="textureCube"?Hi=sr:on==="renderbuffer"&&(On=sr,nn=yl),new Yi(nn,Hi,On)}function Ii(hi,nn,Hi,On,sr){if(Hi){var on=ui.create2D({width:hi,height:nn,format:On,type:sr});return on._texture.refCount=0,new Yi(dr,on,null)}else{var In=Ti.create({width:hi,height:nn,format:On});return In._renderbuffer.refCount=0,new Yi(yl,null,In)}}function Yt(hi){return hi&&(hi.texture||hi.renderbuffer)}function mi(hi,nn,Hi){hi&&(hi.texture?hi.texture.resize(nn,Hi):hi.renderbuffer&&hi.renderbuffer.resize(nn,Hi),hi.width=nn,hi.height=Hi)}var Ni=0,Pi={};function Si(){this.id=Ni++,Pi[this.id]=this,this.framebuffer=P.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function an(hi){hi.colorAttachments.forEach(dn),dn(hi.depthAttachment),dn(hi.stencilAttachment),dn(hi.depthStencilAttachment)}function Ji(hi){var nn=hi.framebuffer;P.deleteFramebuffer(nn),hi.framebuffer=null,xi.framebufferCount--,delete Pi[hi.id]}function Tn(hi){var nn;P.bindFramebuffer(da,hi.framebuffer);var Hi=hi.colorAttachments;for(nn=0;nn<Hi.length;++nn)En(co+nn,Hi[nn]);for(nn=Hi.length;nn<gt.maxColorAttachments;++nn)P.framebufferTexture2D(da,co+nn,dr,null,0);P.framebufferTexture2D(da,xr,dr,null,0),P.framebufferTexture2D(da,Xs,dr,null,0),P.framebufferTexture2D(da,Ss,dr,null,0),En(Xs,hi.depthAttachment),En(Ss,hi.stencilAttachment),En(xr,hi.depthStencilAttachment);var On=P.checkFramebufferStatus(da);P.isContextLost(),P.bindFramebuffer(da,gi.next?gi.next.framebuffer:null),gi.cur=gi.next,P.getError()}function Oi(hi,nn){var Hi=new Si;xi.framebufferCount++;function On(on,In){var Vi,qn=0,or=0,kr=!0,za=!0,lr=null,Hr=!0,jr="rgba",ls="uint8",eo=1,Us=null,Ko=null,Ga=null,Ol=!1;if(typeof on=="number")qn=on|0,or=In|0||qn;else if(!on)qn=or=1;else{var Yn=on;if("shape"in Yn){var zo=Yn.shape;qn=zo[0],or=zo[1]}else"radius"in Yn&&(qn=or=Yn.radius),"width"in Yn&&(qn=Yn.width),"height"in Yn&&(or=Yn.height);("color"in Yn||"colors"in Yn)&&(lr=Yn.color||Yn.colors),lr||("colorCount"in Yn&&(eo=Yn.colorCount|0),"colorTexture"in Yn&&(Hr=!!Yn.colorTexture,jr="rgba4"),"colorType"in Yn&&(ls=Yn.colorType,Hr||(ls==="half float"||ls==="float16"?jr="rgba16f":(ls==="float"||ls==="float32")&&(jr="rgba32f"))),"colorFormat"in Yn&&(jr=Yn.colorFormat,Zi.indexOf(jr)>=0?Hr=!0:Ki.indexOf(jr)>=0&&(Hr=!1))),("depthTexture"in Yn||"depthStencilTexture"in Yn)&&(Ol=!!(Yn.depthTexture||Yn.depthStencilTexture)),"depth"in Yn&&(typeof Yn.depth=="boolean"?kr=Yn.depth:(Us=Yn.depth,za=!1)),"stencil"in Yn&&(typeof Yn.stencil=="boolean"?za=Yn.stencil:(Ko=Yn.stencil,kr=!1)),"depthStencil"in Yn&&(typeof Yn.depthStencil=="boolean"?kr=za=Yn.depthStencil:(Ga=Yn.depthStencil,kr=!1,za=!1))}var Xr=null,kl=null,to=null,Gs=null;if(Array.isArray(lr))Xr=lr.map(en);else if(lr)Xr=[en(lr)];else for(Xr=new Array(eo),Vi=0;Vi<eo;++Vi)Xr[Vi]=Ii(qn,or,Hr,jr,ls);for(qn=qn||Xr[0].width,or=or||Xr[0].height,Us?kl=en(Us):kr&&!za&&(kl=Ii(qn,or,Ol,"depth","uint32")),Ko?to=en(Ko):za&&!kr&&(to=Ii(qn,or,!1,"stencil","uint8")),Ga?Gs=en(Ga):!Us&&!Ko&&za&&kr&&(Gs=Ii(qn,or,Ol,"depth stencil","depth stencil")),Vi=0;Vi<Xr.length;++Vi)Fn(Xr[Vi]),Xr[Vi]&&Xr[Vi].texture&&Fl[Xr[Vi].texture._texture.format]*na[Xr[Vi].texture._texture.type];return Fn(kl),Fn(to),Fn(Gs),an(Hi),Hi.width=qn,Hi.height=or,Hi.colorAttachments=Xr,Hi.depthAttachment=kl,Hi.stencilAttachment=to,Hi.depthStencilAttachment=Gs,On.color=Xr.map(Yt),On.depth=Yt(kl),On.stencil=Yt(to),On.depthStencil=Yt(Gs),On.width=Hi.width,On.height=Hi.height,Tn(Hi),On}function sr(on,In){var Vi=Math.max(on|0,1),qn=Math.max(In|0||Vi,1);if(Vi===Hi.width&&qn===Hi.height)return On;for(var or=Hi.colorAttachments,kr=0;kr<or.length;++kr)mi(or[kr],Vi,qn);return mi(Hi.depthAttachment,Vi,qn),mi(Hi.stencilAttachment,Vi,qn),mi(Hi.depthStencilAttachment,Vi,qn),Hi.width=On.width=Vi,Hi.height=On.height=qn,Tn(Hi),On}return On(hi,nn),t(On,{resize:sr,_reglType:"framebuffer",_framebuffer:Hi,destroy:function(){Ji(Hi),an(Hi)},use:function(on){gi.setFBO({framebuffer:On},on)}})}function vi(hi){var nn=Array(6);function Hi(sr){var on,In={color:null},Vi=0,qn=null,or="rgba",kr="uint8",za=1;if(typeof sr=="number")Vi=sr|0;else if(!sr)Vi=1;else{var lr=sr;if("shape"in lr){var Hr=lr.shape;Vi=Hr[0]}else"radius"in lr&&(Vi=lr.radius|0),"width"in lr?Vi=lr.width|0:"height"in lr&&(Vi=lr.height|0);("color"in lr||"colors"in lr)&&(qn=lr.color||lr.colors),qn||("colorCount"in lr&&(za=lr.colorCount|0),"colorType"in lr&&(kr=lr.colorType),"colorFormat"in lr&&(or=lr.colorFormat)),"depth"in lr&&(In.depth=lr.depth),"stencil"in lr&&(In.stencil=lr.stencil),"depthStencil"in lr&&(In.depthStencil=lr.depthStencil)}var jr;if(qn)if(Array.isArray(qn))for(jr=[],on=0;on<qn.length;++on)jr[on]=qn[on];else jr=[qn];else{jr=Array(za);var ls={radius:Vi,format:or,type:kr};for(on=0;on<za;++on)jr[on]=ui.createCube(ls)}for(In.color=Array(jr.length),on=0;on<jr.length;++on){var eo=jr[on];Vi=Vi||eo.width,In.color[on]={target:vl,data:jr[on]}}for(on=0;on<6;++on){for(var Us=0;Us<jr.length;++Us)In.color[Us].target=vl+on;on>0&&(In.depth=nn[0].depth,In.stencil=nn[0].stencil,In.depthStencil=nn[0].depthStencil),nn[on]?nn[on](In):nn[on]=Oi(In)}return t(Hi,{width:Vi,height:Vi,color:jr})}function On(sr){var on,In=sr|0;if(In===Hi.width)return Hi;var Vi=Hi.color;for(on=0;on<Vi.length;++on)Vi[on].resize(In);for(on=0;on<6;++on)nn[on].resize(In);return Hi.width=Hi.height=In,Hi}return Hi(hi),t(Hi,{faces:nn,resize:On,_reglType:"framebufferCube",destroy:function(){nn.forEach(function(sr){sr.destroy()})}})}function ln(){gi.cur=null,gi.next=null,gi.dirty=!0,ot(Pi).forEach(function(hi){hi.framebuffer=P.createFramebuffer(),Tn(hi)})}return t(gi,{getFramebuffer:function(hi){if(typeof hi=="function"&&hi._reglType==="framebuffer"){var nn=hi._framebuffer;if(nn instanceof Si)return nn}return null},create:Oi,createCube:vi,clear:function(){ot(Pi).forEach(Ji)},restore:ln})}var ns=5126,dl=34962,fr=34963;function As(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=ns,this.offset=0,this.stride=0,this.divisor=0}function Ns(P,rt,gt,ui,Ti,xi,gi){for(var Zi=gt.maxAttributes,Ki=new Array(Zi),Yi=0;Yi<Zi;++Yi)Ki[Yi]=new As;var dn=0,Fn={},En={Record:As,scope:{},state:Ki,currentVAO:null,targetVAO:null,restore:Ii()?Ji:function(){},createVAO:Tn,getVAO:mi,destroyBuffer:en,setVAO:Ii()?Ni:Pi,clear:Ii()?Si:function(){}};function en(Oi){for(var vi=0;vi<Ki.length;++vi){var ln=Ki[vi];ln.buffer===Oi&&(P.disableVertexAttribArray(vi),ln.buffer=null)}}function Ii(){return rt.oes_vertex_array_object}function Yt(){return rt.angle_instanced_arrays}function mi(Oi){return typeof Oi=="function"&&Oi._vao?Oi._vao:null}function Ni(Oi){if(Oi!==En.currentVAO){var vi=Ii();Oi?vi.bindVertexArrayOES(Oi.vao):vi.bindVertexArrayOES(null),En.currentVAO=Oi}}function Pi(Oi){if(Oi!==En.currentVAO){if(Oi)Oi.bindAttrs();else{for(var vi=Yt(),ln=0;ln<Ki.length;++ln){var hi=Ki[ln];hi.buffer?(P.enableVertexAttribArray(ln),hi.buffer.bind(),P.vertexAttribPointer(ln,hi.size,hi.type,hi.normalized,hi.stride,hi.offfset),vi&&hi.divisor&&vi.vertexAttribDivisorANGLE(ln,hi.divisor)):(P.disableVertexAttribArray(ln),P.vertexAttrib4f(ln,hi.x,hi.y,hi.z,hi.w))}gi.elements?P.bindBuffer(fr,gi.elements.buffer.buffer):P.bindBuffer(fr,null)}En.currentVAO=Oi}}function Si(){ot(Fn).forEach(function(Oi){Oi.destroy()})}function an(){this.id=++dn,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var Oi=Ii();Oi?this.vao=Oi.createVertexArrayOES():this.vao=null,Fn[this.id]=this,this.buffers=[]}an.prototype.bindAttrs=function(){for(var Oi=Yt(),vi=this.attributes,ln=0;ln<vi.length;++ln){var hi=vi[ln];hi.buffer?(P.enableVertexAttribArray(ln),P.bindBuffer(dl,hi.buffer.buffer),P.vertexAttribPointer(ln,hi.size,hi.type,hi.normalized,hi.stride,hi.offset),Oi&&hi.divisor&&Oi.vertexAttribDivisorANGLE(ln,hi.divisor)):(P.disableVertexAttribArray(ln),P.vertexAttrib4f(ln,hi.x,hi.y,hi.z,hi.w))}for(var nn=vi.length;nn<Zi;++nn)P.disableVertexAttribArray(nn);var Hi=xi.getElements(this.elements);Hi?P.bindBuffer(fr,Hi.buffer.buffer):P.bindBuffer(fr,null)},an.prototype.refresh=function(){var Oi=Ii();Oi&&(Oi.bindVertexArrayOES(this.vao),this.bindAttrs(),En.currentVAO=null,Oi.bindVertexArrayOES(null))},an.prototype.destroy=function(){if(this.vao){var Oi=Ii();this===En.currentVAO&&(En.currentVAO=null,Oi.bindVertexArrayOES(null)),Oi.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Fn[this.id]&&(delete Fn[this.id],ui.vaoCount-=1)};function Ji(){var Oi=Ii();Oi&&ot(Fn).forEach(function(vi){vi.refresh()})}function Tn(Oi){var vi=new an;ui.vaoCount+=1;function ln(hi){var nn;if(Array.isArray(hi))nn=hi,vi.elements&&vi.ownsElements&&vi.elements.destroy(),vi.elements=null,vi.ownsElements=!1,vi.offset=0,vi.count=0,vi.instances=-1,vi.primitive=4;else{if(hi.elements){var Hi=hi.elements;vi.ownsElements?typeof Hi=="function"&&Hi._reglType==="elements"?(vi.elements.destroy(),vi.ownsElements=!1):(vi.elements(Hi),vi.ownsElements=!1):xi.getElements(hi.elements)?(vi.elements=hi.elements,vi.ownsElements=!1):(vi.elements=xi.create(hi.elements),vi.ownsElements=!0)}else vi.elements=null,vi.ownsElements=!1;nn=hi.attributes,vi.offset=0,vi.count=-1,vi.instances=-1,vi.primitive=4,vi.elements&&(vi.count=vi.elements._elements.vertCount,vi.primitive=vi.elements._elements.primType),"offset"in hi&&(vi.offset=hi.offset|0),"count"in hi&&(vi.count=hi.count|0),"instances"in hi&&(vi.instances=hi.instances|0),"primitive"in hi&&(vi.primitive=zt[hi.primitive])}var On={},sr=vi.attributes;sr.length=nn.length;for(var on=0;on<nn.length;++on){var In=nn[on],Vi=sr[on]=new As,qn=In.data||In;if(Array.isArray(qn)||fe(qn)||je(qn)){var or;vi.buffers[on]&&(or=vi.buffers[on],fe(qn)&&or._buffer.byteLength>=qn.byteLength?or.subdata(qn):(or.destroy(),vi.buffers[on]=null)),vi.buffers[on]||(or=vi.buffers[on]=Ti.create(In,dl,!1,!0)),Vi.buffer=Ti.getBuffer(or),Vi.size=Vi.buffer.dimension|0,Vi.normalized=!1,Vi.type=Vi.buffer.dtype,Vi.offset=0,Vi.stride=0,Vi.divisor=0,Vi.state=1,On[on]=1}else Ti.getBuffer(In)?(Vi.buffer=Ti.getBuffer(In),Vi.size=Vi.buffer.dimension|0,Vi.normalized=!1,Vi.type=Vi.buffer.dtype,Vi.offset=0,Vi.stride=0,Vi.divisor=0,Vi.state=1):Ti.getBuffer(In.buffer)?(Vi.buffer=Ti.getBuffer(In.buffer),Vi.size=(+In.size||Vi.buffer.dimension)|0,Vi.normalized=!!In.normalized||!1,"type"in In?Vi.type=D[In.type]:Vi.type=Vi.buffer.dtype,Vi.offset=(In.offset||0)|0,Vi.stride=(In.stride||0)|0,Vi.divisor=(In.divisor||0)|0,Vi.state=1):"x"in In&&(Vi.x=+In.x||0,Vi.y=+In.y||0,Vi.z=+In.z||0,Vi.w=+In.w||0,Vi.state=2)}for(var kr=0;kr<vi.buffers.length;++kr)!On[kr]&&vi.buffers[kr]&&(vi.buffers[kr].destroy(),vi.buffers[kr]=null);return vi.refresh(),ln}return ln.destroy=function(){for(var hi=0;hi<vi.buffers.length;++hi)vi.buffers[hi]&&vi.buffers[hi].destroy();vi.buffers.length=0,vi.ownsElements&&(vi.elements.destroy(),vi.elements=null,vi.ownsElements=!1),vi.destroy()},ln._vao=vi,ln._reglType="vao",ln(Oi)}return En}var rs=35632,Bo=35633,$s=35718,as=35721;function To(P,rt,gt,ui){var Ti={},xi={};function gi(Yt,mi,Ni,Pi){this.name=Yt,this.id=mi,this.location=Ni,this.info=Pi}function Zi(Yt,mi){for(var Ni=0;Ni<Yt.length;++Ni)if(Yt[Ni].id===mi.id){Yt[Ni].location=mi.location;return}Yt.push(mi)}function Ki(Yt,mi,Ni){var Pi=Yt===rs?Ti:xi,Si=Pi[mi];if(!Si){var an=rt.str(mi);Si=P.createShader(Yt),P.shaderSource(Si,an),P.compileShader(Si),Pi[mi]=Si}return Si}var Yi={},dn=[],Fn=0;function En(Yt,mi){this.id=Fn++,this.fragId=Yt,this.vertId=mi,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,ui.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function en(Yt,mi,Ni){var Pi,Si,an=Ki(rs,Yt.fragId),Ji=Ki(Bo,Yt.vertId),Tn=Yt.program=P.createProgram();if(P.attachShader(Tn,an),P.attachShader(Tn,Ji),Ni)for(Pi=0;Pi<Ni.length;++Pi){var Oi=Ni[Pi];P.bindAttribLocation(Tn,Oi[0],Oi[1])}P.linkProgram(Tn);var vi=P.getProgramParameter(Tn,$s);ui.profile&&(Yt.stats.uniformsCount=vi);var ln=Yt.uniforms;for(Pi=0;Pi<vi;++Pi)if(Si=P.getActiveUniform(Tn,Pi),Si)if(Si.size>1)for(var hi=0;hi<Si.size;++hi){var nn=Si.name.replace("[0]","["+hi+"]");Zi(ln,new gi(nn,rt.id(nn),P.getUniformLocation(Tn,nn),Si))}else Zi(ln,new gi(Si.name,rt.id(Si.name),P.getUniformLocation(Tn,Si.name),Si));var Hi=P.getProgramParameter(Tn,as);ui.profile&&(Yt.stats.attributesCount=Hi);var On=Yt.attributes;for(Pi=0;Pi<Hi;++Pi)Si=P.getActiveAttrib(Tn,Pi),Si&&Zi(On,new gi(Si.name,rt.id(Si.name),P.getAttribLocation(Tn,Si.name),Si))}ui.profile&&(gt.getMaxUniformsCount=function(){var Yt=0;return dn.forEach(function(mi){mi.stats.uniformsCount>Yt&&(Yt=mi.stats.uniformsCount)}),Yt},gt.getMaxAttributesCount=function(){var Yt=0;return dn.forEach(function(mi){mi.stats.attributesCount>Yt&&(Yt=mi.stats.attributesCount)}),Yt});function Ii(){Ti={},xi={};for(var Yt=0;Yt<dn.length;++Yt)en(dn[Yt],null,dn[Yt].attributes.map(function(mi){return[mi.location,mi.name]}))}return{clear:function(){var Yt=P.deleteShader.bind(P);ot(Ti).forEach(Yt),Ti={},ot(xi).forEach(Yt),xi={},dn.forEach(function(mi){P.deleteProgram(mi.program)}),dn.length=0,Yi={},gt.shaderCount=0},program:function(Yt,mi,Ni,Pi){var Si=Yi[mi];Si||(Si=Yi[mi]={});var an=Si[Yt];if(an&&(an.refCount++,!Pi))return an;var Ji=new En(mi,Yt);return gt.shaderCount++,en(Ji,Ni,Pi),an||(Si[Yt]=Ji),dn.push(Ji),t(Ji,{destroy:function(){if(Ji.refCount--,Ji.refCount<=0){P.deleteProgram(Ji.program);var Tn=dn.indexOf(Ji);dn.splice(Tn,1),gt.shaderCount--}Si[Ji.vertId].refCount<=0&&(P.deleteShader(xi[Ji.vertId]),delete xi[Ji.vertId],delete Yi[Ji.fragId][Ji.vertId]),Object.keys(Yi[Ji.fragId]).length||(P.deleteShader(Ti[Ji.fragId]),delete Ti[Ji.fragId],delete Yi[Ji.fragId])}})},restore:Ii,shader:Ki,frag:-1,vert:-1}}var Cr=6408,Ka=5121,ra=3333,Bs=5126;function xl(P,rt,gt,ui,Ti,xi,gi){function Zi(dn){var Fn;rt.next===null?Fn=Ka:Fn=rt.next.colorAttachments[0].texture._texture.type;var En=0,en=0,Ii=ui.framebufferWidth,Yt=ui.framebufferHeight,mi=null;fe(dn)?mi=dn:dn&&(En=dn.x|0,en=dn.y|0,Ii=(dn.width||ui.framebufferWidth-En)|0,Yt=(dn.height||ui.framebufferHeight-en)|0,mi=dn.data||null),gt();var Ni=Ii*Yt*4;return mi||(Fn===Ka?mi=new Uint8Array(Ni):Fn===Bs&&(mi=mi||new Float32Array(Ni))),P.pixelStorei(ra,4),P.readPixels(En,en,Ii,Yt,Cr,Fn,mi),mi}function Ki(dn){var Fn;return rt.setFBO({framebuffer:dn.framebuffer},function(){Fn=Zi(dn)}),Fn}function Yi(dn){return!dn||!("framebuffer"in dn)?Zi(dn):Ki(dn)}return Yi}function wl(P){return Ps(Hs(Sl(P)))}function Hs(P){return Es(Ts(pr(P),P.length*8))}function Ps(P){for(var rt="0123456789abcdef",gt="",ui,Ti=0;Ti<P.length;Ti++)ui=P.charCodeAt(Ti),gt+=rt.charAt(ui>>>4&15)+rt.charAt(ui&15);return gt}function Sl(P){for(var rt="",gt=-1,ui,Ti;++gt<P.length;)ui=P.charCodeAt(gt),Ti=gt+1<P.length?P.charCodeAt(gt+1):0,55296<=ui&&ui<=56319&&56320<=Ti&&Ti<=57343&&(ui=65536+((ui&1023)<<10)+(Ti&1023),gt++),ui<=127?rt+=String.fromCharCode(ui):ui<=2047?rt+=String.fromCharCode(192|ui>>>6&31,128|ui&63):ui<=65535?rt+=String.fromCharCode(224|ui>>>12&15,128|ui>>>6&63,128|ui&63):ui<=2097151&&(rt+=String.fromCharCode(240|ui>>>18&7,128|ui>>>12&63,128|ui>>>6&63,128|ui&63));return rt}function pr(P){for(var rt=Array(P.length>>2),gt=0;gt<rt.length;gt++)rt[gt]=0;for(var gt=0;gt<P.length*8;gt+=8)rt[gt>>5]|=(P.charCodeAt(gt/8)&255)<<24-gt%32;return rt}function Es(P){for(var rt="",gt=0;gt<P.length*32;gt+=8)rt+=String.fromCharCode(P[gt>>5]>>>24-gt%32&255);return rt}function Ea(P,rt){return P>>>rt|P<<32-rt}function fa(P,rt){return P>>>rt}function Ta(P,rt,gt){return P&rt^~P&gt}function Ja(P,rt,gt){return P&rt^P&gt^rt&gt}function $r(P){return Ea(P,2)^Ea(P,13)^Ea(P,22)}function Pa(P){return Ea(P,6)^Ea(P,11)^Ea(P,25)}function fl(P){return Ea(P,7)^Ea(P,18)^fa(P,3)}function ua(P){return Ea(P,17)^Ea(P,19)^fa(P,10)}var Ks=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Ts(P,rt){var gt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),ui=new Array(64),Ti,xi,gi,Zi,Ki,Yi,dn,Fn,En,en,Ii,Yt;for(P[rt>>5]|=128<<24-rt%32,P[(rt+64>>9<<4)+15]=rt,En=0;En<P.length;En+=16){for(Ti=gt[0],xi=gt[1],gi=gt[2],Zi=gt[3],Ki=gt[4],Yi=gt[5],dn=gt[6],Fn=gt[7],en=0;en<64;en++)en<16?ui[en]=P[en+En]:ui[en]=tr(tr(tr(ua(ui[en-2]),ui[en-7]),fl(ui[en-15])),ui[en-16]),Ii=tr(tr(tr(tr(Fn,Pa(Ki)),Ta(Ki,Yi,dn)),Ks[en]),ui[en]),Yt=tr($r(Ti),Ja(Ti,xi,gi)),Fn=dn,dn=Yi,Yi=Ki,Ki=tr(Zi,Ii),Zi=gi,gi=xi,xi=Ti,Ti=tr(Ii,Yt);gt[0]=tr(Ti,gt[0]),gt[1]=tr(xi,gt[1]),gt[2]=tr(gi,gt[2]),gt[3]=tr(Zi,gt[3]),gt[4]=tr(Ki,gt[4]),gt[5]=tr(Yi,gt[5]),gt[6]=tr(dn,gt[6]),gt[7]=tr(Fn,gt[7])}return gt}function tr(P,rt){var gt=(P&65535)+(rt&65535),ui=(P>>16)+(rt>>16)+(gt>>16);return ui<<16|gt&65535}function br(P){return Array.prototype.slice.call(P)}function Kn(P){return br(P).join("")}function Ml(P){var rt=P&&P.cache,gt=0,ui=[],Ti=[],xi=[];function gi(Ii,Yt){var mi=Yt&&Yt.stable;if(!mi){for(var Ni=0;Ni<Ti.length;++Ni)if(Ti[Ni]===Ii&&!xi[Ni])return ui[Ni]}var Pi="g"+gt++;return ui.push(Pi),Ti.push(Ii),xi.push(mi),Pi}function Zi(){var Ii=[];function Yt(){Ii.push.apply(Ii,br(arguments))}var mi=[];function Ni(){var Pi="v"+gt++;return mi.push(Pi),arguments.length>0&&(Ii.push(Pi,"="),Ii.push.apply(Ii,br(arguments)),Ii.push(";")),Pi}return t(Yt,{def:Ni,toString:function(){return Kn([mi.length>0?"var "+mi.join(",")+";":"",Kn(Ii)])}})}function Ki(){var Ii=Zi(),Yt=Zi(),mi=Ii.toString,Ni=Yt.toString;function Pi(Si,an){Yt(Si,an,"=",Ii.def(Si,an),";")}return t(function(){Ii.apply(Ii,br(arguments))},{def:Ii.def,entry:Ii,exit:Yt,save:Pi,set:function(Si,an,Ji){Pi(Si,an),Ii(Si,an,"=",Ji,";")},toString:function(){return mi()+Ni()}})}function Yi(){var Ii=Kn(arguments),Yt=Ki(),mi=Ki(),Ni=Yt.toString,Pi=mi.toString;return t(Yt,{then:function(){return Yt.apply(Yt,br(arguments)),this},else:function(){return mi.apply(mi,br(arguments)),this},toString:function(){var Si=Pi();return Si&&(Si="else{"+Si+"}"),Kn(["if(",Ii,"){",Ni(),"}",Si])}})}var dn=Zi(),Fn={};function En(Ii,Yt){var mi=[];function Ni(){var Tn="a"+mi.length;return mi.push(Tn),Tn}Yt=Yt||0;for(var Pi=0;Pi<Yt;++Pi)Ni();var Si=Ki(),an=Si.toString,Ji=Fn[Ii]=t(Si,{arg:Ni,toString:function(){return Kn(["function(",mi.join(),"){",an(),"}"])}});return Ji}function en(){var Ii=['"use strict";',dn,"return {"];Object.keys(Fn).forEach(function(Pi){Ii.push('"',Pi,'":',Fn[Pi].toString(),",")}),Ii.push("}");var Yt=Kn(Ii).replace(/;/g,`;
50
+ `).replace(/}/g,`}
51
+ `).replace(/{/g,`{
52
+ `),mi;if(rt&&(mi=wl(Yt),rt[mi]))return rt[mi].apply(null,Ti);var Ni=Function.apply(null,ui.concat(Yt));return rt&&(rt[mi]=Ni),Ni.apply(null,Ti)}return{global:dn,link:gi,block:Zi,proc:En,scope:Ki,cond:Yi,compile:en}}var Vr="xyzw".split(""),wr=5121,Ua=1,uo=2,ho=0,Os=1,ks=2,mo=3,Vl=4,po=5,Wl=6,Al="dither",Oa="blend.enable",el="blend.color",Cs="blend.equation",El="blend.func",ha="depth.enable",zs="depth.func",jl="depth.range",Wr="depth.mask",Is="colorMask",ka="cull.enable",Oo="cull.face",tl="frontFace",Wo="lineWidth",Yr="polygonOffset.enable",ko="polygonOffset.offset",Rc="sample.alpha",Fc="sample.enable",Xc="sample.coverage",wc="stencil.enable",Sc="stencil.mask",Pd="stencil.func",gd="stencil.opFront",Zc="stencil.opBack",Ud="scissor.enable",Co="scissor.box",bo="viewport",jo="profile",qo="framebuffer",Ho="vert",Ac="frag",Dl="elements",Yo="primitive",dc="count",Xo="offset",Qc="instances",Zo="vao",Kc="Width",_d="Height",Js=qo+Kc,fc=qo+_d,Gd=bo+Kc,uc=bo+_d,Qo="drawingBuffer",Mc=Qo+Kc,yd=Qo+_d,Vd=[El,Cs,Pd,gd,Zc,Xc,bo,Co,ko],Po=34962,Ec=34963,Tf=2884,Of=3042,Dc=3024,nu=2960,$m=2929,gh=3089,_h=32823,Jc=32926,Sr=32928,aa=5126,Tl=35664,Wd=35665,ed=35666,td=5124,jd=35667,vd=35668,id=35669,Bm=35670,ul=35671,kf=35672,Cf=35673,ru=35674,au=35675,yh=35676,zf=35678,If=35680,Lf=4,Ls=1028,Ca=1029,lu=2304,xd=2305,su=32775,vh=32776,Nc=519,hc=7680,ou=0,cu=1,xh=32774,Hm=513,wh=36160,Pm=36064,qd={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},du={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Yd={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Sh={cw:lu,ccw:xd};function fu(P){return Array.isArray(P)||fe(P)||je(P)}function Ah(P){return P.sort(function(rt,gt){return rt===bo?-1:gt===bo?1:rt<gt?-1:1})}function Nl(P,rt,gt,ui){this.thisDep=P,this.contextDep=rt,this.propDep=gt,this.append=ui}function mc(P){return P&&!(P.thisDep||P.contextDep||P.propDep)}function il(P){return new Nl(!1,!1,!1,P)}function go(P,rt){var gt=P.type;if(gt===ho){var ui=P.data.length;return new Nl(!0,ui>=1,ui>=2,rt)}else if(gt===Vl){var Ti=P.data;return new Nl(Ti.thisDep,Ti.contextDep,Ti.propDep,rt)}else{if(gt===po)return new Nl(!1,!1,!1,rt);if(gt===Wl){for(var xi=!1,gi=!1,Zi=!1,Ki=0;Ki<P.data.length;++Ki){var Yi=P.data[Ki];if(Yi.type===Os)Zi=!0;else if(Yi.type===ks)gi=!0;else if(Yi.type===mo)xi=!0;else if(Yi.type===ho){xi=!0;var dn=Yi.data;dn>=1&&(gi=!0),dn>=2&&(Zi=!0)}else Yi.type===Vl&&(xi=xi||Yi.data.thisDep,gi=gi||Yi.data.contextDep,Zi=Zi||Yi.data.propDep)}return new Nl(xi,gi,Zi,rt)}else return new Nl(gt===mo,gt===ks,gt===Os,rt)}}var Eh=new Nl(!1,!1,!1,function(){});function Um(P,rt,gt,ui,Ti,xi,gi,Zi,Ki,Yi,dn,Fn,En,en,Ii,Yt){var mi=Yi.Record,Ni={add:32774,subtract:32778,"reverse subtract":32779};gt.ext_blend_minmax&&(Ni.min=su,Ni.max=vh);var Pi=gt.angle_instanced_arrays,Si=gt.webgl_draw_buffers,an=gt.oes_vertex_array_object,Ji={dirty:!0,profile:Yt.profile},Tn={},Oi=[],vi={},ln={};function hi(Ie){return Ie.replace(".","_")}function nn(Ie,Ze,Et){var fi=hi(Ie);Oi.push(Ie),Tn[fi]=Ji[fi]=!!Et,vi[fi]=Ze}function Hi(Ie,Ze,Et){var fi=hi(Ie);Oi.push(Ie),Array.isArray(Et)?(Ji[fi]=Et.slice(),Tn[fi]=Et.slice()):Ji[fi]=Tn[fi]=Et,ln[fi]=Ze}function On(Ie){return!!isNaN(Ie)}nn(Al,Dc),nn(Oa,Of),Hi(el,"blendColor",[0,0,0,0]),Hi(Cs,"blendEquationSeparate",[xh,xh]),Hi(El,"blendFuncSeparate",[cu,ou,cu,ou]),nn(ha,$m,!0),Hi(zs,"depthFunc",Hm),Hi(jl,"depthRange",[0,1]),Hi(Wr,"depthMask",!0),Hi(Is,Is,[!0,!0,!0,!0]),nn(ka,Tf),Hi(Oo,"cullFace",Ca),Hi(tl,tl,xd),Hi(Wo,Wo,1),nn(Yr,_h),Hi(ko,"polygonOffset",[0,0]),nn(Rc,Jc),nn(Fc,Sr),Hi(Xc,"sampleCoverage",[1,!1]),nn(wc,nu),Hi(Sc,"stencilMask",-1),Hi(Pd,"stencilFunc",[Nc,0,-1]),Hi(gd,"stencilOpSeparate",[Ls,hc,hc,hc]),Hi(Zc,"stencilOpSeparate",[Ca,hc,hc,hc]),nn(Ud,gh),Hi(Co,"scissor",[0,0,P.drawingBufferWidth,P.drawingBufferHeight]),Hi(bo,bo,[0,0,P.drawingBufferWidth,P.drawingBufferHeight]);var sr={gl:P,context:En,strings:rt,next:Tn,current:Ji,draw:Fn,elements:xi,buffer:Ti,shader:dn,attributes:Yi.state,vao:Yi,uniforms:Ki,framebuffer:Zi,extensions:gt,timer:en,isBufferArgs:fu},on={primTypes:zt,compareFuncs:du,blendFuncs:qd,blendEquations:Ni,stencilOps:Yd,glTypes:D,orientationType:Sh};Si&&(on.backBuffer=[Ca],on.drawBuffer=Q(ui.maxDrawbuffers,function(Ie){return Ie===0?[0]:Q(Ie,function(Ze){return Pm+Ze})}));var In=0;function Vi(){var Ie=Ml({cache:Ii}),Ze=Ie.link,Et=Ie.global;Ie.id=In++,Ie.batchId="0";var fi=Ze(sr),ai=Ie.shared={props:"a0"};Object.keys(sr).forEach(function(kt){ai[kt]=Et.def(fi,".",kt)});var ti=Ie.next={},Xt=Ie.current={};Object.keys(ln).forEach(function(kt){Array.isArray(Ji[kt])&&(ti[kt]=Et.def(ai.next,".",kt),Xt[kt]=Et.def(ai.current,".",kt))});var Ht=Ie.constants={};Object.keys(on).forEach(function(kt){Ht[kt]=Et.def(JSON.stringify(on[kt]))}),Ie.invoke=function(kt,st){switch(st.type){case ho:var li=["this",ai.context,ai.props,Ie.batchId];return kt.def(Ze(st.data),".call(",li.slice(0,Math.max(st.data.length+1,4)),")");case Os:return kt.def(ai.props,st.data);case ks:return kt.def(ai.context,st.data);case mo:return kt.def("this",st.data);case Vl:return st.data.append(Ie,kt),st.data.ref;case po:return st.data.toString();case Wl:return st.data.map(function(_i){return Ie.invoke(kt,_i)})}},Ie.attribCache={};var dt={};return Ie.scopeAttrib=function(kt){var st=rt.id(kt);if(st in dt)return dt[st];var li=Yi.scope[st];li||(li=Yi.scope[st]=new mi);var _i=dt[st]=Ze(li);return _i},Ie}function qn(Ie){var Ze=Ie.static,Et=Ie.dynamic,fi;if(jo in Ze){var ai=!!Ze[jo];fi=il(function(Xt,Ht){return ai}),fi.enable=ai}else if(jo in Et){var ti=Et[jo];fi=go(ti,function(Xt,Ht){return Xt.invoke(Ht,ti)})}return fi}function or(Ie,Ze){var Et=Ie.static,fi=Ie.dynamic;if(qo in Et){var ai=Et[qo];return ai?(ai=Zi.getFramebuffer(ai),il(function(Xt,Ht){var dt=Xt.link(ai),kt=Xt.shared;Ht.set(kt.framebuffer,".next",dt);var st=kt.context;return Ht.set(st,"."+Js,dt+".width"),Ht.set(st,"."+fc,dt+".height"),dt})):il(function(Xt,Ht){var dt=Xt.shared;Ht.set(dt.framebuffer,".next","null");var kt=dt.context;return Ht.set(kt,"."+Js,kt+"."+Mc),Ht.set(kt,"."+fc,kt+"."+yd),"null"})}else if(qo in fi){var ti=fi[qo];return go(ti,function(Xt,Ht){var dt=Xt.invoke(Ht,ti),kt=Xt.shared,st=kt.framebuffer,li=Ht.def(st,".getFramebuffer(",dt,")");Ht.set(st,".next",li);var _i=kt.context;return Ht.set(_i,"."+Js,li+"?"+li+".width:"+_i+"."+Mc),Ht.set(_i,"."+fc,li+"?"+li+".height:"+_i+"."+yd),li})}else return null}function kr(Ie,Ze,Et){var fi=Ie.static,ai=Ie.dynamic;function ti(dt){if(dt in fi){var kt=fi[dt],st=!0,li=kt.x|0,_i=kt.y|0,Ai,Cn;return"width"in kt?Ai=kt.width|0:st=!1,"height"in kt?Cn=kt.height|0:st=!1,new Nl(!st&&Ze&&Ze.thisDep,!st&&Ze&&Ze.contextDep,!st&&Ze&&Ze.propDep,function(kn,bn){var An=kn.shared.context,mn=Ai;"width"in kt||(mn=bn.def(An,".",Js,"-",li));var pn=Cn;return"height"in kt||(pn=bn.def(An,".",fc,"-",_i)),[li,_i,mn,pn]})}else if(dt in ai){var hn=ai[dt],cn=go(hn,function(kn,bn){var An=kn.invoke(bn,hn),mn=kn.shared.context,pn=bn.def(An,".x|0"),gn=bn.def(An,".y|0"),vn=bn.def('"width" in ',An,"?",An,".width|0:","(",mn,".",Js,"-",pn,")"),Ia=bn.def('"height" in ',An,"?",An,".height|0:","(",mn,".",fc,"-",gn,")");return[pn,gn,vn,Ia]});return Ze&&(cn.thisDep=cn.thisDep||Ze.thisDep,cn.contextDep=cn.contextDep||Ze.contextDep,cn.propDep=cn.propDep||Ze.propDep),cn}else return Ze?new Nl(Ze.thisDep,Ze.contextDep,Ze.propDep,function(kn,bn){var An=kn.shared.context;return[0,0,bn.def(An,".",Js),bn.def(An,".",fc)]}):null}var Xt=ti(bo);if(Xt){var Ht=Xt;Xt=new Nl(Xt.thisDep,Xt.contextDep,Xt.propDep,function(dt,kt){var st=Ht.append(dt,kt),li=dt.shared.context;return kt.set(li,"."+Gd,st[2]),kt.set(li,"."+uc,st[3]),st})}return{viewport:Xt,scissor_box:ti(Co)}}function za(Ie,Ze){var Et=Ie.static,fi=typeof Et[Ac]=="string"&&typeof Et[Ho]=="string";if(fi){if(Object.keys(Ze.dynamic).length>0)return null;var ai=Ze.static,ti=Object.keys(ai);if(ti.length>0&&typeof ai[ti[0]]=="number"){for(var Xt=[],Ht=0;Ht<ti.length;++Ht)Xt.push([ai[ti[Ht]]|0,ti[Ht]]);return Xt}}return null}function lr(Ie,Ze,Et){var fi=Ie.static,ai=Ie.dynamic;function ti(st){if(st in fi){var li=rt.id(fi[st]),_i=il(function(){return li});return _i.id=li,_i}else if(st in ai){var Ai=ai[st];return go(Ai,function(Cn,hn){var cn=Cn.invoke(hn,Ai),kn=hn.def(Cn.shared.strings,".id(",cn,")");return kn})}return null}var Xt=ti(Ac),Ht=ti(Ho),dt=null,kt;return mc(Xt)&&mc(Ht)?(dt=dn.program(Ht.id,Xt.id,null,Et),kt=il(function(st,li){return st.link(dt)})):kt=new Nl(Xt&&Xt.thisDep||Ht&&Ht.thisDep,Xt&&Xt.contextDep||Ht&&Ht.contextDep,Xt&&Xt.propDep||Ht&&Ht.propDep,function(st,li){var _i=st.shared.shader,Ai;Xt?Ai=Xt.append(st,li):Ai=li.def(_i,".",Ac);var Cn;Ht?Cn=Ht.append(st,li):Cn=li.def(_i,".",Ho);var hn=_i+".program("+Cn+","+Ai;return li.def(hn+")")}),{frag:Xt,vert:Ht,progVar:kt,program:dt}}function Hr(Ie,Ze){var Et=Ie.static,fi=Ie.dynamic,ai={},ti=!1;function Xt(){if(Zo in Et){var bn=Et[Zo];return bn!==null&&Yi.getVAO(bn)===null&&(bn=Yi.createVAO(bn)),ti=!0,ai.vao=bn,il(function(mn){var pn=Yi.getVAO(bn);return pn?mn.link(pn):"null"})}else if(Zo in fi){ti=!0;var An=fi[Zo];return go(An,function(mn,pn){var gn=mn.invoke(pn,An);return pn.def(mn.shared.vao+".getVAO("+gn+")")})}return null}var Ht=Xt(),dt=!1;function kt(){if(Dl in Et){var bn=Et[Dl];if(ai.elements=bn,fu(bn)){var An=ai.elements=xi.create(bn,!0);bn=xi.getElements(An),dt=!0}else bn&&(bn=xi.getElements(bn),dt=!0);var mn=il(function(gn,vn){if(bn){var Ia=gn.link(bn);return gn.ELEMENTS=Ia,Ia}return gn.ELEMENTS=null,null});return mn.value=bn,mn}else if(Dl in fi){dt=!0;var pn=fi[Dl];return go(pn,function(gn,vn){var Ia=gn.shared,Io=Ia.isBufferArgs,Tc=Ia.elements,Jo=gn.invoke(vn,pn),_o=vn.def("null"),Uo=vn.def(Io,"(",Jo,")"),Zd=gn.cond(Uo).then(_o,"=",Tc,".createStream(",Jo,");").else(_o,"=",Tc,".getElements(",Jo,");");return vn.entry(Zd),vn.exit(gn.cond(Uo).then(Tc,".destroyStream(",_o,");")),gn.ELEMENTS=_o,_o})}else if(ti)return new Nl(Ht.thisDep,Ht.contextDep,Ht.propDep,function(gn,vn){return vn.def(gn.shared.vao+".currentVAO?"+gn.shared.elements+".getElements("+gn.shared.vao+".currentVAO.elements):null")});return null}var st=kt();function li(){if(Yo in Et){var bn=Et[Yo];return ai.primitive=bn,il(function(mn,pn){return zt[bn]})}else if(Yo in fi){var An=fi[Yo];return go(An,function(mn,pn){var gn=mn.constants.primTypes,vn=mn.invoke(pn,An);return pn.def(gn,"[",vn,"]")})}else{if(dt)return mc(st)?st.value?il(function(mn,pn){return pn.def(mn.ELEMENTS,".primType")}):il(function(){return Lf}):new Nl(st.thisDep,st.contextDep,st.propDep,function(mn,pn){var gn=mn.ELEMENTS;return pn.def(gn,"?",gn,".primType:",Lf)});if(ti)return new Nl(Ht.thisDep,Ht.contextDep,Ht.propDep,function(mn,pn){return pn.def(mn.shared.vao+".currentVAO?"+mn.shared.vao+".currentVAO.primitive:"+Lf)})}return null}function _i(bn,An){if(bn in Et){var mn=Et[bn]|0;return An?ai.offset=mn:ai.instances=mn,il(function(gn,vn){return An&&(gn.OFFSET=mn),mn})}else if(bn in fi){var pn=fi[bn];return go(pn,function(gn,vn){var Ia=gn.invoke(vn,pn);return An&&(gn.OFFSET=Ia),Ia})}else if(An){if(dt)return il(function(gn,vn){return gn.OFFSET=0,0});if(ti)return new Nl(Ht.thisDep,Ht.contextDep,Ht.propDep,function(gn,vn){return vn.def(gn.shared.vao+".currentVAO?"+gn.shared.vao+".currentVAO.offset:0")})}else if(ti)return new Nl(Ht.thisDep,Ht.contextDep,Ht.propDep,function(gn,vn){return vn.def(gn.shared.vao+".currentVAO?"+gn.shared.vao+".currentVAO.instances:-1")});return null}var Ai=_i(Xo,!0);function Cn(){if(dc in Et){var bn=Et[dc]|0;return ai.count=bn,il(function(){return bn})}else if(dc in fi){var An=fi[dc];return go(An,function(vn,Ia){var Io=vn.invoke(Ia,An);return Io})}else if(dt)if(mc(st)){if(st)return Ai?new Nl(Ai.thisDep,Ai.contextDep,Ai.propDep,function(vn,Ia){var Io=Ia.def(vn.ELEMENTS,".vertCount-",vn.OFFSET);return Io}):il(function(vn,Ia){return Ia.def(vn.ELEMENTS,".vertCount")});var mn=il(function(){return-1});return mn}else{var pn=new Nl(st.thisDep||Ai.thisDep,st.contextDep||Ai.contextDep,st.propDep||Ai.propDep,function(vn,Ia){var Io=vn.ELEMENTS;return vn.OFFSET?Ia.def(Io,"?",Io,".vertCount-",vn.OFFSET,":-1"):Ia.def(Io,"?",Io,".vertCount:-1")});return pn}else if(ti){var gn=new Nl(Ht.thisDep,Ht.contextDep,Ht.propDep,function(vn,Ia){return Ia.def(vn.shared.vao,".currentVAO?",vn.shared.vao,".currentVAO.count:-1")});return gn}return null}var hn=li(),cn=Cn(),kn=_i(Qc,!1);return{elements:st,primitive:hn,count:cn,instances:kn,offset:Ai,vao:Ht,vaoActive:ti,elementsActive:dt,static:ai}}function jr(Ie,Ze){var Et=Ie.static,fi=Ie.dynamic,ai={};return Oi.forEach(function(ti){var Xt=hi(ti);function Ht(dt,kt){if(ti in Et){var st=dt(Et[ti]);ai[Xt]=il(function(){return st})}else if(ti in fi){var li=fi[ti];ai[Xt]=go(li,function(_i,Ai){return kt(_i,Ai,_i.invoke(Ai,li))})}}switch(ti){case ka:case Oa:case Al:case wc:case ha:case Ud:case Yr:case Rc:case Fc:case Wr:return Ht(function(dt){return dt},function(dt,kt,st){return st});case zs:return Ht(function(dt){return du[dt]},function(dt,kt,st){var li=dt.constants.compareFuncs;return kt.def(li,"[",st,"]")});case jl:return Ht(function(dt){return dt},function(dt,kt,st){var li=kt.def("+",st,"[0]"),_i=kt.def("+",st,"[1]");return[li,_i]});case El:return Ht(function(dt){var kt="srcRGB"in dt?dt.srcRGB:dt.src,st="srcAlpha"in dt?dt.srcAlpha:dt.src,li="dstRGB"in dt?dt.dstRGB:dt.dst,_i="dstAlpha"in dt?dt.dstAlpha:dt.dst;return[qd[kt],qd[li],qd[st],qd[_i]]},function(dt,kt,st){var li=dt.constants.blendFuncs;function _i(An,mn){var pn=kt.def('"',An,mn,'" in ',st,"?",st,".",An,mn,":",st,".",An);return pn}var Ai=_i("src","RGB"),Cn=_i("dst","RGB"),hn=kt.def(li,"[",Ai,"]"),cn=kt.def(li,"[",_i("src","Alpha"),"]"),kn=kt.def(li,"[",Cn,"]"),bn=kt.def(li,"[",_i("dst","Alpha"),"]");return[hn,kn,cn,bn]});case Cs:return Ht(function(dt){if(typeof dt=="string")return[Ni[dt],Ni[dt]];if(typeof dt=="object")return[Ni[dt.rgb],Ni[dt.alpha]]},function(dt,kt,st){var li=dt.constants.blendEquations,_i=kt.def(),Ai=kt.def(),Cn=dt.cond("typeof ",st,'==="string"');return Cn.then(_i,"=",Ai,"=",li,"[",st,"];"),Cn.else(_i,"=",li,"[",st,".rgb];",Ai,"=",li,"[",st,".alpha];"),kt(Cn),[_i,Ai]});case el:return Ht(function(dt){return Q(4,function(kt){return+dt[kt]})},function(dt,kt,st){return Q(4,function(li){return kt.def("+",st,"[",li,"]")})});case Sc:return Ht(function(dt){return dt|0},function(dt,kt,st){return kt.def(st,"|0")});case Pd:return Ht(function(dt){var kt=dt.cmp||"keep",st=dt.ref||0,li="mask"in dt?dt.mask:-1;return[du[kt],st,li]},function(dt,kt,st){var li=dt.constants.compareFuncs,_i=kt.def('"cmp" in ',st,"?",li,"[",st,".cmp]",":",hc),Ai=kt.def(st,".ref|0"),Cn=kt.def('"mask" in ',st,"?",st,".mask|0:-1");return[_i,Ai,Cn]});case gd:case Zc:return Ht(function(dt){var kt=dt.fail||"keep",st=dt.zfail||"keep",li=dt.zpass||"keep";return[ti===Zc?Ca:Ls,Yd[kt],Yd[st],Yd[li]]},function(dt,kt,st){var li=dt.constants.stencilOps;function _i(Ai){return kt.def('"',Ai,'" in ',st,"?",li,"[",st,".",Ai,"]:",hc)}return[ti===Zc?Ca:Ls,_i("fail"),_i("zfail"),_i("zpass")]});case ko:return Ht(function(dt){var kt=dt.factor|0,st=dt.units|0;return[kt,st]},function(dt,kt,st){var li=kt.def(st,".factor|0"),_i=kt.def(st,".units|0");return[li,_i]});case Oo:return Ht(function(dt){var kt=0;return dt==="front"?kt=Ls:dt==="back"&&(kt=Ca),kt},function(dt,kt,st){return kt.def(st,'==="front"?',Ls,":",Ca)});case Wo:return Ht(function(dt){return dt},function(dt,kt,st){return st});case tl:return Ht(function(dt){return Sh[dt]},function(dt,kt,st){return kt.def(st+'==="cw"?'+lu+":"+xd)});case Is:return Ht(function(dt){return dt.map(function(kt){return!!kt})},function(dt,kt,st){return Q(4,function(li){return"!!"+st+"["+li+"]"})});case Xc:return Ht(function(dt){var kt="value"in dt?dt.value:1,st=!!dt.invert;return[kt,st]},function(dt,kt,st){var li=kt.def('"value" in ',st,"?+",st,".value:1"),_i=kt.def("!!",st,".invert");return[li,_i]})}}),ai}function ls(Ie,Ze){var Et=Ie.static,fi=Ie.dynamic,ai={};return Object.keys(Et).forEach(function(ti){var Xt=Et[ti],Ht;if(typeof Xt=="number"||typeof Xt=="boolean")Ht=il(function(){return Xt});else if(typeof Xt=="function"){var dt=Xt._reglType;dt==="texture2d"||dt==="textureCube"?Ht=il(function(kt){return kt.link(Xt)}):(dt==="framebuffer"||dt==="framebufferCube")&&(Ht=il(function(kt){return kt.link(Xt.color[0])}))}else xt(Xt)&&(Ht=il(function(kt){var st=kt.global.def("[",Q(Xt.length,function(li){return Xt[li]}),"]");return st}));Ht.value=Xt,ai[ti]=Ht}),Object.keys(fi).forEach(function(ti){var Xt=fi[ti];ai[ti]=go(Xt,function(Ht,dt){return Ht.invoke(dt,Xt)})}),ai}function eo(Ie,Ze){var Et=Ie.static,fi=Ie.dynamic,ai={};return Object.keys(Et).forEach(function(ti){var Xt=Et[ti],Ht=rt.id(ti),dt=new mi;if(fu(Xt))dt.state=Ua,dt.buffer=Ti.getBuffer(Ti.create(Xt,Po,!1,!0)),dt.type=0;else{var kt=Ti.getBuffer(Xt);if(kt)dt.state=Ua,dt.buffer=kt,dt.type=0;else if("constant"in Xt){var st=Xt.constant;dt.buffer="null",dt.state=uo,typeof st=="number"?dt.x=st:Vr.forEach(function(kn,bn){bn<st.length&&(dt[kn]=st[bn])})}else{fu(Xt.buffer)?kt=Ti.getBuffer(Ti.create(Xt.buffer,Po,!1,!0)):kt=Ti.getBuffer(Xt.buffer);var li=Xt.offset|0,_i=Xt.stride|0,Ai=Xt.size|0,Cn=!!Xt.normalized,hn=0;"type"in Xt&&(hn=D[Xt.type]);var cn=Xt.divisor|0;dt.buffer=kt,dt.state=Ua,dt.size=Ai,dt.normalized=Cn,dt.type=hn||kt.dtype,dt.offset=li,dt.stride=_i,dt.divisor=cn}}ai[ti]=il(function(kn,bn){var An=kn.attribCache;if(Ht in An)return An[Ht];var mn={isStream:!1};return Object.keys(dt).forEach(function(pn){mn[pn]=dt[pn]}),dt.buffer&&(mn.buffer=kn.link(dt.buffer),mn.type=mn.type||mn.buffer+".dtype"),An[Ht]=mn,mn})}),Object.keys(fi).forEach(function(ti){var Xt=fi[ti];function Ht(dt,kt){var st=dt.invoke(kt,Xt),li=dt.shared,_i=dt.constants,Ai=li.isBufferArgs,Cn=li.buffer,hn={isStream:kt.def(!1)},cn=new mi;cn.state=Ua,Object.keys(cn).forEach(function(mn){hn[mn]=kt.def(""+cn[mn])});var kn=hn.buffer,bn=hn.type;kt("if(",Ai,"(",st,")){",hn.isStream,"=true;",kn,"=",Cn,".createStream(",Po,",",st,");",bn,"=",kn,".dtype;","}else{",kn,"=",Cn,".getBuffer(",st,");","if(",kn,"){",bn,"=",kn,".dtype;",'}else if("constant" in ',st,"){",hn.state,"=",uo,";","if(typeof "+st+'.constant === "number"){',hn[Vr[0]],"=",st,".constant;",Vr.slice(1).map(function(mn){return hn[mn]}).join("="),"=0;","}else{",Vr.map(function(mn,pn){return hn[mn]+"="+st+".constant.length>"+pn+"?"+st+".constant["+pn+"]:0;"}).join(""),"}}else{","if(",Ai,"(",st,".buffer)){",kn,"=",Cn,".createStream(",Po,",",st,".buffer);","}else{",kn,"=",Cn,".getBuffer(",st,".buffer);","}",bn,'="type" in ',st,"?",_i.glTypes,"[",st,".type]:",kn,".dtype;",hn.normalized,"=!!",st,".normalized;");function An(mn){kt(hn[mn],"=",st,".",mn,"|0;")}return An("size"),An("offset"),An("stride"),An("divisor"),kt("}}"),kt.exit("if(",hn.isStream,"){",Cn,".destroyStream(",kn,");","}"),hn}ai[ti]=go(Xt,Ht)}),ai}function Us(Ie){var Ze=Ie.static,Et=Ie.dynamic,fi={};return Object.keys(Ze).forEach(function(ai){var ti=Ze[ai];fi[ai]=il(function(Xt,Ht){return typeof ti=="number"||typeof ti=="boolean"?""+ti:Xt.link(ti)})}),Object.keys(Et).forEach(function(ai){var ti=Et[ai];fi[ai]=go(ti,function(Xt,Ht){return Xt.invoke(Ht,ti)})}),fi}function Ko(Ie,Ze,Et,fi,ai){Ie.static,Ie.dynamic;var ti=za(Ie,Ze),Xt=or(Ie),Ht=kr(Ie,Xt),dt=Hr(Ie),kt=jr(Ie),st=lr(Ie,ai,ti);function li(kn){var bn=Ht[kn];bn&&(kt[kn]=bn)}li(bo),li(hi(Co));var _i=Object.keys(kt).length>0,Ai={framebuffer:Xt,draw:dt,shader:st,state:kt,dirty:_i,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ai.profile=qn(Ie),Ai.uniforms=ls(Et),Ai.drawVAO=Ai.scopeVAO=dt.vao,!Ai.drawVAO&&st.program&&!ti&&gt.angle_instanced_arrays&&dt.static.elements){var Cn=!0,hn=st.program.attributes.map(function(kn){var bn=Ze.static[kn];return Cn=Cn&&!!bn,bn});if(Cn&&hn.length>0){var cn=Yi.getVAO(Yi.createVAO({attributes:hn,elements:dt.static.elements}));Ai.drawVAO=new Nl(null,null,null,function(kn,bn){return kn.link(cn)}),Ai.useVAO=!0}}return ti?Ai.useVAO=!0:Ai.attributes=eo(Ze),Ai.context=Us(fi),Ai}function Ga(Ie,Ze,Et){var fi=Ie.shared,ai=fi.context,ti=Ie.scope();Object.keys(Et).forEach(function(Xt){Ze.save(ai,"."+Xt);var Ht=Et[Xt],dt=Ht.append(Ie,Ze);Array.isArray(dt)?ti(ai,".",Xt,"=[",dt.join(),"];"):ti(ai,".",Xt,"=",dt,";")}),Ze(ti)}function Ol(Ie,Ze,Et,fi){var ai=Ie.shared,ti=ai.gl,Xt=ai.framebuffer,Ht;Si&&(Ht=Ze.def(ai.extensions,".webgl_draw_buffers"));var dt=Ie.constants,kt=dt.drawBuffer,st=dt.backBuffer,li;Et?li=Et.append(Ie,Ze):li=Ze.def(Xt,".next"),fi||Ze("if(",li,"!==",Xt,".cur){"),Ze("if(",li,"){",ti,".bindFramebuffer(",wh,",",li,".framebuffer);"),Si&&Ze(Ht,".drawBuffersWEBGL(",kt,"[",li,".colorAttachments.length]);"),Ze("}else{",ti,".bindFramebuffer(",wh,",null);"),Si&&Ze(Ht,".drawBuffersWEBGL(",st,");"),Ze("}",Xt,".cur=",li,";"),fi||Ze("}")}function Yn(Ie,Ze,Et){var fi=Ie.shared,ai=fi.gl,ti=Ie.current,Xt=Ie.next,Ht=fi.current,dt=fi.next,kt=Ie.cond(Ht,".dirty");Oi.forEach(function(st){var li=hi(st);if(!(li in Et.state)){var _i,Ai;if(li in Xt){_i=Xt[li],Ai=ti[li];var Cn=Q(Ji[li].length,function(cn){return kt.def(_i,"[",cn,"]")});kt(Ie.cond(Cn.map(function(cn,kn){return cn+"!=="+Ai+"["+kn+"]"}).join("||")).then(ai,".",ln[li],"(",Cn,");",Cn.map(function(cn,kn){return Ai+"["+kn+"]="+cn}).join(";"),";"))}else{_i=kt.def(dt,".",li);var hn=Ie.cond(_i,"!==",Ht,".",li);kt(hn),li in vi?hn(Ie.cond(_i).then(ai,".enable(",vi[li],");").else(ai,".disable(",vi[li],");"),Ht,".",li,"=",_i,";"):hn(ai,".",ln[li],"(",_i,");",Ht,".",li,"=",_i,";")}}}),Object.keys(Et.state).length===0&&kt(Ht,".dirty=false;"),Ze(kt)}function zo(Ie,Ze,Et,fi){var ai=Ie.shared,ti=Ie.current,Xt=ai.current,Ht=ai.gl,dt;Ah(Object.keys(Et)).forEach(function(kt){var st=Et[kt];if(!(fi&&!fi(st))){var li=st.append(Ie,Ze);if(vi[kt]){var _i=vi[kt];mc(st)?(dt=Ie.link(li,{stable:!0}),Ze(Ie.cond(dt).then(Ht,".enable(",_i,");").else(Ht,".disable(",_i,");")),Ze(Xt,".",kt,"=",dt,";")):(Ze(Ie.cond(li).then(Ht,".enable(",_i,");").else(Ht,".disable(",_i,");")),Ze(Xt,".",kt,"=",li,";"))}else if(xt(li)){var Ai=ti[kt];Ze(Ht,".",ln[kt],"(",li,");",li.map(function(Cn,hn){return Ai+"["+hn+"]="+Cn}).join(";"),";")}else mc(st)?(dt=Ie.link(li,{stable:!0}),Ze(Ht,".",ln[kt],"(",dt,");",Xt,".",kt,"=",dt,";")):Ze(Ht,".",ln[kt],"(",li,");",Xt,".",kt,"=",li,";")}})}function Xr(Ie,Ze){Pi&&(Ie.instancing=Ze.def(Ie.shared.extensions,".angle_instanced_arrays"))}function kl(Ie,Ze,Et,fi,ai){var ti=Ie.shared,Xt=Ie.stats,Ht=ti.current,dt=ti.timer,kt=Et.profile;function st(){return typeof performance>"u"?"Date.now()":"performance.now()"}var li,_i;function Ai(An){li=Ze.def(),An(li,"=",st(),";"),typeof ai=="string"?An(Xt,".count+=",ai,";"):An(Xt,".count++;"),en&&(fi?(_i=Ze.def(),An(_i,"=",dt,".getNumPendingQueries();")):An(dt,".beginQuery(",Xt,");"))}function Cn(An){An(Xt,".cpuTime+=",st(),"-",li,";"),en&&(fi?An(dt,".pushScopeStats(",_i,",",dt,".getNumPendingQueries(),",Xt,");"):An(dt,".endQuery();"))}function hn(An){var mn=Ze.def(Ht,".profile");Ze(Ht,".profile=",An,";"),Ze.exit(Ht,".profile=",mn,";")}var cn;if(kt){if(mc(kt)){kt.enable?(Ai(Ze),Cn(Ze.exit),hn("true")):hn("false");return}cn=kt.append(Ie,Ze),hn(cn)}else cn=Ze.def(Ht,".profile");var kn=Ie.block();Ai(kn),Ze("if(",cn,"){",kn,"}");var bn=Ie.block();Cn(bn),Ze.exit("if(",cn,"){",bn,"}")}function to(Ie,Ze,Et,fi,ai){var ti=Ie.shared;function Xt(dt){switch(dt){case Tl:case jd:case ul:return 2;case Wd:case vd:case kf:return 3;case ed:case id:case Cf:return 4;default:return 1}}function Ht(dt,kt,st){var li=ti.gl,_i=Ze.def(dt,".location"),Ai=Ze.def(ti.attributes,"[",_i,"]"),Cn=st.state,hn=st.buffer,cn=[st.x,st.y,st.z,st.w],kn=["buffer","normalized","offset","stride"];function bn(){Ze("if(!",Ai,".buffer){",li,".enableVertexAttribArray(",_i,");}");var mn=st.type,pn;if(st.size?pn=Ze.def(st.size,"||",kt):pn=kt,Ze("if(",Ai,".type!==",mn,"||",Ai,".size!==",pn,"||",kn.map(function(vn){return Ai+"."+vn+"!=="+st[vn]}).join("||"),"){",li,".bindBuffer(",Po,",",hn,".buffer);",li,".vertexAttribPointer(",[_i,pn,mn,st.normalized,st.stride,st.offset],");",Ai,".type=",mn,";",Ai,".size=",pn,";",kn.map(function(vn){return Ai+"."+vn+"="+st[vn]+";"}).join(""),"}"),Pi){var gn=st.divisor;Ze("if(",Ai,".divisor!==",gn,"){",Ie.instancing,".vertexAttribDivisorANGLE(",[_i,gn],");",Ai,".divisor=",gn,";}")}}function An(){Ze("if(",Ai,".buffer){",li,".disableVertexAttribArray(",_i,");",Ai,".buffer=null;","}if(",Vr.map(function(mn,pn){return Ai+"."+mn+"!=="+cn[pn]}).join("||"),"){",li,".vertexAttrib4f(",_i,",",cn,");",Vr.map(function(mn,pn){return Ai+"."+mn+"="+cn[pn]+";"}).join(""),"}")}Cn===Ua?bn():Cn===uo?An():(Ze("if(",Cn,"===",Ua,"){"),bn(),Ze("}else{"),An(),Ze("}"))}fi.forEach(function(dt){var kt=dt.name,st=Et.attributes[kt],li;if(st){if(!ai(st))return;li=st.append(Ie,Ze)}else{if(!ai(Eh))return;var _i=Ie.scopeAttrib(kt);li={},Object.keys(new mi).forEach(function(Ai){li[Ai]=Ze.def(_i,".",Ai)})}Ht(Ie.link(dt),Xt(dt.info.type),li)})}function Gs(Ie,Ze,Et,fi,ai,ti){for(var Xt=Ie.shared,Ht=Xt.gl,dt,kt=0;kt<fi.length;++kt){var st=fi[kt],li=st.name,_i=st.info.type,Ai=Et.uniforms[li],Cn=Ie.link(st),hn=Cn+".location",cn;if(Ai){if(!ai(Ai))continue;if(mc(Ai)){var kn=Ai.value;if(_i===zf||_i===If){var bn=Ie.link(kn._texture||kn.color[0]._texture);Ze(Ht,".uniform1i(",hn,",",bn+".bind());"),Ze.exit(bn,".unbind();")}else if(_i===ru||_i===au||_i===yh){var An=Ie.global.def("new Float32Array(["+Array.prototype.slice.call(kn)+"])"),mn=2;_i===au?mn=3:_i===yh&&(mn=4),Ze(Ht,".uniformMatrix",mn,"fv(",hn,",false,",An,");")}else{switch(_i){case aa:dt="1f";break;case Tl:dt="2f";break;case Wd:dt="3f";break;case ed:dt="4f";break;case Bm:dt="1i";break;case td:dt="1i";break;case ul:dt="2i";break;case jd:dt="2i";break;case kf:dt="3i";break;case vd:dt="3i";break;case Cf:dt="4i";break;case id:dt="4i";break}Ze(Ht,".uniform",dt,"(",hn,",",xt(kn)?Array.prototype.slice.call(kn):kn,");")}continue}else cn=Ai.append(Ie,Ze)}else{if(!ai(Eh))continue;cn=Ze.def(Xt.uniforms,"[",rt.id(li),"]")}_i===zf?Ze("if(",cn,"&&",cn,'._reglType==="framebuffer"){',cn,"=",cn,".color[0];","}"):_i===If&&Ze("if(",cn,"&&",cn,'._reglType==="framebufferCube"){',cn,"=",cn,".color[0];","}");var pn=1;switch(_i){case zf:case If:var gn=Ze.def(cn,"._texture");Ze(Ht,".uniform1i(",hn,",",gn,".bind());"),Ze.exit(gn,".unbind();");continue;case td:case Bm:dt="1i";break;case jd:case ul:dt="2i",pn=2;break;case vd:case kf:dt="3i",pn=3;break;case id:case Cf:dt="4i",pn=4;break;case aa:dt="1f";break;case Tl:dt="2f",pn=2;break;case Wd:dt="3f",pn=3;break;case ed:dt="4f",pn=4;break;case ru:dt="Matrix2fv";break;case au:dt="Matrix3fv";break;case yh:dt="Matrix4fv";break}if(dt.charAt(0)==="M"){Ze(Ht,".uniform",dt,"(",hn,",");var vn=Math.pow(_i-ru+2,2),Ia=Ie.global.def("new Float32Array(",vn,")");Array.isArray(cn)?Ze("false,(",Q(vn,function(Uo){return Ia+"["+Uo+"]="+cn[Uo]}),",",Ia,")"):Ze("false,(Array.isArray(",cn,")||",cn," instanceof Float32Array)?",cn,":(",Q(vn,function(Uo){return Ia+"["+Uo+"]="+cn+"["+Uo+"]"}),",",Ia,")"),Ze(");")}else if(pn>1){for(var Io=[],Tc=[],Jo=0;Jo<pn;++Jo)Array.isArray(cn)?Tc.push(cn[Jo]):Tc.push(Ze.def(cn+"["+Jo+"]")),ti&&Io.push(Ze.def());ti&&Ze("if(!",Ie.batchId,"||",Io.map(function(Uo,Zd){return Uo+"!=="+Tc[Zd]}).join("||"),"){",Io.map(function(Uo,Zd){return Uo+"="+Tc[Zd]+";"}).join("")),Ze(Ht,".uniform",dt,"(",hn,",",Tc.join(","),");"),ti&&Ze("}")}else{if(ti){var _o=Ze.def();Ze("if(!",Ie.batchId,"||",_o,"!==",cn,"){",_o,"=",cn,";")}Ze(Ht,".uniform",dt,"(",hn,",",cn,");"),ti&&Ze("}")}}}function ir(Ie,Ze,Et,fi){var ai=Ie.shared,ti=ai.gl,Xt=ai.draw,Ht=fi.draw;function dt(){var pn=Ht.elements,gn,vn=Ze;return pn?((pn.contextDep&&fi.contextDynamic||pn.propDep)&&(vn=Et),gn=pn.append(Ie,vn),Ht.elementsActive&&vn("if("+gn+")"+ti+".bindBuffer("+Ec+","+gn+".buffer.buffer);")):(gn=vn.def(),vn(gn,"=",Xt,".",Dl,";","if(",gn,"){",ti,".bindBuffer(",Ec,",",gn,".buffer.buffer);}","else if(",ai.vao,".currentVAO){",gn,"=",Ie.shared.elements+".getElements("+ai.vao,".currentVAO.elements);",an?"":"if("+gn+")"+ti+".bindBuffer("+Ec+","+gn+".buffer.buffer);","}")),gn}function kt(){var pn=Ht.count,gn,vn=Ze;return pn?((pn.contextDep&&fi.contextDynamic||pn.propDep)&&(vn=Et),gn=pn.append(Ie,vn)):gn=vn.def(Xt,".",dc),gn}var st=dt();function li(pn){var gn=Ht[pn];return gn?gn.contextDep&&fi.contextDynamic||gn.propDep?gn.append(Ie,Et):gn.append(Ie,Ze):Ze.def(Xt,".",pn)}var _i=li(Yo),Ai=li(Xo),Cn=kt();if(typeof Cn=="number"){if(Cn===0)return}else Et("if(",Cn,"){"),Et.exit("}");var hn,cn;Pi&&(hn=li(Qc),cn=Ie.instancing);var kn=st+".type",bn=Ht.elements&&mc(Ht.elements)&&!Ht.vaoActive;function An(){function pn(){Et(cn,".drawElementsInstancedANGLE(",[_i,Cn,kn,Ai+"<<(("+kn+"-"+wr+")>>1)",hn],");")}function gn(){Et(cn,".drawArraysInstancedANGLE(",[_i,Ai,Cn,hn],");")}st&&st!=="null"?bn?pn():(Et("if(",st,"){"),pn(),Et("}else{"),gn(),Et("}")):gn()}function mn(){function pn(){Et(ti+".drawElements("+[_i,Cn,kn,Ai+"<<(("+kn+"-"+wr+")>>1)"]+");")}function gn(){Et(ti+".drawArrays("+[_i,Ai,Cn]+");")}st&&st!=="null"?bn?pn():(Et("if(",st,"){"),pn(),Et("}else{"),gn(),Et("}")):gn()}Pi&&(typeof hn!="number"||hn>=0)?typeof hn=="string"?(Et("if(",hn,">0){"),An(),Et("}else if(",hn,"<0){"),mn(),Et("}")):An():mn()}function Ar(Ie,Ze,Et,fi,ai){var ti=Vi(),Xt=ti.proc("body",ai);return Pi&&(ti.instancing=Xt.def(ti.shared.extensions,".angle_instanced_arrays")),Ie(ti,Xt,Et,fi),ti.compile().body}function ma(Ie,Ze,Et,fi){Xr(Ie,Ze),Et.useVAO?Et.drawVAO?Ze(Ie.shared.vao,".setVAO(",Et.drawVAO.append(Ie,Ze),");"):Ze(Ie.shared.vao,".setVAO(",Ie.shared.vao,".targetVAO);"):(Ze(Ie.shared.vao,".setVAO(null);"),to(Ie,Ze,Et,fi.attributes,function(){return!0})),Gs(Ie,Ze,Et,fi.uniforms,function(){return!0},!1),ir(Ie,Ze,Ze,Et)}function ql(Ie,Ze){var Et=Ie.proc("draw",1);Xr(Ie,Et),Ga(Ie,Et,Ze.context),Ol(Ie,Et,Ze.framebuffer),Yn(Ie,Et,Ze),zo(Ie,Et,Ze.state),kl(Ie,Et,Ze,!1,!0);var fi=Ze.shader.progVar.append(Ie,Et);if(Et(Ie.shared.gl,".useProgram(",fi,".program);"),Ze.shader.program)ma(Ie,Et,Ze,Ze.shader.program);else{Et(Ie.shared.vao,".setVAO(null);");var ai=Ie.global.def("{}"),ti=Et.def(fi,".id"),Xt=Et.def(ai,"[",ti,"]");Et(Ie.cond(Xt).then(Xt,".call(this,a0);").else(Xt,"=",ai,"[",ti,"]=",Ie.link(function(Ht){return Ar(ma,Ie,Ze,Ht,1)}),"(",fi,");",Xt,".call(this,a0);"))}Object.keys(Ze.state).length>0&&Et(Ie.shared.current,".dirty=true;"),Ie.shared.vao&&Et(Ie.shared.vao,".setVAO(null);")}function We(Ie,Ze,Et,fi){Ie.batchId="a1",Xr(Ie,Ze);function ai(){return!0}to(Ie,Ze,Et,fi.attributes,ai),Gs(Ie,Ze,Et,fi.uniforms,ai,!1),ir(Ie,Ze,Ze,Et)}function ri(Ie,Ze,Et,fi){Xr(Ie,Ze);var ai=Et.contextDep,ti=Ze.def(),Xt="a0",Ht="a1",dt=Ze.def();Ie.shared.props=dt,Ie.batchId=ti;var kt=Ie.scope(),st=Ie.scope();Ze(kt.entry,"for(",ti,"=0;",ti,"<",Ht,";++",ti,"){",dt,"=",Xt,"[",ti,"];",st,"}",kt.exit);function li(kn){return kn.contextDep&&ai||kn.propDep}function _i(kn){return!li(kn)}if(Et.needsContext&&Ga(Ie,st,Et.context),Et.needsFramebuffer&&Ol(Ie,st,Et.framebuffer),zo(Ie,st,Et.state,li),Et.profile&&li(Et.profile)&&kl(Ie,st,Et,!1,!0),fi)Et.useVAO?Et.drawVAO?li(Et.drawVAO)?st(Ie.shared.vao,".setVAO(",Et.drawVAO.append(Ie,st),");"):kt(Ie.shared.vao,".setVAO(",Et.drawVAO.append(Ie,kt),");"):kt(Ie.shared.vao,".setVAO(",Ie.shared.vao,".targetVAO);"):(kt(Ie.shared.vao,".setVAO(null);"),to(Ie,kt,Et,fi.attributes,_i),to(Ie,st,Et,fi.attributes,li)),Gs(Ie,kt,Et,fi.uniforms,_i,!1),Gs(Ie,st,Et,fi.uniforms,li,!0),ir(Ie,kt,st,Et);else{var Ai=Ie.global.def("{}"),Cn=Et.shader.progVar.append(Ie,st),hn=st.def(Cn,".id"),cn=st.def(Ai,"[",hn,"]");st(Ie.shared.gl,".useProgram(",Cn,".program);","if(!",cn,"){",cn,"=",Ai,"[",hn,"]=",Ie.link(function(kn){return Ar(We,Ie,Et,kn,2)}),"(",Cn,");}",cn,".call(this,a0[",ti,"],",ti,");")}}function oi(Ie,Ze){var Et=Ie.proc("batch",2);Ie.batchId="0",Xr(Ie,Et);var fi=!1,ai=!0;Object.keys(Ze.context).forEach(function(Ai){fi=fi||Ze.context[Ai].propDep}),fi||(Ga(Ie,Et,Ze.context),ai=!1);var ti=Ze.framebuffer,Xt=!1;ti?(ti.propDep?fi=Xt=!0:ti.contextDep&&fi&&(Xt=!0),Xt||Ol(Ie,Et,ti)):Ol(Ie,Et,null),Ze.state.viewport&&Ze.state.viewport.propDep&&(fi=!0);function Ht(Ai){return Ai.contextDep&&fi||Ai.propDep}Yn(Ie,Et,Ze),zo(Ie,Et,Ze.state,function(Ai){return!Ht(Ai)}),(!Ze.profile||!Ht(Ze.profile))&&kl(Ie,Et,Ze,!1,"a1"),Ze.contextDep=fi,Ze.needsContext=ai,Ze.needsFramebuffer=Xt;var dt=Ze.shader.progVar;if(dt.contextDep&&fi||dt.propDep)ri(Ie,Et,Ze,null);else{var kt=dt.append(Ie,Et);if(Et(Ie.shared.gl,".useProgram(",kt,".program);"),Ze.shader.program)ri(Ie,Et,Ze,Ze.shader.program);else{Et(Ie.shared.vao,".setVAO(null);");var st=Ie.global.def("{}"),li=Et.def(kt,".id"),_i=Et.def(st,"[",li,"]");Et(Ie.cond(_i).then(_i,".call(this,a0,a1);").else(_i,"=",st,"[",li,"]=",Ie.link(function(Ai){return Ar(ri,Ie,Ze,Ai,2)}),"(",kt,");",_i,".call(this,a0,a1);"))}}Object.keys(Ze.state).length>0&&Et(Ie.shared.current,".dirty=true;"),Ie.shared.vao&&Et(Ie.shared.vao,".setVAO(null);")}function _n(Ie,Ze){var Et=Ie.proc("scope",3);Ie.batchId="a2";var fi=Ie.shared,ai=fi.current;if(Ga(Ie,Et,Ze.context),Ze.framebuffer&&Ze.framebuffer.append(Ie,Et),Ah(Object.keys(Ze.state)).forEach(function(Ht){var dt=Ze.state[Ht],kt=dt.append(Ie,Et);xt(kt)?kt.forEach(function(st,li){On(st)?Et.set(Ie.next[Ht],"["+li+"]",st):Et.set(Ie.next[Ht],"["+li+"]",Ie.link(st,{stable:!0}))}):mc(dt)?Et.set(fi.next,"."+Ht,Ie.link(kt,{stable:!0})):Et.set(fi.next,"."+Ht,kt)}),kl(Ie,Et,Ze,!0,!0),[Dl,Xo,dc,Qc,Yo].forEach(function(Ht){var dt=Ze.draw[Ht];if(dt){var kt=dt.append(Ie,Et);On(kt)?Et.set(fi.draw,"."+Ht,kt):Et.set(fi.draw,"."+Ht,Ie.link(kt),{stable:!0})}}),Object.keys(Ze.uniforms).forEach(function(Ht){var dt=Ze.uniforms[Ht].append(Ie,Et);Array.isArray(dt)&&(dt="["+dt.map(function(kt){return On(kt)?kt:Ie.link(kt,{stable:!0})})+"]"),Et.set(fi.uniforms,"["+Ie.link(rt.id(Ht),{stable:!0})+"]",dt)}),Object.keys(Ze.attributes).forEach(function(Ht){var dt=Ze.attributes[Ht].append(Ie,Et),kt=Ie.scopeAttrib(Ht);Object.keys(new mi).forEach(function(st){Et.set(kt,"."+st,dt[st])})}),Ze.scopeVAO){var ti=Ze.scopeVAO.append(Ie,Et);On(ti)?Et.set(fi.vao,".targetVAO",ti):Et.set(fi.vao,".targetVAO",Ie.link(ti,{stable:!0}))}function Xt(Ht){var dt=Ze.shader[Ht];if(dt){var kt=dt.append(Ie,Et);On(kt)?Et.set(fi.shader,"."+Ht,kt):Et.set(fi.shader,"."+Ht,Ie.link(kt,{stable:!0}))}}Xt(Ho),Xt(Ac),Object.keys(Ze.state).length>0&&(Et(ai,".dirty=true;"),Et.exit(ai,".dirty=true;")),Et("a1(",Ie.shared.context,",a0,",Ie.batchId,");")}function ur(Ie){if(!(typeof Ie!="object"||xt(Ie))){for(var Ze=Object.keys(Ie),Et=0;Et<Ze.length;++Et)if(z.isDynamic(Ie[Ze[Et]]))return!0;return!1}}function pa(Ie,Ze,Et){var fi=Ze.static[Et];if(!fi||!ur(fi))return;var ai=Ie.global,ti=Object.keys(fi),Xt=!1,Ht=!1,dt=!1,kt=Ie.global.def("{}");ti.forEach(function(li){var _i=fi[li];if(z.isDynamic(_i)){typeof _i=="function"&&(_i=fi[li]=z.unbox(_i));var Ai=go(_i,null);Xt=Xt||Ai.thisDep,dt=dt||Ai.propDep,Ht=Ht||Ai.contextDep}else{switch(ai(kt,".",li,"="),typeof _i){case"number":ai(_i);break;case"string":ai('"',_i,'"');break;case"object":Array.isArray(_i)&&ai("[",_i.join(),"]");break;default:ai(Ie.link(_i));break}ai(";")}});function st(li,_i){ti.forEach(function(Ai){var Cn=fi[Ai];if(z.isDynamic(Cn)){var hn=li.invoke(_i,Cn);_i(kt,".",Ai,"=",hn,";")}})}Ze.dynamic[Et]=new z.DynamicVariable(Vl,{thisDep:Xt,contextDep:Ht,propDep:dt,ref:kt,append:st}),delete Ze.static[Et]}function yn(Ie,Ze,Et,fi,ai){var ti=Vi();ti.stats=ti.link(ai),Object.keys(Ze.static).forEach(function(Ht){pa(ti,Ze,Ht)}),Vd.forEach(function(Ht){pa(ti,Ie,Ht)});var Xt=Ko(Ie,Ze,Et,fi,ti);return Xt.shader.program&&(Xt.shader.program.attributes.sort(function(Ht,dt){return Ht.name<dt.name?-1:1}),Xt.shader.program.uniforms.sort(function(Ht,dt){return Ht.name<dt.name?-1:1})),ql(ti,Xt),_n(ti,Xt),oi(ti,Xt),t(ti.compile(),{destroy:function(){Xt.shader.program.destroy()}})}return{next:Tn,current:Ji,procs:function(){var Ie=Vi(),Ze=Ie.proc("poll"),Et=Ie.proc("refresh"),fi=Ie.block();Ze(fi),Et(fi);var ai=Ie.shared,ti=ai.gl,Xt=ai.next,Ht=ai.current;fi(Ht,".dirty=false;"),Ol(Ie,Ze),Ol(Ie,Et,null,!0);var dt;Pi&&(dt=Ie.link(Pi)),gt.oes_vertex_array_object&&Et(Ie.link(gt.oes_vertex_array_object),".bindVertexArrayOES(null);");var kt=Et.def(ai.attributes),st=Et.def(0),li=Ie.cond(st,".buffer");li.then(ti,".enableVertexAttribArray(i);",ti,".bindBuffer(",Po,",",st,".buffer.buffer);",ti,".vertexAttribPointer(i,",st,".size,",st,".type,",st,".normalized,",st,".stride,",st,".offset);").else(ti,".disableVertexAttribArray(i);",ti,".vertexAttrib4f(i,",st,".x,",st,".y,",st,".z,",st,".w);",st,".buffer=null;");var _i=Ie.link(ui.maxAttributes,{stable:!0});return Et("for(var i=0;i<",_i,";++i){",st,"=",kt,"[i];",li,"}"),Pi&&Et("for(var i=0;i<",_i,";++i){",dt,".vertexAttribDivisorANGLE(i,",kt,"[i].divisor);","}"),Et(Ie.shared.vao,".currentVAO=null;",Ie.shared.vao,".setVAO(",Ie.shared.vao,".targetVAO);"),Object.keys(vi).forEach(function(Ai){var Cn=vi[Ai],hn=fi.def(Xt,".",Ai),cn=Ie.block();cn("if(",hn,"){",ti,".enable(",Cn,")}else{",ti,".disable(",Cn,")}",Ht,".",Ai,"=",hn,";"),Et(cn),Ze("if(",hn,"!==",Ht,".",Ai,"){",cn,"}")}),Object.keys(ln).forEach(function(Ai){var Cn=ln[Ai],hn=Ji[Ai],cn,kn,bn=Ie.block();if(bn(ti,".",Cn,"("),xt(hn)){var An=hn.length;cn=Ie.global.def(Xt,".",Ai),kn=Ie.global.def(Ht,".",Ai),bn(Q(An,function(mn){return cn+"["+mn+"]"}),");",Q(An,function(mn){return kn+"["+mn+"]="+cn+"["+mn+"];"}).join("")),Ze("if(",Q(An,function(mn){return cn+"["+mn+"]!=="+kn+"["+mn+"]"}).join("||"),"){",bn,"}")}else cn=fi.def(Xt,".",Ai),kn=fi.def(Ht,".",Ai),bn(cn,");",Ht,".",Ai,"=",cn,";"),Ze("if(",cn,"!==",kn,"){",bn,"}");Et(bn)}),Ie.compile()}(),compile:yn}}function Gm(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Vm=34918,H0=34919,Th=35007,Xd=function(P,rt){if(!rt.ext_disjoint_timer_query)return null;var gt=[];function ui(){return gt.pop()||rt.ext_disjoint_timer_query.createQueryEXT()}function Ti(Ni){gt.push(Ni)}var xi=[];function gi(Ni){var Pi=ui();rt.ext_disjoint_timer_query.beginQueryEXT(Th,Pi),xi.push(Pi),en(xi.length-1,xi.length,Ni)}function Zi(){rt.ext_disjoint_timer_query.endQueryEXT(Th)}function Ki(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var Yi=[];function dn(){return Yi.pop()||new Ki}function Fn(Ni){Yi.push(Ni)}var En=[];function en(Ni,Pi,Si){var an=dn();an.startQueryIndex=Ni,an.endQueryIndex=Pi,an.sum=0,an.stats=Si,En.push(an)}var Ii=[],Yt=[];function mi(){var Ni,Pi,Si=xi.length;if(Si!==0){Yt.length=Math.max(Yt.length,Si+1),Ii.length=Math.max(Ii.length,Si+1),Ii[0]=0,Yt[0]=0;var an=0;for(Ni=0,Pi=0;Pi<xi.length;++Pi){var Ji=xi[Pi];rt.ext_disjoint_timer_query.getQueryObjectEXT(Ji,H0)?(an+=rt.ext_disjoint_timer_query.getQueryObjectEXT(Ji,Vm),Ti(Ji)):xi[Ni++]=Ji,Ii[Pi+1]=an,Yt[Pi+1]=Ni}for(xi.length=Ni,Ni=0,Pi=0;Pi<En.length;++Pi){var Tn=En[Pi],Oi=Tn.startQueryIndex,vi=Tn.endQueryIndex;Tn.sum+=Ii[vi]-Ii[Oi];var ln=Yt[Oi],hi=Yt[vi];hi===ln?(Tn.stats.gpuTime+=Tn.sum/1e6,Fn(Tn)):(Tn.startQueryIndex=ln,Tn.endQueryIndex=hi,En[Ni++]=Tn)}En.length=Ni}}return{beginQuery:gi,endQuery:Zi,pushScopeStats:en,update:mi,getNumPendingQueries:function(){return xi.length},clear:function(){gt.push.apply(gt,xi);for(var Ni=0;Ni<gt.length;Ni++)rt.ext_disjoint_timer_query.deleteQueryEXT(gt[Ni]);xi.length=0,gt.length=0},restore:function(){xi.length=0,gt.length=0}}},uu=16384,Wm=256,hu=1024,Rf=34962,Oh="webglcontextlost",kh="webglcontextrestored",Ch=1,jm=2,qm=3;function zh(P,rt){for(var gt=0;gt<P.length;++gt)if(P[gt]===rt)return gt;return-1}function Ih(P){var rt=J(P);if(!rt)return null;var gt=rt.gl,ui=gt.getContextAttributes();gt.isContextLost();var Ti=S(gt,rt);if(!Ti)return null;var xi=E(),gi=Gm(),Zi=rt.cachedCode||{},Ki=Ti.extensions,Yi=Xd(gt,Ki),dn=y(),Fn=gt.drawingBufferWidth,En=gt.drawingBufferHeight,en={tick:0,time:0,viewportWidth:Fn,viewportHeight:En,framebufferWidth:Fn,framebufferHeight:En,drawingBufferWidth:Fn,drawingBufferHeight:En,pixelRatio:rt.pixelRatio},Ii={},Yt={elements:null,primitive:4,count:-1,offset:0,instances:-1},mi=tt(gt,Ki),Ni=_t(gt,gi,rt,an),Pi=Vt(gt,Ki,Ni,gi),Si=Ns(gt,Ki,mi,gi,Ni,Pi,Yt);function an(ir){return Si.destroyBuffer(ir)}var Ji=To(gt,xi,gi,rt),Tn=_r(gt,Ki,mi,function(){ln.procs.poll()},en,gi,rt),Oi=qr(gt,Ki,mi,gi,rt),vi=Nr(gt,Ki,mi,Tn,Oi,gi),ln=Um(gt,xi,Ki,mi,Ni,Pi,Tn,vi,Ii,Si,Ji,Yt,en,Yi,Zi,rt),hi=xl(gt,vi,ln.procs.poll,en),nn=ln.next,Hi=gt.canvas,On=[],sr=[],on=[],In=[rt.onDestroy],Vi=null;function qn(){if(On.length===0){Yi&&Yi.update(),Vi=null;return}Vi=X.next(qn),Ol();for(var ir=On.length-1;ir>=0;--ir){var Ar=On[ir];Ar&&Ar(en,null,0)}gt.flush(),Yi&&Yi.update()}function or(){!Vi&&On.length>0&&(Vi=X.next(qn))}function kr(){Vi&&(X.cancel(qn),Vi=null)}function za(ir){ir.preventDefault(),kr(),sr.forEach(function(Ar){Ar()})}function lr(ir){gt.getError(),Ti.restore(),Ji.restore(),Ni.restore(),Tn.restore(),Oi.restore(),vi.restore(),Si.restore(),Yi&&Yi.restore(),ln.procs.refresh(),or(),on.forEach(function(Ar){Ar()})}Hi&&(Hi.addEventListener(Oh,za,!1),Hi.addEventListener(kh,lr,!1));function Hr(){On.length=0,kr(),Hi&&(Hi.removeEventListener(Oh,za),Hi.removeEventListener(kh,lr)),Ji.clear(),vi.clear(),Oi.clear(),Si.clear(),Tn.clear(),Pi.clear(),Ni.clear(),Yi&&Yi.clear(),In.forEach(function(ir){ir()})}function jr(ir){function Ar(ai){var ti=t({},ai);delete ti.uniforms,delete ti.attributes,delete ti.context,delete ti.vao,"stencil"in ti&&ti.stencil.op&&(ti.stencil.opBack=ti.stencil.opFront=ti.stencil.op,delete ti.stencil.op);function Xt(Ht){if(Ht in ti){var dt=ti[Ht];delete ti[Ht],Object.keys(dt).forEach(function(kt){ti[Ht+"."+kt]=dt[kt]})}}return Xt("blend"),Xt("depth"),Xt("cull"),Xt("stencil"),Xt("polygonOffset"),Xt("scissor"),Xt("sample"),"vao"in ai&&(ti.vao=ai.vao),ti}function ma(ai,ti){var Xt={},Ht={};return Object.keys(ai).forEach(function(dt){var kt=ai[dt];if(z.isDynamic(kt)){Ht[dt]=z.unbox(kt,dt);return}else if(ti&&Array.isArray(kt)){for(var st=0;st<kt.length;++st)if(z.isDynamic(kt[st])){Ht[dt]=z.unbox(kt,dt);return}}Xt[dt]=kt}),{dynamic:Ht,static:Xt}}var ql=ma(ir.context||{},!0),We=ma(ir.uniforms||{},!0),ri=ma(ir.attributes||{},!1),oi=ma(Ar(ir),!1),_n={gpuTime:0,cpuTime:0,count:0},ur=ln.compile(oi,ri,We,ql,_n),pa=ur.draw,yn=ur.batch,Ie=ur.scope,Ze=[];function Et(ai){for(;Ze.length<ai;)Ze.push(null);return Ze}function fi(ai,ti){var Xt;if(typeof ai=="function")return Ie.call(this,null,ai,0);if(typeof ti=="function")if(typeof ai=="number")for(Xt=0;Xt<ai;++Xt)Ie.call(this,null,ti,Xt);else if(Array.isArray(ai))for(Xt=0;Xt<ai.length;++Xt)Ie.call(this,ai[Xt],ti,Xt);else return Ie.call(this,ai,ti,0);else if(typeof ai=="number"){if(ai>0)return yn.call(this,Et(ai|0),ai|0)}else if(Array.isArray(ai)){if(ai.length)return yn.call(this,ai,ai.length)}else return pa.call(this,ai)}return t(fi,{stats:_n,destroy:function(){ur.destroy()}})}var ls=vi.setFBO=jr({framebuffer:z.define.call(null,Ch,"framebuffer")});function eo(ir,Ar){var ma=0;ln.procs.poll();var ql=Ar.color;ql&&(gt.clearColor(+ql[0]||0,+ql[1]||0,+ql[2]||0,+ql[3]||0),ma|=uu),"depth"in Ar&&(gt.clearDepth(+Ar.depth),ma|=Wm),"stencil"in Ar&&(gt.clearStencil(Ar.stencil|0),ma|=hu),gt.clear(ma)}function Us(ir){if("framebuffer"in ir)if(ir.framebuffer&&ir.framebuffer_reglType==="framebufferCube")for(var Ar=0;Ar<6;++Ar)ls(t({framebuffer:ir.framebuffer.faces[Ar]},ir),eo);else ls(ir,eo);else eo(null,ir)}function Ko(ir){On.push(ir);function Ar(){var ma=zh(On,ir);function ql(){var We=zh(On,ql);On[We]=On[On.length-1],On.length-=1,On.length<=0&&kr()}On[ma]=ql}return or(),{cancel:Ar}}function Ga(){var ir=nn.viewport,Ar=nn.scissor_box;ir[0]=ir[1]=Ar[0]=Ar[1]=0,en.viewportWidth=en.framebufferWidth=en.drawingBufferWidth=ir[2]=Ar[2]=gt.drawingBufferWidth,en.viewportHeight=en.framebufferHeight=en.drawingBufferHeight=ir[3]=Ar[3]=gt.drawingBufferHeight}function Ol(){en.tick+=1,en.time=zo(),Ga(),ln.procs.poll()}function Yn(){Tn.refresh(),Ga(),ln.procs.refresh(),Yi&&Yi.update()}function zo(){return(y()-dn)/1e3}Yn();function Xr(ir,Ar){var ma;switch(ir){case"frame":return Ko(Ar);case"lost":ma=sr;break;case"restore":ma=on;break;case"destroy":ma=In;break}return ma.push(Ar),{cancel:function(){for(var ql=0;ql<ma.length;++ql)if(ma[ql]===Ar){ma[ql]=ma[ma.length-1],ma.pop();return}}}}function kl(){return Zi}function to(ir){Object.entries(ir).forEach(function(Ar){Zi[Ar[0]]=Ar[1]})}var Gs=t(jr,{clear:Us,prop:z.define.bind(null,Ch),context:z.define.bind(null,jm),this:z.define.bind(null,qm),draw:jr({}),buffer:function(ir){return Ni.create(ir,Rf,!1,!1)},elements:function(ir){return Pi.create(ir,!1)},texture:Tn.create2D,cube:Tn.createCube,renderbuffer:Oi.create,framebuffer:vi.create,framebufferCube:vi.createCube,vao:Si.createVAO,attributes:ui,frame:Ko,on:Xr,limits:mi,hasExtension:function(ir){return mi.extensions.indexOf(ir.toLowerCase())>=0},read:hi,destroy:Hr,_gl:gt,_refresh:Yn,poll:function(){Ol(),Yi&&Yi.update()},now:zo,stats:gi,getCachedCode:kl,preloadCachedCode:to});return rt.onDone(null,Gs),Gs}return Ih})}(Pp)),Pp.exports}var CT=kT();const zT=Im(CT);function Up(i,e){return i==null||e==null?NaN:i<e?-1:i>e?1:i>=e?0:NaN}function IT(i,e){return i==null||e==null?NaN:e<i?-1:e>i?1:e>=i?0:NaN}function r_(i){let e,t,n;i.length!==2?(e=Up,t=(d,u)=>Up(i(d),u),n=(d,u)=>i(d)-u):(e=i===Up||i===IT?i:LT,t=i,n=i);function l(d,u,h=0,m=d.length){if(h<m){if(e(u,u)!==0)return m;do{const b=h+m>>>1;t(d[b],u)<0?h=b+1:m=b}while(h<m)}return h}function s(d,u,h=0,m=d.length){if(h<m){if(e(u,u)!==0)return m;do{const b=h+m>>>1;t(d[b],u)<=0?h=b+1:m=b}while(h<m)}return h}function c(d,u,h=0,m=d.length){const b=l(d,u,h,m-1);return b>h&&n(d[b-1],u)>-n(d[b],u)?b-1:b}return{left:l,center:c,right:s}}function LT(){return 0}function RT(i){return i===null?NaN:+i}const FT=r_(Up),MT=FT.right;r_(RT).center;function lh(i,e){let t,n;for(const l of i)l!=null&&(t===void 0?l>=l&&(t=n=l):(t>l&&(t=l),n<l&&(n=l)));return[t,n]}class DT extends Map{constructor(e,t=BT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(const[n,l]of e)this.set(n,l)}get(e){return super.get(fy(this,e))}has(e){return super.has(fy(this,e))}set(e,t){return super.set(NT(this,e),t)}delete(e){return super.delete($T(this,e))}}function fy({_intern:i,_key:e},t){const n=e(t);return i.has(n)?i.get(n):t}function NT({_intern:i,_key:e},t){const n=e(t);return i.has(n)?i.get(n):(i.set(n,t),t)}function $T({_intern:i,_key:e},t){const n=e(t);return i.has(n)&&(t=i.get(n),i.delete(n)),t}function BT(i){return i!==null&&typeof i=="object"?i.valueOf():i}function HT(i){return i}function _g(i,e,...t){return PT(i,HT,e,t)}function PT(i,e,t,n){return function l(s,c){if(c>=n.length)return t(s);const d=new DT,u=n[c++];let h=-1;for(const m of s){const b=u(m,++h,s),g=d.get(b);g?g.push(m):d.set(b,[m])}for(const[m,b]of d)d.set(m,l(b,c));return e(d)}(i,0)}const UT=Math.sqrt(50),GT=Math.sqrt(10),VT=Math.sqrt(2);function o0(i,e,t){const n=(e-i)/Math.max(0,t),l=Math.floor(Math.log10(n)),s=n/Math.pow(10,l),c=s>=UT?10:s>=GT?5:s>=VT?2:1;let d,u,h;return l<0?(h=Math.pow(10,-l)/c,d=Math.round(i*h),u=Math.round(e*h),d/h<i&&++d,u/h>e&&--u,h=-h):(h=Math.pow(10,l)*c,d=Math.round(i/h),u=Math.round(e/h),d*h<i&&++d,u*h>e&&--u),u<d&&.5<=t&&t<2?o0(i,e,t*2):[d,u,h]}function WT(i,e,t){if(e=+e,i=+i,t=+t,!(t>0))return[];if(i===e)return[i];const n=e<i,[l,s,c]=n?o0(e,i,t):o0(i,e,t);if(!(s>=l))return[];const d=s-l+1,u=new Array(d);if(n)if(c<0)for(let h=0;h<d;++h)u[h]=(s-h)/-c;else for(let h=0;h<d;++h)u[h]=(s-h)*c;else if(c<0)for(let h=0;h<d;++h)u[h]=(l+h)/-c;else for(let h=0;h<d;++h)u[h]=(l+h)*c;return u}function yg(i,e,t){return e=+e,i=+i,t=+t,o0(i,e,t)[2]}function vg(i,e,t){e=+e,i=+i,t=+t;const n=e<i,l=n?yg(e,i,t):yg(i,e,t);return(n?-1:1)*(l<0?1/-l:l)}function xg(i,e=jT){const t=[];let n,l=!1;for(const s of i)l&&t.push(e(n,s)),n=s,l=!0;return t}function jT(i,e){return[i,e]}function wg(i,e,t){i=+i,e=+e,t=(l=arguments.length)<2?(e=i,i=0,1):l<3?1:+t;for(var n=-1,l=Math.max(0,Math.ceil((e-i)/t))|0,s=new Array(l);++n<l;)s[n]=i+n*t;return s}function I0(i,e){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(e).domain(i);break}return this}function qT(i){return function(){return i}}function YT(i){return+i}var uy=[0,1];function od(i){return i}function Sg(i,e){return(e-=i=+i)?function(t){return(t-i)/e}:qT(isNaN(e)?NaN:.5)}function XT(i,e){var t;return i>e&&(t=i,i=e,e=t),function(n){return Math.max(i,Math.min(e,n))}}function ZT(i,e,t){var n=i[0],l=i[1],s=e[0],c=e[1];return l<n?(n=Sg(l,n),s=t(c,s)):(n=Sg(n,l),s=t(s,c)),function(d){return s(n(d))}}function QT(i,e,t){var n=Math.min(i.length,e.length)-1,l=new Array(n),s=new Array(n),c=-1;for(i[n]<i[0]&&(i=i.slice().reverse(),e=e.slice().reverse());++c<n;)l[c]=Sg(i[c],i[c+1]),s[c]=t(e[c],e[c+1]);return function(d){var u=MT(i,d,1,n)-1;return s[u](l[u](d))}}function L0(i,e){return e.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function a_(){var i=uy,e=uy,t=z0,n,l,s,c=od,d,u,h;function m(){var g=Math.min(i.length,e.length);return c!==od&&(c=XT(i[0],i[g-1])),d=g>2?QT:ZT,u=h=null,b}function b(g){return g==null||isNaN(g=+g)?s:(u||(u=d(i.map(n),e,t)))(n(c(g)))}return b.invert=function(g){return c(l((h||(h=d(e,i.map(n),Uc)))(g)))},b.domain=function(g){return arguments.length?(i=Array.from(g,YT),m()):i.slice()},b.range=function(g){return arguments.length?(e=Array.from(g),m()):e.slice()},b.rangeRound=function(g){return e=Array.from(g),t=uE,m()},b.clamp=function(g){return arguments.length?(c=g?!0:od,m()):c!==od},b.interpolate=function(g){return arguments.length?(t=g,m()):t},b.unknown=function(g){return arguments.length?(s=g,b):s},function(g,_){return n=g,l=_,m()}}function S3(){return a_()(od,od)}function KT(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)}function c0(i,e){if((t=(i=e?i.toExponential(e-1):i.toExponential()).indexOf("e"))<0)return null;var t,n=i.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+i.slice(t+1)]}function sh(i){return i=c0(Math.abs(i)),i?i[1]:NaN}function JT(i,e){return function(t,n){for(var l=t.length,s=[],c=0,d=i[0],u=0;l>0&&d>0&&(u+d+1>n&&(d=Math.max(1,n-u)),s.push(t.substring(l-=d,l+d)),!((u+=d+1)>n));)d=i[c=(c+1)%i.length];return s.reverse().join(e)}}function e4(i){return function(e){return e.replace(/[0-9]/g,function(t){return i[+t]})}}var t4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function d0(i){if(!(e=t4.exec(i)))throw new Error("invalid format: "+i);var e;return new l_({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}d0.prototype=l_.prototype;function l_(i){this.fill=i.fill===void 0?" ":i.fill+"",this.align=i.align===void 0?">":i.align+"",this.sign=i.sign===void 0?"-":i.sign+"",this.symbol=i.symbol===void 0?"":i.symbol+"",this.zero=!!i.zero,this.width=i.width===void 0?void 0:+i.width,this.comma=!!i.comma,this.precision=i.precision===void 0?void 0:+i.precision,this.trim=!!i.trim,this.type=i.type===void 0?"":i.type+""}l_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function i4(i){e:for(var e=i.length,t=1,n=-1,l;t<e;++t)switch(i[t]){case".":n=l=t;break;case"0":n===0&&(n=t),l=t;break;default:if(!+i[t])break e;n>0&&(n=0);break}return n>0?i.slice(0,n)+i.slice(l+1):i}var A3;function n4(i,e){var t=c0(i,e);if(!t)return i+"";var n=t[0],l=t[1],s=l-(A3=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,c=n.length;return s===c?n:s>c?n+new Array(s-c+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+c0(i,Math.max(0,e+s-1))[0]}function hy(i,e){var t=c0(i,e);if(!t)return i+"";var n=t[0],l=t[1];return l<0?"0."+new Array(-l).join("0")+n:n.length>l+1?n.slice(0,l+1)+"."+n.slice(l+1):n+new Array(l-n.length+2).join("0")}const my={"%":(i,e)=>(i*100).toFixed(e),b:i=>Math.round(i).toString(2),c:i=>i+"",d:KT,e:(i,e)=>i.toExponential(e),f:(i,e)=>i.toFixed(e),g:(i,e)=>i.toPrecision(e),o:i=>Math.round(i).toString(8),p:(i,e)=>hy(i*100,e),r:hy,s:n4,X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function py(i){return i}var by=Array.prototype.map,gy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function r4(i){var e=i.grouping===void 0||i.thousands===void 0?py:JT(by.call(i.grouping,Number),i.thousands+""),t=i.currency===void 0?"":i.currency[0]+"",n=i.currency===void 0?"":i.currency[1]+"",l=i.decimal===void 0?".":i.decimal+"",s=i.numerals===void 0?py:e4(by.call(i.numerals,String)),c=i.percent===void 0?"%":i.percent+"",d=i.minus===void 0?"−":i.minus+"",u=i.nan===void 0?"NaN":i.nan+"";function h(b){b=d0(b);var g=b.fill,_=b.align,z=b.sign,X=b.symbol,y=b.zero,E=b.width,T=b.comma,w=b.precision,I=b.trim,K=b.type;K==="n"?(T=!0,K="g"):my[K]||(w===void 0&&(w=12),I=!0,K="g"),(y||g==="0"&&_==="=")&&(y=!0,g="0",_="=");var U=X==="$"?t:X==="#"&&/[boxX]/.test(K)?"0"+K.toLowerCase():"",Y=X==="$"?n:/[%p]/.test(K)?c:"",J=my[K],S=/[defgprs%]/.test(K);w=w===void 0?6:/[gprs]/.test(K)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function Q(ae){var x=U,A=Y,O,k,C;if(K==="c")A=J(ae)+A,ae="";else{ae=+ae;var ee=ae<0||1/ae<0;if(ae=isNaN(ae)?u:J(Math.abs(ae),w),I&&(ae=i4(ae)),ee&&+ae==0&&z!=="+"&&(ee=!1),x=(ee?z==="("?z:d:z==="-"||z==="("?"":z)+x,A=(K==="s"?gy[8+A3/3]:"")+A+(ee&&z==="("?")":""),S){for(O=-1,k=ae.length;++O<k;)if(C=ae.charCodeAt(O),48>C||C>57){A=(C===46?l+ae.slice(O+1):ae.slice(O))+A,ae=ae.slice(0,O);break}}}T&&!y&&(ae=e(ae,1/0));var Re=x.length+ae.length+A.length,ge=Re<E?new Array(E-Re+1).join(g):"";switch(T&&y&&(ae=e(ge+ae,ge.length?E-A.length:1/0),ge=""),_){case"<":ae=x+ae+A+ge;break;case"=":ae=x+ge+ae+A;break;case"^":ae=ge.slice(0,Re=ge.length>>1)+x+ae+A+ge.slice(Re);break;default:ae=ge+x+ae+A;break}return s(ae)}return Q.toString=function(){return b+""},Q}function m(b,g){var _=h((b=d0(b),b.type="f",b)),z=Math.max(-8,Math.min(8,Math.floor(sh(g)/3)))*3,X=Math.pow(10,-z),y=gy[8+z/3];return function(E){return _(X*E)+y}}return{format:h,formatPrefix:m}}var wp,E3,T3;a4({thousands:",",grouping:[3],currency:["$",""]});function a4(i){return wp=r4(i),E3=wp.format,T3=wp.formatPrefix,wp}function l4(i){return Math.max(0,-sh(Math.abs(i)))}function s4(i,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(sh(e)/3)))*3-sh(Math.abs(i)))}function o4(i,e){return i=Math.abs(i),e=Math.abs(e)-i,Math.max(0,sh(e)-sh(i))+1}function c4(i,e,t,n){var l=vg(i,e,t),s;switch(n=d0(n??",f"),n.type){case"s":{var c=Math.max(Math.abs(i),Math.abs(e));return n.precision==null&&!isNaN(s=s4(l,c))&&(n.precision=s),T3(n,c)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=o4(l,Math.max(Math.abs(i),Math.abs(e))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=l4(l))&&(n.precision=s-(n.type==="%")*2);break}}return E3(n)}function s_(i){var e=i.domain;return i.ticks=function(t){var n=e();return WT(n[0],n[n.length-1],t??10)},i.tickFormat=function(t,n){var l=e();return c4(l[0],l[l.length-1],t??10,n)},i.nice=function(t){t==null&&(t=10);var n=e(),l=0,s=n.length-1,c=n[l],d=n[s],u,h,m=10;for(d<c&&(h=c,c=d,d=h,h=l,l=s,s=h);m-- >0;){if(h=yg(c,d,t),h===u)return n[l]=c,n[s]=d,e(n);if(h>0)c=Math.floor(c/h)*h,d=Math.ceil(d/h)*h;else if(h<0)c=Math.ceil(c*h)/h,d=Math.floor(d*h)/h;else break;u=h}return i},i}function Zf(){var i=S3();return i.copy=function(){return L0(i,Zf())},I0.apply(i,arguments),s_(i)}function d4(i,e){i=i.slice();var t=0,n=i.length-1,l=i[t],s=i[n],c;return s<l&&(c=t,t=n,n=c,c=l,l=s,s=c),i[t]=e.floor(l),i[n]=e.ceil(s),i}function _y(i){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/i))}}function yy(i){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*i}}function f4(i){var e=1,t=i(_y(e),yy(e));return t.constant=function(n){return arguments.length?i(_y(e=+n),yy(e)):e},s_(t)}function o_(){var i=f4(a_());return i.copy=function(){return L0(i,o_()).constant(i.constant())},I0.apply(i,arguments)}function vy(i){return function(e){return e<0?-Math.pow(-e,i):Math.pow(e,i)}}function u4(i){return i<0?-Math.sqrt(-i):Math.sqrt(i)}function h4(i){return i<0?-i*i:i*i}function m4(i){var e=i(od,od),t=1;function n(){return t===1?i(od,od):t===.5?i(u4,h4):i(vy(t),vy(1/t))}return e.exponent=function(l){return arguments.length?(t=+l,n()):t},s_(e)}function O3(){var i=m4(a_());return i.copy=function(){return L0(i,O3()).exponent(i.exponent())},I0.apply(i,arguments),i}const $b=new Date,Bb=new Date;function qs(i,e,t,n){function l(s){return i(s=arguments.length===0?new Date:new Date(+s)),s}return l.floor=s=>(i(s=new Date(+s)),s),l.ceil=s=>(i(s=new Date(s-1)),e(s,1),i(s),s),l.round=s=>{const c=l(s),d=l.ceil(s);return s-c<d-s?c:d},l.offset=(s,c)=>(e(s=new Date(+s),c==null?1:Math.floor(c)),s),l.range=(s,c,d)=>{const u=[];if(s=l.ceil(s),d=d==null?1:Math.floor(d),!(s<c)||!(d>0))return u;let h;do u.push(h=new Date(+s)),e(s,d),i(s);while(h<s&&s<c);return u},l.filter=s=>qs(c=>{if(c>=c)for(;i(c),!s(c);)c.setTime(c-1)},(c,d)=>{if(c>=c)if(d<0)for(;++d<=0;)for(;e(c,-1),!s(c););else for(;--d>=0;)for(;e(c,1),!s(c););}),t&&(l.count=(s,c)=>($b.setTime(+s),Bb.setTime(+c),i($b),i(Bb),Math.floor(t($b,Bb))),l.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?l.filter(n?c=>n(c)%s===0:c=>l.count(0,c)%s===0):l)),l}const f0=qs(()=>{},(i,e)=>{i.setTime(+i+e)},(i,e)=>e-i);f0.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?qs(e=>{e.setTime(Math.floor(e/i)*i)},(e,t)=>{e.setTime(+e+t*i)},(e,t)=>(t-e)/i):f0);f0.range;const Ld=1e3,zc=Ld*60,Rd=zc*60,Nd=Rd*24,c_=Nd*7,xy=Nd*30,Hb=Nd*365,Vf=qs(i=>{i.setTime(i-i.getMilliseconds())},(i,e)=>{i.setTime(+i+e*Ld)},(i,e)=>(e-i)/Ld,i=>i.getUTCSeconds());Vf.range;const R0=qs(i=>{i.setTime(i-i.getMilliseconds()-i.getSeconds()*Ld)},(i,e)=>{i.setTime(+i+e*zc)},(i,e)=>(e-i)/zc,i=>i.getMinutes());R0.range;const p4=qs(i=>{i.setUTCSeconds(0,0)},(i,e)=>{i.setTime(+i+e*zc)},(i,e)=>(e-i)/zc,i=>i.getUTCMinutes());p4.range;const F0=qs(i=>{i.setTime(i-i.getMilliseconds()-i.getSeconds()*Ld-i.getMinutes()*zc)},(i,e)=>{i.setTime(+i+e*Rd)},(i,e)=>(e-i)/Rd,i=>i.getHours());F0.range;const b4=qs(i=>{i.setUTCMinutes(0,0,0)},(i,e)=>{i.setTime(+i+e*Rd)},(i,e)=>(e-i)/Rd,i=>i.getUTCHours());b4.range;const ph=qs(i=>i.setHours(0,0,0,0),(i,e)=>i.setDate(i.getDate()+e),(i,e)=>(e-i-(e.getTimezoneOffset()-i.getTimezoneOffset())*zc)/Nd,i=>i.getDate()-1);ph.range;const d_=qs(i=>{i.setUTCHours(0,0,0,0)},(i,e)=>{i.setUTCDate(i.getUTCDate()+e)},(i,e)=>(e-i)/Nd,i=>i.getUTCDate()-1);d_.range;const g4=qs(i=>{i.setUTCHours(0,0,0,0)},(i,e)=>{i.setUTCDate(i.getUTCDate()+e)},(i,e)=>(e-i)/Nd,i=>Math.floor(i/Nd));g4.range;function Kf(i){return qs(e=>{e.setDate(e.getDate()-(e.getDay()+7-i)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*zc)/c_)}const Fm=Kf(0),u0=Kf(1),_4=Kf(2),y4=Kf(3),oh=Kf(4),v4=Kf(5),x4=Kf(6);Fm.range;u0.range;_4.range;y4.range;oh.range;v4.range;x4.range;function Jf(i){return qs(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-i)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/c_)}const k3=Jf(0),h0=Jf(1),w4=Jf(2),S4=Jf(3),ch=Jf(4),A4=Jf(5),E4=Jf(6);k3.range;h0.range;w4.range;S4.range;ch.range;A4.range;E4.range;const M0=qs(i=>{i.setDate(1),i.setHours(0,0,0,0)},(i,e)=>{i.setMonth(i.getMonth()+e)},(i,e)=>e.getMonth()-i.getMonth()+(e.getFullYear()-i.getFullYear())*12,i=>i.getMonth());M0.range;const T4=qs(i=>{i.setUTCDate(1),i.setUTCHours(0,0,0,0)},(i,e)=>{i.setUTCMonth(i.getUTCMonth()+e)},(i,e)=>e.getUTCMonth()-i.getUTCMonth()+(e.getUTCFullYear()-i.getUTCFullYear())*12,i=>i.getUTCMonth());T4.range;const fd=qs(i=>{i.setMonth(0,1),i.setHours(0,0,0,0)},(i,e)=>{i.setFullYear(i.getFullYear()+e)},(i,e)=>e.getFullYear()-i.getFullYear(),i=>i.getFullYear());fd.every=i=>!isFinite(i=Math.floor(i))||!(i>0)?null:qs(e=>{e.setFullYear(Math.floor(e.getFullYear()/i)*i),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*i)});fd.range;const Qf=qs(i=>{i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},(i,e)=>{i.setUTCFullYear(i.getUTCFullYear()+e)},(i,e)=>e.getUTCFullYear()-i.getUTCFullYear(),i=>i.getUTCFullYear());Qf.every=i=>!isFinite(i=Math.floor(i))||!(i>0)?null:qs(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/i)*i),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*i)});Qf.range;function O4(i,e,t,n,l,s){const c=[[Vf,1,Ld],[Vf,5,5*Ld],[Vf,15,15*Ld],[Vf,30,30*Ld],[s,1,zc],[s,5,5*zc],[s,15,15*zc],[s,30,30*zc],[l,1,Rd],[l,3,3*Rd],[l,6,6*Rd],[l,12,12*Rd],[n,1,Nd],[n,2,2*Nd],[t,1,c_],[e,1,xy],[e,3,3*xy],[i,1,Hb]];function d(h,m,b){const g=m<h;g&&([h,m]=[m,h]);const _=b&&typeof b.range=="function"?b:u(h,m,b),z=_?_.range(h,+m+1):[];return g?z.reverse():z}function u(h,m,b){const g=Math.abs(m-h)/b,_=r_(([,,y])=>y).right(c,g);if(_===c.length)return i.every(vg(h/Hb,m/Hb,b));if(_===0)return f0.every(Math.max(vg(h,m,b),1));const[z,X]=c[g/c[_-1][2]<c[_][2]/g?_-1:_];return z.every(X)}return[d,u]}const[k4,C4]=O4(fd,M0,Fm,ph,F0,R0);function Pb(i){if(0<=i.y&&i.y<100){var e=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return e.setFullYear(i.y),e}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function Ub(i){if(0<=i.y&&i.y<100){var e=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return e.setUTCFullYear(i.y),e}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function Jh(i,e,t){return{y:i,m:e,d:t,H:0,M:0,S:0,L:0}}function z4(i){var e=i.dateTime,t=i.date,n=i.time,l=i.periods,s=i.days,c=i.shortDays,d=i.months,u=i.shortMonths,h=em(l),m=tm(l),b=em(s),g=tm(s),_=em(c),z=tm(c),X=em(d),y=tm(d),E=em(u),T=tm(u),w={a:ee,A:Re,b:ge,B:F,c:null,d:Oy,e:Oy,f:J4,g:cO,G:fO,H:Z4,I:Q4,j:K4,L:C3,m:eO,M:tO,p:H,q:R,Q:zy,s:Iy,S:iO,u:nO,U:rO,V:aO,w:lO,W:sO,x:null,X:null,y:oO,Y:dO,Z:uO,"%":Cy},I={a:$,A:q,b:se,B:te,c:null,d:ky,e:ky,f:bO,g:TO,G:kO,H:hO,I:mO,j:pO,L:I3,m:gO,M:_O,p:qe,q:we,Q:zy,s:Iy,S:yO,u:vO,U:xO,V:wO,w:SO,W:AO,x:null,X:null,y:EO,Y:OO,Z:CO,"%":Cy},K={a:Q,A:ae,b:x,B:A,c:O,d:Ey,e:Ey,f:j4,g:Ay,G:Sy,H:Ty,I:Ty,j:U4,L:W4,m:P4,M:G4,p:S,q:H4,Q:Y4,s:X4,S:V4,u:M4,U:D4,V:N4,w:F4,W:$4,x:k,X:C,y:Ay,Y:Sy,Z:B4,"%":q4};w.x=U(t,w),w.X=U(n,w),w.c=U(e,w),I.x=U(t,I),I.X=U(n,I),I.c=U(e,I);function U(Se,G){return function(de){var Ae=[],W=-1,re=0,Rt=Se.length,Ve,Fe,he;for(de instanceof Date||(de=new Date(+de));++W<Rt;)Se.charCodeAt(W)===37&&(Ae.push(Se.slice(re,W)),(Fe=wy[Ve=Se.charAt(++W)])!=null?Ve=Se.charAt(++W):Fe=Ve==="e"?" ":"0",(he=G[Ve])&&(Ve=he(de,Fe)),Ae.push(Ve),re=W+1);return Ae.push(Se.slice(re,W)),Ae.join("")}}function Y(Se,G){return function(de){var Ae=Jh(1900,void 0,1),W=J(Ae,Se,de+="",0),re,Rt;if(W!=de.length)return null;if("Q"in Ae)return new Date(Ae.Q);if("s"in Ae)return new Date(Ae.s*1e3+("L"in Ae?Ae.L:0));if(G&&!("Z"in Ae)&&(Ae.Z=0),"p"in Ae&&(Ae.H=Ae.H%12+Ae.p*12),Ae.m===void 0&&(Ae.m="q"in Ae?Ae.q:0),"V"in Ae){if(Ae.V<1||Ae.V>53)return null;"w"in Ae||(Ae.w=1),"Z"in Ae?(re=Ub(Jh(Ae.y,0,1)),Rt=re.getUTCDay(),re=Rt>4||Rt===0?h0.ceil(re):h0(re),re=d_.offset(re,(Ae.V-1)*7),Ae.y=re.getUTCFullYear(),Ae.m=re.getUTCMonth(),Ae.d=re.getUTCDate()+(Ae.w+6)%7):(re=Pb(Jh(Ae.y,0,1)),Rt=re.getDay(),re=Rt>4||Rt===0?u0.ceil(re):u0(re),re=ph.offset(re,(Ae.V-1)*7),Ae.y=re.getFullYear(),Ae.m=re.getMonth(),Ae.d=re.getDate()+(Ae.w+6)%7)}else("W"in Ae||"U"in Ae)&&("w"in Ae||(Ae.w="u"in Ae?Ae.u%7:"W"in Ae?1:0),Rt="Z"in Ae?Ub(Jh(Ae.y,0,1)).getUTCDay():Pb(Jh(Ae.y,0,1)).getDay(),Ae.m=0,Ae.d="W"in Ae?(Ae.w+6)%7+Ae.W*7-(Rt+5)%7:Ae.w+Ae.U*7-(Rt+6)%7);return"Z"in Ae?(Ae.H+=Ae.Z/100|0,Ae.M+=Ae.Z%100,Ub(Ae)):Pb(Ae)}}function J(Se,G,de,Ae){for(var W=0,re=G.length,Rt=de.length,Ve,Fe;W<re;){if(Ae>=Rt)return-1;if(Ve=G.charCodeAt(W++),Ve===37){if(Ve=G.charAt(W++),Fe=K[Ve in wy?G.charAt(W++):Ve],!Fe||(Ae=Fe(Se,de,Ae))<0)return-1}else if(Ve!=de.charCodeAt(Ae++))return-1}return Ae}function S(Se,G,de){var Ae=h.exec(G.slice(de));return Ae?(Se.p=m.get(Ae[0].toLowerCase()),de+Ae[0].length):-1}function Q(Se,G,de){var Ae=_.exec(G.slice(de));return Ae?(Se.w=z.get(Ae[0].toLowerCase()),de+Ae[0].length):-1}function ae(Se,G,de){var Ae=b.exec(G.slice(de));return Ae?(Se.w=g.get(Ae[0].toLowerCase()),de+Ae[0].length):-1}function x(Se,G,de){var Ae=E.exec(G.slice(de));return Ae?(Se.m=T.get(Ae[0].toLowerCase()),de+Ae[0].length):-1}function A(Se,G,de){var Ae=X.exec(G.slice(de));return Ae?(Se.m=y.get(Ae[0].toLowerCase()),de+Ae[0].length):-1}function O(Se,G,de){return J(Se,e,G,de)}function k(Se,G,de){return J(Se,t,G,de)}function C(Se,G,de){return J(Se,n,G,de)}function ee(Se){return c[Se.getDay()]}function Re(Se){return s[Se.getDay()]}function ge(Se){return u[Se.getMonth()]}function F(Se){return d[Se.getMonth()]}function H(Se){return l[+(Se.getHours()>=12)]}function R(Se){return 1+~~(Se.getMonth()/3)}function $(Se){return c[Se.getUTCDay()]}function q(Se){return s[Se.getUTCDay()]}function se(Se){return u[Se.getUTCMonth()]}function te(Se){return d[Se.getUTCMonth()]}function qe(Se){return l[+(Se.getUTCHours()>=12)]}function we(Se){return 1+~~(Se.getUTCMonth()/3)}return{format:function(Se){var G=U(Se+="",w);return G.toString=function(){return Se},G},parse:function(Se){var G=Y(Se+="",!1);return G.toString=function(){return Se},G},utcFormat:function(Se){var G=U(Se+="",I);return G.toString=function(){return Se},G},utcParse:function(Se){var G=Y(Se+="",!0);return G.toString=function(){return Se},G}}}var wy={"-":"",_:" ",0:"0"},lo=/^\s*\d+/,I4=/^%/,L4=/[\\^$*+?|[\]().{}]/g;function Kr(i,e,t){var n=i<0?"-":"",l=(n?-i:i)+"",s=l.length;return n+(s<t?new Array(t-s+1).join(e)+l:l)}function R4(i){return i.replace(L4,"\\$&")}function em(i){return new RegExp("^(?:"+i.map(R4).join("|")+")","i")}function tm(i){return new Map(i.map((e,t)=>[e.toLowerCase(),t]))}function F4(i,e,t){var n=lo.exec(e.slice(t,t+1));return n?(i.w=+n[0],t+n[0].length):-1}function M4(i,e,t){var n=lo.exec(e.slice(t,t+1));return n?(i.u=+n[0],t+n[0].length):-1}function D4(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.U=+n[0],t+n[0].length):-1}function N4(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.V=+n[0],t+n[0].length):-1}function $4(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.W=+n[0],t+n[0].length):-1}function Sy(i,e,t){var n=lo.exec(e.slice(t,t+4));return n?(i.y=+n[0],t+n[0].length):-1}function Ay(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.y=+n[0]+(+n[0]>68?1900:2e3),t+n[0].length):-1}function B4(i,e,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return n?(i.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function H4(i,e,t){var n=lo.exec(e.slice(t,t+1));return n?(i.q=n[0]*3-3,t+n[0].length):-1}function P4(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.m=n[0]-1,t+n[0].length):-1}function Ey(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.d=+n[0],t+n[0].length):-1}function U4(i,e,t){var n=lo.exec(e.slice(t,t+3));return n?(i.m=0,i.d=+n[0],t+n[0].length):-1}function Ty(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.H=+n[0],t+n[0].length):-1}function G4(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.M=+n[0],t+n[0].length):-1}function V4(i,e,t){var n=lo.exec(e.slice(t,t+2));return n?(i.S=+n[0],t+n[0].length):-1}function W4(i,e,t){var n=lo.exec(e.slice(t,t+3));return n?(i.L=+n[0],t+n[0].length):-1}function j4(i,e,t){var n=lo.exec(e.slice(t,t+6));return n?(i.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function q4(i,e,t){var n=I4.exec(e.slice(t,t+1));return n?t+n[0].length:-1}function Y4(i,e,t){var n=lo.exec(e.slice(t));return n?(i.Q=+n[0],t+n[0].length):-1}function X4(i,e,t){var n=lo.exec(e.slice(t));return n?(i.s=+n[0],t+n[0].length):-1}function Oy(i,e){return Kr(i.getDate(),e,2)}function Z4(i,e){return Kr(i.getHours(),e,2)}function Q4(i,e){return Kr(i.getHours()%12||12,e,2)}function K4(i,e){return Kr(1+ph.count(fd(i),i),e,3)}function C3(i,e){return Kr(i.getMilliseconds(),e,3)}function J4(i,e){return C3(i,e)+"000"}function eO(i,e){return Kr(i.getMonth()+1,e,2)}function tO(i,e){return Kr(i.getMinutes(),e,2)}function iO(i,e){return Kr(i.getSeconds(),e,2)}function nO(i){var e=i.getDay();return e===0?7:e}function rO(i,e){return Kr(Fm.count(fd(i)-1,i),e,2)}function z3(i){var e=i.getDay();return e>=4||e===0?oh(i):oh.ceil(i)}function aO(i,e){return i=z3(i),Kr(oh.count(fd(i),i)+(fd(i).getDay()===4),e,2)}function lO(i){return i.getDay()}function sO(i,e){return Kr(u0.count(fd(i)-1,i),e,2)}function oO(i,e){return Kr(i.getFullYear()%100,e,2)}function cO(i,e){return i=z3(i),Kr(i.getFullYear()%100,e,2)}function dO(i,e){return Kr(i.getFullYear()%1e4,e,4)}function fO(i,e){var t=i.getDay();return i=t>=4||t===0?oh(i):oh.ceil(i),Kr(i.getFullYear()%1e4,e,4)}function uO(i){var e=i.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Kr(e/60|0,"0",2)+Kr(e%60,"0",2)}function ky(i,e){return Kr(i.getUTCDate(),e,2)}function hO(i,e){return Kr(i.getUTCHours(),e,2)}function mO(i,e){return Kr(i.getUTCHours()%12||12,e,2)}function pO(i,e){return Kr(1+d_.count(Qf(i),i),e,3)}function I3(i,e){return Kr(i.getUTCMilliseconds(),e,3)}function bO(i,e){return I3(i,e)+"000"}function gO(i,e){return Kr(i.getUTCMonth()+1,e,2)}function _O(i,e){return Kr(i.getUTCMinutes(),e,2)}function yO(i,e){return Kr(i.getUTCSeconds(),e,2)}function vO(i){var e=i.getUTCDay();return e===0?7:e}function xO(i,e){return Kr(k3.count(Qf(i)-1,i),e,2)}function L3(i){var e=i.getUTCDay();return e>=4||e===0?ch(i):ch.ceil(i)}function wO(i,e){return i=L3(i),Kr(ch.count(Qf(i),i)+(Qf(i).getUTCDay()===4),e,2)}function SO(i){return i.getUTCDay()}function AO(i,e){return Kr(h0.count(Qf(i)-1,i),e,2)}function EO(i,e){return Kr(i.getUTCFullYear()%100,e,2)}function TO(i,e){return i=L3(i),Kr(i.getUTCFullYear()%100,e,2)}function OO(i,e){return Kr(i.getUTCFullYear()%1e4,e,4)}function kO(i,e){var t=i.getUTCDay();return i=t>=4||t===0?ch(i):ch.ceil(i),Kr(i.getUTCFullYear()%1e4,e,4)}function CO(){return"+0000"}function Cy(){return"%"}function zy(i){return+i}function Iy(i){return Math.floor(+i/1e3)}var Ou,hd;zO({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function zO(i){return Ou=z4(i),hd=Ou.format,Ou.parse,Ou.utcFormat,Ou.utcParse,Ou}function IO(i){return new Date(i)}function LO(i){return i instanceof Date?+i:+new Date(+i)}function R3(i,e,t,n,l,s,c,d,u,h){var m=S3(),b=m.invert,g=m.domain,_=h(".%L"),z=h(":%S"),X=h("%I:%M"),y=h("%I %p"),E=h("%a %d"),T=h("%b %d"),w=h("%B"),I=h("%Y");function K(U){return(u(U)<U?_:d(U)<U?z:c(U)<U?X:s(U)<U?y:n(U)<U?l(U)<U?E:T:t(U)<U?w:I)(U)}return m.invert=function(U){return new Date(b(U))},m.domain=function(U){return arguments.length?g(Array.from(U,LO)):g().map(IO)},m.ticks=function(U){var Y=g();return i(Y[0],Y[Y.length-1],U??10)},m.tickFormat=function(U,Y){return Y==null?K:h(Y)},m.nice=function(U){var Y=g();return(!U||typeof U.range!="function")&&(U=e(Y[0],Y[Y.length-1],U??10)),U?g(d4(Y,U)):m},m.copy=function(){return L0(m,R3(i,e,t,n,l,s,c,d,u,h))},m}function RO(){return I0.apply(R3(k4,C4,fd,M0,Fm,ph,F0,R0,Vf,hd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Ly=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var i=0,e=arguments.length;e--;)i+=arguments[e]*arguments[e];return Math.sqrt(i)});function FO(){var i=new Ly(9);return Ly!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[5]=0,i[6]=0,i[7]=0),i[0]=1,i[4]=1,i[8]=1,i}function Ry(i,e,t){var n=e[0],l=e[1],s=e[2],c=e[3],d=e[4],u=e[5],h=e[6],m=e[7],b=e[8],g=t[0],_=t[1];return i[0]=n,i[1]=l,i[2]=s,i[3]=c,i[4]=d,i[5]=u,i[6]=g*n+_*c+h,i[7]=g*l+_*d+m,i[8]=g*s+_*u+b,i}function Gb(i,e,t){var n=t[0],l=t[1];return i[0]=n*e[0],i[1]=n*e[1],i[2]=n*e[2],i[3]=l*e[3],i[4]=l*e[4],i[5]=l*e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i}function MO(i,e,t){return i[0]=2/e,i[1]=0,i[2]=0,i[3]=0,i[4]=-2/t,i[5]=0,i[6]=-1,i[7]=1,i[8]=1,i}var Gp={exports:{}},DO=Gp.exports,Fy;function NO(){return Fy||(Fy=1,function(i){(function(e,t,n){function l(u){var h=this,m=d();h.next=function(){var b=2091639*h.s0+h.c*23283064365386963e-26;return h.s0=h.s1,h.s1=h.s2,h.s2=b-(h.c=b|0)},h.c=1,h.s0=m(" "),h.s1=m(" "),h.s2=m(" "),h.s0-=m(u),h.s0<0&&(h.s0+=1),h.s1-=m(u),h.s1<0&&(h.s1+=1),h.s2-=m(u),h.s2<0&&(h.s2+=1),m=null}function s(u,h){return h.c=u.c,h.s0=u.s0,h.s1=u.s1,h.s2=u.s2,h}function c(u,h){var m=new l(u),b=h&&h.state,g=m.next;return g.int32=function(){return m.next()*4294967296|0},g.double=function(){return g()+(g()*2097152|0)*11102230246251565e-32},g.quick=g,b&&(typeof b=="object"&&s(b,m),g.state=function(){return s(m,{})}),g}function d(){var u=4022871197,h=function(m){m=String(m);for(var b=0;b<m.length;b++){u+=m.charCodeAt(b);var g=.02519603282416938*u;u=g>>>0,g-=u,g*=u,u=g>>>0,g-=u,u+=g*4294967296}return(u>>>0)*23283064365386963e-26};return h}t&&t.exports?t.exports=c:this.alea=c})(DO,i)}(Gp)),Gp.exports}var Vp={exports:{}},$O=Vp.exports,My;function BO(){return My||(My=1,function(i){(function(e,t,n){function l(d){var u=this,h="";u.x=0,u.y=0,u.z=0,u.w=0,u.next=function(){var b=u.x^u.x<<11;return u.x=u.y,u.y=u.z,u.z=u.w,u.w^=u.w>>>19^b^b>>>8},d===(d|0)?u.x=d:h+=d;for(var m=0;m<h.length+64;m++)u.x^=h.charCodeAt(m)|0,u.next()}function s(d,u){return u.x=d.x,u.y=d.y,u.z=d.z,u.w=d.w,u}function c(d,u){var h=new l(d),m=u&&u.state,b=function(){return(h.next()>>>0)/4294967296};return b.double=function(){do var g=h.next()>>>11,_=(h.next()>>>0)/4294967296,z=(g+_)/(1<<21);while(z===0);return z},b.int32=h.next,b.quick=b,m&&(typeof m=="object"&&s(m,h),b.state=function(){return s(h,{})}),b}t&&t.exports?t.exports=c:this.xor128=c})($O,i)}(Vp)),Vp.exports}var Wp={exports:{}},HO=Wp.exports,Dy;function PO(){return Dy||(Dy=1,function(i){(function(e,t,n){function l(d){var u=this,h="";u.next=function(){var b=u.x^u.x>>>2;return u.x=u.y,u.y=u.z,u.z=u.w,u.w=u.v,(u.d=u.d+362437|0)+(u.v=u.v^u.v<<4^(b^b<<1))|0},u.x=0,u.y=0,u.z=0,u.w=0,u.v=0,d===(d|0)?u.x=d:h+=d;for(var m=0;m<h.length+64;m++)u.x^=h.charCodeAt(m)|0,m==h.length&&(u.d=u.x<<10^u.x>>>4),u.next()}function s(d,u){return u.x=d.x,u.y=d.y,u.z=d.z,u.w=d.w,u.v=d.v,u.d=d.d,u}function c(d,u){var h=new l(d),m=u&&u.state,b=function(){return(h.next()>>>0)/4294967296};return b.double=function(){do var g=h.next()>>>11,_=(h.next()>>>0)/4294967296,z=(g+_)/(1<<21);while(z===0);return z},b.int32=h.next,b.quick=b,m&&(typeof m=="object"&&s(m,h),b.state=function(){return s(h,{})}),b}t&&t.exports?t.exports=c:this.xorwow=c})(HO,i)}(Wp)),Wp.exports}var jp={exports:{}},UO=jp.exports,Ny;function GO(){return Ny||(Ny=1,function(i){(function(e,t,n){function l(d){var u=this;u.next=function(){var m=u.x,b=u.i,g,_;return g=m[b],g^=g>>>7,_=g^g<<24,g=m[b+1&7],_^=g^g>>>10,g=m[b+3&7],_^=g^g>>>3,g=m[b+4&7],_^=g^g<<7,g=m[b+7&7],g=g^g<<13,_^=g^g<<9,m[b]=_,u.i=b+1&7,_};function h(m,b){var g,_=[];if(b===(b|0))_[0]=b;else for(b=""+b,g=0;g<b.length;++g)_[g&7]=_[g&7]<<15^b.charCodeAt(g)+_[g+1&7]<<13;for(;_.length<8;)_.push(0);for(g=0;g<8&&_[g]===0;++g);for(g==8?_[7]=-1:_[g],m.x=_,m.i=0,g=256;g>0;--g)m.next()}h(u,d)}function s(d,u){return u.x=d.x.slice(),u.i=d.i,u}function c(d,u){d==null&&(d=+new Date);var h=new l(d),m=u&&u.state,b=function(){return(h.next()>>>0)/4294967296};return b.double=function(){do var g=h.next()>>>11,_=(h.next()>>>0)/4294967296,z=(g+_)/(1<<21);while(z===0);return z},b.int32=h.next,b.quick=b,m&&(m.x&&s(m,h),b.state=function(){return s(h,{})}),b}t&&t.exports?t.exports=c:this.xorshift7=c})(UO,i)}(jp)),jp.exports}var qp={exports:{}},VO=qp.exports,$y;function WO(){return $y||($y=1,function(i){(function(e,t,n){function l(d){var u=this;u.next=function(){var m=u.w,b=u.X,g=u.i,_,z;return u.w=m=m+1640531527|0,z=b[g+34&127],_=b[g=g+1&127],z^=z<<13,_^=_<<17,z^=z>>>15,_^=_>>>12,z=b[g]=z^_,u.i=g,z+(m^m>>>16)|0};function h(m,b){var g,_,z,X,y,E=[],T=128;for(b===(b|0)?(_=b,b=null):(b=b+"\0",_=0,T=Math.max(T,b.length)),z=0,X=-32;X<T;++X)b&&(_^=b.charCodeAt((X+32)%b.length)),X===0&&(y=_),_^=_<<10,_^=_>>>15,_^=_<<4,_^=_>>>13,X>=0&&(y=y+1640531527|0,g=E[X&127]^=_+y,z=g==0?z+1:0);for(z>=128&&(E[(b&&b.length||0)&127]=-1),z=127,X=4*128;X>0;--X)_=E[z+34&127],g=E[z=z+1&127],_^=_<<13,g^=g<<17,_^=_>>>15,g^=g>>>12,E[z]=_^g;m.w=y,m.X=E,m.i=z}h(u,d)}function s(d,u){return u.i=d.i,u.w=d.w,u.X=d.X.slice(),u}function c(d,u){d==null&&(d=+new Date);var h=new l(d),m=u&&u.state,b=function(){return(h.next()>>>0)/4294967296};return b.double=function(){do var g=h.next()>>>11,_=(h.next()>>>0)/4294967296,z=(g+_)/(1<<21);while(z===0);return z},b.int32=h.next,b.quick=b,m&&(m.X&&s(m,h),b.state=function(){return s(h,{})}),b}t&&t.exports?t.exports=c:this.xor4096=c})(VO,i)}(qp)),qp.exports}var Yp={exports:{}},jO=Yp.exports,By;function qO(){return By||(By=1,function(i){(function(e,t,n){function l(d){var u=this,h="";u.next=function(){var b=u.b,g=u.c,_=u.d,z=u.a;return b=b<<25^b>>>7^g,g=g-_|0,_=_<<24^_>>>8^z,z=z-b|0,u.b=b=b<<20^b>>>12^g,u.c=g=g-_|0,u.d=_<<16^g>>>16^z,u.a=z-b|0},u.a=0,u.b=0,u.c=-1640531527,u.d=1367130551,d===Math.floor(d)?(u.a=d/4294967296|0,u.b=d|0):h+=d;for(var m=0;m<h.length+20;m++)u.b^=h.charCodeAt(m)|0,u.next()}function s(d,u){return u.a=d.a,u.b=d.b,u.c=d.c,u.d=d.d,u}function c(d,u){var h=new l(d),m=u&&u.state,b=function(){return(h.next()>>>0)/4294967296};return b.double=function(){do var g=h.next()>>>11,_=(h.next()>>>0)/4294967296,z=(g+_)/(1<<21);while(z===0);return z},b.int32=h.next,b.quick=b,m&&(typeof m=="object"&&s(m,h),b.state=function(){return s(h,{})}),b}t&&t.exports?t.exports=c:this.tychei=c})(jO,i)}(Yp)),Yp.exports}var Xp={exports:{}};const YO={},XO=Object.freeze(Object.defineProperty({__proto__:null,default:YO},Symbol.toStringTag,{value:"Module"})),ZO=Zx(XO);var QO=Xp.exports,Hy;function KO(){return Hy||(Hy=1,function(i){(function(e,t,n){var l=256,s=6,c=52,d="random",u=n.pow(l,s),h=n.pow(2,c),m=h*2,b=l-1,g;function _(I,K,U){var Y=[];K=K==!0?{entropy:!0}:K||{};var J=E(y(K.entropy?[I,w(t)]:I??T(),3),Y),S=new z(Y),Q=function(){for(var ae=S.g(s),x=u,A=0;ae<h;)ae=(ae+A)*l,x*=l,A=S.g(1);for(;ae>=m;)ae/=2,x/=2,A>>>=1;return(ae+A)/x};return Q.int32=function(){return S.g(4)|0},Q.quick=function(){return S.g(4)/4294967296},Q.double=Q,E(w(S.S),t),(K.pass||U||function(ae,x,A,O){return O&&(O.S&&X(O,S),ae.state=function(){return X(S,{})}),A?(n[d]=ae,x):ae})(Q,J,"global"in K?K.global:this==n,K.state)}function z(I){var K,U=I.length,Y=this,J=0,S=Y.i=Y.j=0,Q=Y.S=[];for(U||(I=[U++]);J<l;)Q[J]=J++;for(J=0;J<l;J++)Q[J]=Q[S=b&S+I[J%U]+(K=Q[J])],Q[S]=K;(Y.g=function(ae){for(var x,A=0,O=Y.i,k=Y.j,C=Y.S;ae--;)x=C[O=b&O+1],A=A*l+C[b&(C[O]=C[k=b&k+x])+(C[k]=x)];return Y.i=O,Y.j=k,A})(l)}function X(I,K){return K.i=I.i,K.j=I.j,K.S=I.S.slice(),K}function y(I,K){var U=[],Y=typeof I,J;if(K&&Y=="object")for(J in I)try{U.push(y(I[J],K-1))}catch{}return U.length?U:Y=="string"?I:I+"\0"}function E(I,K){for(var U=I+"",Y,J=0;J<U.length;)K[b&J]=b&(Y^=K[b&J]*19)+U.charCodeAt(J++);return w(K)}function T(){try{var I;return g&&(I=g.randomBytes)?I=I(l):(I=new Uint8Array(l),(e.crypto||e.msCrypto).getRandomValues(I)),w(I)}catch{var K=e.navigator,U=K&&K.plugins;return[+new Date,e,U,e.screen,w(t)]}}function w(I){return String.fromCharCode.apply(0,I)}if(E(n.random(),t),i.exports){i.exports=_;try{g=ZO}catch{}}else n["seed"+d]=_})(typeof self<"u"?self:QO,[],Math)}(Xp)),Xp.exports}var Vb,Py;function JO(){if(Py)return Vb;Py=1;var i=NO(),e=BO(),t=PO(),n=GO(),l=WO(),s=qO(),c=KO();return c.alea=i,c.xor128=e,c.xorwow=t,c.xorshift7=n,c.xor4096=l,c.tychei=s,Vb=c,Vb}var ek=JO();const tk=Im(ek);function ik(i,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,rk(n.key),n)}}function f_(i,e,t){return e&&ik(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function F3(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,Ag(i,e)}function Ag(i,e){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,l){return n.__proto__=l,n},Ag(i,e)}function nk(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var n=t.call(i,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}function rk(i){var e=nk(i,"string");return typeof e=="symbol"?e:String(e)}var D0=function(){function i(){}var e=i.prototype;return e._seed=function(n,l){if(n===(n||0))return n;for(var s=""+n,c=0,d=0;d<s.length;++d)c^=s.charCodeAt(d)|0;return c},i}(),Uy=function(i){F3(e,i);function e(n,l){var s;return s=i.call(this)||this,s._rng=void 0,s.seed(n,l),s}var t=e.prototype;return t.next=function(){return this._rng()},t.seed=function(l,s){this._rng=l},t.clone=function(l,s){return new e(this._rng,s)},f_(e,[{key:"name",get:function(){return"function"}}]),e}(D0),Gy=function(){var i=[].slice.call(arguments),e=i,t=e[0],n=t===void 0?"default":t;switch(typeof n){case"object":if(n instanceof D0)return n;break;case"function":return new Uy(n);case"number":case"string":default:return new Uy(tk.apply(void 0,i))}throw new Error('invalid RNG "'+n+'"')},ak=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),function(){return i.next()*(t-e)+e}};function qc(i){return new lk(i)}var lk=function(e){var t=this;this.n=void 0,this.isInt=function(){if(Number.isInteger(t.n))return t;throw new Error("Expected number to be an integer, got "+t.n)},this.isPositive=function(){if(t.n>0)return t;throw new Error("Expected number to be positive, got "+t.n)},this.lessThan=function(n){if(t.n<n)return t;throw new Error("Expected number to be less than "+n+", got "+t.n)},this.greaterThanOrEqual=function(n){if(t.n>=n)return t;throw new Error("Expected number to be greater than or equal to "+n+", got "+t.n)},this.greaterThan=function(n){if(t.n>n)return t;throw new Error("Expected number to be greater than "+n+", got "+t.n)},this.n=e},sk=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),t===void 0&&(t=e===void 0?1:e,e=0),qc(e).isInt(),qc(t).isInt(),function(){return Math.floor(i.next()*(t-e+1)+e)}},ok=function(i){return function(){return i.next()>=.5}},ck=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),function(){var n,l,s;do n=i.next()*2-1,l=i.next()*2-1,s=n*n+l*l;while(!s||s>1);return e+t*l*Math.sqrt(-2*Math.log(s)/s)}},dk=function(i,e,t){e===void 0&&(e=0),t===void 0&&(t=1);var n=i.normal(e,t);return function(){return Math.exp(n())}},fk=function(i,e){return e===void 0&&(e=.5),qc(e).greaterThanOrEqual(0).lessThan(1),function(){return Math.floor(i.next()+e)}},uk=function(i,e,t){return e===void 0&&(e=1),t===void 0&&(t=.5),qc(e).isInt().isPositive(),qc(t).greaterThanOrEqual(0).lessThan(1),function(){for(var n=0,l=0;n++<e;)i.next()<t&&l++;return l}},hk=function(i,e){e===void 0&&(e=.5),qc(e).greaterThan(0).lessThan(1);var t=1/Math.log(1-e);return function(){return Math.floor(1+Math.log(i.next())*t)}},mk=[0,0,.6931471805599453,1.791759469228055,3.1780538303479458,4.787491742782046,6.579251212010101,8.525161361065415,10.60460290274525,12.801827480081469],pk=function(e){return mk[e]},bk=.9189385332046727,gk=function(i,e){if(e===void 0&&(e=1),qc(e).isPositive(),e<10){var t=Math.exp(-e);return function(){for(var u=t,h=0,m=i.next();m>u;)m=m-u,u=e*u/++h;return h}}else{var n=Math.sqrt(e),l=.931+2.53*n,s=-.059+.02483*l,c=1.1239+1.1328/(l-3.4),d=.9277-3.6224/(l-2);return function(){for(;;){var u=void 0,h=i.next();if(h<=.86*d)return u=h/d-.43,Math.floor((2*s/(.5-Math.abs(u))+l)*u+e+.445);h>=d?u=i.next()-.5:(u=h/d-.93,u=(u<0?-.5:.5)-u,h=i.next()*d);var m=.5-Math.abs(u);if(!(m<.013&&h>m)){var b=Math.floor((2*s/m+l)*u+e+.445);if(h=h*c/(s/(m*m)+l),b>=10){var g=(b+.5)*Math.log(e/b)-e-bk+b-(.08333333333333333-(.002777777777777778-1/(1260*b*b))/(b*b))/b;if(Math.log(h*n)<=g)return b}else if(b>=0){var _,z=(_=pk(b))!=null?_:0;if(Math.log(h)<=b*Math.log(e)-e-z)return b}}}}}},_k=function(i,e){return e===void 0&&(e=1),qc(e).isPositive(),function(){return-Math.log(1-i.next())/e}},yk=function(i,e){return e===void 0&&(e=1),qc(e).isInt().greaterThanOrEqual(0),function(){for(var t=0,n=0;n<e;++n)t+=i.next();return t}},vk=function(i,e){e===void 0&&(e=1),qc(e).isInt().isPositive();var t=i.irwinHall(e);return function(){return t()/e}},xk=function(i,e){e===void 0&&(e=1),qc(e).greaterThanOrEqual(0);var t=1/e;return function(){return 1/Math.pow(1-i.next(),t)}},wk=function(i){F3(e,i);function e(){return i.apply(this,arguments)||this}var t=e.prototype;return t.next=function(){return Math.random()},t.seed=function(l,s){},t.clone=function(){return new e},f_(e,[{key:"name",get:function(){return"default"}}]),e}(D0),M3=function(){function i(t){var n=this;this._rng=void 0,this._patch=void 0,this._cache={},this.next=function(){return n._rng.next()},this.float=function(l,s){return n.uniform(l,s)()},this.int=function(l,s){return n.uniformInt(l,s)()},this.integer=function(l,s){return n.uniformInt(l,s)()},this.bool=function(){return n.uniformBoolean()()},this.boolean=function(){return n.uniformBoolean()()},this.uniform=function(l,s){return n._memoize("uniform",ak,l,s)},this.uniformInt=function(l,s){return n._memoize("uniformInt",sk,l,s)},this.uniformBoolean=function(){return n._memoize("uniformBoolean",ok)},this.normal=function(l,s){return ck(n,l,s)},this.logNormal=function(l,s){return dk(n,l,s)},this.bernoulli=function(l){return fk(n,l)},this.binomial=function(l,s){return uk(n,l,s)},this.geometric=function(l){return hk(n,l)},this.poisson=function(l){return gk(n,l)},this.exponential=function(l){return _k(n,l)},this.irwinHall=function(l){return yk(n,l)},this.bates=function(l){return vk(n,l)},this.pareto=function(l){return xk(n,l)},t&&t instanceof D0?this.use(t):this.use(new wk),this._cache={}}var e=i.prototype;return e.clone=function(){var n=[].slice.call(arguments);return n.length?new i(Gy.apply(void 0,n)):new i(this.rng.clone())},e.use=function(){this._rng=Gy.apply(void 0,[].slice.call(arguments))},e.patch=function(){if(this._patch)throw new Error("Math.random already patched");this._patch=Math.random,Math.random=this.uniform()},e.unpatch=function(){this._patch&&(Math.random=this._patch,delete this._patch)},e.choice=function(n){if(!Array.isArray(n))throw new Error("Random.choice expected input to be an array, got "+typeof n);var l=n?.length;if(l>0){var s=this.uniformInt(0,l-1)();return n[s]}else return},e._memoize=function(n,l){var s=[].slice.call(arguments,2),c=""+s.join(";"),d=this._cache[n];return(d===void 0||d.key!==c)&&(d={key:c,distribution:l.apply(void 0,[this].concat(s))},this._cache[n]=d),d.distribution},f_(i,[{key:"rng",get:function(){return this._rng}}]),i}();new M3;const Eg={capture:!0,passive:!1};function Tg(i){i.preventDefault(),i.stopImmediatePropagation()}function D3(i){var e=i.document.documentElement,t=Ma(i).on("dragstart.drag",Tg,Eg);"onselectstart"in e?t.on("selectstart.drag",Tg,Eg):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function N3(i,e){var t=i.document.documentElement,n=Ma(i).on("dragstart.drag",null);e&&(n.on("click.drag",Tg,Eg),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}const Sp=i=>()=>i;function Sk(i,{sourceEvent:e,target:t,transform:n,dispatch:l}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:l}})}function Fd(i,e,t){this.k=i,this.x=e,this.y=t}Fd.prototype={constructor:Fd,scale:function(i){return i===1?this:new Fd(this.k*i,this.x,this.y)},translate:function(i,e){return i===0&e===0?this:new Fd(this.k,this.x+this.k*i,this.y+this.k*e)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mm=new Fd(1,0,0);Fd.prototype;function Wb(i){i.stopImmediatePropagation()}function im(i){i.preventDefault(),i.stopImmediatePropagation()}function Ak(i){return(!i.ctrlKey||i.type==="wheel")&&!i.button}function Ek(){var i=this;return i instanceof SVGElement?(i=i.ownerSVGElement||i,i.hasAttribute("viewBox")?(i=i.viewBox.baseVal,[[i.x,i.y],[i.x+i.width,i.y+i.height]]):[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]):[[0,0],[i.clientWidth,i.clientHeight]]}function Vy(){return this.__zoom||mm}function Tk(i){return-i.deltaY*(i.deltaMode===1?.05:i.deltaMode?1:.002)*(i.ctrlKey?10:1)}function Ok(){return navigator.maxTouchPoints||"ontouchstart"in this}function kk(i,e,t){var n=i.invertX(e[0][0])-t[0][0],l=i.invertX(e[1][0])-t[1][0],s=i.invertY(e[0][1])-t[0][1],c=i.invertY(e[1][1])-t[1][1];return i.translate(l>n?(n+l)/2:Math.min(0,n)||Math.max(0,l),c>s?(s+c)/2:Math.min(0,s)||Math.max(0,c))}function Ck(){var i=Ak,e=Ek,t=kk,n=Tk,l=Ok,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,u=vE,h=O0("start","zoom","end"),m,b,g,_=500,z=150,X=0,y=10;function E(O){O.property("__zoom",Vy).on("wheel.zoom",J,{passive:!1}).on("mousedown.zoom",S).on("dblclick.zoom",Q).filter(l).on("touchstart.zoom",ae).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(O,k,C,ee){var Re=O.selection?O.selection():O;Re.property("__zoom",Vy),O!==Re?K(O,k,C,ee):Re.interrupt().each(function(){U(this,arguments).event(ee).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},E.scaleBy=function(O,k,C,ee){E.scaleTo(O,function(){var Re=this.__zoom.k,ge=typeof k=="function"?k.apply(this,arguments):k;return Re*ge},C,ee)},E.scaleTo=function(O,k,C,ee){E.transform(O,function(){var Re=e.apply(this,arguments),ge=this.__zoom,F=C==null?I(Re):typeof C=="function"?C.apply(this,arguments):C,H=ge.invert(F),R=typeof k=="function"?k.apply(this,arguments):k;return t(w(T(ge,R),F,H),Re,c)},C,ee)},E.translateBy=function(O,k,C,ee){E.transform(O,function(){return t(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof C=="function"?C.apply(this,arguments):C),e.apply(this,arguments),c)},null,ee)},E.translateTo=function(O,k,C,ee,Re){E.transform(O,function(){var ge=e.apply(this,arguments),F=this.__zoom,H=ee==null?I(ge):typeof ee=="function"?ee.apply(this,arguments):ee;return t(mm.translate(H[0],H[1]).scale(F.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof C=="function"?-C.apply(this,arguments):-C),ge,c)},ee,Re)};function T(O,k){return k=Math.max(s[0],Math.min(s[1],k)),k===O.k?O:new Fd(k,O.x,O.y)}function w(O,k,C){var ee=k[0]-C[0]*O.k,Re=k[1]-C[1]*O.k;return ee===O.x&&Re===O.y?O:new Fd(O.k,ee,Re)}function I(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function K(O,k,C,ee){O.on("start.zoom",function(){U(this,arguments).event(ee).start()}).on("interrupt.zoom end.zoom",function(){U(this,arguments).event(ee).end()}).tween("zoom",function(){var Re=this,ge=arguments,F=U(Re,ge).event(ee),H=e.apply(Re,ge),R=C==null?I(H):typeof C=="function"?C.apply(Re,ge):C,$=Math.max(H[1][0]-H[0][0],H[1][1]-H[0][1]),q=Re.__zoom,se=typeof k=="function"?k.apply(Re,ge):k,te=u(q.invert(R).concat($/q.k),se.invert(R).concat($/se.k));return function(qe){if(qe===1)qe=se;else{var we=te(qe),Se=$/we[2];qe=new Fd(Se,R[0]-we[0]*Se,R[1]-we[1]*Se)}F.zoom(null,qe)}})}function U(O,k,C){return!C&&O.__zooming||new Y(O,k)}function Y(O,k){this.that=O,this.args=k,this.active=0,this.sourceEvent=null,this.extent=e.apply(O,k),this.taps=0}Y.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,k){return this.mouse&&O!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var k=Ma(this.that).datum();h.call(O,this.that,new Sk(O,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:h}),k)}};function J(O,...k){if(!i.apply(this,arguments))return;var C=U(this,k).event(O),ee=this.__zoom,Re=Math.max(s[0],Math.min(s[1],ee.k*Math.pow(2,n.apply(this,arguments)))),ge=Cd(O);if(C.wheel)(C.mouse[0][0]!==ge[0]||C.mouse[0][1]!==ge[1])&&(C.mouse[1]=ee.invert(C.mouse[0]=ge)),clearTimeout(C.wheel);else{if(ee.k===Re)return;C.mouse=[ge,ee.invert(ge)],Zu(this),C.start()}im(O),C.wheel=setTimeout(F,z),C.zoom("mouse",t(w(T(ee,Re),C.mouse[0],C.mouse[1]),C.extent,c));function F(){C.wheel=null,C.end()}}function S(O,...k){if(g||!i.apply(this,arguments))return;var C=O.currentTarget,ee=U(this,k,!0).event(O),Re=Ma(O.view).on("mousemove.zoom",R,!0).on("mouseup.zoom",$,!0),ge=Cd(O,C),F=O.clientX,H=O.clientY;D3(O.view),Wb(O),ee.mouse=[ge,this.__zoom.invert(ge)],Zu(this),ee.start();function R(q){if(im(q),!ee.moved){var se=q.clientX-F,te=q.clientY-H;ee.moved=se*se+te*te>X}ee.event(q).zoom("mouse",t(w(ee.that.__zoom,ee.mouse[0]=Cd(q,C),ee.mouse[1]),ee.extent,c))}function $(q){Re.on("mousemove.zoom mouseup.zoom",null),N3(q.view,ee.moved),im(q),ee.event(q).end()}}function Q(O,...k){if(i.apply(this,arguments)){var C=this.__zoom,ee=Cd(O.changedTouches?O.changedTouches[0]:O,this),Re=C.invert(ee),ge=C.k*(O.shiftKey?.5:2),F=t(w(T(C,ge),ee,Re),e.apply(this,k),c);im(O),d>0?Ma(this).transition().duration(d).call(K,F,ee,O):Ma(this).call(E.transform,F,ee,O)}}function ae(O,...k){if(i.apply(this,arguments)){var C=O.touches,ee=C.length,Re=U(this,k,O.changedTouches.length===ee).event(O),ge,F,H,R;for(Wb(O),F=0;F<ee;++F)H=C[F],R=Cd(H,this),R=[R,this.__zoom.invert(R),H.identifier],Re.touch0?!Re.touch1&&Re.touch0[2]!==R[2]&&(Re.touch1=R,Re.taps=0):(Re.touch0=R,ge=!0,Re.taps=1+!!m);m&&(m=clearTimeout(m)),ge&&(Re.taps<2&&(b=R[0],m=setTimeout(function(){m=null},_)),Zu(this),Re.start())}}function x(O,...k){if(this.__zooming){var C=U(this,k).event(O),ee=O.changedTouches,Re=ee.length,ge,F,H,R;for(im(O),ge=0;ge<Re;++ge)F=ee[ge],H=Cd(F,this),C.touch0&&C.touch0[2]===F.identifier?C.touch0[0]=H:C.touch1&&C.touch1[2]===F.identifier&&(C.touch1[0]=H);if(F=C.that.__zoom,C.touch1){var $=C.touch0[0],q=C.touch0[1],se=C.touch1[0],te=C.touch1[1],qe=(qe=se[0]-$[0])*qe+(qe=se[1]-$[1])*qe,we=(we=te[0]-q[0])*we+(we=te[1]-q[1])*we;F=T(F,Math.sqrt(qe/we)),H=[($[0]+se[0])/2,($[1]+se[1])/2],R=[(q[0]+te[0])/2,(q[1]+te[1])/2]}else if(C.touch0)H=C.touch0[0],R=C.touch0[1];else return;C.zoom("touch",t(w(F,H,R),C.extent,c))}}function A(O,...k){if(this.__zooming){var C=U(this,k).event(O),ee=O.changedTouches,Re=ee.length,ge,F;for(Wb(O),g&&clearTimeout(g),g=setTimeout(function(){g=null},_),ge=0;ge<Re;++ge)F=ee[ge],C.touch0&&C.touch0[2]===F.identifier?delete C.touch0:C.touch1&&C.touch1[2]===F.identifier&&delete C.touch1;if(C.touch1&&!C.touch0&&(C.touch0=C.touch1,delete C.touch1),C.touch0)C.touch0[1]=this.__zoom.invert(C.touch0[0]);else if(C.end(),C.taps===2&&(F=Cd(F,this),Math.hypot(b[0]-F[0],b[1]-F[1])<y)){var H=Ma(this).on("dblclick.zoom");H&&H.apply(this,arguments)}}}return E.wheelDelta=function(O){return arguments.length?(n=typeof O=="function"?O:Sp(+O),E):n},E.filter=function(O){return arguments.length?(i=typeof O=="function"?O:Sp(!!O),E):i},E.touchable=function(O){return arguments.length?(l=typeof O=="function"?O:Sp(!!O),E):l},E.extent=function(O){return arguments.length?(e=typeof O=="function"?O:Sp([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),E):e},E.scaleExtent=function(O){return arguments.length?(s[0]=+O[0],s[1]=+O[1],E):[s[0],s[1]]},E.translateExtent=function(O){return arguments.length?(c[0][0]=+O[0][0],c[1][0]=+O[1][0],c[0][1]=+O[0][1],c[1][1]=+O[1][1],E):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},E.constrain=function(O){return arguments.length?(t=O,E):t},E.duration=function(O){return arguments.length?(d=+O,E):d},E.interpolate=function(O){return arguments.length?(u=O,E):u},E.on=function(){var O=h.on.apply(h,arguments);return O===h?E:O},E.clickDistance=function(O){return arguments.length?(X=(O=+O)*O,E):Math.sqrt(X)},E.tapDistance=function(O){return arguments.length?(y=+O,E):y},E}const $3="#b3b3b3",zk=.1,B3=4,H3="#666666",Ik=.1,P3=1,Lk="#222222",Tr={disableSimulation:!1,spaceSize:4096,nodeSizeScale:1,linkWidthScale:1,arrowSizeScale:1,renderLinks:!0,curvedLinks:!1,curvedLinkSegments:19,curvedLinkWeight:.8,curvedLinkControlPointDistance:.5,arrowLinks:!0,linkVisibilityDistanceRange:[50,150],linkVisibilityMinTransparency:.25,hoveredNodeRingColor:"white",focusedNodeRingColor:"white",useQuadtree:!1,simulation:{decay:1e3,gravity:0,center:0,repulsion:.1,repulsionTheta:1.7,repulsionQuadtreeLevels:12,linkSpring:1,linkDistance:2,linkDistRandomVariationRange:[1,1.2],repulsionFromMouse:2,friction:.85},showFPSMonitor:!1,pixelRatio:2,scaleNodesOnZoom:!0,disableZoom:!1,fitViewOnInit:!0,fitViewDelay:250,nodeSamplingDistance:150},Rk=.7,Fk=.95,Wy=3,U3=i=>typeof i=="function",G3=i=>Array.isArray(i),Mk=i=>i instanceof Object,Dk=i=>i instanceof Object?i.constructor.name!=="Function"&&i.constructor.name!=="Object":!1,jy=i=>Mk(i)&&!G3(i)&&!U3(i)&&!Dk(i);function pm(i,e,t){return U3(e)?e(i,t):e}function dh(i){var e;let t;if(G3(i))t=i;else{const n=Md(i),l=n?.rgb();t=[l?.r||0,l?.g||0,l?.b||0,(e=n?.opacity)!==null&&e!==void 0?e:1]}return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function gf(i,e){let t=new Float32Array;return i({framebuffer:e})(()=>{t=i.read()}),t}function Nk(i,e,t){return Math.min(Math.max(i,e),t)}class $k{constructor(){this.disableSimulation=Tr.disableSimulation,this.backgroundColor=Lk,this.spaceSize=Tr.spaceSize,this.nodeColor=$3,this.nodeGreyoutOpacity=zk,this.nodeSize=B3,this.nodeSizeScale=Tr.nodeSizeScale,this.renderHighlightedNodeRing=!0,this.highlightedNodeRingColor=void 0,this.renderHoveredNodeRing=!0,this.hoveredNodeRingColor=Tr.hoveredNodeRingColor,this.focusedNodeRingColor=Tr.focusedNodeRingColor,this.linkColor=H3,this.linkGreyoutOpacity=Ik,this.linkWidth=P3,this.linkWidthScale=Tr.linkWidthScale,this.renderLinks=Tr.renderLinks,this.curvedLinks=Tr.curvedLinks,this.curvedLinkSegments=Tr.curvedLinkSegments,this.curvedLinkWeight=Tr.curvedLinkWeight,this.curvedLinkControlPointDistance=Tr.curvedLinkControlPointDistance,this.linkArrows=Tr.arrowLinks,this.linkArrowsSizeScale=Tr.arrowSizeScale,this.linkVisibilityDistanceRange=Tr.linkVisibilityDistanceRange,this.linkVisibilityMinTransparency=Tr.linkVisibilityMinTransparency,this.useQuadtree=Tr.useQuadtree,this.simulation={decay:Tr.simulation.decay,gravity:Tr.simulation.gravity,center:Tr.simulation.center,repulsion:Tr.simulation.repulsion,repulsionTheta:Tr.simulation.repulsionTheta,repulsionQuadtreeLevels:Tr.simulation.repulsionQuadtreeLevels,linkSpring:Tr.simulation.linkSpring,linkDistance:Tr.simulation.linkDistance,linkDistRandomVariationRange:Tr.simulation.linkDistRandomVariationRange,repulsionFromMouse:Tr.simulation.repulsionFromMouse,friction:Tr.simulation.friction,onStart:void 0,onTick:void 0,onEnd:void 0,onPause:void 0,onRestart:void 0},this.events={onClick:void 0,onMouseMove:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onZoomStart:void 0,onZoom:void 0,onZoomEnd:void 0},this.showFPSMonitor=Tr.showFPSMonitor,this.pixelRatio=Tr.pixelRatio,this.scaleNodesOnZoom=Tr.scaleNodesOnZoom,this.initialZoomLevel=void 0,this.disableZoom=Tr.disableZoom,this.fitViewOnInit=Tr.fitViewOnInit,this.fitViewDelay=Tr.fitViewDelay,this.fitViewByNodesInRect=void 0,this.randomSeed=void 0,this.nodeSamplingDistance=Tr.nodeSamplingDistance}init(e){Object.keys(e).forEach(t=>{this.deepMergeConfig(this.getConfig(),e,t)})}deepMergeConfig(e,t,n){jy(e[n])&&jy(t[n])?Object.keys(t[n]).forEach(l=>{this.deepMergeConfig(e[n],t[n],l)}):e[n]=t[n]}getConfig(){return this}}class Af{constructor(e,t,n,l,s){this.reglInstance=e,this.config=t,this.store=n,this.data=l,s&&(this.points=s)}}var Bk=`#ifdef GL_ES
53
+ precision highp float;
54
+ #define GLSLIFY 1
55
+ #endif
56
+ varying vec4 rgba;void main(){gl_FragColor=rgba;}`,Hk=`#ifdef GL_ES
57
+ precision highp float;
58
+ #define GLSLIFY 1
59
+ #endif
60
+ uniform sampler2D position;uniform float pointsTextureSize;attribute vec2 indexes;varying vec4 rgba;void main(){vec4 pointPosition=texture2D(position,indexes/pointsTextureSize);rgba=vec4(pointPosition.xy,1.0,0.0);gl_Position=vec4(0.0,0.0,0.0,1.0);gl_PointSize=1.0;}`,Pk=`#ifdef GL_ES
61
+ precision highp float;
62
+ #define GLSLIFY 1
63
+ #endif
64
+ uniform sampler2D position;uniform sampler2D centermass;uniform float center;uniform float alpha;varying vec2 index;void main(){vec4 pointPosition=texture2D(position,index);vec4 velocity=vec4(0.0);vec4 centermassValues=texture2D(centermass,vec2(0.0));vec2 centermassPosition=centermassValues.xy/centermassValues.b;vec2 distVector=centermassPosition-pointPosition.xy;float dist=sqrt(dot(distVector,distVector));if(dist>0.0){float angle=atan(distVector.y,distVector.x);float addV=alpha*center*dist*0.01;velocity.rg+=addV*vec2(cos(angle),sin(angle));}gl_FragColor=velocity;}`;function xo(i){return{buffer:i.buffer(new Float32Array([-1,-1,1,-1,-1,1,1,1])),size:2}}function Ku(i,e){const t=new Float32Array(e*e*2);for(let l=0;l<e;l++)for(let s=0;s<e;s++){const c=l*e*2+s*2;t[c+0]=s,t[c+1]=l}return{buffer:i.buffer(t),size:2}}function Xl(i){var e;i&&!((e=i?._framebuffer)===null||e===void 0)&&e.framebuffer&&i.destroy()}function Ap(i){var e;i&&!((e=i?._buffer)===null||e===void 0)&&e.buffer&&i.destroy()}var fh=`#ifdef GL_ES
65
+ precision highp float;
66
+ #define GLSLIFY 1
67
+ #endif
68
+ varying vec2 index;void main(){gl_FragColor=vec4(0.0);}`,No=`#ifdef GL_ES
69
+ precision highp float;
70
+ #define GLSLIFY 1
71
+ #endif
72
+ attribute vec2 quad;varying vec2 index;void main(){index=(quad+1.0)/2.0;gl_Position=vec4(quad,0,1);}`;class Uk extends Af{create(){const{reglInstance:e}=this;this.centermassFbo=e.framebuffer({color:e.texture({data:new Float32Array(4).fill(0),shape:[1,1,4],type:"float"}),depth:!1,stencil:!1})}initPrograms(){const{reglInstance:e,config:t,store:n,data:l,points:s}=this;this.clearCentermassCommand=e({frag:fh,vert:No,framebuffer:this.centermassFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)}}),this.calculateCentermassCommand=e({frag:Bk,vert:Hk,framebuffer:()=>this.centermassFbo,primitive:"points",count:()=>l.nodes.length,attributes:{indexes:Ku(e,n.pointsTextureSize)},uniforms:{position:()=>s?.previousPositionFbo,pointsTextureSize:()=>n.pointsTextureSize},blend:{enable:!0,func:{src:"one",dst:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1},stencil:{enable:!1}}),this.runCommand=e({frag:Pk,vert:No,framebuffer:()=>s?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>s?.previousPositionFbo,centermass:()=>this.centermassFbo,center:()=>{var c;return(c=t.simulation)===null||c===void 0?void 0:c.center},alpha:()=>n.alpha}})}run(){var e,t,n;(e=this.clearCentermassCommand)===null||e===void 0||e.call(this),(t=this.calculateCentermassCommand)===null||t===void 0||t.call(this),(n=this.runCommand)===null||n===void 0||n.call(this)}destroy(){Xl(this.centermassFbo)}}var Gk=`#ifdef GL_ES
73
+ precision highp float;
74
+ #define GLSLIFY 1
75
+ #endif
76
+ uniform sampler2D position;uniform float gravity;uniform float spaceSize;uniform float alpha;varying vec2 index;void main(){vec4 pointPosition=texture2D(position,index);vec4 velocity=vec4(0.0);vec2 centerPosition=vec2(spaceSize/2.0);vec2 distVector=centerPosition-pointPosition.rg;float dist=sqrt(dot(distVector,distVector));if(dist>0.0){float angle=atan(distVector.y,distVector.x);float addV=alpha*gravity*dist*0.1;velocity.rg+=addV*vec2(cos(angle),sin(angle));}gl_FragColor=velocity;}`;class Vk extends Af{initPrograms(){const{reglInstance:e,config:t,store:n,points:l}=this;this.runCommand=e({frag:Gk,vert:No,framebuffer:()=>l?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>l?.previousPositionFbo,gravity:()=>{var s;return(s=t.simulation)===null||s===void 0?void 0:s.gravity},spaceSize:()=>n.adjustedSpaceSize,alpha:()=>n.alpha}})}run(){var e;(e=this.runCommand)===null||e===void 0||e.call(this)}}function Wk(i){return`
77
+ #ifdef GL_ES
78
+ precision highp float;
79
+ #endif
80
+
81
+ uniform sampler2D position;
82
+ uniform float linkSpring;
83
+ uniform float linkDistance;
84
+ uniform vec2 linkDistRandomVariationRange;
85
+
86
+ uniform sampler2D linkFirstIndicesAndAmount;
87
+ uniform sampler2D linkIndices;
88
+ uniform sampler2D linkBiasAndStrength;
89
+ uniform sampler2D linkRandomDistanceFbo;
90
+
91
+ uniform float pointsTextureSize;
92
+ uniform float linksTextureSize;
93
+ uniform float alpha;
94
+
95
+ varying vec2 index;
96
+
97
+ const float MAX_LINKS = ${i}.0;
98
+
99
+ void main() {
100
+ vec4 pointPosition = texture2D(position, index);
101
+ vec4 velocity = vec4(0.0);
102
+
103
+ vec4 linkFirstIJAndAmount = texture2D(linkFirstIndicesAndAmount, index);
104
+ float iCount = linkFirstIJAndAmount.r;
105
+ float jCount = linkFirstIJAndAmount.g;
106
+ float linkAmount = linkFirstIJAndAmount.b;
107
+ if (linkAmount > 0.0) {
108
+ for (float i = 0.0; i < MAX_LINKS; i += 1.0) {
109
+ if (i < linkAmount) {
110
+ if (iCount >= linksTextureSize) {
111
+ iCount = 0.0;
112
+ jCount += 1.0;
113
+ }
114
+ vec2 linkTextureIndex = (vec2(iCount, jCount) + 0.5) / linksTextureSize;
115
+ vec4 connectedPointIndex = texture2D(linkIndices, linkTextureIndex);
116
+ vec4 biasAndStrength = texture2D(linkBiasAndStrength, linkTextureIndex);
117
+ vec4 randomMinDistance = texture2D(linkRandomDistanceFbo, linkTextureIndex);
118
+ float bias = biasAndStrength.r;
119
+ float strength = biasAndStrength.g;
120
+ float randomMinLinkDist = randomMinDistance.r * (linkDistRandomVariationRange.g - linkDistRandomVariationRange.r) + linkDistRandomVariationRange.r;
121
+ randomMinLinkDist *= linkDistance;
122
+
123
+ iCount += 1.0;
124
+
125
+ vec4 connectedPointPosition = texture2D(position, (connectedPointIndex.rg + 0.5) / pointsTextureSize);
126
+ float x = connectedPointPosition.x - (pointPosition.x + velocity.x);
127
+ float y = connectedPointPosition.y - (pointPosition.y + velocity.y);
128
+ float l = sqrt(x * x + y * y);
129
+ l = max(l, randomMinLinkDist * 0.99);
130
+ l = (l - randomMinLinkDist) / l;
131
+ l *= linkSpring * alpha;
132
+ l *= strength;
133
+ l *= bias;
134
+ x *= l;
135
+ y *= l;
136
+ velocity.x += x;
137
+ velocity.y += y;
138
+ }
139
+ }
140
+ }
141
+
142
+ gl_FragColor = vec4(velocity.rg, 0.0, 0.0);
143
+ }
144
+ `}var Tm;(function(i){i.OUTGOING="outgoing",i.INCOMING="incoming"})(Tm||(Tm={}));class qy extends Af{constructor(){super(...arguments),this.linkFirstIndicesAndAmount=new Float32Array,this.indices=new Float32Array,this.maxPointDegree=0}create(e){const{reglInstance:t,store:{pointsTextureSize:n,linksTextureSize:l},data:s}=this;if(!n||!l)return;this.linkFirstIndicesAndAmount=new Float32Array(n*n*4),this.indices=new Float32Array(l*l*4);const c=new Float32Array(l*l*4),d=new Float32Array(l*l*4),u=e===Tm.INCOMING?s.groupedSourceToTargetLinks:s.groupedTargetToSourceLinks;this.maxPointDegree=0;let h=0;u.forEach((m,b)=>{this.linkFirstIndicesAndAmount[b*4+0]=h%l,this.linkFirstIndicesAndAmount[b*4+1]=Math.floor(h/l),this.linkFirstIndicesAndAmount[b*4+2]=m.size,m.forEach(g=>{var _,z;this.indices[h*4+0]=g%n,this.indices[h*4+1]=Math.floor(g/n);const X=(_=s.degree[s.getInputIndexBySortedIndex(g)])!==null&&_!==void 0?_:0,y=(z=s.degree[s.getInputIndexBySortedIndex(b)])!==null&&z!==void 0?z:0,E=X/(X+y);let T=1/Math.min(X,y);T=Math.sqrt(T),c[h*4+0]=E,c[h*4+1]=T,d[h*4]=this.store.getRandomFloat(0,1),h+=1}),this.maxPointDegree=Math.max(this.maxPointDegree,m.size)}),this.linkFirstIndicesAndAmountFbo=t.framebuffer({color:t.texture({data:this.linkFirstIndicesAndAmount,shape:[n,n,4],type:"float"}),depth:!1,stencil:!1}),this.indicesFbo=t.framebuffer({color:t.texture({data:this.indices,shape:[l,l,4],type:"float"}),depth:!1,stencil:!1}),this.biasAndStrengthFbo=t.framebuffer({color:t.texture({data:c,shape:[l,l,4],type:"float"}),depth:!1,stencil:!1}),this.randomDistanceFbo=t.framebuffer({color:t.texture({data:d,shape:[l,l,4],type:"float"}),depth:!1,stencil:!1})}initPrograms(){const{reglInstance:e,config:t,store:n,points:l}=this;this.runCommand=e({frag:()=>Wk(this.maxPointDegree),vert:No,framebuffer:()=>l?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>l?.previousPositionFbo,linkSpring:()=>{var s;return(s=t.simulation)===null||s===void 0?void 0:s.linkSpring},linkDistance:()=>{var s;return(s=t.simulation)===null||s===void 0?void 0:s.linkDistance},linkDistRandomVariationRange:()=>{var s;return(s=t.simulation)===null||s===void 0?void 0:s.linkDistRandomVariationRange},linkFirstIndicesAndAmount:()=>this.linkFirstIndicesAndAmountFbo,linkIndices:()=>this.indicesFbo,linkBiasAndStrength:()=>this.biasAndStrengthFbo,linkRandomDistanceFbo:()=>this.randomDistanceFbo,pointsTextureSize:()=>n.pointsTextureSize,linksTextureSize:()=>n.linksTextureSize,alpha:()=>n.alpha}})}run(){var e;(e=this.runCommand)===null||e===void 0||e.call(this)}destroy(){Xl(this.linkFirstIndicesAndAmountFbo),Xl(this.indicesFbo),Xl(this.biasAndStrengthFbo),Xl(this.randomDistanceFbo)}}var V3=`#ifdef GL_ES
145
+ precision highp float;
146
+ #define GLSLIFY 1
147
+ #endif
148
+ varying vec4 rgba;void main(){gl_FragColor=rgba;}`,W3=`#ifdef GL_ES
149
+ precision highp float;
150
+ #define GLSLIFY 1
151
+ #endif
152
+ uniform sampler2D position;uniform float pointsTextureSize;uniform float levelTextureSize;uniform float cellSize;attribute vec2 indexes;varying vec4 rgba;void main(){vec4 pointPosition=texture2D(position,indexes/pointsTextureSize);rgba=vec4(pointPosition.rg,1.0,0.0);float n=floor(pointPosition.x/cellSize);float m=floor(pointPosition.y/cellSize);vec2 levelPosition=2.0*(vec2(n,m)+0.5)/levelTextureSize-1.0;gl_Position=vec4(levelPosition,0.0,1.0);gl_PointSize=1.0;}`,jk=`#ifdef GL_ES
153
+ precision highp float;
154
+ #define GLSLIFY 1
155
+ #endif
156
+ uniform sampler2D position;uniform sampler2D levelFbo;uniform float level;uniform float levels;uniform float levelTextureSize;uniform float repulsion;uniform float alpha;uniform float spaceSize;uniform float theta;varying vec2 index;const float MAX_LEVELS_NUM=14.0;vec2 calcAdd(vec2 ij,vec2 pp){vec2 add=vec2(0.0);vec4 centermass=texture2D(levelFbo,ij);if(centermass.r>0.0&&centermass.g>0.0&&centermass.b>0.0){vec2 centermassPosition=vec2(centermass.rg/centermass.b);vec2 distVector=pp-centermassPosition;float l=dot(distVector,distVector);float dist=sqrt(l);if(l>0.0){float angle=atan(distVector.y,distVector.x);float c=alpha*repulsion*centermass.b;float distanceMin2=1.0;if(l<distanceMin2)l=sqrt(distanceMin2*l);float addV=c/sqrt(l);add=addV*vec2(cos(angle),sin(angle));}}return add;}void main(){vec4 pointPosition=texture2D(position,index);float x=pointPosition.x;float y=pointPosition.y;float left=0.0;float top=0.0;float right=spaceSize;float bottom=spaceSize;float n_left=0.0;float n_top=0.0;float n_right=0.0;float n_bottom=0.0;float cellSize=0.0;for(float i=0.0;i<MAX_LEVELS_NUM;i+=1.0){if(i<=level){left+=cellSize*n_left;top+=cellSize*n_top;right-=cellSize*n_right;bottom-=cellSize*n_bottom;cellSize=pow(2.0,levels-i-1.0);float dist_left=x-left;n_left=max(0.0,floor(dist_left/cellSize-theta));float dist_top=y-top;n_top=max(0.0,floor(dist_top/cellSize-theta));float dist_right=right-x;n_right=max(0.0,floor(dist_right/cellSize-theta));float dist_bottom=bottom-y;n_bottom=max(0.0,floor(dist_bottom/cellSize-theta));}}vec4 velocity=vec4(vec2(0.0),1.0,0.0);for(float i=0.0;i<12.0;i+=1.0){for(float j=0.0;j<4.0;j+=1.0){float n=left+cellSize*j;float m=top+cellSize*n_top+cellSize*i;if(n<(left+n_left*cellSize)&&m<bottom){velocity.xy+=calcAdd(vec2(n/cellSize,m/cellSize)/levelTextureSize,pointPosition.xy);}n=left+cellSize*i;m=top+cellSize*j;if(n<(right-n_right*cellSize)&&m<(top+n_top*cellSize)){velocity.xy+=calcAdd(vec2(n/cellSize,m/cellSize)/levelTextureSize,pointPosition.xy);}n=right-n_right*cellSize+cellSize*j;m=top+cellSize*i;if(n<right&&m<(bottom-n_bottom*cellSize)){velocity.xy+=calcAdd(vec2(n/cellSize,m/cellSize)/levelTextureSize,pointPosition.xy);}n=left+n_left*cellSize+cellSize*i;m=bottom-n_bottom*cellSize+cellSize*j;if(n<right&&m<bottom){velocity.xy+=calcAdd(vec2(n/cellSize,m/cellSize)/levelTextureSize,pointPosition.xy);}}}gl_FragColor=velocity;}`,qk=`#ifdef GL_ES
157
+ precision highp float;
158
+ #define GLSLIFY 1
159
+ #endif
160
+ uniform sampler2D position;uniform sampler2D levelFbo;uniform sampler2D randomValues;uniform float levelTextureSize;uniform float repulsion;uniform float alpha;varying vec2 index;vec2 calcAdd(vec2 ij,vec2 pp){vec2 add=vec2(0.0);vec4 centermass=texture2D(levelFbo,ij);if(centermass.r>0.0&&centermass.g>0.0&&centermass.b>0.0){vec2 centermassPosition=vec2(centermass.rg/centermass.b);vec2 distVector=pp-centermassPosition;float l=dot(distVector,distVector);float dist=sqrt(l);if(l>0.0){float angle=atan(distVector.y,distVector.x);float c=alpha*repulsion*centermass.b;float distanceMin2=1.0;if(l<distanceMin2)l=sqrt(distanceMin2*l);float addV=c/sqrt(l);add=addV*vec2(cos(angle),sin(angle));}}return add;}void main(){vec4 pointPosition=texture2D(position,index);vec4 random=texture2D(randomValues,index);vec4 velocity=vec4(0.0);velocity.xy+=calcAdd(pointPosition.xy/levelTextureSize,pointPosition.xy);velocity.xy+=velocity.xy*random.rg;gl_FragColor=velocity;}`;class Yk extends Af{constructor(){super(...arguments),this.levelsFbos=new Map,this.quadtreeLevels=0}create(){const{reglInstance:e,store:t}=this;if(!t.pointsTextureSize)return;this.quadtreeLevels=Math.log2(t.adjustedSpaceSize);for(let l=0;l<this.quadtreeLevels;l+=1){const s=Math.pow(2,l+1);this.levelsFbos.set(`level[${l}]`,e.framebuffer({shape:[s,s],colorType:"float",depth:!1,stencil:!1}))}const n=new Float32Array(t.pointsTextureSize*t.pointsTextureSize*4);for(let l=0;l<t.pointsTextureSize*t.pointsTextureSize;++l)n[l*4]=t.getRandomFloat(-1,1)*1e-5,n[l*4+1]=t.getRandomFloat(-1,1)*1e-5;this.randomValuesFbo=e.framebuffer({color:e.texture({data:n,shape:[t.pointsTextureSize,t.pointsTextureSize,4],type:"float"}),depth:!1,stencil:!1})}initPrograms(){const{reglInstance:e,config:t,store:n,data:l,points:s}=this;this.clearLevelsCommand=e({frag:fh,vert:No,framebuffer:(c,d)=>d.levelFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)}}),this.calculateLevelsCommand=e({frag:V3,vert:W3,framebuffer:(c,d)=>d.levelFbo,primitive:"points",count:()=>l.nodes.length,attributes:{indexes:Ku(e,n.pointsTextureSize)},uniforms:{position:()=>s?.previousPositionFbo,pointsTextureSize:()=>n.pointsTextureSize,levelTextureSize:(c,d)=>d.levelTextureSize,cellSize:(c,d)=>d.cellSize},blend:{enable:!0,func:{src:"one",dst:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1},stencil:{enable:!1}}),this.forceCommand=e({frag:jk,vert:No,framebuffer:()=>s?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>s?.previousPositionFbo,level:(c,d)=>d.level,levels:this.quadtreeLevels,levelFbo:(c,d)=>d.levelFbo,levelTextureSize:(c,d)=>d.levelTextureSize,alpha:()=>n.alpha,repulsion:()=>{var c;return(c=t.simulation)===null||c===void 0?void 0:c.repulsion},spaceSize:()=>n.adjustedSpaceSize,theta:()=>{var c;return(c=t.simulation)===null||c===void 0?void 0:c.repulsionTheta}},blend:{enable:!0,func:{src:"one",dst:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1},stencil:{enable:!1}}),this.forceFromItsOwnCentermassCommand=e({frag:qk,vert:No,framebuffer:()=>s?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>s?.previousPositionFbo,randomValues:()=>this.randomValuesFbo,levelFbo:(c,d)=>d.levelFbo,levelTextureSize:(c,d)=>d.levelTextureSize,alpha:()=>n.alpha,repulsion:()=>{var c;return(c=t.simulation)===null||c===void 0?void 0:c.repulsion},spaceSize:()=>n.adjustedSpaceSize},blend:{enable:!0,func:{src:"one",dst:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1},stencil:{enable:!1}}),this.clearVelocityCommand=e({frag:fh,vert:No,framebuffer:()=>s?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)}})}run(){var e,t,n,l,s;const{store:c}=this;for(let d=0;d<this.quadtreeLevels;d+=1){(e=this.clearLevelsCommand)===null||e===void 0||e.call(this,{levelFbo:this.levelsFbos.get(`level[${d}]`)});const u=Math.pow(2,d+1),h=c.adjustedSpaceSize/u;(t=this.calculateLevelsCommand)===null||t===void 0||t.call(this,{levelFbo:this.levelsFbos.get(`level[${d}]`),levelTextureSize:u,cellSize:h})}(n=this.clearVelocityCommand)===null||n===void 0||n.call(this);for(let d=0;d<this.quadtreeLevels;d+=1){const u=Math.pow(2,d+1);(l=this.forceCommand)===null||l===void 0||l.call(this,{levelFbo:this.levelsFbos.get(`level[${d}]`),levelTextureSize:u,level:d}),d===this.quadtreeLevels-1&&((s=this.forceFromItsOwnCentermassCommand)===null||s===void 0||s.call(this,{levelFbo:this.levelsFbos.get(`level[${d}]`),levelTextureSize:u,level:d}))}}destroy(){Xl(this.randomValuesFbo),this.levelsFbos.forEach(e=>{Xl(e)}),this.levelsFbos.clear()}}function Xk(i,e){i=Math.min(i,e);const t=e-i,n=`
161
+ float dist = sqrt(l);
162
+ if (dist > 0.0) {
163
+ float c = alpha * repulsion * centermass.b;
164
+ addVelocity += calcAdd(vec2(x, y), l, c);
165
+ addVelocity += addVelocity * random.rg;
166
+ }
167
+ `;function l(s){if(s>=e)return n;{const c=Math.pow(2,s+1),d=new Array(s+1-t).fill(0).map((h,m)=>`pow(2.0, ${s-(m+t)}.0) * i${m+t}`).join("+"),u=new Array(s+1-t).fill(0).map((h,m)=>`pow(2.0, ${s-(m+t)}.0) * j${m+t}`).join("+");return`
168
+ for (float ij${s} = 0.0; ij${s} < 4.0; ij${s} += 1.0) {
169
+ float i${s} = 0.0;
170
+ float j${s} = 0.0;
171
+ if (ij${s} == 1.0 || ij${s} == 3.0) i${s} = 1.0;
172
+ if (ij${s} == 2.0 || ij${s} == 3.0) j${s} = 1.0;
173
+ float i = pow(2.0, ${i}.0) * n / width${s+1} + ${d};
174
+ float j = pow(2.0, ${i}.0) * m / width${s+1} + ${u};
175
+ float groupPosX = (i + 0.5) / ${c}.0;
176
+ float groupPosY = (j + 0.5) / ${c}.0;
177
+
178
+ vec4 centermass = texture2D(level[${s}], vec2(groupPosX, groupPosY));
179
+ if (centermass.r > 0.0 && centermass.g > 0.0 && centermass.b > 0.0) {
180
+ float x = centermass.r / centermass.b - pointPosition.r;
181
+ float y = centermass.g / centermass.b - pointPosition.g;
182
+ float l = x * x + y * y;
183
+ if ((width${s+1} * width${s+1}) / theta < l) {
184
+ ${n}
185
+ } else {
186
+ ${l(s+1)}
187
+ }
188
+ }
189
+ }
190
+ `}}return`
191
+ #ifdef GL_ES
192
+ precision highp float;
193
+ #endif
194
+
195
+ uniform sampler2D position;
196
+ uniform sampler2D randomValues;
197
+ uniform float spaceSize;
198
+ uniform float repulsion;
199
+ uniform float theta;
200
+ uniform float alpha;
201
+ uniform sampler2D level[${e}];
202
+ varying vec2 index;
203
+
204
+ vec2 calcAdd(vec2 xy, float l, float c) {
205
+ float distanceMin2 = 1.0;
206
+ if (l < distanceMin2) l = sqrt(distanceMin2 * l);
207
+ float add = c / l;
208
+ return add * xy;
209
+ }
210
+
211
+ void main() {
212
+ vec4 pointPosition = texture2D(position, index);
213
+ vec4 random = texture2D(randomValues, index);
214
+
215
+ float width0 = spaceSize;
216
+
217
+ vec2 velocity = vec2(0.0);
218
+ vec2 addVelocity = vec2(0.0);
219
+
220
+ ${new Array(e).fill(0).map((s,c)=>`float width${c+1} = width${c} / 2.0;`).join(`
221
+ `)}
222
+
223
+ for (float n = 0.0; n < pow(2.0, ${t}.0); n += 1.0) {
224
+ for (float m = 0.0; m < pow(2.0, ${t}.0); m += 1.0) {
225
+ ${l(t)}
226
+ }
227
+ }
228
+
229
+ velocity -= addVelocity;
230
+
231
+ gl_FragColor = vec4(velocity, 0.0, 0.0);
232
+ }
233
+ `}class Zk extends Af{constructor(){super(...arguments),this.levelsFbos=new Map,this.quadtreeLevels=0}create(){const{reglInstance:e,store:t}=this;if(!t.pointsTextureSize)return;this.quadtreeLevels=Math.log2(t.adjustedSpaceSize);for(let l=0;l<this.quadtreeLevels;l+=1){const s=Math.pow(2,l+1);this.levelsFbos.set(`level[${l}]`,e.framebuffer({color:e.texture({data:new Float32Array(s*s*4),shape:[s,s,4],type:"float"}),depth:!1,stencil:!1}))}const n=new Float32Array(t.pointsTextureSize*t.pointsTextureSize*4);for(let l=0;l<t.pointsTextureSize*t.pointsTextureSize;++l)n[l*4]=t.getRandomFloat(-1,1)*1e-5,n[l*4+1]=t.getRandomFloat(-1,1)*1e-5;this.randomValuesFbo=e.framebuffer({color:e.texture({data:n,shape:[t.pointsTextureSize,t.pointsTextureSize,4],type:"float"}),depth:!1,stencil:!1})}initPrograms(){var e,t;const{reglInstance:n,config:l,store:s,data:c,points:d}=this;this.clearLevelsCommand=n({frag:fh,vert:No,framebuffer:(u,h)=>h.levelFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(n)}}),this.calculateLevelsCommand=n({frag:V3,vert:W3,framebuffer:(u,h)=>h.levelFbo,primitive:"points",count:()=>c.nodes.length,attributes:{indexes:Ku(n,s.pointsTextureSize)},uniforms:{position:()=>d?.previousPositionFbo,pointsTextureSize:()=>s.pointsTextureSize,levelTextureSize:(u,h)=>h.levelTextureSize,cellSize:(u,h)=>h.cellSize},blend:{enable:!0,func:{src:"one",dst:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1},stencil:{enable:!1}}),this.quadtreeCommand=n({frag:Xk((t=(e=l.simulation)===null||e===void 0?void 0:e.repulsionQuadtreeLevels)!==null&&t!==void 0?t:this.quadtreeLevels,this.quadtreeLevels),vert:No,framebuffer:()=>d?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(n)},uniforms:{position:()=>d?.previousPositionFbo,randomValues:()=>this.randomValuesFbo,spaceSize:()=>s.adjustedSpaceSize,repulsion:()=>{var u;return(u=l.simulation)===null||u===void 0?void 0:u.repulsion},theta:()=>{var u;return(u=l.simulation)===null||u===void 0?void 0:u.repulsionTheta},alpha:()=>s.alpha,...Object.fromEntries(this.levelsFbos)}})}run(){var e,t,n;const{store:l}=this;for(let s=0;s<this.quadtreeLevels;s+=1){(e=this.clearLevelsCommand)===null||e===void 0||e.call(this,{levelFbo:this.levelsFbos.get(`level[${s}]`)});const c=Math.pow(2,s+1),d=l.adjustedSpaceSize/c;(t=this.calculateLevelsCommand)===null||t===void 0||t.call(this,{levelFbo:this.levelsFbos.get(`level[${s}]`),levelTextureSize:c,cellSize:d})}(n=this.quadtreeCommand)===null||n===void 0||n.call(this)}destroy(){Xl(this.randomValuesFbo),this.levelsFbos.forEach(e=>{Xl(e)}),this.levelsFbos.clear()}}var Qk=`#ifdef GL_ES
234
+ precision highp float;
235
+ #define GLSLIFY 1
236
+ #endif
237
+ uniform sampler2D position;uniform float repulsion;uniform vec2 mousePos;varying vec2 index;void main(){vec4 pointPosition=texture2D(position,index);vec4 velocity=vec4(0.0);vec2 mouse=mousePos;vec2 distVector=mouse-pointPosition.rg;float dist=sqrt(dot(distVector,distVector));dist=max(dist,10.0);float angle=atan(distVector.y,distVector.x);float addV=100.0*repulsion/(dist*dist);velocity.rg-=addV*vec2(cos(angle),sin(angle));gl_FragColor=velocity;}`;class Kk extends Af{initPrograms(){const{reglInstance:e,config:t,store:n,points:l}=this;this.runCommand=e({frag:Qk,vert:No,framebuffer:()=>l?.velocityFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>l?.previousPositionFbo,mousePos:()=>n.mousePosition,repulsion:()=>{var s;return(s=t.simulation)===null||s===void 0?void 0:s.repulsionFromMouse}}})}run(){var e;(e=this.runCommand)===null||e===void 0||e.call(this)}}var Jk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},j3={exports:{}};(function(i,e){(function(t,n){i.exports=n()})(Jk,function(){var t=`<div class="gl-box">
238
+ <svg viewBox="0 0 55 60">
239
+ <text x="27" y="56" class="gl-fps">00 FPS</text>
240
+ <text x="28" y="8" class="gl-mem"></text>
241
+ <rect x="0" y="14" rx="4" ry="4" width="55" height="32"></rect>
242
+ <polyline class="gl-chart"></polyline>
243
+ </svg>
244
+ <svg viewBox="0 0 14 60" class="gl-cpu-svg">
245
+ <line x1="7" y1="38" x2="7" y2="11" class="opacity"/>
246
+ <line x1="7" y1="38" x2="7" y2="11" class="gl-cpu" stroke-dasharray="0 27"/>
247
+ <path d="M5.35 43c-.464 0-.812.377-.812.812v1.16c-.783.1972-1.421.812-1.595 1.624h-1.16c-.435 0-.812.348-.812.812s.348.812.812.812h1.102v1.653H1.812c-.464 0-.812.377-.812.812 0 .464.377.812.812.812h1.131c.1943.783.812 1.392 1.595 1.595v1.131c0 .464.377.812.812.812.464 0 .812-.377.812-.812V53.15h1.653v1.073c0 .464.377.812.812.812.464 0 .812-.377.812-.812v-1.131c.783-.1943 1.392-.812 1.595-1.595h1.131c.464 0 .812-.377.812-.812 0-.464-.377-.812-.812-.812h-1.073V48.22h1.102c.435 0 .812-.348.812-.812s-.348-.812-.812-.812h-1.16c-.1885-.783-.812-1.421-1.595-1.624v-1.131c0-.464-.377-.812-.812-.812-.464 0-.812.377-.812.812v1.073H6.162v-1.073c0-.464-.377-.812-.812-.812zm.58 3.48h2.088c.754 0 1.363.609 1.363 1.363v2.088c0 .754-.609 1.363-1.363 1.363H5.93c-.754 0-1.363-.609-1.363-1.363v-2.088c0-.754.609-1.363 1.363-1.363z"/>
248
+ </svg>
249
+ <svg viewBox="0 0 14 60" class="gl-gpu-svg">
250
+ <line x1="7" y1="38" x2="7" y2="11" class="opacity"/>
251
+ <line x1="7" y1="38" x2="7" y2="11" class="gl-gpu" stroke-dasharray="0 27"/>
252
+ <path d="M1.94775 43.3772a.736.736 0 10-.00416 1.472c.58535.00231.56465.1288.6348.3197.07015.18975.04933.43585.04933.43585l-.00653.05405v8.671a.736.736 0 101.472 0v-1.4145c.253.09522.52785.1495.81765.1495h5.267c1.2535 0 2.254-.9752 2.254-2.185v-3.105c0-1.2075-1.00625-2.185-2.254-2.185h-5.267c-.28865 0-.5635.05405-.8165.1495.01806-.16445.04209-.598-.1357-1.0787-.22425-.6072-.9499-1.2765-2.0125-1.2765zm2.9095 3.6455c.42435 0 .7659.36225.7659.8119v2.9785c0 .44965-.34155.8119-.7659.8119s-.7659-.36225-.7659-.8119v-2.9785c0-.44965.34155-.8119.7659-.8119zm4.117 0a2.3 2.3 0 012.3 2.3 2.3 2.3 0 01-2.3 2.3 2.3 2.3 0 01-2.3-2.3 2.3 2.3 0 012.3-2.3z"/>
253
+ </svg>
254
+ </div>`,n=`#gl-bench {
255
+ position:absolute;
256
+ left:0;
257
+ top:0;
258
+ z-index:1000;
259
+ -webkit-user-select: none;
260
+ -moz-user-select: none;
261
+ user-select: none;
262
+ }
263
+
264
+ #gl-bench div {
265
+ position: relative;
266
+ display: block;
267
+ margin: 4px;
268
+ padding: 0 7px 0 10px;
269
+ background: #6c6;
270
+ border-radius: 15px;
271
+ cursor: pointer;
272
+ opacity: 0.9;
273
+ }
274
+
275
+ #gl-bench svg {
276
+ height: 60px;
277
+ margin: 0 -1px;
278
+ }
279
+
280
+ #gl-bench text {
281
+ font-size: 12px;
282
+ font-family: Helvetica,Arial,sans-serif;
283
+ font-weight: 700;
284
+ dominant-baseline: middle;
285
+ text-anchor: middle;
286
+ }
287
+
288
+ #gl-bench .gl-mem {
289
+ font-size: 9px;
290
+ }
291
+
292
+ #gl-bench line {
293
+ stroke-width: 5;
294
+ stroke: #112211;
295
+ stroke-linecap: round;
296
+ }
297
+
298
+ #gl-bench polyline {
299
+ fill: none;
300
+ stroke: #112211;
301
+ stroke-linecap: round;
302
+ stroke-linejoin: round;
303
+ stroke-width: 3.5;
304
+ }
305
+
306
+ #gl-bench rect {
307
+ fill: #448844;
308
+ }
309
+
310
+ #gl-bench .opacity {
311
+ stroke: #448844;
312
+ }
313
+ `;class l{constructor(c,d={}){this.css=n,this.svg=t,this.paramLogger=()=>{},this.chartLogger=()=>{},this.chartLen=20,this.chartHz=20,this.names=[],this.cpuAccums=[],this.gpuAccums=[],this.activeAccums=[],this.chart=new Array(this.chartLen),this.now=()=>performance&&performance.now?performance.now():Date.now(),this.updateUI=()=>{[].forEach.call(this.nodes["gl-gpu-svg"],g=>{g.style.display=this.trackGPU?"inline":"none"})},Object.assign(this,d),this.detected=0,this.finished=[],this.isFramebuffer=0,this.frameId=0;let u,h=0,m,b=g=>{++h<20?u=requestAnimationFrame(b):(this.detected=Math.ceil(1e3*h/(g-m)/70),cancelAnimationFrame(u)),m||(m=g)};if(requestAnimationFrame(b),c){const g=async(z,X)=>Promise.resolve(setTimeout(()=>{c.getError();const y=this.now()-z;X.forEach((E,T)=>{E&&(this.gpuAccums[T]+=y)})},0)),_=(z,X,y)=>function(){const E=X.now();z.apply(y,arguments),X.trackGPU&&X.finished.push(g(E,X.activeAccums.slice(0)))};["drawArrays","drawElements","drawArraysInstanced","drawBuffers","drawElementsInstanced","drawRangeElements"].forEach(z=>{c[z]&&(c[z]=_(c[z],this,c))}),c.getExtension=((z,X)=>function(){let y=z.apply(c,arguments);return y&&["drawElementsInstancedANGLE","drawBuffersWEBGL"].forEach(E=>{y[E]&&(y[E]=_(y[E],X,y))}),y})(c.getExtension,this)}if(!this.withoutUI){this.dom||(this.dom=document.body);let g=document.createElement("div");g.id="gl-bench",this.dom.appendChild(g),this.dom.insertAdjacentHTML("afterbegin",'<style id="gl-bench-style">'+this.css+"</style>"),this.dom=g,this.dom.addEventListener("click",()=>{this.trackGPU=!this.trackGPU,this.updateUI()}),this.paramLogger=((_,z,X)=>{const y=["gl-cpu","gl-gpu","gl-mem","gl-fps","gl-gpu-svg","gl-chart"],E=Object.assign({},y);return y.forEach(T=>E[T]=z.getElementsByClassName(T)),this.nodes=E,(T,w,I,K,U,Y,J)=>{E["gl-cpu"][T].style.strokeDasharray=(w*.27).toFixed(0)+" 100",E["gl-gpu"][T].style.strokeDasharray=(I*.27).toFixed(0)+" 100",E["gl-mem"][T].innerHTML=X[T]?X[T]:K?"mem: "+K.toFixed(0)+"mb":"",E["gl-fps"][T].innerHTML=U.toFixed(0)+" FPS",_(X[T],w,I,K,U,Y,J)}})(this.paramLogger,this.dom,this.names),this.chartLogger=((_,z)=>{let X={"gl-chart":z.getElementsByClassName("gl-chart")};return(y,E,T)=>{let w="",I=E.length;for(let K=0;K<I;K++){let U=(T+K+1)%I;E[U]!=null&&(w=w+" "+(55*K/(I-1)).toFixed(1)+","+(45-E[U]*22/60/this.detected).toFixed(1))}X["gl-chart"][y].setAttribute("points",w),_(this.names[y],E,T)}})(this.chartLogger,this.dom)}}addUI(c){this.names.indexOf(c)==-1&&(this.names.push(c),this.dom&&(this.dom.insertAdjacentHTML("beforeend",this.svg),this.updateUI()),this.cpuAccums.push(0),this.gpuAccums.push(0),this.activeAccums.push(!1))}nextFrame(c){this.frameId++;const d=c||this.now();if(this.frameId<=1)this.paramFrame=this.frameId,this.paramTime=d;else{let u=d-this.paramTime;if(u>=1e3){const h=this.frameId-this.paramFrame,m=h/u*1e3;for(let b=0;b<this.names.length;b++){const g=this.cpuAccums[b]/u*100,_=this.gpuAccums[b]/u*100,z=performance&&performance.memory?performance.memory.usedJSHeapSize/(1<<20):0;this.paramLogger(b,g,_,z,m,u,h),this.cpuAccums[b]=0,Promise.all(this.finished).then(()=>{this.gpuAccums[b]=0,this.finished=[]})}this.paramFrame=this.frameId,this.paramTime=d}}if(!this.detected||!this.chartFrame)this.chartFrame=this.frameId,this.chartTime=d,this.circularId=0;else{let u=d-this.chartTime,h=this.chartHz*u/1e3;for(;--h>0&&this.detected;){const b=(this.frameId-this.chartFrame)/u*1e3;this.chart[this.circularId%this.chartLen]=b;for(let g=0;g<this.names.length;g++)this.chartLogger(g,this.chart,this.circularId);this.circularId++,this.chartFrame=this.frameId,this.chartTime=d}}}begin(c){this.updateAccums(c)}end(c){this.updateAccums(c)}updateAccums(c){let d=this.names.indexOf(c);d==-1&&(d=this.names.length,this.addUI(c));const u=this.now(),h=u-this.t0;for(let m=0;m<d+1;m++)this.activeAccums[m]&&(this.cpuAccums[m]+=h);this.activeAccums[d]=!this.activeAccums[d],this.t0=u}}return l})})(j3);var eC=j3.exports;const tC=`
314
+ #gl-bench {
315
+ position:absolute;
316
+ right:0;
317
+ top:0;
318
+ z-index:1000;
319
+ -webkit-user-select: none;
320
+ -moz-user-select: none;
321
+ user-select: none;
322
+ }
323
+ #gl-bench div {
324
+ position: relative;
325
+ display: block;
326
+ margin: 4px;
327
+ padding: 0 7px 0 10px;
328
+ background: #5f69de;
329
+ border-radius: 15px;
330
+ cursor: pointer;
331
+ opacity: 0.9;
332
+ }
333
+ #gl-bench svg {
334
+ height: 60px;
335
+ margin: 0 -1px;
336
+ }
337
+ #gl-bench text {
338
+ font-size: 12px;
339
+ font-family: Helvetica,Arial,sans-serif;
340
+ font-weight: 700;
341
+ dominant-baseline: middle;
342
+ text-anchor: middle;
343
+ }
344
+ #gl-bench .gl-mem {
345
+ font-size: 9px;
346
+ }
347
+ #gl-bench line {
348
+ stroke-width: 5;
349
+ stroke: #112211;
350
+ stroke-linecap: round;
351
+ }
352
+ #gl-bench polyline {
353
+ fill: none;
354
+ stroke: #112211;
355
+ stroke-linecap: round;
356
+ stroke-linejoin: round;
357
+ stroke-width: 3.5;
358
+ }
359
+ #gl-bench rect {
360
+ fill: #8288e4;
361
+ }
362
+ #gl-bench .opacity {
363
+ stroke: #8288e4;
364
+ }
365
+ `;class Yy{constructor(e){this.destroy();const t=e.getContext("webgl")||e.getContext("experimental-webgl");this.bench=new eC(t,{css:tC})}begin(){var e;(e=this.bench)===null||e===void 0||e.begin("frame")}end(e){var t,n;(t=this.bench)===null||t===void 0||t.end("frame"),(n=this.bench)===null||n===void 0||n.nextFrame(e)}destroy(){this.bench=void 0,Ma("#gl-bench").remove()}}class iC{constructor(){this.completeLinks=new Set,this.degree=[],this.groupedSourceToTargetLinks=new Map,this.groupedTargetToSourceLinks=new Map,this._nodes=[],this._links=[],this.idToNodeMap=new Map,this.sortedIndexToInputIndexMap=new Map,this.inputIndexToSortedIndexMap=new Map,this.idToSortedIndexMap=new Map,this.inputIndexToIdMap=new Map,this.idToIndegreeMap=new Map,this.idToOutdegreeMap=new Map}get nodes(){return this._nodes}get links(){return this._links}get linksNumber(){return this.completeLinks.size}setData(e,t){this.idToNodeMap.clear(),this.idToSortedIndexMap.clear(),this.inputIndexToIdMap.clear(),this.idToIndegreeMap.clear(),this.idToOutdegreeMap.clear(),e.forEach((l,s)=>{this.idToNodeMap.set(l.id,l),this.inputIndexToIdMap.set(s,l.id),this.idToIndegreeMap.set(l.id,0),this.idToOutdegreeMap.set(l.id,0)}),this.completeLinks.clear(),t.forEach(l=>{const s=this.idToNodeMap.get(l.source),c=this.idToNodeMap.get(l.target);if(s!==void 0&&c!==void 0){this.completeLinks.add(l);const d=this.idToOutdegreeMap.get(s.id);d!==void 0&&this.idToOutdegreeMap.set(s.id,d+1);const u=this.idToIndegreeMap.get(c.id);u!==void 0&&this.idToIndegreeMap.set(c.id,u+1)}}),this.degree=new Array(e.length),e.forEach((l,s)=>{const c=this.idToOutdegreeMap.get(l.id),d=this.idToIndegreeMap.get(l.id);this.degree[s]=(c??0)+(d??0)}),this.sortedIndexToInputIndexMap.clear(),this.inputIndexToSortedIndexMap.clear(),Object.entries(this.degree).sort((l,s)=>l[1]-s[1]).forEach(([l],s)=>{const c=+l;this.sortedIndexToInputIndexMap.set(s,c),this.inputIndexToSortedIndexMap.set(c,s),this.idToSortedIndexMap.set(this.inputIndexToIdMap.get(c),s)}),this.groupedSourceToTargetLinks.clear(),this.groupedTargetToSourceLinks.clear(),t.forEach(l=>{const s=this.idToSortedIndexMap.get(l.source),c=this.idToSortedIndexMap.get(l.target);if(s!==void 0&&c!==void 0){this.groupedSourceToTargetLinks.get(s)===void 0&&this.groupedSourceToTargetLinks.set(s,new Set);const d=this.groupedSourceToTargetLinks.get(s);d?.add(c),this.groupedTargetToSourceLinks.get(c)===void 0&&this.groupedTargetToSourceLinks.set(c,new Set);const u=this.groupedTargetToSourceLinks.get(c);u?.add(s)}}),this._nodes=e,this._links=t}getNodeById(e){return this.idToNodeMap.get(e)}getNodeByIndex(e){return this._nodes[e]}getSortedIndexByInputIndex(e){return this.inputIndexToSortedIndexMap.get(e)}getInputIndexBySortedIndex(e){return this.sortedIndexToInputIndexMap.get(e)}getSortedIndexById(e){return e!==void 0?this.idToSortedIndexMap.get(e):void 0}getInputIndexById(e){if(e===void 0)return;const t=this.getSortedIndexById(e);if(t!==void 0)return this.getInputIndexBySortedIndex(t)}getAdjacentNodes(e){var t,n;const l=this.getSortedIndexById(e);if(l===void 0)return;const s=(t=this.groupedSourceToTargetLinks.get(l))!==null&&t!==void 0?t:[],c=(n=this.groupedTargetToSourceLinks.get(l))!==null&&n!==void 0?n:[];return[...new Set([...s,...c])].map(d=>this.getNodeByIndex(this.getInputIndexBySortedIndex(d)))}}var nC=`precision highp float;
366
+ #define GLSLIFY 1
367
+ varying vec4 rgbaColor;varying vec2 pos;varying float arrowLength;varying float linkWidthArrowWidthRatio;varying float smoothWidthRatio;varying float useArrow;float map(float value,float min1,float max1,float min2,float max2){return min2+(value-min1)*(max2-min2)/(max1-min1);}void main(){float opacity=1.0;vec3 color=rgbaColor.rgb;float smoothDelta=smoothWidthRatio/2.0;if(useArrow>0.5){float end_arrow=0.5+arrowLength/2.0;float start_arrow=end_arrow-arrowLength;float arrowWidthDelta=linkWidthArrowWidthRatio/2.0;float linkOpacity=rgbaColor.a*smoothstep(0.5-arrowWidthDelta,0.5-arrowWidthDelta-smoothDelta,abs(pos.y));float arrowOpacity=1.0;if(pos.x>start_arrow&&pos.x<start_arrow+arrowLength){float xmapped=map(pos.x,start_arrow,end_arrow,0.0,1.0);arrowOpacity=rgbaColor.a*smoothstep(xmapped-smoothDelta,xmapped,map(abs(pos.y),0.5,0.0,0.0,1.0));if(linkOpacity!=arrowOpacity){linkOpacity+=arrowOpacity;}}opacity=linkOpacity;}else opacity=rgbaColor.a*smoothstep(0.5,0.5-smoothDelta,abs(pos.y));gl_FragColor=vec4(color,opacity);}`,rC=`precision highp float;
368
+ #define GLSLIFY 1
369
+ attribute vec2 position,pointA,pointB;attribute vec4 color;attribute float width;attribute float arrow;uniform sampler2D positions;uniform sampler2D particleGreyoutStatus;uniform mat3 transform;uniform float pointsTextureSize;uniform float widthScale;uniform float nodeSizeScale;uniform float arrowSizeScale;uniform float spaceSize;uniform vec2 screenSize;uniform float ratio;uniform vec2 linkVisibilityDistanceRange;uniform float linkVisibilityMinTransparency;uniform float greyoutOpacity;uniform bool scaleNodesOnZoom;uniform float curvedWeight;uniform float curvedLinkControlPointDistance;uniform float curvedLinkSegments;varying vec4 rgbaColor;varying vec2 pos;varying float arrowLength;varying float linkWidthArrowWidthRatio;varying float smoothWidthRatio;varying float useArrow;float map(float value,float min1,float max1,float min2,float max2){return min2+(value-min1)*(max2-min2)/(max1-min1);}vec2 conicParametricCurve(vec2 A,vec2 B,vec2 ControlPoint,float t,float w){vec2 divident=(1.0-t)*(1.0-t)*A+2.0*(1.0-t)*t*w*ControlPoint+t*t*B;float divisor=(1.0-t)*(1.0-t)+2.0*(1.0-t)*t*w+t*t;return divident/divisor;}void main(){pos=position;vec2 pointTexturePosA=(pointA+0.5)/pointsTextureSize;vec2 pointTexturePosB=(pointB+0.5)/pointsTextureSize;vec4 greyoutStatusA=texture2D(particleGreyoutStatus,pointTexturePosA);vec4 greyoutStatusB=texture2D(particleGreyoutStatus,pointTexturePosB);vec4 pointPositionA=texture2D(positions,pointTexturePosA);vec4 pointPositionB=texture2D(positions,pointTexturePosB);vec2 a=pointPositionA.xy;vec2 b=pointPositionB.xy;vec2 xBasis=b-a;vec2 yBasis=normalize(vec2(-xBasis.y,xBasis.x));float linkDist=length(xBasis);float h=curvedLinkControlPointDistance;vec2 controlPoint=(a+b)/2.0+yBasis*linkDist*h;float linkDistPx=linkDist*transform[0][0];float linkWidth=width*widthScale;float k=2.0;float arrowWidth=max(5.0,linkWidth*k);arrowWidth*=arrowSizeScale;float arrowWidthPx=arrowWidth/transform[0][0];arrowLength=min(0.3,(0.866*arrowWidthPx*2.0)/linkDist);float smoothWidth=2.0;float arrowExtraWidth=arrowWidth-linkWidth;linkWidth+=smoothWidth/2.0;useArrow=arrow;if(useArrow>0.5){linkWidth+=arrowExtraWidth;}smoothWidthRatio=smoothWidth/linkWidth;linkWidthArrowWidthRatio=arrowExtraWidth/linkWidth;float linkWidthPx=linkWidth/transform[0][0];vec3 rgbColor=color.rgb;float opacity=color.a*max(linkVisibilityMinTransparency,map(linkDistPx,linkVisibilityDistanceRange.g,linkVisibilityDistanceRange.r,0.0,1.0));if(greyoutStatusA.r>0.0||greyoutStatusB.r>0.0){opacity*=greyoutOpacity;}rgbaColor=vec4(rgbColor,opacity);float t=position.x;float w=curvedWeight;float tPrev=t-1.0/curvedLinkSegments;float tNext=t+1.0/curvedLinkSegments;vec2 pointCurr=conicParametricCurve(a,b,controlPoint,t,w);vec2 pointPrev=conicParametricCurve(a,b,controlPoint,max(0.0,tPrev),w);vec2 pointNext=conicParametricCurve(a,b,controlPoint,min(tNext,1.0),w);vec2 xBasisCurved=pointNext-pointPrev;vec2 yBasisCurved=normalize(vec2(-xBasisCurved.y,xBasisCurved.x));pointCurr+=yBasisCurved*linkWidthPx*position.y;vec2 p=2.0*pointCurr/spaceSize-1.0;p*=spaceSize/screenSize;vec3 final=transform*vec3(p,1);gl_Position=vec4(final.rg,0,1);}`;const aC=i=>{const e=O3().exponent(2).range([0,1]).domain([-1,1]),t=wg(0,i).map(l=>-.5+l/i);t.push(.5);const n=new Array(t.length*2);return t.forEach((l,s)=>{n[s*2]=[e(l*2),.5],n[s*2+1]=[e(l*2),-.5]}),n};class lC extends Af{create(){this.updateColor(),this.updateWidth(),this.updateArrow(),this.updateCurveLineGeometry()}initPrograms(){const{reglInstance:e,config:t,store:n,data:l,points:s}=this,{pointsTextureSize:c}=n,d=[];l.completeLinks.forEach(h=>{const m=l.getSortedIndexById(h.target),b=l.getSortedIndexById(h.source),g=b%c,_=Math.floor(b/c),z=m%c,X=Math.floor(m/c);d.push([g,_]),d.push([z,X])});const u=e.buffer(d);this.drawCurveCommand=e({vert:rC,frag:nC,attributes:{position:{buffer:()=>this.curveLineBuffer,divisor:0},pointA:{buffer:()=>u,divisor:1,offset:Float32Array.BYTES_PER_ELEMENT*0,stride:Float32Array.BYTES_PER_ELEMENT*4},pointB:{buffer:()=>u,divisor:1,offset:Float32Array.BYTES_PER_ELEMENT*2,stride:Float32Array.BYTES_PER_ELEMENT*4},color:{buffer:()=>this.colorBuffer,divisor:1,offset:Float32Array.BYTES_PER_ELEMENT*0,stride:Float32Array.BYTES_PER_ELEMENT*4},width:{buffer:()=>this.widthBuffer,divisor:1,offset:Float32Array.BYTES_PER_ELEMENT*0,stride:Float32Array.BYTES_PER_ELEMENT*1},arrow:{buffer:()=>this.arrowBuffer,divisor:1,offset:Float32Array.BYTES_PER_ELEMENT*0,stride:Float32Array.BYTES_PER_ELEMENT*1}},uniforms:{positions:()=>s?.currentPositionFbo,particleGreyoutStatus:()=>s?.greyoutStatusFbo,transform:()=>n.transform,pointsTextureSize:()=>n.pointsTextureSize,nodeSizeScale:()=>t.nodeSizeScale,widthScale:()=>t.linkWidthScale,arrowSizeScale:()=>t.linkArrowsSizeScale,spaceSize:()=>n.adjustedSpaceSize,screenSize:()=>n.screenSize,ratio:()=>t.pixelRatio,linkVisibilityDistanceRange:()=>t.linkVisibilityDistanceRange,linkVisibilityMinTransparency:()=>t.linkVisibilityMinTransparency,greyoutOpacity:()=>t.linkGreyoutOpacity,scaleNodesOnZoom:()=>t.scaleNodesOnZoom,curvedWeight:()=>t.curvedLinkWeight,curvedLinkControlPointDistance:()=>t.curvedLinkControlPointDistance,curvedLinkSegments:()=>{var h;return t.curvedLinks?(h=t.curvedLinkSegments)!==null&&h!==void 0?h:Tr.curvedLinkSegments:1}},cull:{enable:!0,face:"back"},blend:{enable:!0,func:{dstRGB:"one minus src alpha",srcRGB:"src alpha",dstAlpha:"one minus src alpha",srcAlpha:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1},count:()=>{var h,m;return(m=(h=this.curveLineGeometry)===null||h===void 0?void 0:h.length)!==null&&m!==void 0?m:0},instances:()=>l.linksNumber,primitive:"triangle strip"})}draw(){var e;!this.colorBuffer||!this.widthBuffer||!this.curveLineBuffer||(e=this.drawCurveCommand)===null||e===void 0||e.call(this)}updateColor(){const{reglInstance:e,config:t,data:n}=this,l=[];n.completeLinks.forEach(s=>{var c;const d=(c=pm(s,t.linkColor))!==null&&c!==void 0?c:H3,u=dh(d);l.push(u)}),this.colorBuffer=e.buffer(l)}updateWidth(){const{reglInstance:e,config:t,data:n}=this,l=[];n.completeLinks.forEach(s=>{const c=pm(s,t.linkWidth);l.push([c??P3])}),this.widthBuffer=e.buffer(l)}updateArrow(){const{reglInstance:e,config:t,data:n}=this,l=[];n.completeLinks.forEach(s=>{var c;const d=(c=pm(s,t.linkArrows))!==null&&c!==void 0?c:Tr.arrowLinks;l.push([d?1:0])}),this.arrowBuffer=e.buffer(l)}updateCurveLineGeometry(){const{reglInstance:e,config:{curvedLinks:t,curvedLinkSegments:n}}=this;this.curveLineGeometry=aC(t?n??Tr.curvedLinkSegments:1),this.curveLineBuffer=e.buffer(this.curveLineGeometry)}destroy(){Ap(this.colorBuffer),Ap(this.widthBuffer),Ap(this.arrowBuffer),Ap(this.curveLineBuffer)}}function sC(i,e,t,n){var l;if(t===0)return;const s=new Float32Array(t*t*4);for(let d=0;d<i.nodes.length;++d){const u=i.getSortedIndexByInputIndex(d),h=i.nodes[d];if(h&&u!==void 0){const m=(l=pm(h,n,d))!==null&&l!==void 0?l:$3,b=dh(m);s[u*4+0]=b[0],s[u*4+1]=b[1],s[u*4+2]=b[2],s[u*4+3]=b[3]}}const c=e.texture({data:s,width:t,height:t,type:"float"});return e.framebuffer({color:c,depth:!1,stencil:!1})}function oC(i,e,t){if(t===0)return;const n=new Float32Array(t*t*4).fill(i?1:0);if(i)for(const s of i)n[s*4]=0;const l=e.texture({data:n,width:t,height:t,type:"float"});return e.framebuffer({color:l,depth:!1,stencil:!1})}var cC=`#ifdef GL_ES
370
+ precision highp float;
371
+ #define GLSLIFY 1
372
+ #endif
373
+ varying vec2 index;varying vec3 rgbColor;varying float alpha;const float smoothing=0.9;void main(){if(alpha==0.0){discard;}float r=0.0;float delta=0.0;vec2 cxy=2.0*gl_PointCoord-1.0;r=dot(cxy,cxy);float opacity=alpha*(1.0-smoothstep(smoothing,1.0,r));gl_FragColor=vec4(rgbColor,opacity);}`,dC=`#ifdef GL_ES
374
+ precision highp float;
375
+ #define GLSLIFY 1
376
+ #endif
377
+ attribute vec2 indexes;uniform sampler2D positions;uniform sampler2D particleColor;uniform sampler2D particleGreyoutStatus;uniform sampler2D particleSize;uniform float ratio;uniform mat3 transform;uniform float pointsTextureSize;uniform float sizeScale;uniform float spaceSize;uniform vec2 screenSize;uniform float greyoutOpacity;uniform bool scaleNodesOnZoom;uniform float maxPointSize;varying vec2 index;varying vec3 rgbColor;varying float alpha;float pointSize(float size){float pSize;if(scaleNodesOnZoom){pSize=size*ratio*transform[0][0];}else{pSize=size*ratio*min(5.0,max(1.0,transform[0][0]*0.01));}return min(pSize,maxPointSize*ratio);}void main(){index=indexes;vec4 pointPosition=texture2D(positions,(index+0.5)/pointsTextureSize);vec2 point=pointPosition.rg;vec2 p=2.0*point/spaceSize-1.0;p*=spaceSize/screenSize;vec3 final=transform*vec3(p,1);gl_Position=vec4(final.rg,0,1);vec4 pSize=texture2D(particleSize,(index+0.5)/pointsTextureSize);float size=pSize.r*sizeScale;vec4 pColor=texture2D(particleColor,(index+0.5)/pointsTextureSize);rgbColor=pColor.rgb;gl_PointSize=pointSize(size);alpha=pColor.a;vec4 greyoutStatus=texture2D(particleGreyoutStatus,(index+0.5)/pointsTextureSize);if(greyoutStatus.r>0.0){alpha*=greyoutOpacity;}}`,fC=`#ifdef GL_ES
378
+ precision highp float;
379
+ #define GLSLIFY 1
380
+ #endif
381
+ uniform sampler2D position;uniform sampler2D particleSize;uniform float sizeScale;uniform float spaceSize;uniform vec2 screenSize;uniform float ratio;uniform mat3 transform;uniform vec2 selection[2];uniform bool scaleNodesOnZoom;uniform float maxPointSize;varying vec2 index;float pointSize(float size){float pSize;if(scaleNodesOnZoom){pSize=size*ratio*transform[0][0];}else{pSize=size*ratio*min(5.0,max(1.0,transform[0][0]*0.01));}return min(pSize,maxPointSize*ratio);}void main(){vec4 pointPosition=texture2D(position,index);vec2 p=2.0*pointPosition.rg/spaceSize-1.0;p*=spaceSize/screenSize;vec3 final=transform*vec3(p,1);vec4 pSize=texture2D(particleSize,index);float size=pSize.r*sizeScale;float left=2.0*(selection[0].x-0.5*pointSize(size))/screenSize.x-1.0;float right=2.0*(selection[1].x+0.5*pointSize(size))/screenSize.x-1.0;float top=2.0*(selection[0].y-0.5*pointSize(size))/screenSize.y-1.0;float bottom=2.0*(selection[1].y+0.5*pointSize(size))/screenSize.y-1.0;gl_FragColor=vec4(0.0,0.0,pointPosition.rg);if(final.x>=left&&final.x<=right&&final.y>=top&&final.y<=bottom){gl_FragColor.r=1.0;}}`,uC=`precision mediump float;
382
+ #define GLSLIFY 1
383
+ uniform vec4 color;uniform float width;varying vec2 pos;varying float particleOpacity;const float smoothing=1.05;void main(){vec2 cxy=pos;float r=dot(cxy,cxy);float opacity=smoothstep(r,r*smoothing,1.0);float stroke=smoothstep(width,width*smoothing,r);gl_FragColor=vec4(color.rgb,opacity*stroke*color.a*particleOpacity);}`,hC=`precision mediump float;
384
+ #define GLSLIFY 1
385
+ attribute vec2 quad;uniform sampler2D positions;uniform sampler2D particleColor;uniform sampler2D particleGreyoutStatus;uniform sampler2D particleSize;uniform mat3 transform;uniform float pointsTextureSize;uniform float sizeScale;uniform float spaceSize;uniform vec2 screenSize;uniform bool scaleNodesOnZoom;uniform float pointIndex;uniform float maxPointSize;uniform vec4 color;uniform float greyoutOpacity;varying vec2 pos;varying float particleOpacity;float pointSize(float size){float pSize;if(scaleNodesOnZoom){pSize=size*transform[0][0];}else{pSize=size*min(5.0,max(1.0,transform[0][0]*0.01));}return min(pSize,maxPointSize);}const float relativeRingRadius=1.3;void main(){pos=quad;vec2 ij=vec2(mod(pointIndex,pointsTextureSize),floor(pointIndex/pointsTextureSize))+0.5;vec4 pointPosition=texture2D(positions,ij/pointsTextureSize);vec4 pSize=texture2D(particleSize,ij/pointsTextureSize);vec4 pColor=texture2D(particleColor,ij/pointsTextureSize);particleOpacity=pColor.a;vec4 greyoutStatus=texture2D(particleGreyoutStatus,ij/pointsTextureSize);if(greyoutStatus.r>0.0){particleOpacity*=greyoutOpacity;}float size=(pointSize(pSize.r*sizeScale)*relativeRingRadius)/transform[0][0];float radius=size*0.5;vec2 a=pointPosition.xy;vec2 b=pointPosition.xy+vec2(0.0,radius);vec2 xBasis=b-a;vec2 yBasis=normalize(vec2(-xBasis.y,xBasis.x));vec2 point=a+xBasis*quad.x+yBasis*radius*quad.y;vec2 p=2.0*point/spaceSize-1.0;p*=spaceSize/screenSize;vec3 final=transform*vec3(p,1);gl_Position=vec4(final.rg,0,1);}`,mC=`#ifdef GL_ES
386
+ precision highp float;
387
+ #define GLSLIFY 1
388
+ #endif
389
+ varying vec4 rgba;void main(){gl_FragColor=rgba;}`,pC=`#ifdef GL_ES
390
+ precision highp float;
391
+ #define GLSLIFY 1
392
+ #endif
393
+ uniform sampler2D position;uniform float pointsTextureSize;uniform sampler2D particleSize;uniform float sizeScale;uniform float spaceSize;uniform vec2 screenSize;uniform float ratio;uniform mat3 transform;uniform vec2 mousePosition;uniform bool scaleNodesOnZoom;uniform float maxPointSize;attribute vec2 indexes;varying vec4 rgba;float pointSize(float size){float pSize;if(scaleNodesOnZoom){pSize=size*ratio*transform[0][0];}else{pSize=size*ratio*min(5.0,max(1.0,transform[0][0]*0.01));}return min(pSize,maxPointSize*ratio);}float euclideanDistance(float x1,float x2,float y1,float y2){return sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));}void main(){vec4 pointPosition=texture2D(position,(indexes+0.5)/pointsTextureSize);vec2 p=2.0*pointPosition.rg/spaceSize-1.0;p*=spaceSize/screenSize;vec3 final=transform*vec3(p,1);vec4 pSize=texture2D(particleSize,indexes/pointsTextureSize);float size=pSize.r*sizeScale;float pointRadius=0.5*pointSize(size);vec2 pointScreenPosition=(final.xy+1.0)*screenSize/2.0;rgba=vec4(0.0);gl_Position=vec4(0.5,0.5,0.0,1.0);if(euclideanDistance(pointScreenPosition.x,mousePosition.x,pointScreenPosition.y,mousePosition.y)<pointRadius/ratio){float index=indexes.g*pointsTextureSize+indexes.r;rgba=vec4(index,pSize.r,pointPosition.xy);gl_Position=vec4(-0.5,-0.5,0.0,1.0);}gl_PointSize=1.0;}`,bC=`#ifdef GL_ES
394
+ precision highp float;
395
+ #define GLSLIFY 1
396
+ #endif
397
+ varying vec4 rgba;void main(){gl_FragColor=rgba;}`,gC=`#ifdef GL_ES
398
+ precision highp float;
399
+ #define GLSLIFY 1
400
+ #endif
401
+ uniform sampler2D position;uniform float pointsTextureSize;uniform float spaceSize;uniform vec2 screenSize;uniform mat3 transform;attribute vec2 indexes;varying vec4 rgba;void main(){vec4 pointPosition=texture2D(position,(indexes+0.5)/pointsTextureSize);vec2 p=2.0*pointPosition.rg/spaceSize-1.0;p*=spaceSize/screenSize;vec3 final=transform*vec3(p,1);vec2 pointScreenPosition=(final.xy+1.0)*screenSize/2.0;float index=indexes.g*pointsTextureSize+indexes.r;rgba=vec4(index,1.0,pointPosition.xy);float i=(pointScreenPosition.x+0.5)/screenSize.x;float j=(pointScreenPosition.y+0.5)/screenSize.y;gl_Position=vec4(2.0*vec2(i,j)-1.0,0.0,1.0);gl_PointSize=1.0;}`;function _C(i,e,t){const n=pm(i,e,t);return n??B3}function yC(i,e,t,n,l){if(t===0)return;const s=i.nodes.length,c=new Float32Array(t*t*4);for(let u=0;u<s;++u){const h=i.getSortedIndexByInputIndex(u),m=i.nodes[u];if(m&&h!==void 0){const b=_C(m,n,u);c[h*4]=b,l[u]=b}}const d=e.texture({data:c,width:t,height:t,type:"float"});return e.framebuffer({color:d,depth:!1,stencil:!1})}var vC=`#ifdef GL_ES
402
+ precision highp float;
403
+ #define GLSLIFY 1
404
+ #endif
405
+ uniform sampler2D position;uniform sampler2D velocity;uniform float friction;uniform float spaceSize;varying vec2 index;void main(){vec4 pointPosition=texture2D(position,index);vec4 pointVelocity=texture2D(velocity,index);pointVelocity.rg*=friction;pointPosition.rg+=pointVelocity.rg;pointPosition.r=clamp(pointPosition.r,0.0,spaceSize);pointPosition.g=clamp(pointPosition.g,0.0,spaceSize);gl_FragColor=pointPosition;}`;function xC(i,e){const t=Math.ceil(Math.sqrt(i.length));return e.framebuffer({shape:[t,t],depth:!1,stencil:!1,colorType:"float"})}function wC(i,e,t){const n=Math.ceil(Math.sqrt(i.length));if(n===0)return;const l=new Float32Array(n*n*4).fill(-1);for(const[c,d]of i.entries())d!==void 0&&(l[c*4]=d%e,l[c*4+1]=Math.floor(d/e),l[c*4+2]=0,l[c*4+3]=0);const s=t.texture({data:l,width:n,height:n,type:"float"});return t.framebuffer({color:s,depth:!1,stencil:!1})}var SC=`#ifdef GL_ES
406
+ precision highp float;
407
+ #define GLSLIFY 1
408
+ #endif
409
+ uniform sampler2D position;uniform sampler2D trackedIndices;uniform float pointsTextureSize;varying vec2 index;void main(){vec4 trackedPointIndicies=texture2D(trackedIndices,index);if(trackedPointIndicies.r<0.0)discard;vec4 pointPosition=texture2D(position,(trackedPointIndicies.rg+0.5)/pointsTextureSize);gl_FragColor=vec4(pointPosition.rg,1.0,1.0);}`;class AC extends Af{constructor(){super(...arguments),this.trackedPositionsById=new Map}create(){var e,t;const{reglInstance:n,store:l,data:s,config:c}=this,{pointsTextureSize:d,adjustedSpaceSize:u}=l;if(!d)return;const h=s.nodes.length,m=new Float32Array(d*d*4);c.disableSimulation||this.rescaleInitialNodePositions();for(let b=0;b<h;++b){const g=this.data.getSortedIndexByInputIndex(b),_=s.nodes[b];_&&g!==void 0&&(m[g*4+0]=(e=_.x)!==null&&e!==void 0?e:u*l.getRandomFloat(.495,.505),m[g*4+1]=(t=_.y)!==null&&t!==void 0?t:u*l.getRandomFloat(.495,.505))}this.currentPositionFbo=n.framebuffer({color:n.texture({data:m,shape:[d,d,4],type:"float"}),depth:!1,stencil:!1}),this.config.disableSimulation||(this.previousPositionFbo=n.framebuffer({color:n.texture({data:m,shape:[d,d,4],type:"float"}),depth:!1,stencil:!1}),this.velocityFbo=n.framebuffer({color:n.texture({data:new Float32Array(d*d*4).fill(0),shape:[d,d,4],type:"float"}),depth:!1,stencil:!1})),this.selectedFbo=n.framebuffer({color:n.texture({data:m,shape:[d,d,4],type:"float"}),depth:!1,stencil:!1}),this.hoveredFbo=n.framebuffer({shape:[2,2],colorType:"float",depth:!1,stencil:!1}),this.updateSize(),this.updateColor(),this.updateGreyoutStatus(),this.updateSampledNodesGrid()}initPrograms(){const{reglInstance:e,config:t,store:n,data:l}=this;t.disableSimulation||(this.updatePositionCommand=e({frag:vC,vert:No,framebuffer:()=>this.currentPositionFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>this.previousPositionFbo,velocity:()=>this.velocityFbo,friction:()=>{var s;return(s=t.simulation)===null||s===void 0?void 0:s.friction},spaceSize:()=>n.adjustedSpaceSize}})),this.drawCommand=e({frag:cC,vert:dC,primitive:"points",count:()=>l.nodes.length,attributes:{indexes:Ku(e,n.pointsTextureSize)},uniforms:{positions:()=>this.currentPositionFbo,particleColor:()=>this.colorFbo,particleGreyoutStatus:()=>this.greyoutStatusFbo,particleSize:()=>this.sizeFbo,ratio:()=>t.pixelRatio,sizeScale:()=>t.nodeSizeScale,pointsTextureSize:()=>n.pointsTextureSize,transform:()=>n.transform,spaceSize:()=>n.adjustedSpaceSize,screenSize:()=>n.screenSize,greyoutOpacity:()=>t.nodeGreyoutOpacity,scaleNodesOnZoom:()=>t.scaleNodesOnZoom,maxPointSize:()=>n.maxPointSize},blend:{enable:!0,func:{dstRGB:"one minus src alpha",srcRGB:"src alpha",dstAlpha:"one minus src alpha",srcAlpha:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1}}),this.findPointsOnAreaSelectionCommand=e({frag:fC,vert:No,framebuffer:()=>this.selectedFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>this.currentPositionFbo,particleSize:()=>this.sizeFbo,spaceSize:()=>n.adjustedSpaceSize,screenSize:()=>n.screenSize,sizeScale:()=>t.nodeSizeScale,transform:()=>n.transform,ratio:()=>t.pixelRatio,"selection[0]":()=>n.selectedArea[0],"selection[1]":()=>n.selectedArea[1],scaleNodesOnZoom:()=>t.scaleNodesOnZoom,maxPointSize:()=>n.maxPointSize}}),this.clearHoveredFboCommand=e({frag:fh,vert:No,framebuffer:this.hoveredFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)}}),this.findHoveredPointCommand=e({frag:mC,vert:pC,primitive:"points",count:()=>l.nodes.length,framebuffer:()=>this.hoveredFbo,attributes:{indexes:Ku(e,n.pointsTextureSize)},uniforms:{position:()=>this.currentPositionFbo,particleSize:()=>this.sizeFbo,ratio:()=>t.pixelRatio,sizeScale:()=>t.nodeSizeScale,pointsTextureSize:()=>n.pointsTextureSize,transform:()=>n.transform,spaceSize:()=>n.adjustedSpaceSize,screenSize:()=>n.screenSize,scaleNodesOnZoom:()=>t.scaleNodesOnZoom,mousePosition:()=>n.screenMousePosition,maxPointSize:()=>n.maxPointSize},depth:{enable:!1,mask:!1}}),this.clearSampledNodesFboCommand=e({frag:fh,vert:No,framebuffer:()=>this.sampledNodesFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)}}),this.fillSampledNodesFboCommand=e({frag:bC,vert:gC,primitive:"points",count:()=>l.nodes.length,framebuffer:()=>this.sampledNodesFbo,attributes:{indexes:Ku(e,n.pointsTextureSize)},uniforms:{position:()=>this.currentPositionFbo,pointsTextureSize:()=>n.pointsTextureSize,transform:()=>n.transform,spaceSize:()=>n.adjustedSpaceSize,screenSize:()=>n.screenSize},depth:{enable:!1,mask:!1}}),this.drawHighlightedCommand=e({frag:uC,vert:hC,attributes:{quad:xo(e)},primitive:"triangle strip",count:4,uniforms:{color:e.prop("color"),width:e.prop("width"),pointIndex:e.prop("pointIndex"),positions:()=>this.currentPositionFbo,particleColor:()=>this.colorFbo,particleSize:()=>this.sizeFbo,sizeScale:()=>t.nodeSizeScale,pointsTextureSize:()=>n.pointsTextureSize,transform:()=>n.transform,spaceSize:()=>n.adjustedSpaceSize,screenSize:()=>n.screenSize,scaleNodesOnZoom:()=>t.scaleNodesOnZoom,maxPointSize:()=>n.maxPointSize,particleGreyoutStatus:()=>this.greyoutStatusFbo,greyoutOpacity:()=>t.nodeGreyoutOpacity},blend:{enable:!0,func:{dstRGB:"one minus src alpha",srcRGB:"src alpha",dstAlpha:"one minus src alpha",srcAlpha:"one"},equation:{rgb:"add",alpha:"add"}},depth:{enable:!1,mask:!1}}),this.trackPointsCommand=e({frag:SC,vert:No,framebuffer:()=>this.trackedPositionsFbo,primitive:"triangle strip",count:4,attributes:{quad:xo(e)},uniforms:{position:()=>this.currentPositionFbo,trackedIndices:()=>this.trackedIndicesFbo,pointsTextureSize:()=>n.pointsTextureSize}})}updateColor(){const{reglInstance:e,config:t,store:{pointsTextureSize:n},data:l}=this;n&&(this.colorFbo=sC(l,e,n,t.nodeColor))}updateGreyoutStatus(){const{reglInstance:e,store:t}=this;this.greyoutStatusFbo=oC(t.selectedIndices,e,t.pointsTextureSize)}updateSize(){const{reglInstance:e,config:t,store:{pointsTextureSize:n},data:l}=this;n&&(this.sizeByIndex=new Float32Array(l.nodes.length),this.sizeFbo=yC(l,e,n,t.nodeSize,this.sizeByIndex))}updateSampledNodesGrid(){const{store:{screenSize:e},config:{nodeSamplingDistance:t},reglInstance:n}=this,l=t??Math.min(...e)/2,s=Math.ceil(e[0]/l),c=Math.ceil(e[1]/l);Xl(this.sampledNodesFbo),this.sampledNodesFbo=n.framebuffer({shape:[s,c],depth:!1,stencil:!1,colorType:"float"})}trackPoints(){var e;!this.trackedIndicesFbo||!this.trackedPositionsFbo||(e=this.trackPointsCommand)===null||e===void 0||e.call(this)}draw(){var e,t,n;const{config:{renderHoveredNodeRing:l,renderHighlightedNodeRing:s},store:c}=this;(e=this.drawCommand)===null||e===void 0||e.call(this),(l??s)&&c.hoveredNode&&((t=this.drawHighlightedCommand)===null||t===void 0||t.call(this,{width:.85,color:c.hoveredNodeRingColor,pointIndex:c.hoveredNode.index})),c.focusedNode&&((n=this.drawHighlightedCommand)===null||n===void 0||n.call(this,{width:.75,color:c.focusedNodeRingColor,pointIndex:c.focusedNode.index}))}updatePosition(){var e;(e=this.updatePositionCommand)===null||e===void 0||e.call(this),this.swapFbo()}findPointsOnAreaSelection(){var e;(e=this.findPointsOnAreaSelectionCommand)===null||e===void 0||e.call(this)}findHoveredPoint(){var e,t;(e=this.clearHoveredFboCommand)===null||e===void 0||e.call(this),(t=this.findHoveredPointCommand)===null||t===void 0||t.call(this)}getNodeRadiusByIndex(e){var t;return(t=this.sizeByIndex)===null||t===void 0?void 0:t[e]}trackNodesByIds(e){this.trackedIds=e.length?e:void 0,this.trackedPositionsById.clear();const t=e.map(n=>this.data.getSortedIndexById(n)).filter(n=>n!==void 0);Xl(this.trackedIndicesFbo),this.trackedIndicesFbo=void 0,Xl(this.trackedPositionsFbo),this.trackedPositionsFbo=void 0,t.length&&(this.trackedIndicesFbo=wC(t,this.store.pointsTextureSize,this.reglInstance),this.trackedPositionsFbo=xC(t,this.reglInstance)),this.trackPoints()}getTrackedPositions(){if(!this.trackedIds)return this.trackedPositionsById;const e=gf(this.reglInstance,this.trackedPositionsFbo);return this.trackedIds.forEach((t,n)=>{const l=e[n*4],s=e[n*4+1];l!==void 0&&s!==void 0&&this.trackedPositionsById.set(t,[l,s])}),this.trackedPositionsById}getSampledNodePositionsMap(){var e,t,n;const l=new Map;if(!this.sampledNodesFbo)return l;(e=this.clearSampledNodesFboCommand)===null||e===void 0||e.call(this),(t=this.fillSampledNodesFboCommand)===null||t===void 0||t.call(this);const s=gf(this.reglInstance,this.sampledNodesFbo);for(let c=0;c<s.length/4;c++){const d=s[c*4],u=!!s[c*4+1],h=s[c*4+2],m=s[c*4+3];if(u&&d!==void 0&&h!==void 0&&m!==void 0){const b=this.data.getInputIndexBySortedIndex(d);if(b!==void 0){const g=(n=this.data.getNodeByIndex(b))===null||n===void 0?void 0:n.id;g!==void 0&&l.set(g,[h,m])}}}return l}destroy(){Xl(this.currentPositionFbo),Xl(this.previousPositionFbo),Xl(this.velocityFbo),Xl(this.selectedFbo),Xl(this.colorFbo),Xl(this.sizeFbo),Xl(this.greyoutStatusFbo),Xl(this.hoveredFbo),Xl(this.trackedIndicesFbo),Xl(this.trackedPositionsFbo)}swapFbo(){const e=this.previousPositionFbo;this.previousPositionFbo=this.currentPositionFbo,this.currentPositionFbo=e}rescaleInitialNodePositions(){const{nodes:e}=this.data,{spaceSize:t}=this.config;if(e.length===0)return;const n=e.map(y=>y.x).filter(y=>y!==void 0);if(n.length===0)return;const l=e.map(y=>y.y).filter(y=>y!==void 0);if(l.length===0)return;const[s,c]=lh(n);if(s===void 0||c===void 0)return;const[d,u]=lh(l);if(d===void 0||u===void 0)return;const h=c-s,m=u-d,b=Math.max(h,m),g=(b-h)/2,_=(b-m)/2,z=Zf().range([0,t??Tr.spaceSize]).domain([s-g,c+g]),X=Zf().range([0,t??Tr.spaceSize]).domain([d-_,u+_]);e.forEach(y=>{y.x=z(y.x),y.y=X(y.y)})}}const Og=.001,kg=64;class EC{constructor(){this.pointsTextureSize=0,this.linksTextureSize=0,this.alpha=1,this.transform=FO(),this.backgroundColor=[0,0,0,0],this.screenSize=[0,0],this.mousePosition=[0,0],this.screenMousePosition=[0,0],this.selectedArea=[[0,0],[0,0]],this.isSimulationRunning=!1,this.simulationProgress=0,this.selectedIndices=null,this.maxPointSize=kg,this.hoveredNode=void 0,this.focusedNode=void 0,this.adjustedSpaceSize=Tr.spaceSize,this.hoveredNodeRingColor=[1,1,1,Rk],this.focusedNodeRingColor=[1,1,1,Fk],this.alphaTarget=0,this.scaleNodeX=Zf(),this.scaleNodeY=Zf(),this.random=new M3,this.alphaDecay=e=>1-Math.pow(Og,1/e)}addRandomSeed(e){this.random=this.random.clone(e)}getRandomFloat(e,t){return this.random.float(e,t)}adjustSpaceSize(e,t){e>=t?(this.adjustedSpaceSize=t/2,console.warn(`The \`spaceSize\` has been reduced to ${this.adjustedSpaceSize} due to WebGL limits`)):this.adjustedSpaceSize=e}updateScreenSize(e,t){const{adjustedSpaceSize:n}=this;this.screenSize=[e,t],this.scaleNodeX.domain([0,n]).range([(e-n)/2,(e+n)/2]),this.scaleNodeY.domain([n,0]).range([(t-n)/2,(t+n)/2])}scaleX(e){return this.scaleNodeX(e)}scaleY(e){return this.scaleNodeY(e)}setHoveredNodeRingColor(e){const t=dh(e);this.hoveredNodeRingColor[0]=t[0],this.hoveredNodeRingColor[1]=t[1],this.hoveredNodeRingColor[2]=t[2]}setFocusedNodeRingColor(e){const t=dh(e);this.focusedNodeRingColor[0]=t[0],this.focusedNodeRingColor[1]=t[1],this.focusedNodeRingColor[2]=t[2]}setFocusedNode(e,t){e&&t!==void 0?this.focusedNode={node:e,index:t}:this.focusedNode=void 0}addAlpha(e){return(this.alphaTarget-this.alpha)*this.alphaDecay(e)}}class TC{constructor(e,t){this.eventTransform=mm,this.behavior=Ck().scaleExtent([.001,1/0]).on("start",n=>{var l,s,c;this.isRunning=!0;const d=!!n.sourceEvent;(c=(s=(l=this.config)===null||l===void 0?void 0:l.events)===null||s===void 0?void 0:s.onZoomStart)===null||c===void 0||c.call(s,n,d)}).on("zoom",n=>{var l,s,c;this.eventTransform=n.transform;const{eventTransform:{x:d,y:u,k:h},store:{transform:m,screenSize:b}}=this,g=b[0],_=b[1];MO(m,g,_),Ry(m,m,[d,u]),Gb(m,m,[h,h]),Ry(m,m,[g/2,_/2]),Gb(m,m,[g/2,_/2]),Gb(m,m,[1,-1]);const z=!!n.sourceEvent;(c=(s=(l=this.config)===null||l===void 0?void 0:l.events)===null||s===void 0?void 0:s.onZoom)===null||c===void 0||c.call(s,n,z)}).on("end",n=>{var l,s,c;this.isRunning=!1;const d=!!n.sourceEvent;(c=(s=(l=this.config)===null||l===void 0?void 0:l.events)===null||s===void 0?void 0:s.onZoomEnd)===null||c===void 0||c.call(s,n,d)}),this.isRunning=!1,this.store=e,this.config=t}getTransform(e,t,n=.1){if(e.length===0)return this.eventTransform;const{store:{screenSize:l}}=this,s=l[0],c=l[1],d=lh(e.map(E=>E[0])),u=lh(e.map(E=>E[1]));d[0]=this.store.scaleX(d[0]),d[1]=this.store.scaleX(d[1]),u[0]=this.store.scaleY(u[0]),u[1]=this.store.scaleY(u[1]);const h=s*(1-n*2)/(d[1]-d[0]),m=c*(1-n*2)/(u[0]-u[1]),b=Nk(t??Math.min(h,m),...this.behavior.scaleExtent()),g=(d[1]+d[0])/2,_=(u[1]+u[0])/2,z=s/2-g*b,X=c/2-_*b;return mm.translate(z,X).scale(b)}getDistanceToPoint(e){const{x:t,y:n,k:l}=this.eventTransform,s=this.getTransform([e],l),c=t-s.x,d=n-s.y;return Math.sqrt(c*c+d*d)}getMiddlePointTransform(e){const{store:{screenSize:t},eventTransform:{x:n,y:l,k:s}}=this,c=t[0],d=t[1],u=(c/2-n)/s,h=(d/2-l)/s,m=this.store.scaleX(e[0]),b=this.store.scaleY(e[1]),g=(u+m)/2,_=(h+b)/2,z=1,X=c/2-g*z,y=d/2-_*z;return mm.translate(X,y).scale(z)}convertScreenToSpacePosition(e){const{eventTransform:{x:t,y:n,k:l},store:{screenSize:s}}=this,c=s[0],d=s[1],u=(e[0]-t)/l,h=(e[1]-n)/l,m=[u,d-h];return m[0]-=(c-this.store.adjustedSpaceSize)/2,m[1]-=(d-this.store.adjustedSpaceSize)/2,m}convertSpaceToScreenPosition(e){const t=this.eventTransform.applyX(this.store.scaleX(e[0])),n=this.eventTransform.applyY(this.store.scaleY(e[1]));return[t,n]}convertSpaceToScreenRadius(e){const{config:{scaleNodesOnZoom:t},store:{maxPointSize:n},eventTransform:{k:l}}=this;let s=e*2;return t?s*=l:s*=Math.min(5,Math.max(1,l*.01)),Math.min(s,n)/2}}const OC={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":function(e,t,n){var l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee;return l=e.gl,e.context,e.strings,s=e.next,c=e.current,e.draw,e.elements,e.buffer,e.shader,d=e.attributes,u=e.vao,e.uniforms,h=e.framebuffer,e.extensions,e.timer,e.isBufferArgs,s.blend_color,c.blend_color,s.blend_equation,c.blend_equation,s.blend_func,c.blend_func,s.depth_range,c.depth_range,s.colorMask,c.colorMask,s.polygonOffset_offset,c.polygonOffset_offset,s.sample_coverage,c.sample_coverage,s.stencil_func,c.stencil_func,s.stencil_opFront,c.stencil_opFront,s.stencil_opBack,c.stencil_opBack,s.scissor_box,c.scissor_box,s.viewport,c.viewport,m=s.blend_color,b=c.blend_color,g=s.blend_equation,_=c.blend_equation,z=s.blend_func,X=c.blend_func,y=s.depth_range,E=c.depth_range,T=s.colorMask,w=c.colorMask,I=s.polygonOffset_offset,K=c.polygonOffset_offset,U=s.sample_coverage,Y=c.sample_coverage,J=s.stencil_func,S=c.stencil_func,Q=s.stencil_opFront,ae=c.stencil_opFront,x=s.stencil_opBack,A=c.stencil_opBack,O=s.scissor_box,k=c.scissor_box,C=s.viewport,ee=c.viewport,{poll:function(){var Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L;c.dirty=!1,ge=s.dither,F=s.blend_enable,H=s.depth_enable,R=s.cull_enable,$=s.polygonOffset_enable,q=s.sample_alpha,se=s.sample_enable,te=s.stencil_enable,qe=s.scissor_enable,we=s.depth_func,Se=c.depth_func,G=s.depth_mask,de=c.depth_mask,Ae=s.cull_face,W=c.cull_face,re=s.frontFace,Rt=c.frontFace,Ve=s.lineWidth,Fe=c.lineWidth,he=s.stencil_mask,L=c.stencil_mask,Re=h.next,Re!==h.cur&&(Re?l.bindFramebuffer(36160,Re.framebuffer):l.bindFramebuffer(36160,null),h.cur=Re),ge!==c.dither&&(ge?l.enable(3024):l.disable(3024),c.dither=ge),F!==c.blend_enable&&(F?l.enable(3042):l.disable(3042),c.blend_enable=F),H!==c.depth_enable&&(H?l.enable(2929):l.disable(2929),c.depth_enable=H),R!==c.cull_enable&&(R?l.enable(2884):l.disable(2884),c.cull_enable=R),$!==c.polygonOffset_enable&&($?l.enable(32823):l.disable(32823),c.polygonOffset_enable=$),q!==c.sample_alpha&&(q?l.enable(32926):l.disable(32926),c.sample_alpha=q),se!==c.sample_enable&&(se?l.enable(32928):l.disable(32928),c.sample_enable=se),te!==c.stencil_enable&&(te?l.enable(2960):l.disable(2960),c.stencil_enable=te),qe!==c.scissor_enable&&(qe?l.enable(3089):l.disable(3089),c.scissor_enable=qe),(m[0]!==b[0]||m[1]!==b[1]||m[2]!==b[2]||m[3]!==b[3])&&(l.blendColor(m[0],m[1],m[2],m[3]),b[0]=m[0],b[1]=m[1],b[2]=m[2],b[3]=m[3]),(g[0]!==_[0]||g[1]!==_[1])&&(l.blendEquationSeparate(g[0],g[1]),_[0]=g[0],_[1]=g[1]),(z[0]!==X[0]||z[1]!==X[1]||z[2]!==X[2]||z[3]!==X[3])&&(l.blendFuncSeparate(z[0],z[1],z[2],z[3]),X[0]=z[0],X[1]=z[1],X[2]=z[2],X[3]=z[3]),we!==Se&&(l.depthFunc(we),c.depth_func=we),(y[0]!==E[0]||y[1]!==E[1])&&(l.depthRange(y[0],y[1]),E[0]=y[0],E[1]=y[1]),G!==de&&(l.depthMask(G),c.depth_mask=G),(T[0]!==w[0]||T[1]!==w[1]||T[2]!==w[2]||T[3]!==w[3])&&(l.colorMask(T[0],T[1],T[2],T[3]),w[0]=T[0],w[1]=T[1],w[2]=T[2],w[3]=T[3]),Ae!==W&&(l.cullFace(Ae),c.cull_face=Ae),re!==Rt&&(l.frontFace(re),c.frontFace=re),Ve!==Fe&&(l.lineWidth(Ve),c.lineWidth=Ve),(I[0]!==K[0]||I[1]!==K[1])&&(l.polygonOffset(I[0],I[1]),K[0]=I[0],K[1]=I[1]),(U[0]!==Y[0]||U[1]!==Y[1])&&(l.sampleCoverage(U[0],U[1]),Y[0]=U[0],Y[1]=U[1]),he!==L&&(l.stencilMask(he),c.stencil_mask=he),(J[0]!==S[0]||J[1]!==S[1]||J[2]!==S[2])&&(l.stencilFunc(J[0],J[1],J[2]),S[0]=J[0],S[1]=J[1],S[2]=J[2]),(Q[0]!==ae[0]||Q[1]!==ae[1]||Q[2]!==ae[2]||Q[3]!==ae[3])&&(l.stencilOpSeparate(Q[0],Q[1],Q[2],Q[3]),ae[0]=Q[0],ae[1]=Q[1],ae[2]=Q[2],ae[3]=Q[3]),(x[0]!==A[0]||x[1]!==A[1]||x[2]!==A[2]||x[3]!==A[3])&&(l.stencilOpSeparate(x[0],x[1],x[2],x[3]),A[0]=x[0],A[1]=x[1],A[2]=x[2],A[3]=x[3]),(O[0]!==k[0]||O[1]!==k[1]||O[2]!==k[2]||O[3]!==k[3])&&(l.scissor(O[0],O[1],O[2],O[3]),k[0]=O[0],k[1]=O[1],k[2]=O[2],k[3]=O[3]),(C[0]!==ee[0]||C[1]!==ee[1]||C[2]!==ee[2]||C[3]!==ee[3])&&(l.viewport(C[0],C[1],C[2],C[3]),ee[0]=C[0],ee[1]=C[1],ee[2]=C[2],ee[3]=C[3])},refresh:function(){var Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt;c.dirty=!1,H=s.dither,R=s.blend_enable,$=s.depth_enable,q=s.cull_enable,se=s.polygonOffset_enable,te=s.sample_alpha,qe=s.sample_enable,we=s.stencil_enable,Se=s.scissor_enable,G=s.depth_func,c.depth_func,de=s.depth_mask,c.depth_mask,Ae=s.cull_face,c.cull_face,W=s.frontFace,c.frontFace,re=s.lineWidth,c.lineWidth,Rt=s.stencil_mask,c.stencil_mask,Re=h.next,Re?l.bindFramebuffer(36160,Re.framebuffer):l.bindFramebuffer(36160,null),h.cur=Re,ge=d,F=0;for(var Ve=0;Ve<n;++Ve)F=ge[Ve],F.buffer?(l.enableVertexAttribArray(Ve),l.bindBuffer(34962,F.buffer.buffer),l.vertexAttribPointer(Ve,F.size,F.type,F.normalized,F.stride,F.offset)):(l.disableVertexAttribArray(Ve),l.vertexAttrib4f(Ve,F.x,F.y,F.z,F.w),F.buffer=null);for(var Ve=0;Ve<n;++Ve)t.vertexAttribDivisorANGLE(Ve,ge[Ve].divisor);u.currentVAO=null,u.setVAO(u.targetVAO),H?l.enable(3024):l.disable(3024),c.dither=H,R?l.enable(3042):l.disable(3042),c.blend_enable=R,$?l.enable(2929):l.disable(2929),c.depth_enable=$,q?l.enable(2884):l.disable(2884),c.cull_enable=q,se?l.enable(32823):l.disable(32823),c.polygonOffset_enable=se,te?l.enable(32926):l.disable(32926),c.sample_alpha=te,qe?l.enable(32928):l.disable(32928),c.sample_enable=qe,we?l.enable(2960):l.disable(2960),c.stencil_enable=we,Se?l.enable(3089):l.disable(3089),c.scissor_enable=Se,l.blendColor(m[0],m[1],m[2],m[3]),b[0]=m[0],b[1]=m[1],b[2]=m[2],b[3]=m[3],l.blendEquationSeparate(g[0],g[1]),_[0]=g[0],_[1]=g[1],l.blendFuncSeparate(z[0],z[1],z[2],z[3]),X[0]=z[0],X[1]=z[1],X[2]=z[2],X[3]=z[3],l.depthFunc(G),c.depth_func=G,l.depthRange(y[0],y[1]),E[0]=y[0],E[1]=y[1],l.depthMask(de),c.depth_mask=de,l.colorMask(T[0],T[1],T[2],T[3]),w[0]=T[0],w[1]=T[1],w[2]=T[2],w[3]=T[3],l.cullFace(Ae),c.cull_face=Ae,l.frontFace(W),c.frontFace=W,l.lineWidth(re),c.lineWidth=re,l.polygonOffset(I[0],I[1]),K[0]=I[0],K[1]=I[1],l.sampleCoverage(U[0],U[1]),Y[0]=U[0],Y[1]=U[1],l.stencilMask(Rt),c.stencil_mask=Rt,l.stencilFunc(J[0],J[1],J[2]),S[0]=J[0],S[1]=J[1],S[2]=J[2],l.stencilOpSeparate(Q[0],Q[1],Q[2],Q[3]),ae[0]=Q[0],ae[1]=Q[1],ae[2]=Q[2],ae[3]=Q[3],l.stencilOpSeparate(x[0],x[1],x[2],x[3]),A[0]=x[0],A[1]=x[1],A[2]=x[2],A[3]=x[3],l.scissor(O[0],O[1],O[2],O[3]),k[0]=O[0],k[1]=O[1],k[2]=O[2],k[3]=O[3],l.viewport(C[0],C[1],C[2],C[3]),ee[0]=C[0],ee[1]=C[1],ee[2]=C[2],ee[3]=C[3]}}},cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:function(e,t,n,l,s,c,d,u){var h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te;return h=e.gl,m=e.context,e.strings,b=e.next,g=e.current,e.draw,e.elements,e.buffer,_=e.shader,e.attributes,z=e.vao,e.uniforms,X=e.framebuffer,y=e.extensions,e.timer,e.isBufferArgs,E=b.blend_color,T=g.blend_color,w=b.blend_equation,I=g.blend_equation,K=b.blend_func,U=g.blend_func,Y=b.depth_range,J=g.depth_range,S=b.colorMask,Q=g.colorMask,ae=b.polygonOffset_offset,x=g.polygonOffset_offset,A=b.sample_coverage,O=g.sample_coverage,k=b.stencil_func,C=g.stencil_func,ee=b.stencil_opFront,Re=g.stencil_opFront,ge=b.stencil_opBack,F=g.stencil_opBack,H=b.scissor_box,R=g.scissor_box,$=b.viewport,q=g.viewport,se={},te={},{draw:function(qe){var we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e;if(y.angle_instanced_arrays,we=qe.framebuffer,Se=X.getFramebuffer(we),G=X.next,X.next=Se,de=m.framebufferWidth,m.framebufferWidth=Se?Se.width:m.drawingBufferWidth,Ae=m.framebufferHeight,m.framebufferHeight=Se?Se.height:m.drawingBufferHeight,Se!==X.cur&&(Se?h.bindFramebuffer(36160,Se.framebuffer):h.bindFramebuffer(36160,null),X.cur=Se),g.dirty){var He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt;He=b.dither,He!==g.dither&&(He?h.enable(3024):h.disable(3024),g.dither=He),ne=b.blend_enable,ne!==g.blend_enable&&(ne?h.enable(3042):h.disable(3042),g.blend_enable=ne),me=E[0],B=E[1],j=E[2],ue=E[3],(me!==T[0]||B!==T[1]||j!==T[2]||ue!==T[3])&&(h.blendColor(me,B,j,ue),T[0]=me,T[1]=B,T[2]=j,T[3]=ue),M=w[0],le=w[1],(M!==I[0]||le!==I[1])&&(h.blendEquationSeparate(M,le),I[0]=M,I[1]=le),De=K[0],Ee=K[1],ft=K[2],At=K[3],(De!==U[0]||Ee!==U[1]||ft!==U[2]||At!==U[3])&&(h.blendFuncSeparate(De,Ee,ft,At),U[0]=De,U[1]=Ee,U[2]=ft,U[3]=At),lt=b.depth_enable,lt!==g.depth_enable&&(lt?h.enable(2929):h.disable(2929),g.depth_enable=lt),Ke=b.depth_func,Ke!==g.depth_func&&(h.depthFunc(Ke),g.depth_func=Ke),tt=Y[0],fe=Y[1],(tt!==J[0]||fe!==J[1])&&(h.depthRange(tt,fe),J[0]=tt,J[1]=fe),je=b.depth_mask,je!==g.depth_mask&&(h.depthMask(je),g.depth_mask=je),ot=S[0],Ne=S[1],et=S[2],ht=S[3],(ot!==Q[0]||Ne!==Q[1]||et!==Q[2]||ht!==Q[3])&&(h.colorMask(ot,Ne,et,ht),Q[0]=ot,Q[1]=Ne,Q[2]=et,Q[3]=ht),Ue=b.cull_enable,Ue!==g.cull_enable&&(Ue?h.enable(2884):h.disable(2884),g.cull_enable=Ue),Me=b.cull_face,Me!==g.cull_face&&(h.cullFace(Me),g.cull_face=Me),Be=b.frontFace,Be!==g.frontFace&&(h.frontFace(Be),g.frontFace=Be),ke=b.lineWidth,ke!==g.lineWidth&&(h.lineWidth(ke),g.lineWidth=ke),Te=b.polygonOffset_enable,Te!==g.polygonOffset_enable&&(Te?h.enable(32823):h.disable(32823),g.polygonOffset_enable=Te),ze=ae[0],Xe=ae[1],(ze!==x[0]||Xe!==x[1])&&(h.polygonOffset(ze,Xe),x[0]=ze,x[1]=Xe),ut=b.sample_alpha,ut!==g.sample_alpha&&(ut?h.enable(32926):h.disable(32926),g.sample_alpha=ut),at=b.sample_enable,at!==g.sample_enable&&(at?h.enable(32928):h.disable(32928),g.sample_enable=at),Je=A[0],it=A[1],(Je!==O[0]||it!==O[1])&&(h.sampleCoverage(Je,it),O[0]=Je,O[1]=it),ct=b.stencil_enable,ct!==g.stencil_enable&&(ct?h.enable(2960):h.disable(2960),g.stencil_enable=ct),ve=b.stencil_mask,ve!==g.stencil_mask&&(h.stencilMask(ve),g.stencil_mask=ve),D=k[0],oe=k[1],xe=k[2],(D!==C[0]||oe!==C[1]||xe!==C[2])&&(h.stencilFunc(D,oe,xe),C[0]=D,C[1]=oe,C[2]=xe),ce=ee[0],Oe=ee[1],Ye=ee[2],pe=ee[3],(ce!==Re[0]||Oe!==Re[1]||Ye!==Re[2]||pe!==Re[3])&&(h.stencilOpSeparate(ce,Oe,Ye,pe),Re[0]=ce,Re[1]=Oe,Re[2]=Ye,Re[3]=pe),Ce=ge[0],Qe=ge[1],Pe=ge[2],ye=ge[3],(Ce!==F[0]||Qe!==F[1]||Pe!==F[2]||ye!==F[3])&&(h.stencilOpSeparate(Ce,Qe,Pe,ye),F[0]=Ce,F[1]=Qe,F[2]=Pe,F[3]=ye),mt=b.scissor_enable,mt!==g.scissor_enable&&(mt?h.enable(3089):h.disable(3089),g.scissor_enable=mt)}W=m.framebufferWidth,re=m.framebufferHeight,Rt=m.viewportWidth,m.viewportWidth=W,Ve=m.viewportHeight,m.viewportHeight=re,h.viewport(0,0,W,re),q[0]=0,q[1]=0,q[2]=W,q[3]=re,Fe=m.framebufferWidth,he=m.framebufferHeight,h.scissor(0,0,Fe,he),R[0]=0,R[1]=0,R[2]=Fe,R[3]=he,L=g.profile,L&&(Z=performance.now(),t.count++),ie=_.frag,be=_.vert,Ge=_.program(be,ie),h.useProgram(Ge.program),z.setVAO(null),N=Ge.id,$e=se[N],$e?$e.call(this,qe):($e=se[N]=n(Ge),$e.call(this,qe)),g.dirty=!0,z.setVAO(null),X.next=G,m.framebufferWidth=de,m.framebufferHeight=Ae,m.viewportWidth=Rt,m.viewportHeight=Ve,L&&(t.cpuTime+=performance.now()-Z)},scope:function(qe,we,Se){var G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j;G=qe.framebuffer,de=X.getFramebuffer(G),Ae=X.next,X.next=de,W=m.framebufferWidth,m.framebufferWidth=de?de.width:m.drawingBufferWidth,re=m.framebufferHeight,m.framebufferHeight=de?de.height:m.drawingBufferHeight,Rt=m.framebufferWidth,Ve=m.framebufferHeight,Fe=m.viewportWidth,m.viewportWidth=Rt,he=m.viewportHeight,m.viewportHeight=Ve,L=$[0],$[0]=l,Z=$[1],$[1]=s,ie=$[2],$[2]=Rt,be=$[3],$[3]=Ve,Ge=m.framebufferWidth,N=m.framebufferHeight,$e=H[0],H[0]=c,He=H[1],H[1]=d,ne=H[2],H[2]=Ge,me=H[3],H[3]=N,B=g.profile,B&&(j=performance.now(),t.count++),g.dirty=!0,we(m,qe,Se),X.next=Ae,m.framebufferWidth=W,m.framebufferHeight=re,m.viewportWidth=Fe,m.viewportHeight=he,$[0]=L,$[1]=Z,$[2]=ie,$[3]=be,H[0]=$e,H[1]=He,H[2]=ne,H[3]=me,B&&(t.cpuTime+=performance.now()-j),g.dirty=!0},batch:function(qe,we){var Se,G,de,Ae,W,re,Rt;if(y.angle_instanced_arrays,g.dirty){var Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe;Ve=b.dither,Ve!==g.dither&&(Ve?h.enable(3024):h.disable(3024),g.dither=Ve),Fe=b.blend_enable,Fe!==g.blend_enable&&(Fe?h.enable(3042):h.disable(3042),g.blend_enable=Fe),he=E[0],L=E[1],Z=E[2],ie=E[3],(he!==T[0]||L!==T[1]||Z!==T[2]||ie!==T[3])&&(h.blendColor(he,L,Z,ie),T[0]=he,T[1]=L,T[2]=Z,T[3]=ie),be=w[0],Ge=w[1],(be!==I[0]||Ge!==I[1])&&(h.blendEquationSeparate(be,Ge),I[0]=be,I[1]=Ge),N=K[0],$e=K[1],He=K[2],ne=K[3],(N!==U[0]||$e!==U[1]||He!==U[2]||ne!==U[3])&&(h.blendFuncSeparate(N,$e,He,ne),U[0]=N,U[1]=$e,U[2]=He,U[3]=ne),me=b.depth_enable,me!==g.depth_enable&&(me?h.enable(2929):h.disable(2929),g.depth_enable=me),B=b.depth_func,B!==g.depth_func&&(h.depthFunc(B),g.depth_func=B),j=Y[0],ue=Y[1],(j!==J[0]||ue!==J[1])&&(h.depthRange(j,ue),J[0]=j,J[1]=ue),M=b.depth_mask,M!==g.depth_mask&&(h.depthMask(M),g.depth_mask=M),le=S[0],De=S[1],Ee=S[2],ft=S[3],(le!==Q[0]||De!==Q[1]||Ee!==Q[2]||ft!==Q[3])&&(h.colorMask(le,De,Ee,ft),Q[0]=le,Q[1]=De,Q[2]=Ee,Q[3]=ft),At=b.cull_enable,At!==g.cull_enable&&(At?h.enable(2884):h.disable(2884),g.cull_enable=At),lt=b.cull_face,lt!==g.cull_face&&(h.cullFace(lt),g.cull_face=lt),Ke=b.frontFace,Ke!==g.frontFace&&(h.frontFace(Ke),g.frontFace=Ke),tt=b.lineWidth,tt!==g.lineWidth&&(h.lineWidth(tt),g.lineWidth=tt),fe=b.polygonOffset_enable,fe!==g.polygonOffset_enable&&(fe?h.enable(32823):h.disable(32823),g.polygonOffset_enable=fe),je=ae[0],ot=ae[1],(je!==x[0]||ot!==x[1])&&(h.polygonOffset(je,ot),x[0]=je,x[1]=ot),Ne=b.sample_alpha,Ne!==g.sample_alpha&&(Ne?h.enable(32926):h.disable(32926),g.sample_alpha=Ne),et=b.sample_enable,et!==g.sample_enable&&(et?h.enable(32928):h.disable(32928),g.sample_enable=et),ht=A[0],Ue=A[1],(ht!==O[0]||Ue!==O[1])&&(h.sampleCoverage(ht,Ue),O[0]=ht,O[1]=Ue),Me=b.stencil_enable,Me!==g.stencil_enable&&(Me?h.enable(2960):h.disable(2960),g.stencil_enable=Me),Be=b.stencil_mask,Be!==g.stencil_mask&&(h.stencilMask(Be),g.stencil_mask=Be),ke=k[0],Te=k[1],ze=k[2],(ke!==C[0]||Te!==C[1]||ze!==C[2])&&(h.stencilFunc(ke,Te,ze),C[0]=ke,C[1]=Te,C[2]=ze),Xe=ee[0],ut=ee[1],at=ee[2],Je=ee[3],(Xe!==Re[0]||ut!==Re[1]||at!==Re[2]||Je!==Re[3])&&(h.stencilOpSeparate(Xe,ut,at,Je),Re[0]=Xe,Re[1]=ut,Re[2]=at,Re[3]=Je),it=ge[0],ct=ge[1],ve=ge[2],D=ge[3],(it!==F[0]||ct!==F[1]||ve!==F[2]||D!==F[3])&&(h.stencilOpSeparate(it,ct,ve,D),F[0]=it,F[1]=ct,F[2]=ve,F[3]=D),oe=b.scissor_enable,oe!==g.scissor_enable&&(oe?h.enable(3089):h.disable(3089),g.scissor_enable=oe)}Se=g.profile,Se&&(G=performance.now(),t.count+=we),de=_.frag,Ae=_.vert,W=_.program(Ae,de),h.useProgram(W.program),z.setVAO(null),re=W.id,Rt=te[re],Rt?Rt.call(this,qe,we):(Rt=te[re]=u(W),Rt.call(this,qe,we)),g.dirty=!0,z.setVAO(null),Se&&(t.cpuTime+=performance.now()-G)}}},"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":function(e,t,n,l){var s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R;return s=e.gl,c=e.context,e.strings,d=e.next,u=e.current,e.draw,e.elements,e.buffer,h=e.shader,e.attributes,m=e.vao,e.uniforms,b=e.framebuffer,g=e.extensions,e.timer,e.isBufferArgs,_=d.blend_color,z=u.blend_color,X=d.blend_equation,y=u.blend_equation,E=d.blend_func,T=u.blend_func,w=d.depth_range,I=u.depth_range,K=d.colorMask,U=u.colorMask,Y=d.polygonOffset_offset,J=u.polygonOffset_offset,S=d.sample_coverage,Q=u.sample_coverage,ae=d.stencil_func,x=u.stencil_func,A=d.stencil_opFront,O=u.stencil_opFront,k=d.stencil_opBack,C=u.stencil_opBack,ee=d.scissor_box,Re=u.scissor_box,ge=d.viewport,F=u.viewport,H={},R={},{draw:function($){var q,se,te,qe,we,Se,G,de;if(g.angle_instanced_arrays,q=b.next,q!==b.cur&&(q?s.bindFramebuffer(36160,q.framebuffer):s.bindFramebuffer(36160,null),b.cur=q),u.dirty){var Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye;Ae=d.dither,Ae!==u.dither&&(Ae?s.enable(3024):s.disable(3024),u.dither=Ae),W=d.blend_enable,W!==u.blend_enable&&(W?s.enable(3042):s.disable(3042),u.blend_enable=W),re=_[0],Rt=_[1],Ve=_[2],Fe=_[3],(re!==z[0]||Rt!==z[1]||Ve!==z[2]||Fe!==z[3])&&(s.blendColor(re,Rt,Ve,Fe),z[0]=re,z[1]=Rt,z[2]=Ve,z[3]=Fe),he=X[0],L=X[1],(he!==y[0]||L!==y[1])&&(s.blendEquationSeparate(he,L),y[0]=he,y[1]=L),Z=E[0],ie=E[1],be=E[2],Ge=E[3],(Z!==T[0]||ie!==T[1]||be!==T[2]||Ge!==T[3])&&(s.blendFuncSeparate(Z,ie,be,Ge),T[0]=Z,T[1]=ie,T[2]=be,T[3]=Ge),N=d.depth_enable,N!==u.depth_enable&&(N?s.enable(2929):s.disable(2929),u.depth_enable=N),$e=d.depth_func,$e!==u.depth_func&&(s.depthFunc($e),u.depth_func=$e),He=w[0],ne=w[1],(He!==I[0]||ne!==I[1])&&(s.depthRange(He,ne),I[0]=He,I[1]=ne),me=d.depth_mask,me!==u.depth_mask&&(s.depthMask(me),u.depth_mask=me),B=K[0],j=K[1],ue=K[2],M=K[3],(B!==U[0]||j!==U[1]||ue!==U[2]||M!==U[3])&&(s.colorMask(B,j,ue,M),U[0]=B,U[1]=j,U[2]=ue,U[3]=M),le=d.cull_enable,le!==u.cull_enable&&(le?s.enable(2884):s.disable(2884),u.cull_enable=le),De=d.cull_face,De!==u.cull_face&&(s.cullFace(De),u.cull_face=De),Ee=d.frontFace,Ee!==u.frontFace&&(s.frontFace(Ee),u.frontFace=Ee),ft=d.lineWidth,ft!==u.lineWidth&&(s.lineWidth(ft),u.lineWidth=ft),At=d.polygonOffset_enable,At!==u.polygonOffset_enable&&(At?s.enable(32823):s.disable(32823),u.polygonOffset_enable=At),lt=Y[0],Ke=Y[1],(lt!==J[0]||Ke!==J[1])&&(s.polygonOffset(lt,Ke),J[0]=lt,J[1]=Ke),tt=d.sample_alpha,tt!==u.sample_alpha&&(tt?s.enable(32926):s.disable(32926),u.sample_alpha=tt),fe=d.sample_enable,fe!==u.sample_enable&&(fe?s.enable(32928):s.disable(32928),u.sample_enable=fe),je=S[0],ot=S[1],(je!==Q[0]||ot!==Q[1])&&(s.sampleCoverage(je,ot),Q[0]=je,Q[1]=ot),Ne=d.stencil_enable,Ne!==u.stencil_enable&&(Ne?s.enable(2960):s.disable(2960),u.stencil_enable=Ne),et=d.stencil_mask,et!==u.stencil_mask&&(s.stencilMask(et),u.stencil_mask=et),ht=ae[0],Ue=ae[1],Me=ae[2],(ht!==x[0]||Ue!==x[1]||Me!==x[2])&&(s.stencilFunc(ht,Ue,Me),x[0]=ht,x[1]=Ue,x[2]=Me),Be=A[0],ke=A[1],Te=A[2],ze=A[3],(Be!==O[0]||ke!==O[1]||Te!==O[2]||ze!==O[3])&&(s.stencilOpSeparate(Be,ke,Te,ze),O[0]=Be,O[1]=ke,O[2]=Te,O[3]=ze),Xe=k[0],ut=k[1],at=k[2],Je=k[3],(Xe!==C[0]||ut!==C[1]||at!==C[2]||Je!==C[3])&&(s.stencilOpSeparate(Xe,ut,at,Je),C[0]=Xe,C[1]=ut,C[2]=at,C[3]=Je),it=d.scissor_enable,it!==u.scissor_enable&&(it?s.enable(3089):s.disable(3089),u.scissor_enable=it),ct=ee[0],ve=ee[1],D=ee[2],oe=ee[3],(ct!==Re[0]||ve!==Re[1]||D!==Re[2]||oe!==Re[3])&&(s.scissor(ct,ve,D,oe),Re[0]=ct,Re[1]=ve,Re[2]=D,Re[3]=oe),xe=ge[0],ce=ge[1],Oe=ge[2],Ye=ge[3],(xe!==F[0]||ce!==F[1]||Oe!==F[2]||Ye!==F[3])&&(s.viewport(xe,ce,Oe,Ye),F[0]=xe,F[1]=ce,F[2]=Oe,F[3]=Ye),u.dirty=!1}se=u.profile,se&&(te=performance.now(),t.count++),qe=h.frag,we=h.vert,Se=h.program(we,qe),s.useProgram(Se.program),m.setVAO(null),G=Se.id,de=H[G],de?de.call(this,$):(de=H[G]=n(Se),de.call(this,$)),m.setVAO(null),se&&(t.cpuTime+=performance.now()-te)},scope:function($,q,se){var te,qe;te=u.profile,te&&(qe=performance.now(),t.count++),q(c,$,se),te&&(t.cpuTime+=performance.now()-qe)},batch:function($,q){var se,te,qe,we,Se,G,de,Ae;if(g.angle_instanced_arrays,se=b.next,se!==b.cur&&(se?s.bindFramebuffer(36160,se.framebuffer):s.bindFramebuffer(36160,null),b.cur=se),u.dirty){var W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe;W=d.dither,W!==u.dither&&(W?s.enable(3024):s.disable(3024),u.dither=W),re=d.blend_enable,re!==u.blend_enable&&(re?s.enable(3042):s.disable(3042),u.blend_enable=re),Rt=_[0],Ve=_[1],Fe=_[2],he=_[3],(Rt!==z[0]||Ve!==z[1]||Fe!==z[2]||he!==z[3])&&(s.blendColor(Rt,Ve,Fe,he),z[0]=Rt,z[1]=Ve,z[2]=Fe,z[3]=he),L=X[0],Z=X[1],(L!==y[0]||Z!==y[1])&&(s.blendEquationSeparate(L,Z),y[0]=L,y[1]=Z),ie=E[0],be=E[1],Ge=E[2],N=E[3],(ie!==T[0]||be!==T[1]||Ge!==T[2]||N!==T[3])&&(s.blendFuncSeparate(ie,be,Ge,N),T[0]=ie,T[1]=be,T[2]=Ge,T[3]=N),$e=d.depth_enable,$e!==u.depth_enable&&($e?s.enable(2929):s.disable(2929),u.depth_enable=$e),He=d.depth_func,He!==u.depth_func&&(s.depthFunc(He),u.depth_func=He),ne=w[0],me=w[1],(ne!==I[0]||me!==I[1])&&(s.depthRange(ne,me),I[0]=ne,I[1]=me),B=d.depth_mask,B!==u.depth_mask&&(s.depthMask(B),u.depth_mask=B),j=K[0],ue=K[1],M=K[2],le=K[3],(j!==U[0]||ue!==U[1]||M!==U[2]||le!==U[3])&&(s.colorMask(j,ue,M,le),U[0]=j,U[1]=ue,U[2]=M,U[3]=le),De=d.cull_enable,De!==u.cull_enable&&(De?s.enable(2884):s.disable(2884),u.cull_enable=De),Ee=d.cull_face,Ee!==u.cull_face&&(s.cullFace(Ee),u.cull_face=Ee),ft=d.frontFace,ft!==u.frontFace&&(s.frontFace(ft),u.frontFace=ft),At=d.lineWidth,At!==u.lineWidth&&(s.lineWidth(At),u.lineWidth=At),lt=d.polygonOffset_enable,lt!==u.polygonOffset_enable&&(lt?s.enable(32823):s.disable(32823),u.polygonOffset_enable=lt),Ke=Y[0],tt=Y[1],(Ke!==J[0]||tt!==J[1])&&(s.polygonOffset(Ke,tt),J[0]=Ke,J[1]=tt),fe=d.sample_alpha,fe!==u.sample_alpha&&(fe?s.enable(32926):s.disable(32926),u.sample_alpha=fe),je=d.sample_enable,je!==u.sample_enable&&(je?s.enable(32928):s.disable(32928),u.sample_enable=je),ot=S[0],Ne=S[1],(ot!==Q[0]||Ne!==Q[1])&&(s.sampleCoverage(ot,Ne),Q[0]=ot,Q[1]=Ne),et=d.stencil_enable,et!==u.stencil_enable&&(et?s.enable(2960):s.disable(2960),u.stencil_enable=et),ht=d.stencil_mask,ht!==u.stencil_mask&&(s.stencilMask(ht),u.stencil_mask=ht),Ue=ae[0],Me=ae[1],Be=ae[2],(Ue!==x[0]||Me!==x[1]||Be!==x[2])&&(s.stencilFunc(Ue,Me,Be),x[0]=Ue,x[1]=Me,x[2]=Be),ke=A[0],Te=A[1],ze=A[2],Xe=A[3],(ke!==O[0]||Te!==O[1]||ze!==O[2]||Xe!==O[3])&&(s.stencilOpSeparate(ke,Te,ze,Xe),O[0]=ke,O[1]=Te,O[2]=ze,O[3]=Xe),ut=k[0],at=k[1],Je=k[2],it=k[3],(ut!==C[0]||at!==C[1]||Je!==C[2]||it!==C[3])&&(s.stencilOpSeparate(ut,at,Je,it),C[0]=ut,C[1]=at,C[2]=Je,C[3]=it),ct=d.scissor_enable,ct!==u.scissor_enable&&(ct?s.enable(3089):s.disable(3089),u.scissor_enable=ct),ve=ee[0],D=ee[1],oe=ee[2],xe=ee[3],(ve!==Re[0]||D!==Re[1]||oe!==Re[2]||xe!==Re[3])&&(s.scissor(ve,D,oe,xe),Re[0]=ve,Re[1]=D,Re[2]=oe,Re[3]=xe),ce=ge[0],Oe=ge[1],Ye=ge[2],pe=ge[3],(ce!==F[0]||Oe!==F[1]||Ye!==F[2]||pe!==F[3])&&(s.viewport(ce,Oe,Ye,pe),F[0]=ce,F[1]=Oe,F[2]=Ye,F[3]=pe),u.dirty=!1}te=u.profile,te&&(qe=performance.now(),t.count+=q),we=h.frag,Se=h.vert,G=h.program(Se,we),s.useProgram(G.program),m.setVAO(null),de=G.id,Ae=R[de],Ae?Ae.call(this,$,q):(Ae=R[de]=l(G),Ae.call(this,$,q)),m.setVAO(null),te&&(t.cpuTime+=performance.now()-qe)}}},"4324c38222f7aa6bd758c48eca3adf24490a6794a7ca19259ad8654aba832843":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae){var x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne;return x=e.gl,A=e.context,e.strings,O=e.next,k=e.current,C=e.draw,ee=e.elements,e.buffer,Re=e.shader,ge=e.attributes,F=e.vao,H=e.uniforms,R=e.framebuffer,$=e.extensions,e.timer,e.isBufferArgs,q=O.blend_color,se=k.blend_color,te=O.blend_equation,qe=k.blend_equation,we=O.blend_func,Se=k.blend_func,G=O.depth_range,de=k.depth_range,Ae=O.colorMask,W=k.colorMask,re=O.polygonOffset_offset,Rt=k.polygonOffset_offset,Ve=O.sample_coverage,Fe=k.sample_coverage,he=O.stencil_func,L=k.stencil_func,Z=O.stencil_opFront,ie=k.stencil_opFront,be=O.stencil_opBack,Ge=k.stencil_opBack,N=O.scissor_box,$e=k.scissor_box,He=O.viewport,ne=k.viewport,{draw:function(me){var B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut;if($.angle_instanced_arrays,B=n.call(this,A,me,0),j=R.getFramebuffer(B),ue=R.next,R.next=j,M=A.framebufferWidth,A.framebufferWidth=j?j.width:A.drawingBufferWidth,le=A.framebufferHeight,A.framebufferHeight=j?j.height:A.drawingBufferHeight,j!==R.cur&&(j?x.bindFramebuffer(36160,j.framebuffer):x.bindFramebuffer(36160,null),R.cur=j),k.dirty){var at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt;at=O.dither,at!==k.dither&&(at?x.enable(3024):x.disable(3024),k.dither=at),Je=O.blend_enable,Je!==k.blend_enable&&(Je?x.enable(3042):x.disable(3042),k.blend_enable=Je),it=q[0],ct=q[1],ve=q[2],D=q[3],(it!==se[0]||ct!==se[1]||ve!==se[2]||D!==se[3])&&(x.blendColor(it,ct,ve,D),se[0]=it,se[1]=ct,se[2]=ve,se[3]=D),oe=te[0],xe=te[1],(oe!==qe[0]||xe!==qe[1])&&(x.blendEquationSeparate(oe,xe),qe[0]=oe,qe[1]=xe),ce=we[0],Oe=we[1],Ye=we[2],pe=we[3],(ce!==Se[0]||Oe!==Se[1]||Ye!==Se[2]||pe!==Se[3])&&(x.blendFuncSeparate(ce,Oe,Ye,pe),Se[0]=ce,Se[1]=Oe,Se[2]=Ye,Se[3]=pe),Ce=O.depth_enable,Ce!==k.depth_enable&&(Ce?x.enable(2929):x.disable(2929),k.depth_enable=Ce),Qe=O.depth_func,Qe!==k.depth_func&&(x.depthFunc(Qe),k.depth_func=Qe),Pe=G[0],ye=G[1],(Pe!==de[0]||ye!==de[1])&&(x.depthRange(Pe,ye),de[0]=Pe,de[1]=ye),mt=O.depth_mask,mt!==k.depth_mask&&(x.depthMask(mt),k.depth_mask=mt),wt=Ae[0],Le=Ae[1],_t=Ae[2],bt=Ae[3],(wt!==W[0]||Le!==W[1]||_t!==W[2]||bt!==W[3])&&(x.colorMask(wt,Le,_t,bt),W[0]=wt,W[1]=Le,W[2]=_t,W[3]=bt),nt=O.cull_enable,nt!==k.cull_enable&&(nt?x.enable(2884):x.disable(2884),k.cull_enable=nt),yt=O.cull_face,yt!==k.cull_face&&(x.cullFace(yt),k.cull_face=yt),Lt=O.frontFace,Lt!==k.frontFace&&(x.frontFace(Lt),k.frontFace=Lt),Tt=O.lineWidth,Tt!==k.lineWidth&&(x.lineWidth(Tt),k.lineWidth=Tt),Nt=O.polygonOffset_enable,Nt!==k.polygonOffset_enable&&(Nt?x.enable(32823):x.disable(32823),k.polygonOffset_enable=Nt),zt=re[0],Ut=re[1],(zt!==Rt[0]||Ut!==Rt[1])&&(x.polygonOffset(zt,Ut),Rt[0]=zt,Rt[1]=Ut),Mt=O.sample_alpha,Mt!==k.sample_alpha&&(Mt?x.enable(32926):x.disable(32926),k.sample_alpha=Mt),Kt=O.sample_enable,Kt!==k.sample_enable&&(Kt?x.enable(32928):x.disable(32928),k.sample_enable=Kt),ei=Ve[0],Jt=Ve[1],(ei!==Fe[0]||Jt!==Fe[1])&&(x.sampleCoverage(ei,Jt),Fe[0]=ei,Fe[1]=Jt),Wt=O.stencil_enable,Wt!==k.stencil_enable&&(Wt?x.enable(2960):x.disable(2960),k.stencil_enable=Wt),$t=O.stencil_mask,$t!==k.stencil_mask&&(x.stencilMask($t),k.stencil_mask=$t),Gt=he[0],Ot=he[1],Bt=he[2],(Gt!==L[0]||Ot!==L[1]||Bt!==L[2])&&(x.stencilFunc(Gt,Ot,Bt),L[0]=Gt,L[1]=Ot,L[2]=Bt),Zt=Z[0],St=Z[1],Vt=Z[2],Dt=Z[3],(Zt!==ie[0]||St!==ie[1]||Vt!==ie[2]||Dt!==ie[3])&&(x.stencilOpSeparate(Zt,St,Vt,Dt),ie[0]=Zt,ie[1]=St,ie[2]=Vt,ie[3]=Dt),ii=be[0],Pt=be[1],Qt=be[2],xt=be[3],(ii!==Ge[0]||Pt!==Ge[1]||Qt!==Ge[2]||xt!==Ge[3])&&(x.stencilOpSeparate(ii,Pt,Qt,xt),Ge[0]=ii,Ge[1]=Pt,Ge[2]=Qt,Ge[3]=xt),pt=O.scissor_enable,pt!==k.scissor_enable&&(pt?x.enable(3089):x.disable(3089),k.scissor_enable=pt)}De=A.framebufferWidth,Ee=A.framebufferHeight,ft=A.viewportWidth,A.viewportWidth=De,At=A.viewportHeight,A.viewportHeight=Ee,x.viewport(0,0,De,Ee),ne[0]=0,ne[1]=0,ne[2]=De,ne[3]=Ee,lt=A.framebufferWidth,Ke=A.framebufferHeight,x.scissor(0,0,lt,Ke),$e[0]=0,$e[1]=0,$e[2]=lt,$e[3]=Ke,tt=k.profile,tt&&(fe=performance.now(),t.count++),x.useProgram(l.program),je=$.angle_instanced_arrays,F.setVAO(null),ot=c.location,Ne=ge[ot],Ne.buffer||x.enableVertexAttribArray(ot),et=2,(Ne.type!==5126||Ne.size!==et||Ne.buffer!==s||Ne.normalized!==!1||Ne.offset!==0||Ne.stride!==0)&&(x.bindBuffer(34962,s.buffer),x.vertexAttribPointer(ot,et,5126,!1,0,0),Ne.type=5126,Ne.size=et,Ne.buffer=s,Ne.normalized=!1,Ne.offset=0,Ne.stride=0),Ne.divisor!==0&&(je.vertexAttribDivisorANGLE(ot,0),Ne.divisor=0),ht=u.call(this,A,me,0),x.uniform1f(d.location,ht),Ue=m.call(this,A,me,0),Ue&&Ue._reglType==="framebuffer"&&(Ue=Ue.color[0]),Me=Ue._texture,x.uniform1i(h.location,Me.bind()),Be=g.call(this,A,me,0),x.uniform1f(b.location,Be),ke=z.call(this,A,me,0),ke&&ke._reglType==="framebuffer"&&(ke=ke.color[0]),Te=ke._texture,x.uniform1i(_.location,Te.bind()),ze=C.elements,ze?x.bindBuffer(34963,ze.buffer.buffer):F.currentVAO&&(ze=ee.getElements(F.currentVAO.elements),ze&&x.bindBuffer(34963,ze.buffer.buffer)),Xe=C.offset,ut=C.instances,ut>0?ze?je.drawElementsInstancedANGLE(5,4,ze.type,Xe<<(ze.type-5121>>1),ut):je.drawArraysInstancedANGLE(5,Xe,4,ut):ut<0&&(ze?x.drawElements(5,4,ze.type,Xe<<(ze.type-5121>>1)):x.drawArrays(5,Xe,4)),k.dirty=!0,F.setVAO(null),R.next=ue,A.framebufferWidth=M,A.framebufferHeight=le,A.viewportWidth=ft,A.viewportHeight=At,tt&&(t.cpuTime+=performance.now()-fe),Me.unbind(),Te.unbind()},scope:function(me,B,j){var ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt;ue=n.call(this,A,me,j),M=R.getFramebuffer(ue),le=R.next,R.next=M,De=A.framebufferWidth,A.framebufferWidth=M?M.width:A.drawingBufferWidth,Ee=A.framebufferHeight,A.framebufferHeight=M?M.height:A.drawingBufferHeight,ft=A.framebufferWidth,At=A.framebufferHeight,lt=A.viewportWidth,A.viewportWidth=ft,Ke=A.viewportHeight,A.viewportHeight=At,tt=He[0],He[0]=X,fe=He[1],He[1]=y,je=He[2],He[2]=ft,ot=He[3],He[3]=At,Ne=A.framebufferWidth,et=A.framebufferHeight,ht=N[0],N[0]=E,Ue=N[1],N[1]=T,Me=N[2],N[2]=Ne,Be=N[3],N[3]=et,ke=k.profile,ke&&(Te=performance.now(),t.count++),ze=C.count,C.count=w,Xe=C.primitive,C.primitive=I,ut=m.call(this,A,me,j),at=H[K],H[K]=ut,Je=z.call(this,A,me,j),it=H[U],H[U]=Je,ct=u.call(this,A,me,j),ve=H[Y],H[Y]=ct,D=g.call(this,A,me,j),oe=H[J],H[J]=D,xe=S.state,S.state=1,ce=S.x,S.x=0,Oe=S.y,S.y=0,Ye=S.z,S.z=0,pe=S.w,S.w=0,Ce=S.buffer,S.buffer=s,Qe=S.size,S.size=2,Pe=S.normalized,S.normalized=!1,ye=S.type,S.type=5126,mt=S.offset,S.offset=0,wt=S.stride,S.stride=0,Le=S.divisor,S.divisor=0,_t=Re.vert,Re.vert=Q,bt=Re.frag,Re.frag=ae,k.dirty=!0,B(A,me,j),R.next=le,A.framebufferWidth=De,A.framebufferHeight=Ee,A.viewportWidth=lt,A.viewportHeight=Ke,He[0]=tt,He[1]=fe,He[2]=je,He[3]=ot,N[0]=ht,N[1]=Ue,N[2]=Me,N[3]=Be,ke&&(t.cpuTime+=performance.now()-Te),C.count=ze,C.primitive=Xe,H[K]=at,H[U]=it,H[Y]=ve,H[J]=oe,S.state=xe,S.x=ce,S.y=Oe,S.z=Ye,S.w=pe,S.buffer=Ce,S.size=Qe,S.normalized=Pe,S.type=ye,S.offset=mt,S.stride=wt,S.divisor=Le,Re.vert=_t,Re.frag=bt,k.dirty=!0},batch:function(me,B){var j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et;if($.angle_instanced_arrays,j=n.call(this,A,me,0),ue=R.getFramebuffer(j),M=R.next,R.next=ue,le=A.framebufferWidth,A.framebufferWidth=ue?ue.width:A.drawingBufferWidth,De=A.framebufferHeight,A.framebufferHeight=ue?ue.height:A.drawingBufferHeight,ue!==R.cur&&(ue?x.bindFramebuffer(36160,ue.framebuffer):x.bindFramebuffer(36160,null),R.cur=ue),k.dirty){var ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt;ht=O.dither,ht!==k.dither&&(ht?x.enable(3024):x.disable(3024),k.dither=ht),Ue=O.blend_enable,Ue!==k.blend_enable&&(Ue?x.enable(3042):x.disable(3042),k.blend_enable=Ue),Me=q[0],Be=q[1],ke=q[2],Te=q[3],(Me!==se[0]||Be!==se[1]||ke!==se[2]||Te!==se[3])&&(x.blendColor(Me,Be,ke,Te),se[0]=Me,se[1]=Be,se[2]=ke,se[3]=Te),ze=te[0],Xe=te[1],(ze!==qe[0]||Xe!==qe[1])&&(x.blendEquationSeparate(ze,Xe),qe[0]=ze,qe[1]=Xe),ut=we[0],at=we[1],Je=we[2],it=we[3],(ut!==Se[0]||at!==Se[1]||Je!==Se[2]||it!==Se[3])&&(x.blendFuncSeparate(ut,at,Je,it),Se[0]=ut,Se[1]=at,Se[2]=Je,Se[3]=it),ct=O.depth_enable,ct!==k.depth_enable&&(ct?x.enable(2929):x.disable(2929),k.depth_enable=ct),ve=O.depth_func,ve!==k.depth_func&&(x.depthFunc(ve),k.depth_func=ve),D=G[0],oe=G[1],(D!==de[0]||oe!==de[1])&&(x.depthRange(D,oe),de[0]=D,de[1]=oe),xe=O.depth_mask,xe!==k.depth_mask&&(x.depthMask(xe),k.depth_mask=xe),ce=Ae[0],Oe=Ae[1],Ye=Ae[2],pe=Ae[3],(ce!==W[0]||Oe!==W[1]||Ye!==W[2]||pe!==W[3])&&(x.colorMask(ce,Oe,Ye,pe),W[0]=ce,W[1]=Oe,W[2]=Ye,W[3]=pe),Ce=O.cull_enable,Ce!==k.cull_enable&&(Ce?x.enable(2884):x.disable(2884),k.cull_enable=Ce),Qe=O.cull_face,Qe!==k.cull_face&&(x.cullFace(Qe),k.cull_face=Qe),Pe=O.frontFace,Pe!==k.frontFace&&(x.frontFace(Pe),k.frontFace=Pe),ye=O.lineWidth,ye!==k.lineWidth&&(x.lineWidth(ye),k.lineWidth=ye),mt=O.polygonOffset_enable,mt!==k.polygonOffset_enable&&(mt?x.enable(32823):x.disable(32823),k.polygonOffset_enable=mt),wt=re[0],Le=re[1],(wt!==Rt[0]||Le!==Rt[1])&&(x.polygonOffset(wt,Le),Rt[0]=wt,Rt[1]=Le),_t=O.sample_alpha,_t!==k.sample_alpha&&(_t?x.enable(32926):x.disable(32926),k.sample_alpha=_t),bt=O.sample_enable,bt!==k.sample_enable&&(bt?x.enable(32928):x.disable(32928),k.sample_enable=bt),nt=Ve[0],yt=Ve[1],(nt!==Fe[0]||yt!==Fe[1])&&(x.sampleCoverage(nt,yt),Fe[0]=nt,Fe[1]=yt),Lt=O.stencil_enable,Lt!==k.stencil_enable&&(Lt?x.enable(2960):x.disable(2960),k.stencil_enable=Lt),Tt=O.stencil_mask,Tt!==k.stencil_mask&&(x.stencilMask(Tt),k.stencil_mask=Tt),Nt=he[0],zt=he[1],Ut=he[2],(Nt!==L[0]||zt!==L[1]||Ut!==L[2])&&(x.stencilFunc(Nt,zt,Ut),L[0]=Nt,L[1]=zt,L[2]=Ut),Mt=Z[0],Kt=Z[1],ei=Z[2],Jt=Z[3],(Mt!==ie[0]||Kt!==ie[1]||ei!==ie[2]||Jt!==ie[3])&&(x.stencilOpSeparate(Mt,Kt,ei,Jt),ie[0]=Mt,ie[1]=Kt,ie[2]=ei,ie[3]=Jt),Wt=be[0],$t=be[1],Gt=be[2],Ot=be[3],(Wt!==Ge[0]||$t!==Ge[1]||Gt!==Ge[2]||Ot!==Ge[3])&&(x.stencilOpSeparate(Wt,$t,Gt,Ot),Ge[0]=Wt,Ge[1]=$t,Ge[2]=Gt,Ge[3]=Ot),Bt=O.scissor_enable,Bt!==k.scissor_enable&&(Bt?x.enable(3089):x.disable(3089),k.scissor_enable=Bt)}Ee=A.framebufferWidth,ft=A.framebufferHeight,At=A.viewportWidth,A.viewportWidth=Ee,lt=A.viewportHeight,A.viewportHeight=ft,x.viewport(0,0,Ee,ft),ne[0]=0,ne[1]=0,ne[2]=Ee,ne[3]=ft,Ke=A.framebufferWidth,tt=A.framebufferHeight,x.scissor(0,0,Ke,tt),$e[0]=0,$e[1]=0,$e[2]=Ke,$e[3]=tt,fe=k.profile,fe&&(je=performance.now(),t.count+=B),x.useProgram(l.program),ot=$.angle_instanced_arrays;var Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft;for(F.setVAO(null),Zt=c.location,St=ge[Zt],St.buffer||x.enableVertexAttribArray(Zt),Vt=2,(St.type!==5126||St.size!==Vt||St.buffer!==s||St.normalized!==!1||St.offset!==0||St.stride!==0)&&(x.bindBuffer(34962,s.buffer),x.vertexAttribPointer(Zt,Vt,5126,!1,0,0),St.type=5126,St.size=Vt,St.buffer=s,St.normalized=!1,St.offset=0,St.stride=0),St.divisor!==0&&(ot.vertexAttribDivisorANGLE(Zt,0),St.divisor=0),Dt=u.call(this,A,et,Ne),x.uniform1f(d.location,Dt),ii=m.call(this,A,et,Ne),ii&&ii._reglType==="framebuffer"&&(ii=ii.color[0]),Pt=ii._texture,x.uniform1i(h.location,Pt.bind()),Qt=g.call(this,A,et,Ne),x.uniform1f(b.location,Qt),xt=z.call(this,A,et,Ne),xt&&xt._reglType==="framebuffer"&&(xt=xt.color[0]),pt=xt._texture,x.uniform1i(_.location,pt.bind()),vt=C.elements,vt?x.bindBuffer(34963,vt.buffer.buffer):F.currentVAO&&(vt=ee.getElements(F.currentVAO.elements),vt&&x.bindBuffer(34963,vt.buffer.buffer)),It=C.offset,Ft=C.instances,Ne=0;Ne<B;++Ne)et=me[Ne],Ft>0?vt?ot.drawElementsInstancedANGLE(5,4,vt.type,It<<(vt.type-5121>>1),Ft):ot.drawArraysInstancedANGLE(5,It,4,Ft):Ft<0&&(vt?x.drawElements(5,4,vt.type,It<<(vt.type-5121>>1)):x.drawArrays(5,It,4));Pt.unbind(),pt.unbind(),k.dirty=!0,F.setVAO(null),R.next=M,A.framebufferWidth=le,A.framebufferHeight=De,A.viewportWidth=At,A.viewportHeight=lt,fe&&(t.cpuTime+=performance.now()-je)}}},"938b883103cfb116eacc46c77dd09ff2ea4342f4f2480e4fa8393a27b4dad686":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me){var B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe;return B=e.gl,j=e.context,e.strings,ue=e.next,M=e.current,le=e.draw,De=e.elements,e.buffer,Ee=e.shader,ft=e.attributes,At=e.vao,lt=e.uniforms,Ke=e.framebuffer,tt=e.extensions,e.timer,e.isBufferArgs,fe=ue.blend_color,je=M.blend_color,ot=ue.blend_equation,Ne=M.blend_equation,et=ue.blend_func,ht=M.blend_func,Ue=ue.depth_range,Me=M.depth_range,Be=ue.colorMask,ke=M.colorMask,Te=ue.polygonOffset_offset,ze=M.polygonOffset_offset,Xe=ue.sample_coverage,ut=M.sample_coverage,at=ue.stencil_func,Je=M.stencil_func,it=ue.stencil_opFront,ct=M.stencil_opFront,ve=ue.stencil_opBack,D=M.stencil_opBack,oe=ue.scissor_box,xe=M.scissor_box,ce=ue.viewport,Oe=M.viewport,Ye=new Float32Array(9),pe=new Float32Array(9),{draw:function(Ce){var Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt;if(tt.angle_instanced_arrays,Qe=Ke.next,Qe!==Ke.cur&&(Qe?B.bindFramebuffer(36160,Qe.framebuffer):B.bindFramebuffer(36160,null),Ke.cur=Qe),M.dirty){var Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr;Qt=ue.dither,Qt!==M.dither&&(Qt?B.enable(3024):B.disable(3024),M.dither=Qt),xt=fe[0],pt=fe[1],vt=fe[2],It=fe[3],(xt!==je[0]||pt!==je[1]||vt!==je[2]||It!==je[3])&&(B.blendColor(xt,pt,vt,It),je[0]=xt,je[1]=pt,je[2]=vt,je[3]=It),Ft=ue.depth_func,Ft!==M.depth_func&&(B.depthFunc(Ft),M.depth_func=Ft),qt=Ue[0],zi=Ue[1],(qt!==Me[0]||zi!==Me[1])&&(B.depthRange(qt,zi),Me[0]=qt,Me[1]=zi),Mi=Be[0],di=Be[1],Ri=Be[2],yi=Be[3],(Mi!==ke[0]||di!==ke[1]||Ri!==ke[2]||yi!==ke[3])&&(B.colorMask(Mi,di,Ri,yi),ke[0]=Mi,ke[1]=di,ke[2]=Ri,ke[3]=yi),Ui=ue.cull_enable,Ui!==M.cull_enable&&(Ui?B.enable(2884):B.disable(2884),M.cull_enable=Ui),Li=ue.cull_face,Li!==M.cull_face&&(B.cullFace(Li),M.cull_face=Li),Ei=ue.frontFace,Ei!==M.frontFace&&(B.frontFace(Ei),M.frontFace=Ei),wi=ue.lineWidth,wi!==M.lineWidth&&(B.lineWidth(wi),M.lineWidth=wi),Ci=ue.polygonOffset_enable,Ci!==M.polygonOffset_enable&&(Ci?B.enable(32823):B.disable(32823),M.polygonOffset_enable=Ci),Di=Te[0],$i=Te[1],(Di!==ze[0]||$i!==ze[1])&&(B.polygonOffset(Di,$i),ze[0]=Di,ze[1]=$i),Gi=ue.sample_alpha,Gi!==M.sample_alpha&&(Gi?B.enable(32926):B.disable(32926),M.sample_alpha=Gi),tn=ue.sample_enable,tn!==M.sample_enable&&(tn?B.enable(32928):B.disable(32928),M.sample_enable=tn),Wi=Xe[0],qi=Xe[1],(Wi!==ut[0]||qi!==ut[1])&&(B.sampleCoverage(Wi,qi),ut[0]=Wi,ut[1]=qi),Xi=ue.stencil_enable,Xi!==M.stencil_enable&&(Xi?B.enable(2960):B.disable(2960),M.stencil_enable=Xi),un=ue.stencil_mask,un!==M.stencil_mask&&(B.stencilMask(un),M.stencil_mask=un),Qi=at[0],sn=at[1],xn=at[2],(Qi!==Je[0]||sn!==Je[1]||xn!==Je[2])&&(B.stencilFunc(Qi,sn,xn),Je[0]=Qi,Je[1]=sn,Je[2]=xn),wn=it[0],fn=it[1],zn=it[2],Ln=it[3],(wn!==ct[0]||fn!==ct[1]||zn!==ct[2]||Ln!==ct[3])&&(B.stencilOpSeparate(wn,fn,zn,Ln),ct[0]=wn,ct[1]=fn,ct[2]=zn,ct[3]=Ln),Dn=ve[0],Wn=ve[1],Nn=ve[2],Gn=ve[3],(Dn!==D[0]||Wn!==D[1]||Nn!==D[2]||Gn!==D[3])&&(B.stencilOpSeparate(Dn,Wn,Nn,Gn),D[0]=Dn,D[1]=Wn,D[2]=Nn,D[3]=Gn),Zn=ue.scissor_enable,Zn!==M.scissor_enable&&(Zn?B.enable(3089):B.disable(3089),M.scissor_enable=Zn),jn=oe[0],Sn=oe[1],Qn=oe[2],Hn=oe[3],(jn!==xe[0]||Sn!==xe[1]||Qn!==xe[2]||Hn!==xe[3])&&(B.scissor(jn,Sn,Qn,Hn),xe[0]=jn,xe[1]=Sn,xe[2]=Qn,xe[3]=Hn),Pn=ce[0],vr=ce[1],Jn=ce[2],rr=ce[3],(Pn!==Oe[0]||vr!==Oe[1]||Jn!==Oe[2]||rr!==Oe[3])&&(B.viewport(Pn,vr,Jn,rr),Oe[0]=Pn,Oe[1]=vr,Oe[2]=Jn,Oe[3]=rr)}n?B.enable(3042):B.disable(3042),M.blend_enable=n,B.blendEquationSeparate(32774,32774),Ne[0]=32774,Ne[1]=32774,B.blendFuncSeparate(770,771,1,771),ht[0]=770,ht[1]=771,ht[2]=1,ht[3]=771,l?B.enable(2929):B.disable(2929),M.depth_enable=l,B.depthMask(s),M.depth_mask=s,Pe=M.profile,Pe&&(ye=performance.now(),t.count++),B.useProgram(c.program),mt=tt.angle_instanced_arrays,At.setVAO(null),wt=u.location,Le=ft[wt],Le.buffer||B.enableVertexAttribArray(wt),_t=2,(Le.type!==5126||Le.size!==_t||Le.buffer!==d||Le.normalized!==!1||Le.offset!==0||Le.stride!==0)&&(B.bindBuffer(34962,d.buffer),B.vertexAttribPointer(wt,_t,5126,!1,0,0),Le.type=5126,Le.size=_t,Le.buffer=d,Le.normalized=!1,Le.offset=0,Le.stride=0),Le.divisor!==0&&(mt.vertexAttribDivisorANGLE(wt,0),Le.divisor=0),bt=m.call(this,j,Ce,0),B.uniform1f(h.location,bt),nt=g.call(this,j,Ce,0),B.uniform1f(b.location,nt),yt=z.call(this,j,Ce,0),yt&&yt._reglType==="framebuffer"&&(yt=yt.color[0]),Lt=yt._texture,B.uniform1i(_.location,Lt.bind()),Tt=y.call(this,j,Ce,0),Tt&&Tt._reglType==="framebuffer"&&(Tt=Tt.color[0]),Nt=Tt._texture,B.uniform1i(X.location,Nt.bind()),zt=T.call(this,j,Ce,0),zt&&zt._reglType==="framebuffer"&&(zt=zt.color[0]),Ut=zt._texture,B.uniform1i(E.location,Ut.bind()),Mt=I.call(this,j,Ce,0),B.uniform1f(w.location,Mt),Kt=U.call(this,j,Ce,0),Kt&&Kt._reglType==="framebuffer"&&(Kt=Kt.color[0]),ei=Kt._texture,B.uniform1i(K.location,ei.bind()),Jt=J.call(this,j,Ce,0),B.uniform1f(Y.location,Jt),Wt=Q.call(this,j,Ce,0),B.uniform1i(S.location,Wt),$t=x.call(this,j,Ce,0),Gt=$t[0],Ot=$t[1],B.uniform2f(ae.location,Gt,Ot),Bt=O.call(this,j,Ce,0),B.uniform1f(A.location,Bt),Zt=C.call(this,j,Ce,0),B.uniform1f(k.location,Zt),St=Re.call(this,j,Ce,0),B.uniformMatrix3fv(ee.location,!1,Array.isArray(St)||St instanceof Float32Array?St:(Ye[0]=St[0],Ye[1]=St[1],Ye[2]=St[2],Ye[3]=St[3],Ye[4]=St[4],Ye[5]=St[5],Ye[6]=St[6],Ye[7]=St[7],Ye[8]=St[8],Ye)),Vt=le.elements,Vt?B.bindBuffer(34963,Vt.buffer.buffer):At.currentVAO&&(Vt=De.getElements(At.currentVAO.elements),Vt&&B.bindBuffer(34963,Vt.buffer.buffer)),Dt=le.offset,ii=ge.call(this,j,Ce,0),ii&&(Pt=le.instances,Pt>0?Vt?mt.drawElementsInstancedANGLE(0,ii,Vt.type,Dt<<(Vt.type-5121>>1),Pt):mt.drawArraysInstancedANGLE(0,Dt,ii,Pt):Pt<0&&(Vt?B.drawElements(0,ii,Vt.type,Dt<<(Vt.type-5121>>1)):B.drawArrays(0,Dt,ii)),M.dirty=!0,At.setVAO(null),Pe&&(t.cpuTime+=performance.now()-ye),Lt.unbind(),Nt.unbind(),Ut.unbind(),ei.unbind())},scope:function(Ce,Qe,Pe){var ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi;ye=ue.blend_enable,ue.blend_enable=F,mt=ot[0],ot[0]=H,wt=ot[1],ot[1]=R,Le=et[0],et[0]=$,_t=et[1],et[1]=q,bt=et[2],et[2]=se,nt=et[3],et[3]=te,yt=ue.depth_enable,ue.depth_enable=qe,Lt=ue.depth_mask,ue.depth_mask=we,Tt=M.profile,Tt&&(Nt=performance.now(),t.count++),zt=ge.call(this,j,Ce,Pe),Ut=le.count,le.count=zt,Mt=le.primitive,le.primitive=Se,Kt=U.call(this,j,Ce,Pe),ei=lt[G],lt[G]=Kt,Jt=z.call(this,j,Ce,Pe),Wt=lt[de],lt[de]=Jt,$t=y.call(this,j,Ce,Pe),Gt=lt[Ae],lt[Ae]=$t,Ot=T.call(this,j,Ce,Pe),Bt=lt[W],lt[W]=Ot,Zt=J.call(this,j,Ce,Pe),St=lt[re],lt[re]=Zt,Vt=O.call(this,j,Ce,Pe),Dt=lt[Rt],lt[Rt]=Vt,ii=I.call(this,j,Ce,Pe),Pt=lt[Ve],lt[Ve]=ii,Qt=Re.call(this,j,Ce,Pe),xt=lt[Fe],lt[Fe]=Qt,pt=C.call(this,j,Ce,Pe),vt=lt[he],lt[he]=pt,It=x.call(this,j,Ce,Pe),Ft=lt[L],lt[L]=It,qt=m.call(this,j,Ce,Pe),zi=lt[Z],lt[Z]=qt,Mi=Q.call(this,j,Ce,Pe),di=lt[ie],lt[ie]=Mi,Ri=g.call(this,j,Ce,Pe),yi=lt[be],lt[be]=Ri,Ui=Ge.state,Ge.state=1,Li=Ge.x,Ge.x=0,Ei=Ge.y,Ge.y=0,wi=Ge.z,Ge.z=0,Ci=Ge.w,Ge.w=0,Di=Ge.buffer,Ge.buffer=d,$i=Ge.size,Ge.size=2,Gi=Ge.normalized,Ge.normalized=!1,tn=Ge.type,Ge.type=5126,Wi=Ge.offset,Ge.offset=0,qi=Ge.stride,Ge.stride=0,Xi=Ge.divisor,Ge.divisor=0,un=Ee.vert,Ee.vert=N,Qi=Ee.frag,Ee.frag=$e,M.dirty=!0,Qe(j,Ce,Pe),ue.blend_enable=ye,ot[0]=mt,ot[1]=wt,et[0]=Le,et[1]=_t,et[2]=bt,et[3]=nt,ue.depth_enable=yt,ue.depth_mask=Lt,Tt&&(t.cpuTime+=performance.now()-Nt),le.count=Ut,le.primitive=Mt,lt[G]=ei,lt[de]=Wt,lt[Ae]=Gt,lt[W]=Bt,lt[re]=St,lt[Rt]=Dt,lt[Ve]=Pt,lt[Fe]=xt,lt[he]=vt,lt[L]=Ft,lt[Z]=zi,lt[ie]=di,lt[be]=yi,Ge.state=Ui,Ge.x=Li,Ge.y=Ei,Ge.z=wi,Ge.w=Ci,Ge.buffer=Di,Ge.size=$i,Ge.normalized=Gi,Ge.type=tn,Ge.offset=Wi,Ge.stride=qi,Ge.divisor=Xi,Ee.vert=un,Ee.frag=Qi,M.dirty=!0},batch:function(Ce,Qe){var Pe,ye,mt,wt,Le,_t;if(tt.angle_instanced_arrays,Pe=Ke.next,Pe!==Ke.cur&&(Pe?B.bindFramebuffer(36160,Pe.framebuffer):B.bindFramebuffer(36160,null),Ke.cur=Pe),M.dirty){var bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi;bt=ue.dither,bt!==M.dither&&(bt?B.enable(3024):B.disable(3024),M.dither=bt),nt=fe[0],yt=fe[1],Lt=fe[2],Tt=fe[3],(nt!==je[0]||yt!==je[1]||Lt!==je[2]||Tt!==je[3])&&(B.blendColor(nt,yt,Lt,Tt),je[0]=nt,je[1]=yt,je[2]=Lt,je[3]=Tt),Nt=ue.depth_func,Nt!==M.depth_func&&(B.depthFunc(Nt),M.depth_func=Nt),zt=Ue[0],Ut=Ue[1],(zt!==Me[0]||Ut!==Me[1])&&(B.depthRange(zt,Ut),Me[0]=zt,Me[1]=Ut),Mt=Be[0],Kt=Be[1],ei=Be[2],Jt=Be[3],(Mt!==ke[0]||Kt!==ke[1]||ei!==ke[2]||Jt!==ke[3])&&(B.colorMask(Mt,Kt,ei,Jt),ke[0]=Mt,ke[1]=Kt,ke[2]=ei,ke[3]=Jt),Wt=ue.cull_enable,Wt!==M.cull_enable&&(Wt?B.enable(2884):B.disable(2884),M.cull_enable=Wt),$t=ue.cull_face,$t!==M.cull_face&&(B.cullFace($t),M.cull_face=$t),Gt=ue.frontFace,Gt!==M.frontFace&&(B.frontFace(Gt),M.frontFace=Gt),Ot=ue.lineWidth,Ot!==M.lineWidth&&(B.lineWidth(Ot),M.lineWidth=Ot),Bt=ue.polygonOffset_enable,Bt!==M.polygonOffset_enable&&(Bt?B.enable(32823):B.disable(32823),M.polygonOffset_enable=Bt),Zt=Te[0],St=Te[1],(Zt!==ze[0]||St!==ze[1])&&(B.polygonOffset(Zt,St),ze[0]=Zt,ze[1]=St),Vt=ue.sample_alpha,Vt!==M.sample_alpha&&(Vt?B.enable(32926):B.disable(32926),M.sample_alpha=Vt),Dt=ue.sample_enable,Dt!==M.sample_enable&&(Dt?B.enable(32928):B.disable(32928),M.sample_enable=Dt),ii=Xe[0],Pt=Xe[1],(ii!==ut[0]||Pt!==ut[1])&&(B.sampleCoverage(ii,Pt),ut[0]=ii,ut[1]=Pt),Qt=ue.stencil_enable,Qt!==M.stencil_enable&&(Qt?B.enable(2960):B.disable(2960),M.stencil_enable=Qt),xt=ue.stencil_mask,xt!==M.stencil_mask&&(B.stencilMask(xt),M.stencil_mask=xt),pt=at[0],vt=at[1],It=at[2],(pt!==Je[0]||vt!==Je[1]||It!==Je[2])&&(B.stencilFunc(pt,vt,It),Je[0]=pt,Je[1]=vt,Je[2]=It),Ft=it[0],qt=it[1],zi=it[2],Mi=it[3],(Ft!==ct[0]||qt!==ct[1]||zi!==ct[2]||Mi!==ct[3])&&(B.stencilOpSeparate(Ft,qt,zi,Mi),ct[0]=Ft,ct[1]=qt,ct[2]=zi,ct[3]=Mi),di=ve[0],Ri=ve[1],yi=ve[2],Ui=ve[3],(di!==D[0]||Ri!==D[1]||yi!==D[2]||Ui!==D[3])&&(B.stencilOpSeparate(di,Ri,yi,Ui),D[0]=di,D[1]=Ri,D[2]=yi,D[3]=Ui),Li=ue.scissor_enable,Li!==M.scissor_enable&&(Li?B.enable(3089):B.disable(3089),M.scissor_enable=Li),Ei=oe[0],wi=oe[1],Ci=oe[2],Di=oe[3],(Ei!==xe[0]||wi!==xe[1]||Ci!==xe[2]||Di!==xe[3])&&(B.scissor(Ei,wi,Ci,Di),xe[0]=Ei,xe[1]=wi,xe[2]=Ci,xe[3]=Di),$i=ce[0],Gi=ce[1],tn=ce[2],Wi=ce[3],($i!==Oe[0]||Gi!==Oe[1]||tn!==Oe[2]||Wi!==Oe[3])&&(B.viewport($i,Gi,tn,Wi),Oe[0]=$i,Oe[1]=Gi,Oe[2]=tn,Oe[3]=Wi)}He?B.enable(3042):B.disable(3042),M.blend_enable=He,B.blendEquationSeparate(32774,32774),Ne[0]=32774,Ne[1]=32774,B.blendFuncSeparate(770,771,1,771),ht[0]=770,ht[1]=771,ht[2]=1,ht[3]=771,ne?B.enable(2929):B.disable(2929),M.depth_enable=ne,B.depthMask(me),M.depth_mask=me,ye=M.profile,ye&&(mt=performance.now(),t.count+=Qe),B.useProgram(c.program),wt=tt.angle_instanced_arrays;var qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr,hr,Rn,Ur;for(At.setVAO(null),qi=u.location,Xi=ft[qi],Xi.buffer||B.enableVertexAttribArray(qi),un=2,(Xi.type!==5126||Xi.size!==un||Xi.buffer!==d||Xi.normalized!==!1||Xi.offset!==0||Xi.stride!==0)&&(B.bindBuffer(34962,d.buffer),B.vertexAttribPointer(qi,un,5126,!1,0,0),Xi.type=5126,Xi.size=un,Xi.buffer=d,Xi.normalized=!1,Xi.offset=0,Xi.stride=0),Xi.divisor!==0&&(wt.vertexAttribDivisorANGLE(qi,0),Xi.divisor=0),Qi=m.call(this,j,_t,Le),B.uniform1f(h.location,Qi),sn=g.call(this,j,_t,Le),B.uniform1f(b.location,sn),xn=z.call(this,j,_t,Le),xn&&xn._reglType==="framebuffer"&&(xn=xn.color[0]),wn=xn._texture,B.uniform1i(_.location,wn.bind()),fn=y.call(this,j,_t,Le),fn&&fn._reglType==="framebuffer"&&(fn=fn.color[0]),zn=fn._texture,B.uniform1i(X.location,zn.bind()),Ln=T.call(this,j,_t,Le),Ln&&Ln._reglType==="framebuffer"&&(Ln=Ln.color[0]),Dn=Ln._texture,B.uniform1i(E.location,Dn.bind()),Wn=I.call(this,j,_t,Le),B.uniform1f(w.location,Wn),Nn=U.call(this,j,_t,Le),Nn&&Nn._reglType==="framebuffer"&&(Nn=Nn.color[0]),Gn=Nn._texture,B.uniform1i(K.location,Gn.bind()),Zn=J.call(this,j,_t,Le),B.uniform1f(Y.location,Zn),jn=Q.call(this,j,_t,Le),B.uniform1i(S.location,jn),Sn=x.call(this,j,_t,Le),Qn=Sn[0],Hn=Sn[1],B.uniform2f(ae.location,Qn,Hn),Pn=O.call(this,j,_t,Le),B.uniform1f(A.location,Pn),vr=C.call(this,j,_t,Le),B.uniform1f(k.location,vr),Jn=Re.call(this,j,_t,Le),B.uniformMatrix3fv(ee.location,!1,Array.isArray(Jn)||Jn instanceof Float32Array?Jn:(pe[0]=Jn[0],pe[1]=Jn[1],pe[2]=Jn[2],pe[3]=Jn[3],pe[4]=Jn[4],pe[5]=Jn[5],pe[6]=Jn[6],pe[7]=Jn[7],pe[8]=Jn[8],pe)),rr=le.elements,rr?B.bindBuffer(34963,rr.buffer.buffer):At.currentVAO&&(rr=De.getElements(At.currentVAO.elements),rr&&B.bindBuffer(34963,rr.buffer.buffer)),hr=le.offset,Rn=ge.call(this,j,_t,Le),Ur=le.instances,Le=0;Le<Qe;++Le)_t=Ce[Le],Rn&&(Ur>0?rr?wt.drawElementsInstancedANGLE(0,Rn,rr.type,hr<<(rr.type-5121>>1),Ur):wt.drawArraysInstancedANGLE(0,hr,Rn,Ur):Ur<0&&(rr?B.drawElements(0,Rn,rr.type,hr<<(rr.type-5121>>1)):B.drawArrays(0,hr,Rn)));wn.unbind(),zn.unbind(),Dn.unbind(),Gn.unbind(),M.dirty=!0,At.setVAO(null),ye&&(t.cpuTime+=performance.now()-mt)}}},d4e6917d633ef08caab467b393ac4c3f800c4c7b3ab0efd4f7f5b82c281cafb1:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae){var W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke;return W=e.gl,re=e.context,e.strings,Rt=e.next,Ve=e.current,Fe=e.draw,he=e.elements,e.buffer,L=e.shader,Z=e.attributes,ie=e.vao,be=e.uniforms,Ge=e.framebuffer,N=e.extensions,e.timer,e.isBufferArgs,$e=Rt.blend_color,He=Ve.blend_color,ne=Rt.blend_equation,me=Ve.blend_equation,B=Rt.blend_func,j=Ve.blend_func,ue=Rt.depth_range,M=Ve.depth_range,le=Rt.colorMask,De=Ve.colorMask,Ee=Rt.polygonOffset_offset,ft=Ve.polygonOffset_offset,At=Rt.sample_coverage,lt=Ve.sample_coverage,Ke=Rt.stencil_func,tt=Ve.stencil_func,fe=Rt.stencil_opFront,je=Ve.stencil_opFront,ot=Rt.stencil_opBack,Ne=Ve.stencil_opBack,et=Rt.scissor_box,ht=Ve.scissor_box,Ue=Rt.viewport,Me=Ve.viewport,Be=new Float32Array(9),ke=new Float32Array(9),{draw:function(Te){var ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot;if(N.angle_instanced_arrays,ze=n.call(this,re,Te,0),Xe=Ge.getFramebuffer(ze),ut=Ge.next,Ge.next=Xe,at=re.framebufferWidth,re.framebufferWidth=Xe?Xe.width:re.drawingBufferWidth,Je=re.framebufferHeight,re.framebufferHeight=Xe?Xe.height:re.drawingBufferHeight,Xe!==Ge.cur&&(Xe?W.bindFramebuffer(36160,Xe.framebuffer):W.bindFramebuffer(36160,null),Ge.cur=Xe),Ve.dirty){var Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn;Bt=Rt.dither,Bt!==Ve.dither&&(Bt?W.enable(3024):W.disable(3024),Ve.dither=Bt),Zt=Rt.blend_enable,Zt!==Ve.blend_enable&&(Zt?W.enable(3042):W.disable(3042),Ve.blend_enable=Zt),St=$e[0],Vt=$e[1],Dt=$e[2],ii=$e[3],(St!==He[0]||Vt!==He[1]||Dt!==He[2]||ii!==He[3])&&(W.blendColor(St,Vt,Dt,ii),He[0]=St,He[1]=Vt,He[2]=Dt,He[3]=ii),Pt=ne[0],Qt=ne[1],(Pt!==me[0]||Qt!==me[1])&&(W.blendEquationSeparate(Pt,Qt),me[0]=Pt,me[1]=Qt),xt=B[0],pt=B[1],vt=B[2],It=B[3],(xt!==j[0]||pt!==j[1]||vt!==j[2]||It!==j[3])&&(W.blendFuncSeparate(xt,pt,vt,It),j[0]=xt,j[1]=pt,j[2]=vt,j[3]=It),Ft=Rt.depth_enable,Ft!==Ve.depth_enable&&(Ft?W.enable(2929):W.disable(2929),Ve.depth_enable=Ft),qt=Rt.depth_func,qt!==Ve.depth_func&&(W.depthFunc(qt),Ve.depth_func=qt),zi=ue[0],Mi=ue[1],(zi!==M[0]||Mi!==M[1])&&(W.depthRange(zi,Mi),M[0]=zi,M[1]=Mi),di=Rt.depth_mask,di!==Ve.depth_mask&&(W.depthMask(di),Ve.depth_mask=di),Ri=le[0],yi=le[1],Ui=le[2],Li=le[3],(Ri!==De[0]||yi!==De[1]||Ui!==De[2]||Li!==De[3])&&(W.colorMask(Ri,yi,Ui,Li),De[0]=Ri,De[1]=yi,De[2]=Ui,De[3]=Li),Ei=Rt.cull_enable,Ei!==Ve.cull_enable&&(Ei?W.enable(2884):W.disable(2884),Ve.cull_enable=Ei),wi=Rt.cull_face,wi!==Ve.cull_face&&(W.cullFace(wi),Ve.cull_face=wi),Ci=Rt.frontFace,Ci!==Ve.frontFace&&(W.frontFace(Ci),Ve.frontFace=Ci),Di=Rt.lineWidth,Di!==Ve.lineWidth&&(W.lineWidth(Di),Ve.lineWidth=Di),$i=Rt.polygonOffset_enable,$i!==Ve.polygonOffset_enable&&($i?W.enable(32823):W.disable(32823),Ve.polygonOffset_enable=$i),Gi=Ee[0],tn=Ee[1],(Gi!==ft[0]||tn!==ft[1])&&(W.polygonOffset(Gi,tn),ft[0]=Gi,ft[1]=tn),Wi=Rt.sample_alpha,Wi!==Ve.sample_alpha&&(Wi?W.enable(32926):W.disable(32926),Ve.sample_alpha=Wi),qi=Rt.sample_enable,qi!==Ve.sample_enable&&(qi?W.enable(32928):W.disable(32928),Ve.sample_enable=qi),Xi=At[0],un=At[1],(Xi!==lt[0]||un!==lt[1])&&(W.sampleCoverage(Xi,un),lt[0]=Xi,lt[1]=un),Qi=Rt.stencil_enable,Qi!==Ve.stencil_enable&&(Qi?W.enable(2960):W.disable(2960),Ve.stencil_enable=Qi),sn=Rt.stencil_mask,sn!==Ve.stencil_mask&&(W.stencilMask(sn),Ve.stencil_mask=sn),xn=Ke[0],wn=Ke[1],fn=Ke[2],(xn!==tt[0]||wn!==tt[1]||fn!==tt[2])&&(W.stencilFunc(xn,wn,fn),tt[0]=xn,tt[1]=wn,tt[2]=fn),zn=fe[0],Ln=fe[1],Dn=fe[2],Wn=fe[3],(zn!==je[0]||Ln!==je[1]||Dn!==je[2]||Wn!==je[3])&&(W.stencilOpSeparate(zn,Ln,Dn,Wn),je[0]=zn,je[1]=Ln,je[2]=Dn,je[3]=Wn),Nn=ot[0],Gn=ot[1],Zn=ot[2],jn=ot[3],(Nn!==Ne[0]||Gn!==Ne[1]||Zn!==Ne[2]||jn!==Ne[3])&&(W.stencilOpSeparate(Nn,Gn,Zn,jn),Ne[0]=Nn,Ne[1]=Gn,Ne[2]=Zn,Ne[3]=jn),Sn=Rt.scissor_enable,Sn!==Ve.scissor_enable&&(Sn?W.enable(3089):W.disable(3089),Ve.scissor_enable=Sn)}it=re.framebufferWidth,ct=re.framebufferHeight,ve=re.viewportWidth,re.viewportWidth=it,D=re.viewportHeight,re.viewportHeight=ct,W.viewport(0,0,it,ct),Me[0]=0,Me[1]=0,Me[2]=it,Me[3]=ct,oe=re.framebufferWidth,xe=re.framebufferHeight,W.scissor(0,0,oe,xe),ht[0]=0,ht[1]=0,ht[2]=oe,ht[3]=xe,ce=Ve.profile,ce&&(Oe=performance.now(),t.count++),W.useProgram(l.program),Ye=N.angle_instanced_arrays,ie.setVAO(null),pe=c.location,Ce=Z[pe],Ce.buffer||W.enableVertexAttribArray(pe),Qe=2,(Ce.type!==5126||Ce.size!==Qe||Ce.buffer!==s||Ce.normalized!==!1||Ce.offset!==0||Ce.stride!==0)&&(W.bindBuffer(34962,s.buffer),W.vertexAttribPointer(pe,Qe,5126,!1,0,0),Ce.type=5126,Ce.size=Qe,Ce.buffer=s,Ce.normalized=!1,Ce.offset=0,Ce.stride=0),Ce.divisor!==0&&(Ye.vertexAttribDivisorANGLE(pe,0),Ce.divisor=0),Pe=u.call(this,re,Te,0),W.uniform1f(d.location,Pe),ye=m.call(this,re,Te,0),ye&&ye._reglType==="framebuffer"&&(ye=ye.color[0]),mt=ye._texture,W.uniform1i(h.location,mt.bind()),wt=g.call(this,re,Te,0),wt&&wt._reglType==="framebuffer"&&(wt=wt.color[0]),Le=wt._texture,W.uniform1i(b.location,Le.bind()),_t=z.call(this,re,Te,0),W.uniform1f(_.location,_t),bt=y.call(this,re,Te,0),W.uniform1i(X.location,bt),nt=T.call(this,re,Te,0),yt=nt[0],Lt=nt[1],W.uniform2f(E.location,yt,Lt),Tt=I.call(this,re,Te,0),Nt=Tt[0],zt=Tt[1],W.uniform2f(w.location,Nt,zt),Ut=U.call(this,re,Te,0),Mt=Ut[0],Kt=Ut[1],W.uniform2f(K.location,Mt,Kt),ei=J.call(this,re,Te,0),W.uniform1f(Y.location,ei),Jt=Q.call(this,re,Te,0),W.uniform1f(S.location,Jt),Wt=x.call(this,re,Te,0),W.uniformMatrix3fv(ae.location,!1,Array.isArray(Wt)||Wt instanceof Float32Array?Wt:(Be[0]=Wt[0],Be[1]=Wt[1],Be[2]=Wt[2],Be[3]=Wt[3],Be[4]=Wt[4],Be[5]=Wt[5],Be[6]=Wt[6],Be[7]=Wt[7],Be[8]=Wt[8],Be)),$t=Fe.elements,$t?W.bindBuffer(34963,$t.buffer.buffer):ie.currentVAO&&($t=he.getElements(ie.currentVAO.elements),$t&&W.bindBuffer(34963,$t.buffer.buffer)),Gt=Fe.offset,Ot=Fe.instances,Ot>0?$t?Ye.drawElementsInstancedANGLE(5,4,$t.type,Gt<<($t.type-5121>>1),Ot):Ye.drawArraysInstancedANGLE(5,Gt,4,Ot):Ot<0&&($t?W.drawElements(5,4,$t.type,Gt<<($t.type-5121>>1)):W.drawArrays(5,Gt,4)),Ve.dirty=!0,ie.setVAO(null),Ge.next=ut,re.framebufferWidth=at,re.framebufferHeight=Je,re.viewportWidth=ve,re.viewportHeight=D,ce&&(t.cpuTime+=performance.now()-Oe),mt.unbind(),Le.unbind()},scope:function(Te,ze,Xe){var ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei;ut=n.call(this,re,Te,Xe),at=Ge.getFramebuffer(ut),Je=Ge.next,Ge.next=at,it=re.framebufferWidth,re.framebufferWidth=at?at.width:re.drawingBufferWidth,ct=re.framebufferHeight,re.framebufferHeight=at?at.height:re.drawingBufferHeight,ve=re.framebufferWidth,D=re.framebufferHeight,oe=re.viewportWidth,re.viewportWidth=ve,xe=re.viewportHeight,re.viewportHeight=D,ce=Ue[0],Ue[0]=A,Oe=Ue[1],Ue[1]=O,Ye=Ue[2],Ue[2]=ve,pe=Ue[3],Ue[3]=D,Ce=re.framebufferWidth,Qe=re.framebufferHeight,Pe=et[0],et[0]=k,ye=et[1],et[1]=C,mt=et[2],et[2]=Ce,wt=et[3],et[3]=Qe,Le=Ve.profile,Le&&(_t=performance.now(),t.count++),bt=Fe.count,Fe.count=ee,nt=Fe.primitive,Fe.primitive=Re,yt=g.call(this,re,Te,Xe),Lt=be[ge],be[ge]=yt,Tt=m.call(this,re,Te,Xe),Nt=be[F],be[F]=Tt,zt=Q.call(this,re,Te,Xe),Ut=be[H],be[H]=zt,Mt=T.call(this,re,Te,Xe),Kt=be[R],be[R]=Mt,ei=J.call(this,re,Te,Xe),Jt=be[$],be[$]=ei,Wt=x.call(this,re,Te,Xe),$t=be[q],be[q]=Wt,Gt=z.call(this,re,Te,Xe),Ot=be[se],be[se]=Gt,Bt=I.call(this,re,Te,Xe),Zt=be[te],be[te]=Bt,St=U.call(this,re,Te,Xe),Vt=be[qe],be[qe]=St,Dt=y.call(this,re,Te,Xe),ii=be[we],be[we]=Dt,Pt=u.call(this,re,Te,Xe),Qt=be[Se],be[Se]=Pt,xt=G.state,G.state=1,pt=G.x,G.x=0,vt=G.y,G.y=0,It=G.z,G.z=0,Ft=G.w,G.w=0,qt=G.buffer,G.buffer=s,zi=G.size,G.size=2,Mi=G.normalized,G.normalized=!1,di=G.type,G.type=5126,Ri=G.offset,G.offset=0,yi=G.stride,G.stride=0,Ui=G.divisor,G.divisor=0,Li=L.vert,L.vert=de,Ei=L.frag,L.frag=Ae,Ve.dirty=!0,ze(re,Te,Xe),Ge.next=Je,re.framebufferWidth=it,re.framebufferHeight=ct,re.viewportWidth=oe,re.viewportHeight=xe,Ue[0]=ce,Ue[1]=Oe,Ue[2]=Ye,Ue[3]=pe,et[0]=Pe,et[1]=ye,et[2]=mt,et[3]=wt,Le&&(t.cpuTime+=performance.now()-_t),Fe.count=bt,Fe.primitive=nt,be[ge]=Lt,be[F]=Nt,be[H]=Ut,be[R]=Kt,be[$]=Jt,be[q]=$t,be[se]=Ot,be[te]=Zt,be[qe]=Vt,be[we]=ii,be[Se]=Qt,G.state=xt,G.x=pt,G.y=vt,G.z=It,G.w=Ft,G.buffer=qt,G.size=zi,G.normalized=Mi,G.type=di,G.offset=Ri,G.stride=yi,G.divisor=Ui,L.vert=Li,L.frag=Ei,Ve.dirty=!0},batch:function(Te,ze){var Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe;if(N.angle_instanced_arrays,Xe=n.call(this,re,Te,0),ut=Ge.getFramebuffer(Xe),at=Ge.next,Ge.next=ut,Je=re.framebufferWidth,re.framebufferWidth=ut?ut.width:re.drawingBufferWidth,it=re.framebufferHeight,re.framebufferHeight=ut?ut.height:re.drawingBufferHeight,ut!==Ge.cur&&(ut?W.bindFramebuffer(36160,ut.framebuffer):W.bindFramebuffer(36160,null),Ge.cur=ut),Ve.dirty){var Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci;Pe=Rt.dither,Pe!==Ve.dither&&(Pe?W.enable(3024):W.disable(3024),Ve.dither=Pe),ye=Rt.blend_enable,ye!==Ve.blend_enable&&(ye?W.enable(3042):W.disable(3042),Ve.blend_enable=ye),mt=$e[0],wt=$e[1],Le=$e[2],_t=$e[3],(mt!==He[0]||wt!==He[1]||Le!==He[2]||_t!==He[3])&&(W.blendColor(mt,wt,Le,_t),He[0]=mt,He[1]=wt,He[2]=Le,He[3]=_t),bt=ne[0],nt=ne[1],(bt!==me[0]||nt!==me[1])&&(W.blendEquationSeparate(bt,nt),me[0]=bt,me[1]=nt),yt=B[0],Lt=B[1],Tt=B[2],Nt=B[3],(yt!==j[0]||Lt!==j[1]||Tt!==j[2]||Nt!==j[3])&&(W.blendFuncSeparate(yt,Lt,Tt,Nt),j[0]=yt,j[1]=Lt,j[2]=Tt,j[3]=Nt),zt=Rt.depth_enable,zt!==Ve.depth_enable&&(zt?W.enable(2929):W.disable(2929),Ve.depth_enable=zt),Ut=Rt.depth_func,Ut!==Ve.depth_func&&(W.depthFunc(Ut),Ve.depth_func=Ut),Mt=ue[0],Kt=ue[1],(Mt!==M[0]||Kt!==M[1])&&(W.depthRange(Mt,Kt),M[0]=Mt,M[1]=Kt),ei=Rt.depth_mask,ei!==Ve.depth_mask&&(W.depthMask(ei),Ve.depth_mask=ei),Jt=le[0],Wt=le[1],$t=le[2],Gt=le[3],(Jt!==De[0]||Wt!==De[1]||$t!==De[2]||Gt!==De[3])&&(W.colorMask(Jt,Wt,$t,Gt),De[0]=Jt,De[1]=Wt,De[2]=$t,De[3]=Gt),Ot=Rt.cull_enable,Ot!==Ve.cull_enable&&(Ot?W.enable(2884):W.disable(2884),Ve.cull_enable=Ot),Bt=Rt.cull_face,Bt!==Ve.cull_face&&(W.cullFace(Bt),Ve.cull_face=Bt),Zt=Rt.frontFace,Zt!==Ve.frontFace&&(W.frontFace(Zt),Ve.frontFace=Zt),St=Rt.lineWidth,St!==Ve.lineWidth&&(W.lineWidth(St),Ve.lineWidth=St),Vt=Rt.polygonOffset_enable,Vt!==Ve.polygonOffset_enable&&(Vt?W.enable(32823):W.disable(32823),Ve.polygonOffset_enable=Vt),Dt=Ee[0],ii=Ee[1],(Dt!==ft[0]||ii!==ft[1])&&(W.polygonOffset(Dt,ii),ft[0]=Dt,ft[1]=ii),Pt=Rt.sample_alpha,Pt!==Ve.sample_alpha&&(Pt?W.enable(32926):W.disable(32926),Ve.sample_alpha=Pt),Qt=Rt.sample_enable,Qt!==Ve.sample_enable&&(Qt?W.enable(32928):W.disable(32928),Ve.sample_enable=Qt),xt=At[0],pt=At[1],(xt!==lt[0]||pt!==lt[1])&&(W.sampleCoverage(xt,pt),lt[0]=xt,lt[1]=pt),vt=Rt.stencil_enable,vt!==Ve.stencil_enable&&(vt?W.enable(2960):W.disable(2960),Ve.stencil_enable=vt),It=Rt.stencil_mask,It!==Ve.stencil_mask&&(W.stencilMask(It),Ve.stencil_mask=It),Ft=Ke[0],qt=Ke[1],zi=Ke[2],(Ft!==tt[0]||qt!==tt[1]||zi!==tt[2])&&(W.stencilFunc(Ft,qt,zi),tt[0]=Ft,tt[1]=qt,tt[2]=zi),Mi=fe[0],di=fe[1],Ri=fe[2],yi=fe[3],(Mi!==je[0]||di!==je[1]||Ri!==je[2]||yi!==je[3])&&(W.stencilOpSeparate(Mi,di,Ri,yi),je[0]=Mi,je[1]=di,je[2]=Ri,je[3]=yi),Ui=ot[0],Li=ot[1],Ei=ot[2],wi=ot[3],(Ui!==Ne[0]||Li!==Ne[1]||Ei!==Ne[2]||wi!==Ne[3])&&(W.stencilOpSeparate(Ui,Li,Ei,wi),Ne[0]=Ui,Ne[1]=Li,Ne[2]=Ei,Ne[3]=wi),Ci=Rt.scissor_enable,Ci!==Ve.scissor_enable&&(Ci?W.enable(3089):W.disable(3089),Ve.scissor_enable=Ci)}ct=re.framebufferWidth,ve=re.framebufferHeight,D=re.viewportWidth,re.viewportWidth=ct,oe=re.viewportHeight,re.viewportHeight=ve,W.viewport(0,0,ct,ve),Me[0]=0,Me[1]=0,Me[2]=ct,Me[3]=ve,xe=re.framebufferWidth,ce=re.framebufferHeight,W.scissor(0,0,xe,ce),ht[0]=0,ht[1]=0,ht[2]=xe,ht[3]=ce,Oe=Ve.profile,Oe&&(Ye=performance.now(),t.count+=ze),W.useProgram(l.program),pe=N.angle_instanced_arrays;var Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn;for(ie.setVAO(null),Di=c.location,$i=Z[Di],$i.buffer||W.enableVertexAttribArray(Di),Gi=2,($i.type!==5126||$i.size!==Gi||$i.buffer!==s||$i.normalized!==!1||$i.offset!==0||$i.stride!==0)&&(W.bindBuffer(34962,s.buffer),W.vertexAttribPointer(Di,Gi,5126,!1,0,0),$i.type=5126,$i.size=Gi,$i.buffer=s,$i.normalized=!1,$i.offset=0,$i.stride=0),$i.divisor!==0&&(pe.vertexAttribDivisorANGLE(Di,0),$i.divisor=0),tn=u.call(this,re,Qe,Ce),W.uniform1f(d.location,tn),Wi=m.call(this,re,Qe,Ce),Wi&&Wi._reglType==="framebuffer"&&(Wi=Wi.color[0]),qi=Wi._texture,W.uniform1i(h.location,qi.bind()),Xi=g.call(this,re,Qe,Ce),Xi&&Xi._reglType==="framebuffer"&&(Xi=Xi.color[0]),un=Xi._texture,W.uniform1i(b.location,un.bind()),Qi=z.call(this,re,Qe,Ce),W.uniform1f(_.location,Qi),sn=y.call(this,re,Qe,Ce),W.uniform1i(X.location,sn),xn=T.call(this,re,Qe,Ce),wn=xn[0],fn=xn[1],W.uniform2f(E.location,wn,fn),zn=I.call(this,re,Qe,Ce),Ln=zn[0],Dn=zn[1],W.uniform2f(w.location,Ln,Dn),Wn=U.call(this,re,Qe,Ce),Nn=Wn[0],Gn=Wn[1],W.uniform2f(K.location,Nn,Gn),Zn=J.call(this,re,Qe,Ce),W.uniform1f(Y.location,Zn),jn=Q.call(this,re,Qe,Ce),W.uniform1f(S.location,jn),Sn=x.call(this,re,Qe,Ce),W.uniformMatrix3fv(ae.location,!1,Array.isArray(Sn)||Sn instanceof Float32Array?Sn:(ke[0]=Sn[0],ke[1]=Sn[1],ke[2]=Sn[2],ke[3]=Sn[3],ke[4]=Sn[4],ke[5]=Sn[5],ke[6]=Sn[6],ke[7]=Sn[7],ke[8]=Sn[8],ke)),Qn=Fe.elements,Qn?W.bindBuffer(34963,Qn.buffer.buffer):ie.currentVAO&&(Qn=he.getElements(ie.currentVAO.elements),Qn&&W.bindBuffer(34963,Qn.buffer.buffer)),Hn=Fe.offset,Pn=Fe.instances,Ce=0;Ce<ze;++Ce)Qe=Te[Ce],Pn>0?Qn?pe.drawElementsInstancedANGLE(5,4,Qn.type,Hn<<(Qn.type-5121>>1),Pn):pe.drawArraysInstancedANGLE(5,Hn,4,Pn):Pn<0&&(Qn?W.drawElements(5,4,Qn.type,Hn<<(Qn.type-5121>>1)):W.drawArrays(5,Hn,4));qi.unbind(),un.unbind(),Ve.dirty=!0,ie.setVAO(null),Ge.next=at,re.framebufferWidth=Je,re.framebufferHeight=it,re.viewportWidth=D,re.viewportHeight=oe,Oe&&(t.cpuTime+=performance.now()-Ye)}}},"4b1048018d132017f70c93d90fb6866b8a15897d22afb4f95c53227794027ed2":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X){var y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re;return y=e.gl,E=e.context,e.strings,T=e.next,w=e.current,I=e.draw,K=e.elements,e.buffer,U=e.shader,Y=e.attributes,J=e.vao,e.uniforms,S=e.framebuffer,Q=e.extensions,e.timer,e.isBufferArgs,ae=T.blend_color,x=w.blend_color,A=T.blend_equation,O=w.blend_equation,k=T.blend_func,C=w.blend_func,ee=T.depth_range,Re=w.depth_range,ge=T.colorMask,F=w.colorMask,H=T.polygonOffset_offset,R=w.polygonOffset_offset,$=T.sample_coverage,q=w.sample_coverage,se=T.stencil_func,te=w.stencil_func,qe=T.stencil_opFront,we=w.stencil_opFront,Se=T.stencil_opBack,G=w.stencil_opBack,de=T.scissor_box,Ae=w.scissor_box,W=T.viewport,re=w.viewport,{draw:function(Rt){var Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le;if(Q.angle_instanced_arrays,Ve=S.next,S.next=n,Fe=E.framebufferWidth,E.framebufferWidth=n.width,he=E.framebufferHeight,E.framebufferHeight=n.height,n!==S.cur&&(n?y.bindFramebuffer(36160,n.framebuffer):y.bindFramebuffer(36160,null),S.cur=n),w.dirty){var De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt;De=T.dither,De!==w.dither&&(De?y.enable(3024):y.disable(3024),w.dither=De),Ee=T.blend_enable,Ee!==w.blend_enable&&(Ee?y.enable(3042):y.disable(3042),w.blend_enable=Ee),ft=ae[0],At=ae[1],lt=ae[2],Ke=ae[3],(ft!==x[0]||At!==x[1]||lt!==x[2]||Ke!==x[3])&&(y.blendColor(ft,At,lt,Ke),x[0]=ft,x[1]=At,x[2]=lt,x[3]=Ke),tt=A[0],fe=A[1],(tt!==O[0]||fe!==O[1])&&(y.blendEquationSeparate(tt,fe),O[0]=tt,O[1]=fe),je=k[0],ot=k[1],Ne=k[2],et=k[3],(je!==C[0]||ot!==C[1]||Ne!==C[2]||et!==C[3])&&(y.blendFuncSeparate(je,ot,Ne,et),C[0]=je,C[1]=ot,C[2]=Ne,C[3]=et),ht=T.depth_enable,ht!==w.depth_enable&&(ht?y.enable(2929):y.disable(2929),w.depth_enable=ht),Ue=T.depth_func,Ue!==w.depth_func&&(y.depthFunc(Ue),w.depth_func=Ue),Me=ee[0],Be=ee[1],(Me!==Re[0]||Be!==Re[1])&&(y.depthRange(Me,Be),Re[0]=Me,Re[1]=Be),ke=T.depth_mask,ke!==w.depth_mask&&(y.depthMask(ke),w.depth_mask=ke),Te=ge[0],ze=ge[1],Xe=ge[2],ut=ge[3],(Te!==F[0]||ze!==F[1]||Xe!==F[2]||ut!==F[3])&&(y.colorMask(Te,ze,Xe,ut),F[0]=Te,F[1]=ze,F[2]=Xe,F[3]=ut),at=T.cull_enable,at!==w.cull_enable&&(at?y.enable(2884):y.disable(2884),w.cull_enable=at),Je=T.cull_face,Je!==w.cull_face&&(y.cullFace(Je),w.cull_face=Je),it=T.frontFace,it!==w.frontFace&&(y.frontFace(it),w.frontFace=it),ct=T.lineWidth,ct!==w.lineWidth&&(y.lineWidth(ct),w.lineWidth=ct),ve=T.polygonOffset_enable,ve!==w.polygonOffset_enable&&(ve?y.enable(32823):y.disable(32823),w.polygonOffset_enable=ve),D=H[0],oe=H[1],(D!==R[0]||oe!==R[1])&&(y.polygonOffset(D,oe),R[0]=D,R[1]=oe),xe=T.sample_alpha,xe!==w.sample_alpha&&(xe?y.enable(32926):y.disable(32926),w.sample_alpha=xe),ce=T.sample_enable,ce!==w.sample_enable&&(ce?y.enable(32928):y.disable(32928),w.sample_enable=ce),Oe=$[0],Ye=$[1],(Oe!==q[0]||Ye!==q[1])&&(y.sampleCoverage(Oe,Ye),q[0]=Oe,q[1]=Ye),pe=T.stencil_enable,pe!==w.stencil_enable&&(pe?y.enable(2960):y.disable(2960),w.stencil_enable=pe),Ce=T.stencil_mask,Ce!==w.stencil_mask&&(y.stencilMask(Ce),w.stencil_mask=Ce),Qe=se[0],Pe=se[1],ye=se[2],(Qe!==te[0]||Pe!==te[1]||ye!==te[2])&&(y.stencilFunc(Qe,Pe,ye),te[0]=Qe,te[1]=Pe,te[2]=ye),mt=qe[0],wt=qe[1],Le=qe[2],_t=qe[3],(mt!==we[0]||wt!==we[1]||Le!==we[2]||_t!==we[3])&&(y.stencilOpSeparate(mt,wt,Le,_t),we[0]=mt,we[1]=wt,we[2]=Le,we[3]=_t),bt=Se[0],nt=Se[1],yt=Se[2],Lt=Se[3],(bt!==G[0]||nt!==G[1]||yt!==G[2]||Lt!==G[3])&&(y.stencilOpSeparate(bt,nt,yt,Lt),G[0]=bt,G[1]=nt,G[2]=yt,G[3]=Lt),Tt=T.scissor_enable,Tt!==w.scissor_enable&&(Tt?y.enable(3089):y.disable(3089),w.scissor_enable=Tt)}L=E.framebufferWidth,Z=E.framebufferHeight,ie=E.viewportWidth,E.viewportWidth=L,be=E.viewportHeight,E.viewportHeight=Z,y.viewport(0,0,L,Z),re[0]=0,re[1]=0,re[2]=L,re[3]=Z,Ge=E.framebufferWidth,N=E.framebufferHeight,y.scissor(0,0,Ge,N),Ae[0]=0,Ae[1]=0,Ae[2]=Ge,Ae[3]=N,$e=w.profile,$e&&(He=performance.now(),t.count++),y.useProgram(l.program),ne=Q.angle_instanced_arrays,J.setVAO(null),me=c.location,B=Y[me],B.buffer||y.enableVertexAttribArray(me),j=2,(B.type!==5126||B.size!==j||B.buffer!==s||B.normalized!==!1||B.offset!==0||B.stride!==0)&&(y.bindBuffer(34962,s.buffer),y.vertexAttribPointer(me,j,5126,!1,0,0),B.type=5126,B.size=j,B.buffer=s,B.normalized=!1,B.offset=0,B.stride=0),B.divisor!==0&&(ne.vertexAttribDivisorANGLE(me,0),B.divisor=0),ue=I.elements,ue?y.bindBuffer(34963,ue.buffer.buffer):J.currentVAO&&(ue=K.getElements(J.currentVAO.elements),ue&&y.bindBuffer(34963,ue.buffer.buffer)),M=I.offset,le=I.instances,le>0?ue?ne.drawElementsInstancedANGLE(5,4,ue.type,M<<(ue.type-5121>>1),le):ne.drawArraysInstancedANGLE(5,M,4,le):le<0&&(ue?y.drawElements(5,4,ue.type,M<<(ue.type-5121>>1)):y.drawArrays(5,M,4)),w.dirty=!0,J.setVAO(null),S.next=Ve,E.framebufferWidth=Fe,E.framebufferHeight=he,E.viewportWidth=ie,E.viewportHeight=be,$e&&(t.cpuTime+=performance.now()-He)},scope:function(Rt,Ve,Fe){var he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze;he=S.next,S.next=n,L=E.framebufferWidth,E.framebufferWidth=n.width,Z=E.framebufferHeight,E.framebufferHeight=n.height,ie=E.framebufferWidth,be=E.framebufferHeight,Ge=E.viewportWidth,E.viewportWidth=ie,N=E.viewportHeight,E.viewportHeight=be,$e=W[0],W[0]=d,He=W[1],W[1]=u,ne=W[2],W[2]=ie,me=W[3],W[3]=be,B=E.framebufferWidth,j=E.framebufferHeight,ue=de[0],de[0]=h,M=de[1],de[1]=m,le=de[2],de[2]=B,De=de[3],de[3]=j,Ee=w.profile,Ee&&(ft=performance.now(),t.count++),At=I.count,I.count=b,lt=I.primitive,I.primitive=g,Ke=_.state,_.state=1,tt=_.x,_.x=0,fe=_.y,_.y=0,je=_.z,_.z=0,ot=_.w,_.w=0,Ne=_.buffer,_.buffer=s,et=_.size,_.size=2,ht=_.normalized,_.normalized=!1,Ue=_.type,_.type=5126,Me=_.offset,_.offset=0,Be=_.stride,_.stride=0,ke=_.divisor,_.divisor=0,Te=U.vert,U.vert=z,ze=U.frag,U.frag=X,w.dirty=!0,Ve(E,Rt,Fe),S.next=he,E.framebufferWidth=L,E.framebufferHeight=Z,E.viewportWidth=Ge,E.viewportHeight=N,W[0]=$e,W[1]=He,W[2]=ne,W[3]=me,de[0]=ue,de[1]=M,de[2]=le,de[3]=De,Ee&&(t.cpuTime+=performance.now()-ft),I.count=At,I.primitive=lt,_.state=Ke,_.x=tt,_.y=fe,_.z=je,_.w=ot,_.buffer=Ne,_.size=et,_.normalized=ht,_.type=Ue,_.offset=Me,_.stride=Be,_.divisor=ke,U.vert=Te,U.frag=ze,w.dirty=!0},batch:function(Rt,Ve){var Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B;if(Q.angle_instanced_arrays,Fe=S.next,S.next=n,he=E.framebufferWidth,E.framebufferWidth=n.width,L=E.framebufferHeight,E.framebufferHeight=n.height,n!==S.cur&&(n?y.bindFramebuffer(36160,n.framebuffer):y.bindFramebuffer(36160,null),S.cur=n),w.dirty){var j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt;j=T.dither,j!==w.dither&&(j?y.enable(3024):y.disable(3024),w.dither=j),ue=T.blend_enable,ue!==w.blend_enable&&(ue?y.enable(3042):y.disable(3042),w.blend_enable=ue),M=ae[0],le=ae[1],De=ae[2],Ee=ae[3],(M!==x[0]||le!==x[1]||De!==x[2]||Ee!==x[3])&&(y.blendColor(M,le,De,Ee),x[0]=M,x[1]=le,x[2]=De,x[3]=Ee),ft=A[0],At=A[1],(ft!==O[0]||At!==O[1])&&(y.blendEquationSeparate(ft,At),O[0]=ft,O[1]=At),lt=k[0],Ke=k[1],tt=k[2],fe=k[3],(lt!==C[0]||Ke!==C[1]||tt!==C[2]||fe!==C[3])&&(y.blendFuncSeparate(lt,Ke,tt,fe),C[0]=lt,C[1]=Ke,C[2]=tt,C[3]=fe),je=T.depth_enable,je!==w.depth_enable&&(je?y.enable(2929):y.disable(2929),w.depth_enable=je),ot=T.depth_func,ot!==w.depth_func&&(y.depthFunc(ot),w.depth_func=ot),Ne=ee[0],et=ee[1],(Ne!==Re[0]||et!==Re[1])&&(y.depthRange(Ne,et),Re[0]=Ne,Re[1]=et),ht=T.depth_mask,ht!==w.depth_mask&&(y.depthMask(ht),w.depth_mask=ht),Ue=ge[0],Me=ge[1],Be=ge[2],ke=ge[3],(Ue!==F[0]||Me!==F[1]||Be!==F[2]||ke!==F[3])&&(y.colorMask(Ue,Me,Be,ke),F[0]=Ue,F[1]=Me,F[2]=Be,F[3]=ke),Te=T.cull_enable,Te!==w.cull_enable&&(Te?y.enable(2884):y.disable(2884),w.cull_enable=Te),ze=T.cull_face,ze!==w.cull_face&&(y.cullFace(ze),w.cull_face=ze),Xe=T.frontFace,Xe!==w.frontFace&&(y.frontFace(Xe),w.frontFace=Xe),ut=T.lineWidth,ut!==w.lineWidth&&(y.lineWidth(ut),w.lineWidth=ut),at=T.polygonOffset_enable,at!==w.polygonOffset_enable&&(at?y.enable(32823):y.disable(32823),w.polygonOffset_enable=at),Je=H[0],it=H[1],(Je!==R[0]||it!==R[1])&&(y.polygonOffset(Je,it),R[0]=Je,R[1]=it),ct=T.sample_alpha,ct!==w.sample_alpha&&(ct?y.enable(32926):y.disable(32926),w.sample_alpha=ct),ve=T.sample_enable,ve!==w.sample_enable&&(ve?y.enable(32928):y.disable(32928),w.sample_enable=ve),D=$[0],oe=$[1],(D!==q[0]||oe!==q[1])&&(y.sampleCoverage(D,oe),q[0]=D,q[1]=oe),xe=T.stencil_enable,xe!==w.stencil_enable&&(xe?y.enable(2960):y.disable(2960),w.stencil_enable=xe),ce=T.stencil_mask,ce!==w.stencil_mask&&(y.stencilMask(ce),w.stencil_mask=ce),Oe=se[0],Ye=se[1],pe=se[2],(Oe!==te[0]||Ye!==te[1]||pe!==te[2])&&(y.stencilFunc(Oe,Ye,pe),te[0]=Oe,te[1]=Ye,te[2]=pe),Ce=qe[0],Qe=qe[1],Pe=qe[2],ye=qe[3],(Ce!==we[0]||Qe!==we[1]||Pe!==we[2]||ye!==we[3])&&(y.stencilOpSeparate(Ce,Qe,Pe,ye),we[0]=Ce,we[1]=Qe,we[2]=Pe,we[3]=ye),mt=Se[0],wt=Se[1],Le=Se[2],_t=Se[3],(mt!==G[0]||wt!==G[1]||Le!==G[2]||_t!==G[3])&&(y.stencilOpSeparate(mt,wt,Le,_t),G[0]=mt,G[1]=wt,G[2]=Le,G[3]=_t),bt=T.scissor_enable,bt!==w.scissor_enable&&(bt?y.enable(3089):y.disable(3089),w.scissor_enable=bt)}Z=E.framebufferWidth,ie=E.framebufferHeight,be=E.viewportWidth,E.viewportWidth=Z,Ge=E.viewportHeight,E.viewportHeight=ie,y.viewport(0,0,Z,ie),re[0]=0,re[1]=0,re[2]=Z,re[3]=ie,N=E.framebufferWidth,$e=E.framebufferHeight,y.scissor(0,0,N,$e),Ae[0]=0,Ae[1]=0,Ae[2]=N,Ae[3]=$e,He=w.profile,He&&(ne=performance.now(),t.count+=Ve),y.useProgram(l.program),me=Q.angle_instanced_arrays;var nt,yt,Lt,Tt,Nt,zt;for(J.setVAO(null),nt=c.location,yt=Y[nt],yt.buffer||y.enableVertexAttribArray(nt),Lt=2,(yt.type!==5126||yt.size!==Lt||yt.buffer!==s||yt.normalized!==!1||yt.offset!==0||yt.stride!==0)&&(y.bindBuffer(34962,s.buffer),y.vertexAttribPointer(nt,Lt,5126,!1,0,0),yt.type=5126,yt.size=Lt,yt.buffer=s,yt.normalized=!1,yt.offset=0,yt.stride=0),yt.divisor!==0&&(me.vertexAttribDivisorANGLE(nt,0),yt.divisor=0),Tt=I.elements,Tt?y.bindBuffer(34963,Tt.buffer.buffer):J.currentVAO&&(Tt=K.getElements(J.currentVAO.elements),Tt&&y.bindBuffer(34963,Tt.buffer.buffer)),Nt=I.offset,zt=I.instances,B=0;B<Ve;++B)Rt[B],zt>0?Tt?me.drawElementsInstancedANGLE(5,4,Tt.type,Nt<<(Tt.type-5121>>1),zt):me.drawArraysInstancedANGLE(5,Nt,4,zt):zt<0&&(Tt?y.drawElements(5,4,Tt.type,Nt<<(Tt.type-5121>>1)):y.drawArrays(5,Nt,4));w.dirty=!0,J.setVAO(null),S.next=Fe,E.framebufferWidth=he,E.framebufferHeight=L,E.viewportWidth=be,E.viewportHeight=Ge,He&&(t.cpuTime+=performance.now()-ne)}}},dc78818e05e5bdb719097afd9459427ce9cec77af6efb5a73a4259e754167213:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he){var L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je;return L=e.gl,Z=e.context,e.strings,ie=e.next,be=e.current,Ge=e.draw,N=e.elements,e.buffer,$e=e.shader,He=e.attributes,ne=e.vao,me=e.uniforms,B=e.framebuffer,j=e.extensions,e.timer,e.isBufferArgs,ue=ie.blend_color,M=be.blend_color,le=ie.blend_equation,De=be.blend_equation,Ee=ie.blend_func,ft=be.blend_func,At=ie.depth_range,lt=be.depth_range,Ke=ie.colorMask,tt=be.colorMask,fe=ie.polygonOffset_offset,je=be.polygonOffset_offset,ot=ie.sample_coverage,Ne=be.sample_coverage,et=ie.stencil_func,ht=be.stencil_func,Ue=ie.stencil_opFront,Me=be.stencil_opFront,Be=ie.stencil_opBack,ke=be.stencil_opBack,Te=ie.scissor_box,ze=be.scissor_box,Xe=ie.viewport,ut=be.viewport,at=new Float32Array(9),Je=new Float32Array(9),{draw:function(it){var ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt;if(j.angle_instanced_arrays,ct=n.call(this,Z,it,0),ve=B.getFramebuffer(ct),D=B.next,B.next=ve,oe=Z.framebufferWidth,Z.framebufferWidth=ve?ve.width:Z.drawingBufferWidth,xe=Z.framebufferHeight,Z.framebufferHeight=ve?ve.height:Z.drawingBufferHeight,ve!==B.cur&&(ve?L.bindFramebuffer(36160,ve.framebuffer):L.bindFramebuffer(36160,null),B.cur=ve),be.dirty){var ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn;ii=ie.dither,ii!==be.dither&&(ii?L.enable(3024):L.disable(3024),be.dither=ii),Pt=ie.blend_enable,Pt!==be.blend_enable&&(Pt?L.enable(3042):L.disable(3042),be.blend_enable=Pt),Qt=ue[0],xt=ue[1],pt=ue[2],vt=ue[3],(Qt!==M[0]||xt!==M[1]||pt!==M[2]||vt!==M[3])&&(L.blendColor(Qt,xt,pt,vt),M[0]=Qt,M[1]=xt,M[2]=pt,M[3]=vt),It=le[0],Ft=le[1],(It!==De[0]||Ft!==De[1])&&(L.blendEquationSeparate(It,Ft),De[0]=It,De[1]=Ft),qt=Ee[0],zi=Ee[1],Mi=Ee[2],di=Ee[3],(qt!==ft[0]||zi!==ft[1]||Mi!==ft[2]||di!==ft[3])&&(L.blendFuncSeparate(qt,zi,Mi,di),ft[0]=qt,ft[1]=zi,ft[2]=Mi,ft[3]=di),Ri=ie.depth_func,Ri!==be.depth_func&&(L.depthFunc(Ri),be.depth_func=Ri),yi=At[0],Ui=At[1],(yi!==lt[0]||Ui!==lt[1])&&(L.depthRange(yi,Ui),lt[0]=yi,lt[1]=Ui),Li=Ke[0],Ei=Ke[1],wi=Ke[2],Ci=Ke[3],(Li!==tt[0]||Ei!==tt[1]||wi!==tt[2]||Ci!==tt[3])&&(L.colorMask(Li,Ei,wi,Ci),tt[0]=Li,tt[1]=Ei,tt[2]=wi,tt[3]=Ci),Di=ie.cull_enable,Di!==be.cull_enable&&(Di?L.enable(2884):L.disable(2884),be.cull_enable=Di),$i=ie.cull_face,$i!==be.cull_face&&(L.cullFace($i),be.cull_face=$i),Gi=ie.frontFace,Gi!==be.frontFace&&(L.frontFace(Gi),be.frontFace=Gi),tn=ie.lineWidth,tn!==be.lineWidth&&(L.lineWidth(tn),be.lineWidth=tn),Wi=ie.polygonOffset_enable,Wi!==be.polygonOffset_enable&&(Wi?L.enable(32823):L.disable(32823),be.polygonOffset_enable=Wi),qi=fe[0],Xi=fe[1],(qi!==je[0]||Xi!==je[1])&&(L.polygonOffset(qi,Xi),je[0]=qi,je[1]=Xi),un=ie.sample_alpha,un!==be.sample_alpha&&(un?L.enable(32926):L.disable(32926),be.sample_alpha=un),Qi=ie.sample_enable,Qi!==be.sample_enable&&(Qi?L.enable(32928):L.disable(32928),be.sample_enable=Qi),sn=ot[0],xn=ot[1],(sn!==Ne[0]||xn!==Ne[1])&&(L.sampleCoverage(sn,xn),Ne[0]=sn,Ne[1]=xn),wn=ie.stencil_enable,wn!==be.stencil_enable&&(wn?L.enable(2960):L.disable(2960),be.stencil_enable=wn),fn=ie.stencil_mask,fn!==be.stencil_mask&&(L.stencilMask(fn),be.stencil_mask=fn),zn=et[0],Ln=et[1],Dn=et[2],(zn!==ht[0]||Ln!==ht[1]||Dn!==ht[2])&&(L.stencilFunc(zn,Ln,Dn),ht[0]=zn,ht[1]=Ln,ht[2]=Dn),Wn=Ue[0],Nn=Ue[1],Gn=Ue[2],Zn=Ue[3],(Wn!==Me[0]||Nn!==Me[1]||Gn!==Me[2]||Zn!==Me[3])&&(L.stencilOpSeparate(Wn,Nn,Gn,Zn),Me[0]=Wn,Me[1]=Nn,Me[2]=Gn,Me[3]=Zn),jn=Be[0],Sn=Be[1],Qn=Be[2],Hn=Be[3],(jn!==ke[0]||Sn!==ke[1]||Qn!==ke[2]||Hn!==ke[3])&&(L.stencilOpSeparate(jn,Sn,Qn,Hn),ke[0]=jn,ke[1]=Sn,ke[2]=Qn,ke[3]=Hn),Pn=ie.scissor_enable,Pn!==be.scissor_enable&&(Pn?L.enable(3089):L.disable(3089),be.scissor_enable=Pn)}ce=Z.framebufferWidth,Oe=Z.framebufferHeight,Ye=Z.viewportWidth,Z.viewportWidth=ce,pe=Z.viewportHeight,Z.viewportHeight=Oe,L.viewport(0,0,ce,Oe),ut[0]=0,ut[1]=0,ut[2]=ce,ut[3]=Oe,l?L.enable(2929):L.disable(2929),be.depth_enable=l,L.depthMask(s),be.depth_mask=s,Ce=Z.framebufferWidth,Qe=Z.framebufferHeight,L.scissor(0,0,Ce,Qe),ze[0]=0,ze[1]=0,ze[2]=Ce,ze[3]=Qe,Pe=be.profile,Pe&&(ye=performance.now(),t.count++),L.useProgram(c.program),mt=j.angle_instanced_arrays,ne.setVAO(null),wt=u.location,Le=He[wt],Le.buffer||L.enableVertexAttribArray(wt),_t=2,(Le.type!==5126||Le.size!==_t||Le.buffer!==d||Le.normalized!==!1||Le.offset!==0||Le.stride!==0)&&(L.bindBuffer(34962,d.buffer),L.vertexAttribPointer(wt,_t,5126,!1,0,0),Le.type=5126,Le.size=_t,Le.buffer=d,Le.normalized=!1,Le.offset=0,Le.stride=0),Le.divisor!==0&&(mt.vertexAttribDivisorANGLE(wt,0),Le.divisor=0),bt=m.call(this,Z,it,0),L.uniform1f(h.location,bt),nt=g.call(this,Z,it,0),yt=nt[0],Lt=nt[1],L.uniform2f(b.location,yt,Lt),Tt=z.call(this,Z,it,0),Tt&&Tt._reglType==="framebuffer"&&(Tt=Tt.color[0]),Nt=Tt._texture,L.uniform1i(_.location,Nt.bind()),zt=y.call(this,Z,it,0),L.uniform1f(X.location,zt),Ut=T.call(this,Z,it,0),Ut&&Ut._reglType==="framebuffer"&&(Ut=Ut.color[0]),Mt=Ut._texture,L.uniform1i(E.location,Mt.bind()),Kt=I.call(this,Z,it,0),L.uniform1f(w.location,Kt),ei=U.call(this,Z,it,0),L.uniform1i(K.location,ei),Jt=J.call(this,Z,it,0),Wt=Jt[0],$t=Jt[1],L.uniform2f(Y.location,Wt,$t),Gt=Q.call(this,Z,it,0),L.uniform1f(S.location,Gt),Ot=x.call(this,Z,it,0),L.uniform1f(ae.location,Ot),Bt=O.call(this,Z,it,0),L.uniformMatrix3fv(A.location,!1,Array.isArray(Bt)||Bt instanceof Float32Array?Bt:(at[0]=Bt[0],at[1]=Bt[1],at[2]=Bt[2],at[3]=Bt[3],at[4]=Bt[4],at[5]=Bt[5],at[6]=Bt[6],at[7]=Bt[7],at[8]=Bt[8],at)),Zt=Ge.elements,Zt?L.bindBuffer(34963,Zt.buffer.buffer):ne.currentVAO&&(Zt=N.getElements(ne.currentVAO.elements),Zt&&L.bindBuffer(34963,Zt.buffer.buffer)),St=Ge.offset,Vt=k.call(this,Z,it,0),Vt&&(Dt=Ge.instances,Dt>0?Zt?mt.drawElementsInstancedANGLE(0,Vt,Zt.type,St<<(Zt.type-5121>>1),Dt):mt.drawArraysInstancedANGLE(0,St,Vt,Dt):Dt<0&&(Zt?L.drawElements(0,Vt,Zt.type,St<<(Zt.type-5121>>1)):L.drawArrays(0,St,Vt)),be.dirty=!0,ne.setVAO(null),B.next=D,Z.framebufferWidth=oe,Z.framebufferHeight=xe,Z.viewportWidth=Ye,Z.viewportHeight=pe,Pe&&(t.cpuTime+=performance.now()-ye),Nt.unbind(),Mt.unbind())},scope:function(it,ct,ve){var D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi;D=n.call(this,Z,it,ve),oe=B.getFramebuffer(D),xe=B.next,B.next=oe,ce=Z.framebufferWidth,Z.framebufferWidth=oe?oe.width:Z.drawingBufferWidth,Oe=Z.framebufferHeight,Z.framebufferHeight=oe?oe.height:Z.drawingBufferHeight,Ye=Z.framebufferWidth,pe=Z.framebufferHeight,Ce=Z.viewportWidth,Z.viewportWidth=Ye,Qe=Z.viewportHeight,Z.viewportHeight=pe,Pe=Xe[0],Xe[0]=C,ye=Xe[1],Xe[1]=ee,mt=Xe[2],Xe[2]=Ye,wt=Xe[3],Xe[3]=pe,Le=ie.depth_enable,ie.depth_enable=Re,_t=ie.depth_mask,ie.depth_mask=ge,bt=Z.framebufferWidth,nt=Z.framebufferHeight,yt=Te[0],Te[0]=F,Lt=Te[1],Te[1]=H,Tt=Te[2],Te[2]=bt,Nt=Te[3],Te[3]=nt,zt=be.profile,zt&&(Ut=performance.now(),t.count++),Mt=k.call(this,Z,it,ve),Kt=Ge.count,Ge.count=Mt,ei=Ge.primitive,Ge.primitive=R,Jt=T.call(this,Z,it,ve),Wt=me[$],me[$]=Jt,$t=z.call(this,Z,it,ve),Gt=me[q],me[q]=$t,Ot=I.call(this,Z,it,ve),Bt=me[se],me[se]=Ot,Zt=Q.call(this,Z,it,ve),St=me[te],me[te]=Zt,Vt=y.call(this,Z,it,ve),Dt=me[qe],me[qe]=Vt,ii=O.call(this,Z,it,ve),Pt=me[we],me[we]=ii,Qt=x.call(this,Z,it,ve),xt=me[Se],me[Se]=Qt,pt=J.call(this,Z,it,ve),vt=me[G],me[G]=pt,It=U.call(this,Z,it,ve),Ft=me[de],me[de]=It,qt=g.call(this,Z,it,ve),zi=me[Ae],me[Ae]=qt,Mi=m.call(this,Z,it,ve),di=me[W],me[W]=Mi,Ri=re.state,re.state=1,yi=re.x,re.x=0,Ui=re.y,re.y=0,Li=re.z,re.z=0,Ei=re.w,re.w=0,wi=re.buffer,re.buffer=d,Ci=re.size,re.size=2,Di=re.normalized,re.normalized=!1,$i=re.type,re.type=5126,Gi=re.offset,re.offset=0,tn=re.stride,re.stride=0,Wi=re.divisor,re.divisor=0,qi=$e.vert,$e.vert=Rt,Xi=$e.frag,$e.frag=Ve,be.dirty=!0,ct(Z,it,ve),B.next=xe,Z.framebufferWidth=ce,Z.framebufferHeight=Oe,Z.viewportWidth=Ce,Z.viewportHeight=Qe,Xe[0]=Pe,Xe[1]=ye,Xe[2]=mt,Xe[3]=wt,ie.depth_enable=Le,ie.depth_mask=_t,Te[0]=yt,Te[1]=Lt,Te[2]=Tt,Te[3]=Nt,zt&&(t.cpuTime+=performance.now()-Ut),Ge.count=Kt,Ge.primitive=ei,me[$]=Wt,me[q]=Gt,me[se]=Bt,me[te]=St,me[qe]=Dt,me[we]=Pt,me[Se]=xt,me[G]=vt,me[de]=Ft,me[Ae]=zi,me[W]=di,re.state=Ri,re.x=yi,re.y=Ui,re.z=Li,re.w=Ei,re.buffer=wi,re.size=Ci,re.normalized=Di,re.type=$i,re.offset=Gi,re.stride=tn,re.divisor=Wi,$e.vert=qi,$e.frag=Xi,be.dirty=!0},batch:function(it,ct){var ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t;if(j.angle_instanced_arrays,ve=n.call(this,Z,it,0),D=B.getFramebuffer(ve),oe=B.next,B.next=D,xe=Z.framebufferWidth,Z.framebufferWidth=D?D.width:Z.drawingBufferWidth,ce=Z.framebufferHeight,Z.framebufferHeight=D?D.height:Z.drawingBufferHeight,D!==B.cur&&(D?L.bindFramebuffer(36160,D.framebuffer):L.bindFramebuffer(36160,null),B.cur=D),be.dirty){var bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn;bt=ie.dither,bt!==be.dither&&(bt?L.enable(3024):L.disable(3024),be.dither=bt),nt=ie.blend_enable,nt!==be.blend_enable&&(nt?L.enable(3042):L.disable(3042),be.blend_enable=nt),yt=ue[0],Lt=ue[1],Tt=ue[2],Nt=ue[3],(yt!==M[0]||Lt!==M[1]||Tt!==M[2]||Nt!==M[3])&&(L.blendColor(yt,Lt,Tt,Nt),M[0]=yt,M[1]=Lt,M[2]=Tt,M[3]=Nt),zt=le[0],Ut=le[1],(zt!==De[0]||Ut!==De[1])&&(L.blendEquationSeparate(zt,Ut),De[0]=zt,De[1]=Ut),Mt=Ee[0],Kt=Ee[1],ei=Ee[2],Jt=Ee[3],(Mt!==ft[0]||Kt!==ft[1]||ei!==ft[2]||Jt!==ft[3])&&(L.blendFuncSeparate(Mt,Kt,ei,Jt),ft[0]=Mt,ft[1]=Kt,ft[2]=ei,ft[3]=Jt),Wt=ie.depth_func,Wt!==be.depth_func&&(L.depthFunc(Wt),be.depth_func=Wt),$t=At[0],Gt=At[1],($t!==lt[0]||Gt!==lt[1])&&(L.depthRange($t,Gt),lt[0]=$t,lt[1]=Gt),Ot=Ke[0],Bt=Ke[1],Zt=Ke[2],St=Ke[3],(Ot!==tt[0]||Bt!==tt[1]||Zt!==tt[2]||St!==tt[3])&&(L.colorMask(Ot,Bt,Zt,St),tt[0]=Ot,tt[1]=Bt,tt[2]=Zt,tt[3]=St),Vt=ie.cull_enable,Vt!==be.cull_enable&&(Vt?L.enable(2884):L.disable(2884),be.cull_enable=Vt),Dt=ie.cull_face,Dt!==be.cull_face&&(L.cullFace(Dt),be.cull_face=Dt),ii=ie.frontFace,ii!==be.frontFace&&(L.frontFace(ii),be.frontFace=ii),Pt=ie.lineWidth,Pt!==be.lineWidth&&(L.lineWidth(Pt),be.lineWidth=Pt),Qt=ie.polygonOffset_enable,Qt!==be.polygonOffset_enable&&(Qt?L.enable(32823):L.disable(32823),be.polygonOffset_enable=Qt),xt=fe[0],pt=fe[1],(xt!==je[0]||pt!==je[1])&&(L.polygonOffset(xt,pt),je[0]=xt,je[1]=pt),vt=ie.sample_alpha,vt!==be.sample_alpha&&(vt?L.enable(32926):L.disable(32926),be.sample_alpha=vt),It=ie.sample_enable,It!==be.sample_enable&&(It?L.enable(32928):L.disable(32928),be.sample_enable=It),Ft=ot[0],qt=ot[1],(Ft!==Ne[0]||qt!==Ne[1])&&(L.sampleCoverage(Ft,qt),Ne[0]=Ft,Ne[1]=qt),zi=ie.stencil_enable,zi!==be.stencil_enable&&(zi?L.enable(2960):L.disable(2960),be.stencil_enable=zi),Mi=ie.stencil_mask,Mi!==be.stencil_mask&&(L.stencilMask(Mi),be.stencil_mask=Mi),di=et[0],Ri=et[1],yi=et[2],(di!==ht[0]||Ri!==ht[1]||yi!==ht[2])&&(L.stencilFunc(di,Ri,yi),ht[0]=di,ht[1]=Ri,ht[2]=yi),Ui=Ue[0],Li=Ue[1],Ei=Ue[2],wi=Ue[3],(Ui!==Me[0]||Li!==Me[1]||Ei!==Me[2]||wi!==Me[3])&&(L.stencilOpSeparate(Ui,Li,Ei,wi),Me[0]=Ui,Me[1]=Li,Me[2]=Ei,Me[3]=wi),Ci=Be[0],Di=Be[1],$i=Be[2],Gi=Be[3],(Ci!==ke[0]||Di!==ke[1]||$i!==ke[2]||Gi!==ke[3])&&(L.stencilOpSeparate(Ci,Di,$i,Gi),ke[0]=Ci,ke[1]=Di,ke[2]=$i,ke[3]=Gi),tn=ie.scissor_enable,tn!==be.scissor_enable&&(tn?L.enable(3089):L.disable(3089),be.scissor_enable=tn)}Oe=Z.framebufferWidth,Ye=Z.framebufferHeight,pe=Z.viewportWidth,Z.viewportWidth=Oe,Ce=Z.viewportHeight,Z.viewportHeight=Ye,L.viewport(0,0,Oe,Ye),ut[0]=0,ut[1]=0,ut[2]=Oe,ut[3]=Ye,Fe?L.enable(2929):L.disable(2929),be.depth_enable=Fe,L.depthMask(he),be.depth_mask=he,Qe=Z.framebufferWidth,Pe=Z.framebufferHeight,L.scissor(0,0,Qe,Pe),ze[0]=0,ze[1]=0,ze[2]=Qe,ze[3]=Pe,ye=be.profile,ye&&(mt=performance.now(),t.count+=ct),L.useProgram(c.program),wt=j.angle_instanced_arrays;var Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr;for(ne.setVAO(null),Wi=u.location,qi=He[Wi],qi.buffer||L.enableVertexAttribArray(Wi),Xi=2,(qi.type!==5126||qi.size!==Xi||qi.buffer!==d||qi.normalized!==!1||qi.offset!==0||qi.stride!==0)&&(L.bindBuffer(34962,d.buffer),L.vertexAttribPointer(Wi,Xi,5126,!1,0,0),qi.type=5126,qi.size=Xi,qi.buffer=d,qi.normalized=!1,qi.offset=0,qi.stride=0),qi.divisor!==0&&(wt.vertexAttribDivisorANGLE(Wi,0),qi.divisor=0),un=m.call(this,Z,_t,Le),L.uniform1f(h.location,un),Qi=g.call(this,Z,_t,Le),sn=Qi[0],xn=Qi[1],L.uniform2f(b.location,sn,xn),wn=z.call(this,Z,_t,Le),wn&&wn._reglType==="framebuffer"&&(wn=wn.color[0]),fn=wn._texture,L.uniform1i(_.location,fn.bind()),zn=y.call(this,Z,_t,Le),L.uniform1f(X.location,zn),Ln=T.call(this,Z,_t,Le),Ln&&Ln._reglType==="framebuffer"&&(Ln=Ln.color[0]),Dn=Ln._texture,L.uniform1i(E.location,Dn.bind()),Wn=I.call(this,Z,_t,Le),L.uniform1f(w.location,Wn),Nn=U.call(this,Z,_t,Le),L.uniform1i(K.location,Nn),Gn=J.call(this,Z,_t,Le),Zn=Gn[0],jn=Gn[1],L.uniform2f(Y.location,Zn,jn),Sn=Q.call(this,Z,_t,Le),L.uniform1f(S.location,Sn),Qn=x.call(this,Z,_t,Le),L.uniform1f(ae.location,Qn),Hn=O.call(this,Z,_t,Le),L.uniformMatrix3fv(A.location,!1,Array.isArray(Hn)||Hn instanceof Float32Array?Hn:(Je[0]=Hn[0],Je[1]=Hn[1],Je[2]=Hn[2],Je[3]=Hn[3],Je[4]=Hn[4],Je[5]=Hn[5],Je[6]=Hn[6],Je[7]=Hn[7],Je[8]=Hn[8],Je)),Pn=Ge.elements,Pn?L.bindBuffer(34963,Pn.buffer.buffer):ne.currentVAO&&(Pn=N.getElements(ne.currentVAO.elements),Pn&&L.bindBuffer(34963,Pn.buffer.buffer)),vr=Ge.offset,Jn=k.call(this,Z,_t,Le),rr=Ge.instances,Le=0;Le<ct;++Le)_t=it[Le],Jn&&(rr>0?Pn?wt.drawElementsInstancedANGLE(0,Jn,Pn.type,vr<<(Pn.type-5121>>1),rr):wt.drawArraysInstancedANGLE(0,vr,Jn,rr):rr<0&&(Pn?L.drawElements(0,Jn,Pn.type,vr<<(Pn.type-5121>>1)):L.drawArrays(0,vr,Jn)));fn.unbind(),Dn.unbind(),be.dirty=!0,ne.setVAO(null),B.next=oe,Z.framebufferWidth=xe,Z.framebufferHeight=ce,Z.viewportWidth=pe,Z.viewportHeight=Ce,ye&&(t.cpuTime+=performance.now()-mt)}}},"3656ddc8a124213dd6cc380663c06f93d2eb875ec39b2fabe1227101650ec654":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X){var y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re;return y=e.gl,E=e.context,e.strings,T=e.next,w=e.current,I=e.draw,K=e.elements,e.buffer,U=e.shader,Y=e.attributes,J=e.vao,e.uniforms,S=e.framebuffer,Q=e.extensions,e.timer,e.isBufferArgs,ae=T.blend_color,x=w.blend_color,A=T.blend_equation,O=w.blend_equation,k=T.blend_func,C=w.blend_func,ee=T.depth_range,Re=w.depth_range,ge=T.colorMask,F=w.colorMask,H=T.polygonOffset_offset,R=w.polygonOffset_offset,$=T.sample_coverage,q=w.sample_coverage,se=T.stencil_func,te=w.stencil_func,qe=T.stencil_opFront,we=w.stencil_opFront,Se=T.stencil_opBack,G=w.stencil_opBack,de=T.scissor_box,Ae=w.scissor_box,W=T.viewport,re=w.viewport,{draw:function(Rt){var Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee;if(Q.angle_instanced_arrays,Ve=n.call(this,E,Rt,0),Fe=S.getFramebuffer(Ve),he=S.next,S.next=Fe,L=E.framebufferWidth,E.framebufferWidth=Fe?Fe.width:E.drawingBufferWidth,Z=E.framebufferHeight,E.framebufferHeight=Fe?Fe.height:E.drawingBufferHeight,Fe!==S.cur&&(Fe?y.bindFramebuffer(36160,Fe.framebuffer):y.bindFramebuffer(36160,null),S.cur=Fe),w.dirty){var ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt;ft=T.dither,ft!==w.dither&&(ft?y.enable(3024):y.disable(3024),w.dither=ft),At=T.blend_enable,At!==w.blend_enable&&(At?y.enable(3042):y.disable(3042),w.blend_enable=At),lt=ae[0],Ke=ae[1],tt=ae[2],fe=ae[3],(lt!==x[0]||Ke!==x[1]||tt!==x[2]||fe!==x[3])&&(y.blendColor(lt,Ke,tt,fe),x[0]=lt,x[1]=Ke,x[2]=tt,x[3]=fe),je=A[0],ot=A[1],(je!==O[0]||ot!==O[1])&&(y.blendEquationSeparate(je,ot),O[0]=je,O[1]=ot),Ne=k[0],et=k[1],ht=k[2],Ue=k[3],(Ne!==C[0]||et!==C[1]||ht!==C[2]||Ue!==C[3])&&(y.blendFuncSeparate(Ne,et,ht,Ue),C[0]=Ne,C[1]=et,C[2]=ht,C[3]=Ue),Me=T.depth_enable,Me!==w.depth_enable&&(Me?y.enable(2929):y.disable(2929),w.depth_enable=Me),Be=T.depth_func,Be!==w.depth_func&&(y.depthFunc(Be),w.depth_func=Be),ke=ee[0],Te=ee[1],(ke!==Re[0]||Te!==Re[1])&&(y.depthRange(ke,Te),Re[0]=ke,Re[1]=Te),ze=T.depth_mask,ze!==w.depth_mask&&(y.depthMask(ze),w.depth_mask=ze),Xe=ge[0],ut=ge[1],at=ge[2],Je=ge[3],(Xe!==F[0]||ut!==F[1]||at!==F[2]||Je!==F[3])&&(y.colorMask(Xe,ut,at,Je),F[0]=Xe,F[1]=ut,F[2]=at,F[3]=Je),it=T.cull_enable,it!==w.cull_enable&&(it?y.enable(2884):y.disable(2884),w.cull_enable=it),ct=T.cull_face,ct!==w.cull_face&&(y.cullFace(ct),w.cull_face=ct),ve=T.frontFace,ve!==w.frontFace&&(y.frontFace(ve),w.frontFace=ve),D=T.lineWidth,D!==w.lineWidth&&(y.lineWidth(D),w.lineWidth=D),oe=T.polygonOffset_enable,oe!==w.polygonOffset_enable&&(oe?y.enable(32823):y.disable(32823),w.polygonOffset_enable=oe),xe=H[0],ce=H[1],(xe!==R[0]||ce!==R[1])&&(y.polygonOffset(xe,ce),R[0]=xe,R[1]=ce),Oe=T.sample_alpha,Oe!==w.sample_alpha&&(Oe?y.enable(32926):y.disable(32926),w.sample_alpha=Oe),Ye=T.sample_enable,Ye!==w.sample_enable&&(Ye?y.enable(32928):y.disable(32928),w.sample_enable=Ye),pe=$[0],Ce=$[1],(pe!==q[0]||Ce!==q[1])&&(y.sampleCoverage(pe,Ce),q[0]=pe,q[1]=Ce),Qe=T.stencil_enable,Qe!==w.stencil_enable&&(Qe?y.enable(2960):y.disable(2960),w.stencil_enable=Qe),Pe=T.stencil_mask,Pe!==w.stencil_mask&&(y.stencilMask(Pe),w.stencil_mask=Pe),ye=se[0],mt=se[1],wt=se[2],(ye!==te[0]||mt!==te[1]||wt!==te[2])&&(y.stencilFunc(ye,mt,wt),te[0]=ye,te[1]=mt,te[2]=wt),Le=qe[0],_t=qe[1],bt=qe[2],nt=qe[3],(Le!==we[0]||_t!==we[1]||bt!==we[2]||nt!==we[3])&&(y.stencilOpSeparate(Le,_t,bt,nt),we[0]=Le,we[1]=_t,we[2]=bt,we[3]=nt),yt=Se[0],Lt=Se[1],Tt=Se[2],Nt=Se[3],(yt!==G[0]||Lt!==G[1]||Tt!==G[2]||Nt!==G[3])&&(y.stencilOpSeparate(yt,Lt,Tt,Nt),G[0]=yt,G[1]=Lt,G[2]=Tt,G[3]=Nt),zt=T.scissor_enable,zt!==w.scissor_enable&&(zt?y.enable(3089):y.disable(3089),w.scissor_enable=zt)}ie=E.framebufferWidth,be=E.framebufferHeight,Ge=E.viewportWidth,E.viewportWidth=ie,N=E.viewportHeight,E.viewportHeight=be,y.viewport(0,0,ie,be),re[0]=0,re[1]=0,re[2]=ie,re[3]=be,$e=E.framebufferWidth,He=E.framebufferHeight,y.scissor(0,0,$e,He),Ae[0]=0,Ae[1]=0,Ae[2]=$e,Ae[3]=He,ne=w.profile,ne&&(me=performance.now(),t.count++),y.useProgram(l.program),B=Q.angle_instanced_arrays,J.setVAO(null),j=c.location,ue=Y[j],ue.buffer||y.enableVertexAttribArray(j),M=2,(ue.type!==5126||ue.size!==M||ue.buffer!==s||ue.normalized!==!1||ue.offset!==0||ue.stride!==0)&&(y.bindBuffer(34962,s.buffer),y.vertexAttribPointer(j,M,5126,!1,0,0),ue.type=5126,ue.size=M,ue.buffer=s,ue.normalized=!1,ue.offset=0,ue.stride=0),ue.divisor!==0&&(B.vertexAttribDivisorANGLE(j,0),ue.divisor=0),le=I.elements,le?y.bindBuffer(34963,le.buffer.buffer):J.currentVAO&&(le=K.getElements(J.currentVAO.elements),le&&y.bindBuffer(34963,le.buffer.buffer)),De=I.offset,Ee=I.instances,Ee>0?le?B.drawElementsInstancedANGLE(5,4,le.type,De<<(le.type-5121>>1),Ee):B.drawArraysInstancedANGLE(5,De,4,Ee):Ee<0&&(le?y.drawElements(5,4,le.type,De<<(le.type-5121>>1)):y.drawArrays(5,De,4)),w.dirty=!0,J.setVAO(null),S.next=he,E.framebufferWidth=L,E.framebufferHeight=Z,E.viewportWidth=Ge,E.viewportHeight=N,ne&&(t.cpuTime+=performance.now()-me)},scope:function(Rt,Ve,Fe){var he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut;he=n.call(this,E,Rt,Fe),L=S.getFramebuffer(he),Z=S.next,S.next=L,ie=E.framebufferWidth,E.framebufferWidth=L?L.width:E.drawingBufferWidth,be=E.framebufferHeight,E.framebufferHeight=L?L.height:E.drawingBufferHeight,Ge=E.framebufferWidth,N=E.framebufferHeight,$e=E.viewportWidth,E.viewportWidth=Ge,He=E.viewportHeight,E.viewportHeight=N,ne=W[0],W[0]=d,me=W[1],W[1]=u,B=W[2],W[2]=Ge,j=W[3],W[3]=N,ue=E.framebufferWidth,M=E.framebufferHeight,le=de[0],de[0]=h,De=de[1],de[1]=m,Ee=de[2],de[2]=ue,ft=de[3],de[3]=M,At=w.profile,At&&(lt=performance.now(),t.count++),Ke=I.count,I.count=b,tt=I.primitive,I.primitive=g,fe=_.state,_.state=1,je=_.x,_.x=0,ot=_.y,_.y=0,Ne=_.z,_.z=0,et=_.w,_.w=0,ht=_.buffer,_.buffer=s,Ue=_.size,_.size=2,Me=_.normalized,_.normalized=!1,Be=_.type,_.type=5126,ke=_.offset,_.offset=0,Te=_.stride,_.stride=0,ze=_.divisor,_.divisor=0,Xe=U.vert,U.vert=z,ut=U.frag,U.frag=X,w.dirty=!0,Ve(E,Rt,Fe),S.next=Z,E.framebufferWidth=ie,E.framebufferHeight=be,E.viewportWidth=$e,E.viewportHeight=He,W[0]=ne,W[1]=me,W[2]=B,W[3]=j,de[0]=le,de[1]=De,de[2]=Ee,de[3]=ft,At&&(t.cpuTime+=performance.now()-lt),I.count=Ke,I.primitive=tt,_.state=fe,_.x=je,_.y=ot,_.z=Ne,_.w=et,_.buffer=ht,_.size=Ue,_.normalized=Me,_.type=Be,_.offset=ke,_.stride=Te,_.divisor=ze,U.vert=Xe,U.frag=ut,w.dirty=!0},batch:function(Rt,Ve){var Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue;if(Q.angle_instanced_arrays,Fe=n.call(this,E,Rt,0),he=S.getFramebuffer(Fe),L=S.next,S.next=he,Z=E.framebufferWidth,E.framebufferWidth=he?he.width:E.drawingBufferWidth,ie=E.framebufferHeight,E.framebufferHeight=he?he.height:E.drawingBufferHeight,he!==S.cur&&(he?y.bindFramebuffer(36160,he.framebuffer):y.bindFramebuffer(36160,null),S.cur=he),w.dirty){var M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt;M=T.dither,M!==w.dither&&(M?y.enable(3024):y.disable(3024),w.dither=M),le=T.blend_enable,le!==w.blend_enable&&(le?y.enable(3042):y.disable(3042),w.blend_enable=le),De=ae[0],Ee=ae[1],ft=ae[2],At=ae[3],(De!==x[0]||Ee!==x[1]||ft!==x[2]||At!==x[3])&&(y.blendColor(De,Ee,ft,At),x[0]=De,x[1]=Ee,x[2]=ft,x[3]=At),lt=A[0],Ke=A[1],(lt!==O[0]||Ke!==O[1])&&(y.blendEquationSeparate(lt,Ke),O[0]=lt,O[1]=Ke),tt=k[0],fe=k[1],je=k[2],ot=k[3],(tt!==C[0]||fe!==C[1]||je!==C[2]||ot!==C[3])&&(y.blendFuncSeparate(tt,fe,je,ot),C[0]=tt,C[1]=fe,C[2]=je,C[3]=ot),Ne=T.depth_enable,Ne!==w.depth_enable&&(Ne?y.enable(2929):y.disable(2929),w.depth_enable=Ne),et=T.depth_func,et!==w.depth_func&&(y.depthFunc(et),w.depth_func=et),ht=ee[0],Ue=ee[1],(ht!==Re[0]||Ue!==Re[1])&&(y.depthRange(ht,Ue),Re[0]=ht,Re[1]=Ue),Me=T.depth_mask,Me!==w.depth_mask&&(y.depthMask(Me),w.depth_mask=Me),Be=ge[0],ke=ge[1],Te=ge[2],ze=ge[3],(Be!==F[0]||ke!==F[1]||Te!==F[2]||ze!==F[3])&&(y.colorMask(Be,ke,Te,ze),F[0]=Be,F[1]=ke,F[2]=Te,F[3]=ze),Xe=T.cull_enable,Xe!==w.cull_enable&&(Xe?y.enable(2884):y.disable(2884),w.cull_enable=Xe),ut=T.cull_face,ut!==w.cull_face&&(y.cullFace(ut),w.cull_face=ut),at=T.frontFace,at!==w.frontFace&&(y.frontFace(at),w.frontFace=at),Je=T.lineWidth,Je!==w.lineWidth&&(y.lineWidth(Je),w.lineWidth=Je),it=T.polygonOffset_enable,it!==w.polygonOffset_enable&&(it?y.enable(32823):y.disable(32823),w.polygonOffset_enable=it),ct=H[0],ve=H[1],(ct!==R[0]||ve!==R[1])&&(y.polygonOffset(ct,ve),R[0]=ct,R[1]=ve),D=T.sample_alpha,D!==w.sample_alpha&&(D?y.enable(32926):y.disable(32926),w.sample_alpha=D),oe=T.sample_enable,oe!==w.sample_enable&&(oe?y.enable(32928):y.disable(32928),w.sample_enable=oe),xe=$[0],ce=$[1],(xe!==q[0]||ce!==q[1])&&(y.sampleCoverage(xe,ce),q[0]=xe,q[1]=ce),Oe=T.stencil_enable,Oe!==w.stencil_enable&&(Oe?y.enable(2960):y.disable(2960),w.stencil_enable=Oe),Ye=T.stencil_mask,Ye!==w.stencil_mask&&(y.stencilMask(Ye),w.stencil_mask=Ye),pe=se[0],Ce=se[1],Qe=se[2],(pe!==te[0]||Ce!==te[1]||Qe!==te[2])&&(y.stencilFunc(pe,Ce,Qe),te[0]=pe,te[1]=Ce,te[2]=Qe),Pe=qe[0],ye=qe[1],mt=qe[2],wt=qe[3],(Pe!==we[0]||ye!==we[1]||mt!==we[2]||wt!==we[3])&&(y.stencilOpSeparate(Pe,ye,mt,wt),we[0]=Pe,we[1]=ye,we[2]=mt,we[3]=wt),Le=Se[0],_t=Se[1],bt=Se[2],nt=Se[3],(Le!==G[0]||_t!==G[1]||bt!==G[2]||nt!==G[3])&&(y.stencilOpSeparate(Le,_t,bt,nt),G[0]=Le,G[1]=_t,G[2]=bt,G[3]=nt),yt=T.scissor_enable,yt!==w.scissor_enable&&(yt?y.enable(3089):y.disable(3089),w.scissor_enable=yt)}be=E.framebufferWidth,Ge=E.framebufferHeight,N=E.viewportWidth,E.viewportWidth=be,$e=E.viewportHeight,E.viewportHeight=Ge,y.viewport(0,0,be,Ge),re[0]=0,re[1]=0,re[2]=be,re[3]=Ge,He=E.framebufferWidth,ne=E.framebufferHeight,y.scissor(0,0,He,ne),Ae[0]=0,Ae[1]=0,Ae[2]=He,Ae[3]=ne,me=w.profile,me&&(B=performance.now(),t.count+=Ve),y.useProgram(l.program),j=Q.angle_instanced_arrays;var Lt,Tt,Nt,zt,Ut,Mt;for(J.setVAO(null),Lt=c.location,Tt=Y[Lt],Tt.buffer||y.enableVertexAttribArray(Lt),Nt=2,(Tt.type!==5126||Tt.size!==Nt||Tt.buffer!==s||Tt.normalized!==!1||Tt.offset!==0||Tt.stride!==0)&&(y.bindBuffer(34962,s.buffer),y.vertexAttribPointer(Lt,Nt,5126,!1,0,0),Tt.type=5126,Tt.size=Nt,Tt.buffer=s,Tt.normalized=!1,Tt.offset=0,Tt.stride=0),Tt.divisor!==0&&(j.vertexAttribDivisorANGLE(Lt,0),Tt.divisor=0),zt=I.elements,zt?y.bindBuffer(34963,zt.buffer.buffer):J.currentVAO&&(zt=K.getElements(J.currentVAO.elements),zt&&y.bindBuffer(34963,zt.buffer.buffer)),Ut=I.offset,Mt=I.instances,ue=0;ue<Ve;++ue)Rt[ue],Mt>0?zt?j.drawElementsInstancedANGLE(5,4,zt.type,Ut<<(zt.type-5121>>1),Mt):j.drawArraysInstancedANGLE(5,Ut,4,Mt):Mt<0&&(zt?y.drawElements(5,4,zt.type,Ut<<(zt.type-5121>>1)):y.drawArrays(5,Ut,4));w.dirty=!0,J.setVAO(null),S.next=L,E.framebufferWidth=Z,E.framebufferHeight=ie,E.viewportWidth=N,E.viewportHeight=$e,me&&(t.cpuTime+=performance.now()-B)}}},"99397aae3c42f297df7b4b923ad2ed8869ec3d788ec7b7573ba53bc3447a1a81":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue){var M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe;return M=e.gl,le=e.context,e.strings,De=e.next,Ee=e.current,ft=e.draw,At=e.elements,e.buffer,lt=e.shader,Ke=e.attributes,tt=e.vao,fe=e.uniforms,je=e.framebuffer,ot=e.extensions,e.timer,e.isBufferArgs,Ne=De.blend_color,et=Ee.blend_color,ht=De.blend_equation,Ue=Ee.blend_equation,Me=De.blend_func,Be=Ee.blend_func,ke=De.depth_range,Te=Ee.depth_range,ze=De.colorMask,Xe=Ee.colorMask,ut=De.polygonOffset_offset,at=Ee.polygonOffset_offset,Je=De.sample_coverage,it=Ee.sample_coverage,ct=De.stencil_func,ve=Ee.stencil_func,D=De.stencil_opFront,oe=Ee.stencil_opFront,xe=De.stencil_opBack,ce=Ee.stencil_opBack,Oe=De.scissor_box,Ye=Ee.scissor_box,pe=De.viewport,Ce=Ee.viewport,Qe=new Float32Array(9),Pe=new Float32Array(9),{draw:function(ye){var mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi;if(ot.angle_instanced_arrays,mt=je.next,mt!==je.cur&&(mt?M.bindFramebuffer(36160,mt.framebuffer):M.bindFramebuffer(36160,null),je.cur=mt),Ee.dirty){var Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr,hr,Rn,Ur,Na,ca,Xa,ya,va;Mi=De.dither,Mi!==Ee.dither&&(Mi?M.enable(3024):M.disable(3024),Ee.dither=Mi),di=Ne[0],Ri=Ne[1],yi=Ne[2],Ui=Ne[3],(di!==et[0]||Ri!==et[1]||yi!==et[2]||Ui!==et[3])&&(M.blendColor(di,Ri,yi,Ui),et[0]=di,et[1]=Ri,et[2]=yi,et[3]=Ui),Li=De.depth_func,Li!==Ee.depth_func&&(M.depthFunc(Li),Ee.depth_func=Li),Ei=ke[0],wi=ke[1],(Ei!==Te[0]||wi!==Te[1])&&(M.depthRange(Ei,wi),Te[0]=Ei,Te[1]=wi),Ci=ze[0],Di=ze[1],$i=ze[2],Gi=ze[3],(Ci!==Xe[0]||Di!==Xe[1]||$i!==Xe[2]||Gi!==Xe[3])&&(M.colorMask(Ci,Di,$i,Gi),Xe[0]=Ci,Xe[1]=Di,Xe[2]=$i,Xe[3]=Gi),tn=De.cull_enable,tn!==Ee.cull_enable&&(tn?M.enable(2884):M.disable(2884),Ee.cull_enable=tn),Wi=De.cull_face,Wi!==Ee.cull_face&&(M.cullFace(Wi),Ee.cull_face=Wi),qi=De.frontFace,qi!==Ee.frontFace&&(M.frontFace(qi),Ee.frontFace=qi),Xi=De.lineWidth,Xi!==Ee.lineWidth&&(M.lineWidth(Xi),Ee.lineWidth=Xi),un=De.polygonOffset_enable,un!==Ee.polygonOffset_enable&&(un?M.enable(32823):M.disable(32823),Ee.polygonOffset_enable=un),Qi=ut[0],sn=ut[1],(Qi!==at[0]||sn!==at[1])&&(M.polygonOffset(Qi,sn),at[0]=Qi,at[1]=sn),xn=De.sample_alpha,xn!==Ee.sample_alpha&&(xn?M.enable(32926):M.disable(32926),Ee.sample_alpha=xn),wn=De.sample_enable,wn!==Ee.sample_enable&&(wn?M.enable(32928):M.disable(32928),Ee.sample_enable=wn),fn=Je[0],zn=Je[1],(fn!==it[0]||zn!==it[1])&&(M.sampleCoverage(fn,zn),it[0]=fn,it[1]=zn),Ln=De.stencil_enable,Ln!==Ee.stencil_enable&&(Ln?M.enable(2960):M.disable(2960),Ee.stencil_enable=Ln),Dn=De.stencil_mask,Dn!==Ee.stencil_mask&&(M.stencilMask(Dn),Ee.stencil_mask=Dn),Wn=ct[0],Nn=ct[1],Gn=ct[2],(Wn!==ve[0]||Nn!==ve[1]||Gn!==ve[2])&&(M.stencilFunc(Wn,Nn,Gn),ve[0]=Wn,ve[1]=Nn,ve[2]=Gn),Zn=D[0],jn=D[1],Sn=D[2],Qn=D[3],(Zn!==oe[0]||jn!==oe[1]||Sn!==oe[2]||Qn!==oe[3])&&(M.stencilOpSeparate(Zn,jn,Sn,Qn),oe[0]=Zn,oe[1]=jn,oe[2]=Sn,oe[3]=Qn),Hn=xe[0],Pn=xe[1],vr=xe[2],Jn=xe[3],(Hn!==ce[0]||Pn!==ce[1]||vr!==ce[2]||Jn!==ce[3])&&(M.stencilOpSeparate(Hn,Pn,vr,Jn),ce[0]=Hn,ce[1]=Pn,ce[2]=vr,ce[3]=Jn),rr=De.scissor_enable,rr!==Ee.scissor_enable&&(rr?M.enable(3089):M.disable(3089),Ee.scissor_enable=rr),hr=Oe[0],Rn=Oe[1],Ur=Oe[2],Na=Oe[3],(hr!==Ye[0]||Rn!==Ye[1]||Ur!==Ye[2]||Na!==Ye[3])&&(M.scissor(hr,Rn,Ur,Na),Ye[0]=hr,Ye[1]=Rn,Ye[2]=Ur,Ye[3]=Na),ca=pe[0],Xa=pe[1],ya=pe[2],va=pe[3],(ca!==Ce[0]||Xa!==Ce[1]||ya!==Ce[2]||va!==Ce[3])&&(M.viewport(ca,Xa,ya,va),Ce[0]=ca,Ce[1]=Xa,Ce[2]=ya,Ce[3]=va)}n?M.enable(3042):M.disable(3042),Ee.blend_enable=n,M.blendEquationSeparate(32774,32774),Ue[0]=32774,Ue[1]=32774,M.blendFuncSeparate(770,771,1,771),Be[0]=770,Be[1]=771,Be[2]=1,Be[3]=771,l?M.enable(2929):M.disable(2929),Ee.depth_enable=l,M.depthMask(s),Ee.depth_mask=s,wt=Ee.profile,wt&&(Le=performance.now(),t.count++),M.useProgram(c.program),_t=ot.angle_instanced_arrays,tt.setVAO(null),bt=u.location,nt=Ke[bt],nt.buffer||M.enableVertexAttribArray(bt),yt=2,(nt.type!==5126||nt.size!==yt||nt.buffer!==d||nt.normalized!==!1||nt.offset!==0||nt.stride!==0)&&(M.bindBuffer(34962,d.buffer),M.vertexAttribPointer(bt,yt,5126,!1,0,0),nt.type=5126,nt.size=yt,nt.buffer=d,nt.normalized=!1,nt.offset=0,nt.stride=0),nt.divisor!==0&&(_t.vertexAttribDivisorANGLE(bt,0),nt.divisor=0),Lt=ye.color,Tt=Lt[0],Nt=Lt[1],zt=Lt[2],Ut=Lt[3],M.uniform4f(h.location,Tt,Nt,zt,Ut),Mt=b.call(this,le,ye,0),M.uniform1f(m.location,Mt),Kt=_.call(this,le,ye,0),M.uniform1f(g.location,Kt),ei=X.call(this,le,ye,0),ei&&ei._reglType==="framebuffer"&&(ei=ei.color[0]),Jt=ei._texture,M.uniform1i(z.location,Jt.bind()),Wt=E.call(this,le,ye,0),Wt&&Wt._reglType==="framebuffer"&&(Wt=Wt.color[0]),$t=Wt._texture,M.uniform1i(y.location,$t.bind()),Gt=w.call(this,le,ye,0),Gt&&Gt._reglType==="framebuffer"&&(Gt=Gt.color[0]),Ot=Gt._texture,M.uniform1i(T.location,Ot.bind()),Bt=ye.pointIndex,M.uniform1f(I.location,Bt),Zt=U.call(this,le,ye,0),M.uniform1f(K.location,Zt),St=J.call(this,le,ye,0),St&&St._reglType==="framebuffer"&&(St=St.color[0]),Vt=St._texture,M.uniform1i(Y.location,Vt.bind()),Dt=Q.call(this,le,ye,0),M.uniform1i(S.location,Dt),ii=x.call(this,le,ye,0),Pt=ii[0],Qt=ii[1],M.uniform2f(ae.location,Pt,Qt),xt=O.call(this,le,ye,0),M.uniform1f(A.location,xt),pt=C.call(this,le,ye,0),M.uniform1f(k.location,pt),vt=Re.call(this,le,ye,0),M.uniformMatrix3fv(ee.location,!1,Array.isArray(vt)||vt instanceof Float32Array?vt:(Qe[0]=vt[0],Qe[1]=vt[1],Qe[2]=vt[2],Qe[3]=vt[3],Qe[4]=vt[4],Qe[5]=vt[5],Qe[6]=vt[6],Qe[7]=vt[7],Qe[8]=vt[8],Qe)),It=ye.width,M.uniform1f(ge.location,It),Ft=ft.elements,Ft?M.bindBuffer(34963,Ft.buffer.buffer):tt.currentVAO&&(Ft=At.getElements(tt.currentVAO.elements),Ft&&M.bindBuffer(34963,Ft.buffer.buffer)),qt=ft.offset,zi=ft.instances,zi>0?Ft?_t.drawElementsInstancedANGLE(5,4,Ft.type,qt<<(Ft.type-5121>>1),zi):_t.drawArraysInstancedANGLE(5,qt,4,zi):zi<0&&(Ft?M.drawElements(5,4,Ft.type,qt<<(Ft.type-5121>>1)):M.drawArrays(5,qt,4)),Ee.dirty=!0,tt.setVAO(null),wt&&(t.cpuTime+=performance.now()-Le),Jt.unbind(),$t.unbind(),Ot.unbind(),Vt.unbind()},scope:function(ye,mt,wt){var Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln;Le=De.blend_enable,De.blend_enable=F,_t=ht[0],ht[0]=H,bt=ht[1],ht[1]=R,nt=Me[0],Me[0]=$,yt=Me[1],Me[1]=q,Lt=Me[2],Me[2]=se,Tt=Me[3],Me[3]=te,Nt=De.depth_enable,De.depth_enable=qe,zt=De.depth_mask,De.depth_mask=we,Ut=Ee.profile,Ut&&(Mt=performance.now(),t.count++),Kt=ft.count,ft.count=Se,ei=ft.primitive,ft.primitive=G,Jt=ye.color,Wt=fe[de],fe[de]=Jt,$t=ye.width,Gt=fe[Ae],fe[Ae]=$t,Ot=ye.pointIndex,Bt=fe[W],fe[W]=Ot,Zt=J.call(this,le,ye,wt),St=fe[re],fe[re]=Zt,Vt=X.call(this,le,ye,wt),Dt=fe[Rt],fe[Rt]=Vt,ii=w.call(this,le,ye,wt),Pt=fe[Ve],fe[Ve]=ii,Qt=O.call(this,le,ye,wt),xt=fe[Fe],fe[Fe]=Qt,pt=U.call(this,le,ye,wt),vt=fe[he],fe[he]=pt,It=Re.call(this,le,ye,wt),Ft=fe[L],fe[L]=It,qt=C.call(this,le,ye,wt),zi=fe[Z],fe[Z]=qt,Mi=x.call(this,le,ye,wt),di=fe[ie],fe[ie]=Mi,Ri=Q.call(this,le,ye,wt),yi=fe[be],fe[be]=Ri,Ui=_.call(this,le,ye,wt),Li=fe[Ge],fe[Ge]=Ui,Ei=E.call(this,le,ye,wt),wi=fe[N],fe[N]=Ei,Ci=b.call(this,le,ye,wt),Di=fe[$e],fe[$e]=Ci,$i=He.state,He.state=1,Gi=He.x,He.x=0,tn=He.y,He.y=0,Wi=He.z,He.z=0,qi=He.w,He.w=0,Xi=He.buffer,He.buffer=d,un=He.size,He.size=2,Qi=He.normalized,He.normalized=!1,sn=He.type,He.type=5126,xn=He.offset,He.offset=0,wn=He.stride,He.stride=0,fn=He.divisor,He.divisor=0,zn=lt.vert,lt.vert=ne,Ln=lt.frag,lt.frag=me,Ee.dirty=!0,mt(le,ye,wt),De.blend_enable=Le,ht[0]=_t,ht[1]=bt,Me[0]=nt,Me[1]=yt,Me[2]=Lt,Me[3]=Tt,De.depth_enable=Nt,De.depth_mask=zt,Ut&&(t.cpuTime+=performance.now()-Mt),ft.count=Kt,ft.primitive=ei,fe[de]=Wt,fe[Ae]=Gt,fe[W]=Bt,fe[re]=St,fe[Rt]=Dt,fe[Ve]=Pt,fe[Fe]=xt,fe[he]=vt,fe[L]=Ft,fe[Z]=zi,fe[ie]=di,fe[be]=yi,fe[Ge]=Li,fe[N]=wi,fe[$e]=Di,He.state=$i,He.x=Gi,He.y=tn,He.z=Wi,He.w=qi,He.buffer=Xi,He.size=un,He.normalized=Qi,He.type=sn,He.offset=xn,He.stride=wn,He.divisor=fn,lt.vert=zn,lt.frag=Ln,Ee.dirty=!0},batch:function(ye,mt){var wt,Le,_t,bt,nt,yt;if(ot.angle_instanced_arrays,wt=je.next,wt!==je.cur&&(wt?M.bindFramebuffer(36160,wt.framebuffer):M.bindFramebuffer(36160,null),je.cur=wt),Ee.dirty){var Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un;Lt=De.dither,Lt!==Ee.dither&&(Lt?M.enable(3024):M.disable(3024),Ee.dither=Lt),Tt=Ne[0],Nt=Ne[1],zt=Ne[2],Ut=Ne[3],(Tt!==et[0]||Nt!==et[1]||zt!==et[2]||Ut!==et[3])&&(M.blendColor(Tt,Nt,zt,Ut),et[0]=Tt,et[1]=Nt,et[2]=zt,et[3]=Ut),Mt=De.depth_func,Mt!==Ee.depth_func&&(M.depthFunc(Mt),Ee.depth_func=Mt),Kt=ke[0],ei=ke[1],(Kt!==Te[0]||ei!==Te[1])&&(M.depthRange(Kt,ei),Te[0]=Kt,Te[1]=ei),Jt=ze[0],Wt=ze[1],$t=ze[2],Gt=ze[3],(Jt!==Xe[0]||Wt!==Xe[1]||$t!==Xe[2]||Gt!==Xe[3])&&(M.colorMask(Jt,Wt,$t,Gt),Xe[0]=Jt,Xe[1]=Wt,Xe[2]=$t,Xe[3]=Gt),Ot=De.cull_enable,Ot!==Ee.cull_enable&&(Ot?M.enable(2884):M.disable(2884),Ee.cull_enable=Ot),Bt=De.cull_face,Bt!==Ee.cull_face&&(M.cullFace(Bt),Ee.cull_face=Bt),Zt=De.frontFace,Zt!==Ee.frontFace&&(M.frontFace(Zt),Ee.frontFace=Zt),St=De.lineWidth,St!==Ee.lineWidth&&(M.lineWidth(St),Ee.lineWidth=St),Vt=De.polygonOffset_enable,Vt!==Ee.polygonOffset_enable&&(Vt?M.enable(32823):M.disable(32823),Ee.polygonOffset_enable=Vt),Dt=ut[0],ii=ut[1],(Dt!==at[0]||ii!==at[1])&&(M.polygonOffset(Dt,ii),at[0]=Dt,at[1]=ii),Pt=De.sample_alpha,Pt!==Ee.sample_alpha&&(Pt?M.enable(32926):M.disable(32926),Ee.sample_alpha=Pt),Qt=De.sample_enable,Qt!==Ee.sample_enable&&(Qt?M.enable(32928):M.disable(32928),Ee.sample_enable=Qt),xt=Je[0],pt=Je[1],(xt!==it[0]||pt!==it[1])&&(M.sampleCoverage(xt,pt),it[0]=xt,it[1]=pt),vt=De.stencil_enable,vt!==Ee.stencil_enable&&(vt?M.enable(2960):M.disable(2960),Ee.stencil_enable=vt),It=De.stencil_mask,It!==Ee.stencil_mask&&(M.stencilMask(It),Ee.stencil_mask=It),Ft=ct[0],qt=ct[1],zi=ct[2],(Ft!==ve[0]||qt!==ve[1]||zi!==ve[2])&&(M.stencilFunc(Ft,qt,zi),ve[0]=Ft,ve[1]=qt,ve[2]=zi),Mi=D[0],di=D[1],Ri=D[2],yi=D[3],(Mi!==oe[0]||di!==oe[1]||Ri!==oe[2]||yi!==oe[3])&&(M.stencilOpSeparate(Mi,di,Ri,yi),oe[0]=Mi,oe[1]=di,oe[2]=Ri,oe[3]=yi),Ui=xe[0],Li=xe[1],Ei=xe[2],wi=xe[3],(Ui!==ce[0]||Li!==ce[1]||Ei!==ce[2]||wi!==ce[3])&&(M.stencilOpSeparate(Ui,Li,Ei,wi),ce[0]=Ui,ce[1]=Li,ce[2]=Ei,ce[3]=wi),Ci=De.scissor_enable,Ci!==Ee.scissor_enable&&(Ci?M.enable(3089):M.disable(3089),Ee.scissor_enable=Ci),Di=Oe[0],$i=Oe[1],Gi=Oe[2],tn=Oe[3],(Di!==Ye[0]||$i!==Ye[1]||Gi!==Ye[2]||tn!==Ye[3])&&(M.scissor(Di,$i,Gi,tn),Ye[0]=Di,Ye[1]=$i,Ye[2]=Gi,Ye[3]=tn),Wi=pe[0],qi=pe[1],Xi=pe[2],un=pe[3],(Wi!==Ce[0]||qi!==Ce[1]||Xi!==Ce[2]||un!==Ce[3])&&(M.viewport(Wi,qi,Xi,un),Ce[0]=Wi,Ce[1]=qi,Ce[2]=Xi,Ce[3]=un)}B?M.enable(3042):M.disable(3042),Ee.blend_enable=B,M.blendEquationSeparate(32774,32774),Ue[0]=32774,Ue[1]=32774,M.blendFuncSeparate(770,771,1,771),Be[0]=770,Be[1]=771,Be[2]=1,Be[3]=771,j?M.enable(2929):M.disable(2929),Ee.depth_enable=j,M.depthMask(ue),Ee.depth_mask=ue,Le=Ee.profile,Le&&(_t=performance.now(),t.count+=mt),M.useProgram(c.program),bt=ot.angle_instanced_arrays;var Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr,hr,Rn,Ur,Na;for(tt.setVAO(null),Qi=u.location,sn=Ke[Qi],sn.buffer||M.enableVertexAttribArray(Qi),xn=2,(sn.type!==5126||sn.size!==xn||sn.buffer!==d||sn.normalized!==!1||sn.offset!==0||sn.stride!==0)&&(M.bindBuffer(34962,d.buffer),M.vertexAttribPointer(Qi,xn,5126,!1,0,0),sn.type=5126,sn.size=xn,sn.buffer=d,sn.normalized=!1,sn.offset=0,sn.stride=0),sn.divisor!==0&&(bt.vertexAttribDivisorANGLE(Qi,0),sn.divisor=0),wn=b.call(this,le,yt,nt),M.uniform1f(m.location,wn),fn=_.call(this,le,yt,nt),M.uniform1f(g.location,fn),zn=X.call(this,le,yt,nt),zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),Ln=zn._texture,M.uniform1i(z.location,Ln.bind()),Dn=E.call(this,le,yt,nt),Dn&&Dn._reglType==="framebuffer"&&(Dn=Dn.color[0]),Wn=Dn._texture,M.uniform1i(y.location,Wn.bind()),Nn=w.call(this,le,yt,nt),Nn&&Nn._reglType==="framebuffer"&&(Nn=Nn.color[0]),Gn=Nn._texture,M.uniform1i(T.location,Gn.bind()),Zn=U.call(this,le,yt,nt),M.uniform1f(K.location,Zn),jn=J.call(this,le,yt,nt),jn&&jn._reglType==="framebuffer"&&(jn=jn.color[0]),Sn=jn._texture,M.uniform1i(Y.location,Sn.bind()),Qn=Q.call(this,le,yt,nt),M.uniform1i(S.location,Qn),Hn=x.call(this,le,yt,nt),Pn=Hn[0],vr=Hn[1],M.uniform2f(ae.location,Pn,vr),Jn=O.call(this,le,yt,nt),M.uniform1f(A.location,Jn),rr=C.call(this,le,yt,nt),M.uniform1f(k.location,rr),hr=Re.call(this,le,yt,nt),M.uniformMatrix3fv(ee.location,!1,Array.isArray(hr)||hr instanceof Float32Array?hr:(Pe[0]=hr[0],Pe[1]=hr[1],Pe[2]=hr[2],Pe[3]=hr[3],Pe[4]=hr[4],Pe[5]=hr[5],Pe[6]=hr[6],Pe[7]=hr[7],Pe[8]=hr[8],Pe)),Rn=ft.elements,Rn?M.bindBuffer(34963,Rn.buffer.buffer):tt.currentVAO&&(Rn=At.getElements(tt.currentVAO.elements),Rn&&M.bindBuffer(34963,Rn.buffer.buffer)),Ur=ft.offset,Na=ft.instances,nt=0;nt<mt;++nt){yt=ye[nt];var ca,Xa,ya,va,al,Ll,xa,hs,ms,pl,ps,bs,gs;ca=yt.color,Xa=ca[0],va=ca[1],Ll=ca[2],hs=ca[3],(!nt||ya!==Xa||al!==va||xa!==Ll||ms!==hs)&&(ya=Xa,al=va,xa=Ll,ms=hs,M.uniform4f(h.location,Xa,va,Ll,hs)),pl=yt.pointIndex,(!nt||ps!==pl)&&(ps=pl,M.uniform1f(I.location,pl)),bs=yt.width,(!nt||gs!==bs)&&(gs=bs,M.uniform1f(ge.location,bs)),Na>0?Rn?bt.drawElementsInstancedANGLE(5,4,Rn.type,Ur<<(Rn.type-5121>>1),Na):bt.drawArraysInstancedANGLE(5,Ur,4,Na):Na<0&&(Rn?M.drawElements(5,4,Rn.type,Ur<<(Rn.type-5121>>1)):M.drawArrays(5,Ur,4))}Ln.unbind(),Wn.unbind(),Gn.unbind(),Sn.unbind(),Ee.dirty=!0,tt.setVAO(null),Le&&(t.cpuTime+=performance.now()-_t)}}},eb221f9c85bbb1289d8191f0a5e2cb2f7a7494b901353fb18a93f8073ffa6fbe:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J){var S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N;return S=e.gl,Q=e.context,e.strings,ae=e.next,x=e.current,A=e.draw,O=e.elements,e.buffer,k=e.shader,C=e.attributes,ee=e.vao,Re=e.uniforms,ge=e.framebuffer,F=e.extensions,e.timer,e.isBufferArgs,H=ae.blend_color,R=x.blend_color,$=ae.blend_equation,q=x.blend_equation,se=ae.blend_func,te=x.blend_func,qe=ae.depth_range,we=x.depth_range,Se=ae.colorMask,G=x.colorMask,de=ae.polygonOffset_offset,Ae=x.polygonOffset_offset,W=ae.sample_coverage,re=x.sample_coverage,Rt=ae.stencil_func,Ve=x.stencil_func,Fe=ae.stencil_opFront,he=x.stencil_opFront,L=ae.stencil_opBack,Z=x.stencil_opBack,ie=ae.scissor_box,be=x.scissor_box,Ge=ae.viewport,N=x.viewport,{draw:function($e){var He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke;if(F.angle_instanced_arrays,He=n.call(this,Q,$e,0),ne=ge.getFramebuffer(He),me=ge.next,ge.next=ne,B=Q.framebufferWidth,Q.framebufferWidth=ne?ne.width:Q.drawingBufferWidth,j=Q.framebufferHeight,Q.framebufferHeight=ne?ne.height:Q.drawingBufferHeight,ne!==ge.cur&&(ne?S.bindFramebuffer(36160,ne.framebuffer):S.bindFramebuffer(36160,null),ge.cur=ne),x.dirty){var Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii;Te=ae.dither,Te!==x.dither&&(Te?S.enable(3024):S.disable(3024),x.dither=Te),ze=ae.blend_enable,ze!==x.blend_enable&&(ze?S.enable(3042):S.disable(3042),x.blend_enable=ze),Xe=H[0],ut=H[1],at=H[2],Je=H[3],(Xe!==R[0]||ut!==R[1]||at!==R[2]||Je!==R[3])&&(S.blendColor(Xe,ut,at,Je),R[0]=Xe,R[1]=ut,R[2]=at,R[3]=Je),it=$[0],ct=$[1],(it!==q[0]||ct!==q[1])&&(S.blendEquationSeparate(it,ct),q[0]=it,q[1]=ct),ve=se[0],D=se[1],oe=se[2],xe=se[3],(ve!==te[0]||D!==te[1]||oe!==te[2]||xe!==te[3])&&(S.blendFuncSeparate(ve,D,oe,xe),te[0]=ve,te[1]=D,te[2]=oe,te[3]=xe),ce=ae.depth_enable,ce!==x.depth_enable&&(ce?S.enable(2929):S.disable(2929),x.depth_enable=ce),Oe=ae.depth_func,Oe!==x.depth_func&&(S.depthFunc(Oe),x.depth_func=Oe),Ye=qe[0],pe=qe[1],(Ye!==we[0]||pe!==we[1])&&(S.depthRange(Ye,pe),we[0]=Ye,we[1]=pe),Ce=ae.depth_mask,Ce!==x.depth_mask&&(S.depthMask(Ce),x.depth_mask=Ce),Qe=Se[0],Pe=Se[1],ye=Se[2],mt=Se[3],(Qe!==G[0]||Pe!==G[1]||ye!==G[2]||mt!==G[3])&&(S.colorMask(Qe,Pe,ye,mt),G[0]=Qe,G[1]=Pe,G[2]=ye,G[3]=mt),wt=ae.cull_enable,wt!==x.cull_enable&&(wt?S.enable(2884):S.disable(2884),x.cull_enable=wt),Le=ae.cull_face,Le!==x.cull_face&&(S.cullFace(Le),x.cull_face=Le),_t=ae.frontFace,_t!==x.frontFace&&(S.frontFace(_t),x.frontFace=_t),bt=ae.lineWidth,bt!==x.lineWidth&&(S.lineWidth(bt),x.lineWidth=bt),nt=ae.polygonOffset_enable,nt!==x.polygonOffset_enable&&(nt?S.enable(32823):S.disable(32823),x.polygonOffset_enable=nt),yt=de[0],Lt=de[1],(yt!==Ae[0]||Lt!==Ae[1])&&(S.polygonOffset(yt,Lt),Ae[0]=yt,Ae[1]=Lt),Tt=ae.sample_alpha,Tt!==x.sample_alpha&&(Tt?S.enable(32926):S.disable(32926),x.sample_alpha=Tt),Nt=ae.sample_enable,Nt!==x.sample_enable&&(Nt?S.enable(32928):S.disable(32928),x.sample_enable=Nt),zt=W[0],Ut=W[1],(zt!==re[0]||Ut!==re[1])&&(S.sampleCoverage(zt,Ut),re[0]=zt,re[1]=Ut),Mt=ae.stencil_enable,Mt!==x.stencil_enable&&(Mt?S.enable(2960):S.disable(2960),x.stencil_enable=Mt),Kt=ae.stencil_mask,Kt!==x.stencil_mask&&(S.stencilMask(Kt),x.stencil_mask=Kt),ei=Rt[0],Jt=Rt[1],Wt=Rt[2],(ei!==Ve[0]||Jt!==Ve[1]||Wt!==Ve[2])&&(S.stencilFunc(ei,Jt,Wt),Ve[0]=ei,Ve[1]=Jt,Ve[2]=Wt),$t=Fe[0],Gt=Fe[1],Ot=Fe[2],Bt=Fe[3],($t!==he[0]||Gt!==he[1]||Ot!==he[2]||Bt!==he[3])&&(S.stencilOpSeparate($t,Gt,Ot,Bt),he[0]=$t,he[1]=Gt,he[2]=Ot,he[3]=Bt),Zt=L[0],St=L[1],Vt=L[2],Dt=L[3],(Zt!==Z[0]||St!==Z[1]||Vt!==Z[2]||Dt!==Z[3])&&(S.stencilOpSeparate(Zt,St,Vt,Dt),Z[0]=Zt,Z[1]=St,Z[2]=Vt,Z[3]=Dt),ii=ae.scissor_enable,ii!==x.scissor_enable&&(ii?S.enable(3089):S.disable(3089),x.scissor_enable=ii)}ue=Q.framebufferWidth,M=Q.framebufferHeight,le=Q.viewportWidth,Q.viewportWidth=ue,De=Q.viewportHeight,Q.viewportHeight=M,S.viewport(0,0,ue,M),N[0]=0,N[1]=0,N[2]=ue,N[3]=M,Ee=Q.framebufferWidth,ft=Q.framebufferHeight,S.scissor(0,0,Ee,ft),be[0]=0,be[1]=0,be[2]=Ee,be[3]=ft,At=x.profile,At&&(lt=performance.now(),t.count++),S.useProgram(l.program),Ke=F.angle_instanced_arrays,ee.setVAO(null),tt=c.location,fe=C[tt],fe.buffer||S.enableVertexAttribArray(tt),je=2,(fe.type!==5126||fe.size!==je||fe.buffer!==s||fe.normalized!==!1||fe.offset!==0||fe.stride!==0)&&(S.bindBuffer(34962,s.buffer),S.vertexAttribPointer(tt,je,5126,!1,0,0),fe.type=5126,fe.size=je,fe.buffer=s,fe.normalized=!1,fe.offset=0,fe.stride=0),fe.divisor!==0&&(Ke.vertexAttribDivisorANGLE(tt,0),fe.divisor=0),ot=u.call(this,Q,$e,0),S.uniform1f(d.location,ot),Ne=m.call(this,Q,$e,0),Ne&&Ne._reglType==="framebuffer"&&(Ne=Ne.color[0]),et=Ne._texture,S.uniform1i(h.location,et.bind()),ht=g.call(this,Q,$e,0),ht&&ht._reglType==="framebuffer"&&(ht=ht.color[0]),Ue=ht._texture,S.uniform1i(b.location,Ue.bind()),Me=A.elements,Me?S.bindBuffer(34963,Me.buffer.buffer):ee.currentVAO&&(Me=O.getElements(ee.currentVAO.elements),Me&&S.bindBuffer(34963,Me.buffer.buffer)),Be=A.offset,ke=A.instances,ke>0?Me?Ke.drawElementsInstancedANGLE(5,4,Me.type,Be<<(Me.type-5121>>1),ke):Ke.drawArraysInstancedANGLE(5,Be,4,ke):ke<0&&(Me?S.drawElements(5,4,Me.type,Be<<(Me.type-5121>>1)):S.drawArrays(5,Be,4)),x.dirty=!0,ee.setVAO(null),ge.next=me,Q.framebufferWidth=B,Q.framebufferHeight=j,Q.viewportWidth=le,Q.viewportHeight=De,At&&(t.cpuTime+=performance.now()-lt),et.unbind(),Ue.unbind()},scope:function($e,He,ne){var me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye;me=n.call(this,Q,$e,ne),B=ge.getFramebuffer(me),j=ge.next,ge.next=B,ue=Q.framebufferWidth,Q.framebufferWidth=B?B.width:Q.drawingBufferWidth,M=Q.framebufferHeight,Q.framebufferHeight=B?B.height:Q.drawingBufferHeight,le=Q.framebufferWidth,De=Q.framebufferHeight,Ee=Q.viewportWidth,Q.viewportWidth=le,ft=Q.viewportHeight,Q.viewportHeight=De,At=Ge[0],Ge[0]=_,lt=Ge[1],Ge[1]=z,Ke=Ge[2],Ge[2]=le,tt=Ge[3],Ge[3]=De,fe=Q.framebufferWidth,je=Q.framebufferHeight,ot=ie[0],ie[0]=X,Ne=ie[1],ie[1]=y,et=ie[2],ie[2]=fe,ht=ie[3],ie[3]=je,Ue=x.profile,Ue&&(Me=performance.now(),t.count++),Be=A.count,A.count=E,ke=A.primitive,A.primitive=T,Te=m.call(this,Q,$e,ne),ze=Re[w],Re[w]=Te,Xe=g.call(this,Q,$e,ne),ut=Re[I],Re[I]=Xe,at=u.call(this,Q,$e,ne),Je=Re[K],Re[K]=at,it=U.state,U.state=1,ct=U.x,U.x=0,ve=U.y,U.y=0,D=U.z,U.z=0,oe=U.w,U.w=0,xe=U.buffer,U.buffer=s,ce=U.size,U.size=2,Oe=U.normalized,U.normalized=!1,Ye=U.type,U.type=5126,pe=U.offset,U.offset=0,Ce=U.stride,U.stride=0,Qe=U.divisor,U.divisor=0,Pe=k.vert,k.vert=Y,ye=k.frag,k.frag=J,x.dirty=!0,He(Q,$e,ne),ge.next=j,Q.framebufferWidth=ue,Q.framebufferHeight=M,Q.viewportWidth=Ee,Q.viewportHeight=ft,Ge[0]=At,Ge[1]=lt,Ge[2]=Ke,Ge[3]=tt,ie[0]=ot,ie[1]=Ne,ie[2]=et,ie[3]=ht,Ue&&(t.cpuTime+=performance.now()-Me),A.count=Be,A.primitive=ke,Re[w]=ze,Re[I]=ut,Re[K]=Je,U.state=it,U.x=ct,U.y=ve,U.z=D,U.w=oe,U.buffer=xe,U.size=ce,U.normalized=Oe,U.type=Ye,U.offset=pe,U.stride=Ce,U.divisor=Qe,k.vert=Pe,k.frag=ye,x.dirty=!0},batch:function($e,He){var ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je;if(F.angle_instanced_arrays,ne=n.call(this,Q,$e,0),me=ge.getFramebuffer(ne),B=ge.next,ge.next=me,j=Q.framebufferWidth,Q.framebufferWidth=me?me.width:Q.drawingBufferWidth,ue=Q.framebufferHeight,Q.framebufferHeight=me?me.height:Q.drawingBufferHeight,me!==ge.cur&&(me?S.bindFramebuffer(36160,me.framebuffer):S.bindFramebuffer(36160,null),ge.cur=me),x.dirty){var ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t;ot=ae.dither,ot!==x.dither&&(ot?S.enable(3024):S.disable(3024),x.dither=ot),Ne=ae.blend_enable,Ne!==x.blend_enable&&(Ne?S.enable(3042):S.disable(3042),x.blend_enable=Ne),et=H[0],ht=H[1],Ue=H[2],Me=H[3],(et!==R[0]||ht!==R[1]||Ue!==R[2]||Me!==R[3])&&(S.blendColor(et,ht,Ue,Me),R[0]=et,R[1]=ht,R[2]=Ue,R[3]=Me),Be=$[0],ke=$[1],(Be!==q[0]||ke!==q[1])&&(S.blendEquationSeparate(Be,ke),q[0]=Be,q[1]=ke),Te=se[0],ze=se[1],Xe=se[2],ut=se[3],(Te!==te[0]||ze!==te[1]||Xe!==te[2]||ut!==te[3])&&(S.blendFuncSeparate(Te,ze,Xe,ut),te[0]=Te,te[1]=ze,te[2]=Xe,te[3]=ut),at=ae.depth_enable,at!==x.depth_enable&&(at?S.enable(2929):S.disable(2929),x.depth_enable=at),Je=ae.depth_func,Je!==x.depth_func&&(S.depthFunc(Je),x.depth_func=Je),it=qe[0],ct=qe[1],(it!==we[0]||ct!==we[1])&&(S.depthRange(it,ct),we[0]=it,we[1]=ct),ve=ae.depth_mask,ve!==x.depth_mask&&(S.depthMask(ve),x.depth_mask=ve),D=Se[0],oe=Se[1],xe=Se[2],ce=Se[3],(D!==G[0]||oe!==G[1]||xe!==G[2]||ce!==G[3])&&(S.colorMask(D,oe,xe,ce),G[0]=D,G[1]=oe,G[2]=xe,G[3]=ce),Oe=ae.cull_enable,Oe!==x.cull_enable&&(Oe?S.enable(2884):S.disable(2884),x.cull_enable=Oe),Ye=ae.cull_face,Ye!==x.cull_face&&(S.cullFace(Ye),x.cull_face=Ye),pe=ae.frontFace,pe!==x.frontFace&&(S.frontFace(pe),x.frontFace=pe),Ce=ae.lineWidth,Ce!==x.lineWidth&&(S.lineWidth(Ce),x.lineWidth=Ce),Qe=ae.polygonOffset_enable,Qe!==x.polygonOffset_enable&&(Qe?S.enable(32823):S.disable(32823),x.polygonOffset_enable=Qe),Pe=de[0],ye=de[1],(Pe!==Ae[0]||ye!==Ae[1])&&(S.polygonOffset(Pe,ye),Ae[0]=Pe,Ae[1]=ye),mt=ae.sample_alpha,mt!==x.sample_alpha&&(mt?S.enable(32926):S.disable(32926),x.sample_alpha=mt),wt=ae.sample_enable,wt!==x.sample_enable&&(wt?S.enable(32928):S.disable(32928),x.sample_enable=wt),Le=W[0],_t=W[1],(Le!==re[0]||_t!==re[1])&&(S.sampleCoverage(Le,_t),re[0]=Le,re[1]=_t),bt=ae.stencil_enable,bt!==x.stencil_enable&&(bt?S.enable(2960):S.disable(2960),x.stencil_enable=bt),nt=ae.stencil_mask,nt!==x.stencil_mask&&(S.stencilMask(nt),x.stencil_mask=nt),yt=Rt[0],Lt=Rt[1],Tt=Rt[2],(yt!==Ve[0]||Lt!==Ve[1]||Tt!==Ve[2])&&(S.stencilFunc(yt,Lt,Tt),Ve[0]=yt,Ve[1]=Lt,Ve[2]=Tt),Nt=Fe[0],zt=Fe[1],Ut=Fe[2],Mt=Fe[3],(Nt!==he[0]||zt!==he[1]||Ut!==he[2]||Mt!==he[3])&&(S.stencilOpSeparate(Nt,zt,Ut,Mt),he[0]=Nt,he[1]=zt,he[2]=Ut,he[3]=Mt),Kt=L[0],ei=L[1],Jt=L[2],Wt=L[3],(Kt!==Z[0]||ei!==Z[1]||Jt!==Z[2]||Wt!==Z[3])&&(S.stencilOpSeparate(Kt,ei,Jt,Wt),Z[0]=Kt,Z[1]=ei,Z[2]=Jt,Z[3]=Wt),$t=ae.scissor_enable,$t!==x.scissor_enable&&($t?S.enable(3089):S.disable(3089),x.scissor_enable=$t)}M=Q.framebufferWidth,le=Q.framebufferHeight,De=Q.viewportWidth,Q.viewportWidth=M,Ee=Q.viewportHeight,Q.viewportHeight=le,S.viewport(0,0,M,le),N[0]=0,N[1]=0,N[2]=M,N[3]=le,ft=Q.framebufferWidth,At=Q.framebufferHeight,S.scissor(0,0,ft,At),be[0]=0,be[1]=0,be[2]=ft,be[3]=At,lt=x.profile,lt&&(Ke=performance.now(),t.count+=He),S.useProgram(l.program),tt=F.angle_instanced_arrays;var Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt;for(ee.setVAO(null),Gt=c.location,Ot=C[Gt],Ot.buffer||S.enableVertexAttribArray(Gt),Bt=2,(Ot.type!==5126||Ot.size!==Bt||Ot.buffer!==s||Ot.normalized!==!1||Ot.offset!==0||Ot.stride!==0)&&(S.bindBuffer(34962,s.buffer),S.vertexAttribPointer(Gt,Bt,5126,!1,0,0),Ot.type=5126,Ot.size=Bt,Ot.buffer=s,Ot.normalized=!1,Ot.offset=0,Ot.stride=0),Ot.divisor!==0&&(tt.vertexAttribDivisorANGLE(Gt,0),Ot.divisor=0),Zt=u.call(this,Q,je,fe),S.uniform1f(d.location,Zt),St=m.call(this,Q,je,fe),St&&St._reglType==="framebuffer"&&(St=St.color[0]),Vt=St._texture,S.uniform1i(h.location,Vt.bind()),Dt=g.call(this,Q,je,fe),Dt&&Dt._reglType==="framebuffer"&&(Dt=Dt.color[0]),ii=Dt._texture,S.uniform1i(b.location,ii.bind()),Pt=A.elements,Pt?S.bindBuffer(34963,Pt.buffer.buffer):ee.currentVAO&&(Pt=O.getElements(ee.currentVAO.elements),Pt&&S.bindBuffer(34963,Pt.buffer.buffer)),Qt=A.offset,xt=A.instances,fe=0;fe<He;++fe)je=$e[fe],xt>0?Pt?tt.drawElementsInstancedANGLE(5,4,Pt.type,Qt<<(Pt.type-5121>>1),xt):tt.drawArraysInstancedANGLE(5,Qt,4,xt):xt<0&&(Pt?S.drawElements(5,4,Pt.type,Qt<<(Pt.type-5121>>1)):S.drawArrays(5,Qt,4));Vt.unbind(),ii.unbind(),x.dirty=!0,ee.setVAO(null),ge.next=B,Q.framebufferWidth=j,Q.framebufferHeight=ue,Q.viewportWidth=De,Q.viewportHeight=Ee,lt&&(t.cpuTime+=performance.now()-Ke)}}},da693cc97ee74da1ea2a4318da665c6724ca4598a491573f90321d5cf98cd00e:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F){var H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt;return H=e.gl,R=e.context,e.strings,$=e.next,q=e.current,se=e.draw,te=e.elements,e.buffer,qe=e.shader,we=e.attributes,Se=e.vao,G=e.uniforms,de=e.framebuffer,Ae=e.extensions,e.timer,e.isBufferArgs,W=$.blend_color,re=q.blend_color,Rt=$.blend_equation,Ve=q.blend_equation,Fe=$.blend_func,he=q.blend_func,L=$.depth_range,Z=q.depth_range,ie=$.colorMask,be=q.colorMask,Ge=$.polygonOffset_offset,N=q.polygonOffset_offset,$e=$.sample_coverage,He=q.sample_coverage,ne=$.stencil_func,me=q.stencil_func,B=$.stencil_opFront,j=q.stencil_opFront,ue=$.stencil_opBack,M=q.stencil_opBack,le=$.scissor_box,De=q.scissor_box,Ee=$.viewport,ft=q.viewport,At=new Float32Array(9),lt=new Float32Array(9),{draw:function(Ke){var tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe;if(Ae.angle_instanced_arrays,tt=n.call(this,R,Ke,0),fe=de.getFramebuffer(tt),je=de.next,de.next=fe,ot=R.framebufferWidth,R.framebufferWidth=fe?fe.width:R.drawingBufferWidth,Ne=R.framebufferHeight,R.framebufferHeight=fe?fe.height:R.drawingBufferHeight,fe!==de.cur&&(fe?H.bindFramebuffer(36160,fe.framebuffer):H.bindFramebuffer(36160,null),de.cur=fe),q.dirty){var Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei;Pe=$.dither,Pe!==q.dither&&(Pe?H.enable(3024):H.disable(3024),q.dither=Pe),ye=$.blend_enable,ye!==q.blend_enable&&(ye?H.enable(3042):H.disable(3042),q.blend_enable=ye),mt=W[0],wt=W[1],Le=W[2],_t=W[3],(mt!==re[0]||wt!==re[1]||Le!==re[2]||_t!==re[3])&&(H.blendColor(mt,wt,Le,_t),re[0]=mt,re[1]=wt,re[2]=Le,re[3]=_t),bt=Rt[0],nt=Rt[1],(bt!==Ve[0]||nt!==Ve[1])&&(H.blendEquationSeparate(bt,nt),Ve[0]=bt,Ve[1]=nt),yt=Fe[0],Lt=Fe[1],Tt=Fe[2],Nt=Fe[3],(yt!==he[0]||Lt!==he[1]||Tt!==he[2]||Nt!==he[3])&&(H.blendFuncSeparate(yt,Lt,Tt,Nt),he[0]=yt,he[1]=Lt,he[2]=Tt,he[3]=Nt),zt=$.depth_func,zt!==q.depth_func&&(H.depthFunc(zt),q.depth_func=zt),Ut=L[0],Mt=L[1],(Ut!==Z[0]||Mt!==Z[1])&&(H.depthRange(Ut,Mt),Z[0]=Ut,Z[1]=Mt),Kt=ie[0],ei=ie[1],Jt=ie[2],Wt=ie[3],(Kt!==be[0]||ei!==be[1]||Jt!==be[2]||Wt!==be[3])&&(H.colorMask(Kt,ei,Jt,Wt),be[0]=Kt,be[1]=ei,be[2]=Jt,be[3]=Wt),$t=$.cull_enable,$t!==q.cull_enable&&($t?H.enable(2884):H.disable(2884),q.cull_enable=$t),Gt=$.cull_face,Gt!==q.cull_face&&(H.cullFace(Gt),q.cull_face=Gt),Ot=$.frontFace,Ot!==q.frontFace&&(H.frontFace(Ot),q.frontFace=Ot),Bt=$.lineWidth,Bt!==q.lineWidth&&(H.lineWidth(Bt),q.lineWidth=Bt),Zt=$.polygonOffset_enable,Zt!==q.polygonOffset_enable&&(Zt?H.enable(32823):H.disable(32823),q.polygonOffset_enable=Zt),St=Ge[0],Vt=Ge[1],(St!==N[0]||Vt!==N[1])&&(H.polygonOffset(St,Vt),N[0]=St,N[1]=Vt),Dt=$.sample_alpha,Dt!==q.sample_alpha&&(Dt?H.enable(32926):H.disable(32926),q.sample_alpha=Dt),ii=$.sample_enable,ii!==q.sample_enable&&(ii?H.enable(32928):H.disable(32928),q.sample_enable=ii),Pt=$e[0],Qt=$e[1],(Pt!==He[0]||Qt!==He[1])&&(H.sampleCoverage(Pt,Qt),He[0]=Pt,He[1]=Qt),xt=$.stencil_enable,xt!==q.stencil_enable&&(xt?H.enable(2960):H.disable(2960),q.stencil_enable=xt),pt=$.stencil_mask,pt!==q.stencil_mask&&(H.stencilMask(pt),q.stencil_mask=pt),vt=ne[0],It=ne[1],Ft=ne[2],(vt!==me[0]||It!==me[1]||Ft!==me[2])&&(H.stencilFunc(vt,It,Ft),me[0]=vt,me[1]=It,me[2]=Ft),qt=B[0],zi=B[1],Mi=B[2],di=B[3],(qt!==j[0]||zi!==j[1]||Mi!==j[2]||di!==j[3])&&(H.stencilOpSeparate(qt,zi,Mi,di),j[0]=qt,j[1]=zi,j[2]=Mi,j[3]=di),Ri=ue[0],yi=ue[1],Ui=ue[2],Li=ue[3],(Ri!==M[0]||yi!==M[1]||Ui!==M[2]||Li!==M[3])&&(H.stencilOpSeparate(Ri,yi,Ui,Li),M[0]=Ri,M[1]=yi,M[2]=Ui,M[3]=Li),Ei=$.scissor_enable,Ei!==q.scissor_enable&&(Ei?H.enable(3089):H.disable(3089),q.scissor_enable=Ei)}et=R.framebufferWidth,ht=R.framebufferHeight,Ue=R.viewportWidth,R.viewportWidth=et,Me=R.viewportHeight,R.viewportHeight=ht,H.viewport(0,0,et,ht),ft[0]=0,ft[1]=0,ft[2]=et,ft[3]=ht,l?H.enable(2929):H.disable(2929),q.depth_enable=l,H.depthMask(s),q.depth_mask=s,Be=R.framebufferWidth,ke=R.framebufferHeight,H.scissor(0,0,Be,ke),De[0]=0,De[1]=0,De[2]=Be,De[3]=ke,Te=q.profile,Te&&(ze=performance.now(),t.count++),H.useProgram(c.program),Xe=Ae.angle_instanced_arrays,Se.setVAO(null),ut=u.location,at=we[ut],at.buffer||H.enableVertexAttribArray(ut),Je=2,(at.type!==5126||at.size!==Je||at.buffer!==d||at.normalized!==!1||at.offset!==0||at.stride!==0)&&(H.bindBuffer(34962,d.buffer),H.vertexAttribPointer(ut,Je,5126,!1,0,0),at.type=5126,at.size=Je,at.buffer=d,at.normalized=!1,at.offset=0,at.stride=0),at.divisor!==0&&(Xe.vertexAttribDivisorANGLE(ut,0),at.divisor=0),it=m.call(this,R,Ke,0),H.uniform1f(h.location,it),ct=g.call(this,R,Ke,0),ct&&ct._reglType==="framebuffer"&&(ct=ct.color[0]),ve=ct._texture,H.uniform1i(b.location,ve.bind()),D=z.call(this,R,Ke,0),oe=D[0],xe=D[1],H.uniform2f(_.location,oe,xe),ce=y.call(this,R,Ke,0),H.uniform1f(X.location,ce),Oe=T.call(this,R,Ke,0),H.uniformMatrix3fv(E.location,!1,Array.isArray(Oe)||Oe instanceof Float32Array?Oe:(At[0]=Oe[0],At[1]=Oe[1],At[2]=Oe[2],At[3]=Oe[3],At[4]=Oe[4],At[5]=Oe[5],At[6]=Oe[6],At[7]=Oe[7],At[8]=Oe[8],At)),Ye=se.elements,Ye?H.bindBuffer(34963,Ye.buffer.buffer):Se.currentVAO&&(Ye=te.getElements(Se.currentVAO.elements),Ye&&H.bindBuffer(34963,Ye.buffer.buffer)),pe=se.offset,Ce=w.call(this,R,Ke,0),Ce&&(Qe=se.instances,Qe>0?Ye?Xe.drawElementsInstancedANGLE(0,Ce,Ye.type,pe<<(Ye.type-5121>>1),Qe):Xe.drawArraysInstancedANGLE(0,pe,Ce,Qe):Qe<0&&(Ye?H.drawElements(0,Ce,Ye.type,pe<<(Ye.type-5121>>1)):H.drawArrays(0,pe,Ce)),q.dirty=!0,Se.setVAO(null),de.next=je,R.framebufferWidth=ot,R.framebufferHeight=Ne,R.viewportWidth=Ue,R.viewportHeight=Me,Te&&(t.cpuTime+=performance.now()-ze),ve.unbind())},scope:function(Ke,tt,fe){var je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt;je=n.call(this,R,Ke,fe),ot=de.getFramebuffer(je),Ne=de.next,de.next=ot,et=R.framebufferWidth,R.framebufferWidth=ot?ot.width:R.drawingBufferWidth,ht=R.framebufferHeight,R.framebufferHeight=ot?ot.height:R.drawingBufferHeight,Ue=R.framebufferWidth,Me=R.framebufferHeight,Be=R.viewportWidth,R.viewportWidth=Ue,ke=R.viewportHeight,R.viewportHeight=Me,Te=Ee[0],Ee[0]=I,ze=Ee[1],Ee[1]=K,Xe=Ee[2],Ee[2]=Ue,ut=Ee[3],Ee[3]=Me,at=$.depth_enable,$.depth_enable=U,Je=$.depth_mask,$.depth_mask=Y,it=R.framebufferWidth,ct=R.framebufferHeight,ve=le[0],le[0]=J,D=le[1],le[1]=S,oe=le[2],le[2]=it,xe=le[3],le[3]=ct,ce=q.profile,ce&&(Oe=performance.now(),t.count++),Ye=w.call(this,R,Ke,fe),pe=se.count,se.count=Ye,Ce=se.primitive,se.primitive=Q,Qe=g.call(this,R,Ke,fe),Pe=G[ae],G[ae]=Qe,ye=m.call(this,R,Ke,fe),mt=G[x],G[x]=ye,wt=T.call(this,R,Ke,fe),Le=G[A],G[A]=wt,_t=y.call(this,R,Ke,fe),bt=G[O],G[O]=_t,nt=z.call(this,R,Ke,fe),yt=G[k],G[k]=nt,Lt=C.state,C.state=1,Tt=C.x,C.x=0,Nt=C.y,C.y=0,zt=C.z,C.z=0,Ut=C.w,C.w=0,Mt=C.buffer,C.buffer=d,Kt=C.size,C.size=2,ei=C.normalized,C.normalized=!1,Jt=C.type,C.type=5126,Wt=C.offset,C.offset=0,$t=C.stride,C.stride=0,Gt=C.divisor,C.divisor=0,Ot=qe.vert,qe.vert=ee,Bt=qe.frag,qe.frag=Re,q.dirty=!0,tt(R,Ke,fe),de.next=Ne,R.framebufferWidth=et,R.framebufferHeight=ht,R.viewportWidth=Be,R.viewportHeight=ke,Ee[0]=Te,Ee[1]=ze,Ee[2]=Xe,Ee[3]=ut,$.depth_enable=at,$.depth_mask=Je,le[0]=ve,le[1]=D,le[2]=oe,le[3]=xe,ce&&(t.cpuTime+=performance.now()-Oe),se.count=pe,se.primitive=Ce,G[ae]=Pe,G[x]=mt,G[A]=Le,G[O]=bt,G[k]=yt,C.state=Lt,C.x=Tt,C.y=Nt,C.z=zt,C.w=Ut,C.buffer=Mt,C.size=Kt,C.normalized=ei,C.type=Jt,C.offset=Wt,C.stride=$t,C.divisor=Gt,qe.vert=Ot,qe.frag=Bt,q.dirty=!0},batch:function(Ke,tt){var fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je;if(Ae.angle_instanced_arrays,fe=n.call(this,R,Ke,0),je=de.getFramebuffer(fe),ot=de.next,de.next=je,Ne=R.framebufferWidth,R.framebufferWidth=je?je.width:R.drawingBufferWidth,et=R.framebufferHeight,R.framebufferHeight=je?je.height:R.drawingBufferHeight,je!==de.cur&&(je?H.bindFramebuffer(36160,je.framebuffer):H.bindFramebuffer(36160,null),de.cur=je),q.dirty){var it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt;it=$.dither,it!==q.dither&&(it?H.enable(3024):H.disable(3024),q.dither=it),ct=$.blend_enable,ct!==q.blend_enable&&(ct?H.enable(3042):H.disable(3042),q.blend_enable=ct),ve=W[0],D=W[1],oe=W[2],xe=W[3],(ve!==re[0]||D!==re[1]||oe!==re[2]||xe!==re[3])&&(H.blendColor(ve,D,oe,xe),re[0]=ve,re[1]=D,re[2]=oe,re[3]=xe),ce=Rt[0],Oe=Rt[1],(ce!==Ve[0]||Oe!==Ve[1])&&(H.blendEquationSeparate(ce,Oe),Ve[0]=ce,Ve[1]=Oe),Ye=Fe[0],pe=Fe[1],Ce=Fe[2],Qe=Fe[3],(Ye!==he[0]||pe!==he[1]||Ce!==he[2]||Qe!==he[3])&&(H.blendFuncSeparate(Ye,pe,Ce,Qe),he[0]=Ye,he[1]=pe,he[2]=Ce,he[3]=Qe),Pe=$.depth_func,Pe!==q.depth_func&&(H.depthFunc(Pe),q.depth_func=Pe),ye=L[0],mt=L[1],(ye!==Z[0]||mt!==Z[1])&&(H.depthRange(ye,mt),Z[0]=ye,Z[1]=mt),wt=ie[0],Le=ie[1],_t=ie[2],bt=ie[3],(wt!==be[0]||Le!==be[1]||_t!==be[2]||bt!==be[3])&&(H.colorMask(wt,Le,_t,bt),be[0]=wt,be[1]=Le,be[2]=_t,be[3]=bt),nt=$.cull_enable,nt!==q.cull_enable&&(nt?H.enable(2884):H.disable(2884),q.cull_enable=nt),yt=$.cull_face,yt!==q.cull_face&&(H.cullFace(yt),q.cull_face=yt),Lt=$.frontFace,Lt!==q.frontFace&&(H.frontFace(Lt),q.frontFace=Lt),Tt=$.lineWidth,Tt!==q.lineWidth&&(H.lineWidth(Tt),q.lineWidth=Tt),Nt=$.polygonOffset_enable,Nt!==q.polygonOffset_enable&&(Nt?H.enable(32823):H.disable(32823),q.polygonOffset_enable=Nt),zt=Ge[0],Ut=Ge[1],(zt!==N[0]||Ut!==N[1])&&(H.polygonOffset(zt,Ut),N[0]=zt,N[1]=Ut),Mt=$.sample_alpha,Mt!==q.sample_alpha&&(Mt?H.enable(32926):H.disable(32926),q.sample_alpha=Mt),Kt=$.sample_enable,Kt!==q.sample_enable&&(Kt?H.enable(32928):H.disable(32928),q.sample_enable=Kt),ei=$e[0],Jt=$e[1],(ei!==He[0]||Jt!==He[1])&&(H.sampleCoverage(ei,Jt),He[0]=ei,He[1]=Jt),Wt=$.stencil_enable,Wt!==q.stencil_enable&&(Wt?H.enable(2960):H.disable(2960),q.stencil_enable=Wt),$t=$.stencil_mask,$t!==q.stencil_mask&&(H.stencilMask($t),q.stencil_mask=$t),Gt=ne[0],Ot=ne[1],Bt=ne[2],(Gt!==me[0]||Ot!==me[1]||Bt!==me[2])&&(H.stencilFunc(Gt,Ot,Bt),me[0]=Gt,me[1]=Ot,me[2]=Bt),Zt=B[0],St=B[1],Vt=B[2],Dt=B[3],(Zt!==j[0]||St!==j[1]||Vt!==j[2]||Dt!==j[3])&&(H.stencilOpSeparate(Zt,St,Vt,Dt),j[0]=Zt,j[1]=St,j[2]=Vt,j[3]=Dt),ii=ue[0],Pt=ue[1],Qt=ue[2],xt=ue[3],(ii!==M[0]||Pt!==M[1]||Qt!==M[2]||xt!==M[3])&&(H.stencilOpSeparate(ii,Pt,Qt,xt),M[0]=ii,M[1]=Pt,M[2]=Qt,M[3]=xt),pt=$.scissor_enable,pt!==q.scissor_enable&&(pt?H.enable(3089):H.disable(3089),q.scissor_enable=pt)}ht=R.framebufferWidth,Ue=R.framebufferHeight,Me=R.viewportWidth,R.viewportWidth=ht,Be=R.viewportHeight,R.viewportHeight=Ue,H.viewport(0,0,ht,Ue),ft[0]=0,ft[1]=0,ft[2]=ht,ft[3]=Ue,ge?H.enable(2929):H.disable(2929),q.depth_enable=ge,H.depthMask(F),q.depth_mask=F,ke=R.framebufferWidth,Te=R.framebufferHeight,H.scissor(0,0,ke,Te),De[0]=0,De[1]=0,De[2]=ke,De[3]=Te,ze=q.profile,ze&&(Xe=performance.now(),t.count+=tt),H.useProgram(c.program),ut=Ae.angle_instanced_arrays;var vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di;for(Se.setVAO(null),vt=u.location,It=we[vt],It.buffer||H.enableVertexAttribArray(vt),Ft=2,(It.type!==5126||It.size!==Ft||It.buffer!==d||It.normalized!==!1||It.offset!==0||It.stride!==0)&&(H.bindBuffer(34962,d.buffer),H.vertexAttribPointer(vt,Ft,5126,!1,0,0),It.type=5126,It.size=Ft,It.buffer=d,It.normalized=!1,It.offset=0,It.stride=0),It.divisor!==0&&(ut.vertexAttribDivisorANGLE(vt,0),It.divisor=0),qt=m.call(this,R,Je,at),H.uniform1f(h.location,qt),zi=g.call(this,R,Je,at),zi&&zi._reglType==="framebuffer"&&(zi=zi.color[0]),Mi=zi._texture,H.uniform1i(b.location,Mi.bind()),di=z.call(this,R,Je,at),Ri=di[0],yi=di[1],H.uniform2f(_.location,Ri,yi),Ui=y.call(this,R,Je,at),H.uniform1f(X.location,Ui),Li=T.call(this,R,Je,at),H.uniformMatrix3fv(E.location,!1,Array.isArray(Li)||Li instanceof Float32Array?Li:(lt[0]=Li[0],lt[1]=Li[1],lt[2]=Li[2],lt[3]=Li[3],lt[4]=Li[4],lt[5]=Li[5],lt[6]=Li[6],lt[7]=Li[7],lt[8]=Li[8],lt)),Ei=se.elements,Ei?H.bindBuffer(34963,Ei.buffer.buffer):Se.currentVAO&&(Ei=te.getElements(Se.currentVAO.elements),Ei&&H.bindBuffer(34963,Ei.buffer.buffer)),wi=se.offset,Ci=w.call(this,R,Je,at),Di=se.instances,at=0;at<tt;++at)Je=Ke[at],Ci&&(Di>0?Ei?ut.drawElementsInstancedANGLE(0,Ci,Ei.type,wi<<(Ei.type-5121>>1),Di):ut.drawArraysInstancedANGLE(0,wi,Ci,Di):Di<0&&(Ei?H.drawElements(0,Ci,Ei.type,wi<<(Ei.type-5121>>1)):H.drawArrays(0,wi,Ci)));Mi.unbind(),q.dirty=!0,Se.setVAO(null),de.next=ot,R.framebufferWidth=Ne,R.framebufferHeight=et,R.viewportWidth=Me,R.viewportHeight=Be,ze&&(t.cpuTime+=performance.now()-Xe)}}},"4fcdeed74044cf60aec3d04b2ef34a1a9339bee96262f7b7dc4f0861dd54a457":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve){var D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi;return D=e.gl,oe=e.context,e.strings,xe=e.next,ce=e.current,Oe=e.draw,Ye=e.elements,pe=e.buffer,Ce=e.shader,Qe=e.attributes,Pe=e.vao,ye=e.uniforms,mt=e.framebuffer,wt=e.extensions,e.timer,Le=e.isBufferArgs,_t=xe.blend_color,bt=ce.blend_color,nt=xe.blend_equation,yt=ce.blend_equation,Lt=xe.blend_func,Tt=ce.blend_func,Nt=xe.depth_range,zt=ce.depth_range,Ut=xe.colorMask,Mt=ce.colorMask,Kt=xe.polygonOffset_offset,ei=ce.polygonOffset_offset,Jt=xe.sample_coverage,Wt=ce.sample_coverage,$t=xe.stencil_func,Gt=ce.stencil_func,Ot=xe.stencil_opFront,Bt=ce.stencil_opFront,Zt=xe.stencil_opBack,St=ce.stencil_opBack,Vt=xe.scissor_box,Dt=ce.scissor_box,ii=xe.viewport,Pt=ce.viewport,Qt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},xt={},xt.divisor=0,pt={},pt.divisor=1,pt.offset=0,pt.stride=16,vt={},vt.divisor=1,vt.offset=8,vt.stride=16,It={},It.divisor=1,It.offset=0,It.stride=16,Ft={},Ft.divisor=1,Ft.offset=0,Ft.stride=4,qt={},qt.divisor=1,qt.offset=0,qt.stride=4,zi=new Float32Array(9),Mi=new Float32Array(9),{draw:function(di){var Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr,hr,Rn,Ur,Na,ca,Xa,ya,va,al,Ll,xa,hs,ms,pl,ps,bs,gs,Pl,gr,ll,$a,bl,wa,Zl,Rl,sl,Br,Sa,so,Aa,$n,_s,Ql,Za,Fs,mr,Ms,oo,Ds,Qa,ys,Kl,Ul,vs,Ba,Ao,gl,_r,zr,_l,xs,Gl,er,Jl,ws,es,ia,ts,ol,Gr,is,qr,da,yl,dr,vl,co,Xs,Ss,xr,Zs,Eo,Qs,cl,fo,Ha,Fl,na,Nr,ns,dl,fr,As,Ns,rs,Bo,$s,as,To,Cr,Ka,ra,Bs,xl,wl;if(wt.angle_instanced_arrays,Ri=mt.next,Ri!==mt.cur&&(Ri?D.bindFramebuffer(36160,Ri.framebuffer):D.bindFramebuffer(36160,null),mt.cur=Ri),ce.dirty){var Hs,Ps,Sl,pr,Es,Ea,fa,Ta,Ja,$r,Pa,fl,ua,Ks,Ts,tr,br,Kn,Ml,Vr,wr,Ua,uo,ho,Os,ks,mo,Vl,po,Wl,Al,Oa,el,Cs,El,ha,zs,jl,Wr,Is,ka,Oo,tl;Hs=xe.dither,Hs!==ce.dither&&(Hs?D.enable(3024):D.disable(3024),ce.dither=Hs),Ps=_t[0],Sl=_t[1],pr=_t[2],Es=_t[3],(Ps!==bt[0]||Sl!==bt[1]||pr!==bt[2]||Es!==bt[3])&&(D.blendColor(Ps,Sl,pr,Es),bt[0]=Ps,bt[1]=Sl,bt[2]=pr,bt[3]=Es),Ea=xe.depth_func,Ea!==ce.depth_func&&(D.depthFunc(Ea),ce.depth_func=Ea),fa=Nt[0],Ta=Nt[1],(fa!==zt[0]||Ta!==zt[1])&&(D.depthRange(fa,Ta),zt[0]=fa,zt[1]=Ta),Ja=Ut[0],$r=Ut[1],Pa=Ut[2],fl=Ut[3],(Ja!==Mt[0]||$r!==Mt[1]||Pa!==Mt[2]||fl!==Mt[3])&&(D.colorMask(Ja,$r,Pa,fl),Mt[0]=Ja,Mt[1]=$r,Mt[2]=Pa,Mt[3]=fl),ua=xe.frontFace,ua!==ce.frontFace&&(D.frontFace(ua),ce.frontFace=ua),Ks=xe.lineWidth,Ks!==ce.lineWidth&&(D.lineWidth(Ks),ce.lineWidth=Ks),Ts=xe.polygonOffset_enable,Ts!==ce.polygonOffset_enable&&(Ts?D.enable(32823):D.disable(32823),ce.polygonOffset_enable=Ts),tr=Kt[0],br=Kt[1],(tr!==ei[0]||br!==ei[1])&&(D.polygonOffset(tr,br),ei[0]=tr,ei[1]=br),Kn=xe.sample_alpha,Kn!==ce.sample_alpha&&(Kn?D.enable(32926):D.disable(32926),ce.sample_alpha=Kn),Ml=xe.sample_enable,Ml!==ce.sample_enable&&(Ml?D.enable(32928):D.disable(32928),ce.sample_enable=Ml),Vr=Jt[0],wr=Jt[1],(Vr!==Wt[0]||wr!==Wt[1])&&(D.sampleCoverage(Vr,wr),Wt[0]=Vr,Wt[1]=wr),Ua=xe.stencil_enable,Ua!==ce.stencil_enable&&(Ua?D.enable(2960):D.disable(2960),ce.stencil_enable=Ua),uo=xe.stencil_mask,uo!==ce.stencil_mask&&(D.stencilMask(uo),ce.stencil_mask=uo),ho=$t[0],Os=$t[1],ks=$t[2],(ho!==Gt[0]||Os!==Gt[1]||ks!==Gt[2])&&(D.stencilFunc(ho,Os,ks),Gt[0]=ho,Gt[1]=Os,Gt[2]=ks),mo=Ot[0],Vl=Ot[1],po=Ot[2],Wl=Ot[3],(mo!==Bt[0]||Vl!==Bt[1]||po!==Bt[2]||Wl!==Bt[3])&&(D.stencilOpSeparate(mo,Vl,po,Wl),Bt[0]=mo,Bt[1]=Vl,Bt[2]=po,Bt[3]=Wl),Al=Zt[0],Oa=Zt[1],el=Zt[2],Cs=Zt[3],(Al!==St[0]||Oa!==St[1]||el!==St[2]||Cs!==St[3])&&(D.stencilOpSeparate(Al,Oa,el,Cs),St[0]=Al,St[1]=Oa,St[2]=el,St[3]=Cs),El=xe.scissor_enable,El!==ce.scissor_enable&&(El?D.enable(3089):D.disable(3089),ce.scissor_enable=El),ha=Vt[0],zs=Vt[1],jl=Vt[2],Wr=Vt[3],(ha!==Dt[0]||zs!==Dt[1]||jl!==Dt[2]||Wr!==Dt[3])&&(D.scissor(ha,zs,jl,Wr),Dt[0]=ha,Dt[1]=zs,Dt[2]=jl,Dt[3]=Wr),Is=ii[0],ka=ii[1],Oo=ii[2],tl=ii[3],(Is!==Pt[0]||ka!==Pt[1]||Oo!==Pt[2]||tl!==Pt[3])&&(D.viewport(Is,ka,Oo,tl),Pt[0]=Is,Pt[1]=ka,Pt[2]=Oo,Pt[3]=tl)}n?D.enable(3042):D.disable(3042),ce.blend_enable=n,D.blendEquationSeparate(32774,32774),yt[0]=32774,yt[1]=32774,D.blendFuncSeparate(770,771,1,771),Tt[0]=770,Tt[1]=771,Tt[2]=1,Tt[3]=771,l?D.enable(2884):D.disable(2884),ce.cull_enable=l,D.cullFace(s),ce.cull_face=s,c?D.enable(2929):D.disable(2929),ce.depth_enable=c,D.depthMask(d),ce.depth_mask=d,yi=ce.profile,yi&&(Ui=performance.now(),t.count++),D.useProgram(u.program),Li=wt.angle_instanced_arrays,Pe.setVAO(null),Ei=h.call(this,oe,di,0),qt.buffer=Ei,wi=!1,Ci=1,Di=0,$i=0,Gi=0,tn=0,Wi=null,qi=0,Xi=!1,un=5126,Qi=0,sn=0,xn=0,Le(qt)?(wi=!0,Wi=pe.createStream(34962,qt),un=Wi.dtype):(Wi=pe.getBuffer(qt),Wi?un=Wi.dtype:"constant"in qt?(Ci=2,typeof qt.constant=="number"?(Di=qt.constant,$i=Gi=tn=0):(Di=qt.constant.length>0?qt.constant[0]:0,$i=qt.constant.length>1?qt.constant[1]:0,Gi=qt.constant.length>2?qt.constant[2]:0,tn=qt.constant.length>3?qt.constant[3]:0)):(Le(qt.buffer)?Wi=pe.createStream(34962,qt.buffer):Wi=pe.getBuffer(qt.buffer),un="type"in qt?Qt[qt.type]:Wi.dtype,Xi=!!qt.normalized,qi=qt.size|0,Qi=qt.offset|0,sn=qt.stride|0,xn=qt.divisor|0)),wn=m.location,fn=Qe[wn],Ci===1?(fn.buffer||D.enableVertexAttribArray(wn),zn=qi||1,(fn.type!==un||fn.size!==zn||fn.buffer!==Wi||fn.normalized!==Xi||fn.offset!==Qi||fn.stride!==sn)&&(D.bindBuffer(34962,Wi.buffer),D.vertexAttribPointer(wn,zn,un,Xi,sn,Qi),fn.type=un,fn.size=zn,fn.buffer=Wi,fn.normalized=Xi,fn.offset=Qi,fn.stride=sn),fn.divisor!==xn&&(Li.vertexAttribDivisorANGLE(wn,xn),fn.divisor=xn)):(fn.buffer&&(D.disableVertexAttribArray(wn),fn.buffer=null),(fn.x!==Di||fn.y!==$i||fn.z!==Gi||fn.w!==tn)&&(D.vertexAttrib4f(wn,Di,$i,Gi,tn),fn.x=Di,fn.y=$i,fn.z=Gi,fn.w=tn)),Ln=b.call(this,oe,di,0),It.buffer=Ln,Dn=!1,Wn=1,Nn=0,Gn=0,Zn=0,jn=0,Sn=null,Qn=0,Hn=!1,Pn=5126,vr=0,Jn=0,rr=0,Le(It)?(Dn=!0,Sn=pe.createStream(34962,It),Pn=Sn.dtype):(Sn=pe.getBuffer(It),Sn?Pn=Sn.dtype:"constant"in It?(Wn=2,typeof It.constant=="number"?(Nn=It.constant,Gn=Zn=jn=0):(Nn=It.constant.length>0?It.constant[0]:0,Gn=It.constant.length>1?It.constant[1]:0,Zn=It.constant.length>2?It.constant[2]:0,jn=It.constant.length>3?It.constant[3]:0)):(Le(It.buffer)?Sn=pe.createStream(34962,It.buffer):Sn=pe.getBuffer(It.buffer),Pn="type"in It?Qt[It.type]:Sn.dtype,Hn=!!It.normalized,Qn=It.size|0,vr=It.offset|0,Jn=It.stride|0,rr=It.divisor|0)),hr=g.location,Rn=Qe[hr],Wn===1?(Rn.buffer||D.enableVertexAttribArray(hr),Ur=Qn||4,(Rn.type!==Pn||Rn.size!==Ur||Rn.buffer!==Sn||Rn.normalized!==Hn||Rn.offset!==vr||Rn.stride!==Jn)&&(D.bindBuffer(34962,Sn.buffer),D.vertexAttribPointer(hr,Ur,Pn,Hn,Jn,vr),Rn.type=Pn,Rn.size=Ur,Rn.buffer=Sn,Rn.normalized=Hn,Rn.offset=vr,Rn.stride=Jn),Rn.divisor!==rr&&(Li.vertexAttribDivisorANGLE(hr,rr),Rn.divisor=rr)):(Rn.buffer&&(D.disableVertexAttribArray(hr),Rn.buffer=null),(Rn.x!==Nn||Rn.y!==Gn||Rn.z!==Zn||Rn.w!==jn)&&(D.vertexAttrib4f(hr,Nn,Gn,Zn,jn),Rn.x=Nn,Rn.y=Gn,Rn.z=Zn,Rn.w=jn)),Na=_.call(this,oe,di,0),pt.buffer=Na,ca=!1,Xa=1,ya=0,va=0,al=0,Ll=0,xa=null,hs=0,ms=!1,pl=5126,ps=0,bs=0,gs=0,Le(pt)?(ca=!0,xa=pe.createStream(34962,pt),pl=xa.dtype):(xa=pe.getBuffer(pt),xa?pl=xa.dtype:"constant"in pt?(Xa=2,typeof pt.constant=="number"?(ya=pt.constant,va=al=Ll=0):(ya=pt.constant.length>0?pt.constant[0]:0,va=pt.constant.length>1?pt.constant[1]:0,al=pt.constant.length>2?pt.constant[2]:0,Ll=pt.constant.length>3?pt.constant[3]:0)):(Le(pt.buffer)?xa=pe.createStream(34962,pt.buffer):xa=pe.getBuffer(pt.buffer),pl="type"in pt?Qt[pt.type]:xa.dtype,ms=!!pt.normalized,hs=pt.size|0,ps=pt.offset|0,bs=pt.stride|0,gs=pt.divisor|0)),Pl=z.location,gr=Qe[Pl],Xa===1?(gr.buffer||D.enableVertexAttribArray(Pl),ll=hs||2,(gr.type!==pl||gr.size!==ll||gr.buffer!==xa||gr.normalized!==ms||gr.offset!==ps||gr.stride!==bs)&&(D.bindBuffer(34962,xa.buffer),D.vertexAttribPointer(Pl,ll,pl,ms,bs,ps),gr.type=pl,gr.size=ll,gr.buffer=xa,gr.normalized=ms,gr.offset=ps,gr.stride=bs),gr.divisor!==gs&&(Li.vertexAttribDivisorANGLE(Pl,gs),gr.divisor=gs)):(gr.buffer&&(D.disableVertexAttribArray(Pl),gr.buffer=null),(gr.x!==ya||gr.y!==va||gr.z!==al||gr.w!==Ll)&&(D.vertexAttrib4f(Pl,ya,va,al,Ll),gr.x=ya,gr.y=va,gr.z=al,gr.w=Ll)),$a=X.call(this,oe,di,0),vt.buffer=$a,bl=!1,wa=1,Zl=0,Rl=0,sl=0,Br=0,Sa=null,so=0,Aa=!1,$n=5126,_s=0,Ql=0,Za=0,Le(vt)?(bl=!0,Sa=pe.createStream(34962,vt),$n=Sa.dtype):(Sa=pe.getBuffer(vt),Sa?$n=Sa.dtype:"constant"in vt?(wa=2,typeof vt.constant=="number"?(Zl=vt.constant,Rl=sl=Br=0):(Zl=vt.constant.length>0?vt.constant[0]:0,Rl=vt.constant.length>1?vt.constant[1]:0,sl=vt.constant.length>2?vt.constant[2]:0,Br=vt.constant.length>3?vt.constant[3]:0)):(Le(vt.buffer)?Sa=pe.createStream(34962,vt.buffer):Sa=pe.getBuffer(vt.buffer),$n="type"in vt?Qt[vt.type]:Sa.dtype,Aa=!!vt.normalized,so=vt.size|0,_s=vt.offset|0,Ql=vt.stride|0,Za=vt.divisor|0)),Fs=y.location,mr=Qe[Fs],wa===1?(mr.buffer||D.enableVertexAttribArray(Fs),Ms=so||2,(mr.type!==$n||mr.size!==Ms||mr.buffer!==Sa||mr.normalized!==Aa||mr.offset!==_s||mr.stride!==Ql)&&(D.bindBuffer(34962,Sa.buffer),D.vertexAttribPointer(Fs,Ms,$n,Aa,Ql,_s),mr.type=$n,mr.size=Ms,mr.buffer=Sa,mr.normalized=Aa,mr.offset=_s,mr.stride=Ql),mr.divisor!==Za&&(Li.vertexAttribDivisorANGLE(Fs,Za),mr.divisor=Za)):(mr.buffer&&(D.disableVertexAttribArray(Fs),mr.buffer=null),(mr.x!==Zl||mr.y!==Rl||mr.z!==sl||mr.w!==Br)&&(D.vertexAttrib4f(Fs,Zl,Rl,sl,Br),mr.x=Zl,mr.y=Rl,mr.z=sl,mr.w=Br)),oo=E.call(this,oe,di,0),xt.buffer=oo,Ds=!1,Qa=1,ys=0,Kl=0,Ul=0,vs=0,Ba=null,Ao=0,gl=!1,_r=5126,zr=0,_l=0,xs=0,Le(xt)?(Ds=!0,Ba=pe.createStream(34962,xt),_r=Ba.dtype):(Ba=pe.getBuffer(xt),Ba?_r=Ba.dtype:"constant"in xt?(Qa=2,typeof xt.constant=="number"?(ys=xt.constant,Kl=Ul=vs=0):(ys=xt.constant.length>0?xt.constant[0]:0,Kl=xt.constant.length>1?xt.constant[1]:0,Ul=xt.constant.length>2?xt.constant[2]:0,vs=xt.constant.length>3?xt.constant[3]:0)):(Le(xt.buffer)?Ba=pe.createStream(34962,xt.buffer):Ba=pe.getBuffer(xt.buffer),_r="type"in xt?Qt[xt.type]:Ba.dtype,gl=!!xt.normalized,Ao=xt.size|0,zr=xt.offset|0,_l=xt.stride|0,xs=xt.divisor|0)),Gl=T.location,er=Qe[Gl],Qa===1?(er.buffer||D.enableVertexAttribArray(Gl),Jl=Ao||2,(er.type!==_r||er.size!==Jl||er.buffer!==Ba||er.normalized!==gl||er.offset!==zr||er.stride!==_l)&&(D.bindBuffer(34962,Ba.buffer),D.vertexAttribPointer(Gl,Jl,_r,gl,_l,zr),er.type=_r,er.size=Jl,er.buffer=Ba,er.normalized=gl,er.offset=zr,er.stride=_l),er.divisor!==xs&&(Li.vertexAttribDivisorANGLE(Gl,xs),er.divisor=xs)):(er.buffer&&(D.disableVertexAttribArray(Gl),er.buffer=null),(er.x!==ys||er.y!==Kl||er.z!==Ul||er.w!==vs)&&(D.vertexAttrib4f(Gl,ys,Kl,Ul,vs),er.x=ys,er.y=Kl,er.z=Ul,er.w=vs)),ws=w.call(this,oe,di,0),Ft.buffer=ws,es=!1,ia=1,ts=0,ol=0,Gr=0,is=0,qr=null,da=0,yl=!1,dr=5126,vl=0,co=0,Xs=0,Le(Ft)?(es=!0,qr=pe.createStream(34962,Ft),dr=qr.dtype):(qr=pe.getBuffer(Ft),qr?dr=qr.dtype:"constant"in Ft?(ia=2,typeof Ft.constant=="number"?(ts=Ft.constant,ol=Gr=is=0):(ts=Ft.constant.length>0?Ft.constant[0]:0,ol=Ft.constant.length>1?Ft.constant[1]:0,Gr=Ft.constant.length>2?Ft.constant[2]:0,is=Ft.constant.length>3?Ft.constant[3]:0)):(Le(Ft.buffer)?qr=pe.createStream(34962,Ft.buffer):qr=pe.getBuffer(Ft.buffer),dr="type"in Ft?Qt[Ft.type]:qr.dtype,yl=!!Ft.normalized,da=Ft.size|0,vl=Ft.offset|0,co=Ft.stride|0,Xs=Ft.divisor|0)),Ss=I.location,xr=Qe[Ss],ia===1?(xr.buffer||D.enableVertexAttribArray(Ss),Zs=da||1,(xr.type!==dr||xr.size!==Zs||xr.buffer!==qr||xr.normalized!==yl||xr.offset!==vl||xr.stride!==co)&&(D.bindBuffer(34962,qr.buffer),D.vertexAttribPointer(Ss,Zs,dr,yl,co,vl),xr.type=dr,xr.size=Zs,xr.buffer=qr,xr.normalized=yl,xr.offset=vl,xr.stride=co),xr.divisor!==Xs&&(Li.vertexAttribDivisorANGLE(Ss,Xs),xr.divisor=Xs)):(xr.buffer&&(D.disableVertexAttribArray(Ss),xr.buffer=null),(xr.x!==ts||xr.y!==ol||xr.z!==Gr||xr.w!==is)&&(D.vertexAttrib4f(Ss,ts,ol,Gr,is),xr.x=ts,xr.y=ol,xr.z=Gr,xr.w=is)),Eo=U.call(this,oe,di,0),D.uniform1f(K.location,Eo),Qs=J.call(this,oe,di,0),D.uniform1f(Y.location,Qs),cl=Q.call(this,oe,di,0),D.uniform1f(S.location,cl),fo=x.call(this,oe,di,0),D.uniform1f(ae.location,fo),Ha=O.call(this,oe,di,0),D.uniform1f(A.location,Ha),Fl=C.call(this,oe,di,0),na=Fl[0],Nr=Fl[1],D.uniform2f(k.location,na,Nr),ns=Re.call(this,oe,di,0),D.uniform1f(ee.location,ns),dl=F.call(this,oe,di,0),dl&&dl._reglType==="framebuffer"&&(dl=dl.color[0]),fr=dl._texture,D.uniform1i(ge.location,fr.bind()),As=R.call(this,oe,di,0),D.uniform1f(H.location,As),Ns=q.call(this,oe,di,0),Ns&&Ns._reglType==="framebuffer"&&(Ns=Ns.color[0]),rs=Ns._texture,D.uniform1i($.location,rs.bind()),Bo=te.call(this,oe,di,0),$s=Bo[0],as=Bo[1],D.uniform2f(se.location,$s,as),To=we.call(this,oe,di,0),D.uniform1f(qe.location,To),Cr=G.call(this,oe,di,0),D.uniformMatrix3fv(Se.location,!1,Array.isArray(Cr)||Cr instanceof Float32Array?Cr:(zi[0]=Cr[0],zi[1]=Cr[1],zi[2]=Cr[2],zi[3]=Cr[3],zi[4]=Cr[4],zi[5]=Cr[5],zi[6]=Cr[6],zi[7]=Cr[7],zi[8]=Cr[8],zi)),Ka=Ae.call(this,oe,di,0),D.uniform1f(de.location,Ka),ra=Oe.elements,ra?D.bindBuffer(34963,ra.buffer.buffer):Pe.currentVAO&&(ra=Ye.getElements(Pe.currentVAO.elements),ra&&D.bindBuffer(34963,ra.buffer.buffer)),Bs=Oe.offset,xl=W.call(this,oe,di,0),xl&&(wl=re.call(this,oe,di,0),wl>0?ra?Li.drawElementsInstancedANGLE(5,xl,ra.type,Bs<<(ra.type-5121>>1),wl):Li.drawArraysInstancedANGLE(5,Bs,xl,wl):wl<0&&(ra?D.drawElements(5,xl,ra.type,Bs<<(ra.type-5121>>1)):D.drawArrays(5,Bs,xl)),ce.dirty=!0,Pe.setVAO(null),yi&&(t.cpuTime+=performance.now()-Ui),wi&&pe.destroyStream(Wi),Dn&&pe.destroyStream(Sn),ca&&pe.destroyStream(xa),bl&&pe.destroyStream(Sa),Ds&&pe.destroyStream(Ba),es&&pe.destroyStream(qr),fr.unbind(),rs.unbind())},scope:function(di,Ri,yi){var Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr,hr,Rn,Ur,Na,ca,Xa,ya,va,al,Ll,xa,hs,ms,pl,ps,bs,gs,Pl,gr,ll,$a,bl,wa,Zl,Rl,sl,Br,Sa,so,Aa,$n,_s,Ql,Za,Fs,mr,Ms,oo,Ds,Qa,ys,Kl,Ul,vs,Ba,Ao,gl,_r,zr,_l,xs,Gl,er,Jl,ws,es,ia,ts,ol,Gr,is,qr,da,yl,dr,vl,co,Xs,Ss,xr,Zs,Eo,Qs,cl,fo,Ha,Fl,na,Nr,ns,dl,fr,As,Ns,rs,Bo,$s,as,To,Cr,Ka,ra,Bs,xl,wl,Hs,Ps,Sl,pr,Es,Ea,fa,Ta,Ja,$r,Pa,fl,ua,Ks,Ts,tr,br,Kn,Ml,Vr,wr,Ua,uo,ho,Os,ks,mo,Vl,po,Wl,Al,Oa,el,Cs,El,ha,zs,jl,Wr,Is,ka,Oo,tl,Wo,Yr,ko,Rc,Fc,Xc,wc,Sc,Pd,gd,Zc,Ud,Co,bo,jo,qo,Ho,Ac,Dl,Yo,dc,Xo,Qc,Zo,Kc,_d,Js,fc,Gd,uc,Qo,Mc,yd,Vd,Po,Ec,Tf,Of,Dc;Ui=xe.blend_enable,xe.blend_enable=Rt,Li=nt[0],nt[0]=Ve,Ei=nt[1],nt[1]=Fe,wi=Lt[0],Lt[0]=he,Ci=Lt[1],Lt[1]=L,Di=Lt[2],Lt[2]=Z,$i=Lt[3],Lt[3]=ie,Gi=xe.cull_enable,xe.cull_enable=be,tn=xe.cull_face,xe.cull_face=Ge,Wi=xe.depth_enable,xe.depth_enable=N,qi=xe.depth_mask,xe.depth_mask=$e,Xi=ce.profile,Xi&&(un=performance.now(),t.count++),Qi=W.call(this,oe,di,yi),sn=Oe.count,Oe.count=Qi,xn=re.call(this,oe,di,yi),wn=Oe.instances,Oe.instances=xn,fn=Oe.primitive,Oe.primitive=He,zn=q.call(this,oe,di,yi),Ln=ye[ne],ye[ne]=zn,Dn=F.call(this,oe,di,yi),Wn=ye[me],ye[me]=Dn,Nn=G.call(this,oe,di,yi),Gn=ye[B],ye[B]=Nn,Zn=R.call(this,oe,di,yi),jn=ye[j],ye[j]=Zn,Sn=ue.call(this,oe,di,yi),Qn=ye[M],ye[M]=Sn,Hn=Ae.call(this,oe,di,yi),Pn=ye[le],ye[le]=Hn,vr=U.call(this,oe,di,yi),Jn=ye[De],ye[De]=vr,rr=we.call(this,oe,di,yi),hr=ye[Ee],ye[Ee]=rr,Rn=te.call(this,oe,di,yi),Ur=ye[ft],ye[ft]=Rn,Na=At.call(this,oe,di,yi),ca=ye[lt],ye[lt]=Na,Xa=C.call(this,oe,di,yi),ya=ye[Ke],ye[Ke]=Xa,va=Re.call(this,oe,di,yi),al=ye[tt],ye[tt]=va,Ll=O.call(this,oe,di,yi),xa=ye[fe],ye[fe]=Ll,hs=je.call(this,oe,di,yi),ms=ye[ot],ye[ot]=hs,pl=x.call(this,oe,di,yi),ps=ye[Ne],ye[Ne]=pl,bs=J.call(this,oe,di,yi),gs=ye[et],ye[et]=bs,Pl=Q.call(this,oe,di,yi),gr=ye[ht],ye[ht]=Pl,ll=E.call(this,oe,di,yi),xt.buffer=ll,$a=!1,bl=1,wa=0,Zl=0,Rl=0,sl=0,Br=null,Sa=0,so=!1,Aa=5126,$n=0,_s=0,Ql=0,Le(xt)?($a=!0,Br=pe.createStream(34962,xt),Aa=Br.dtype):(Br=pe.getBuffer(xt),Br?Aa=Br.dtype:"constant"in xt?(bl=2,typeof xt.constant=="number"?(wa=xt.constant,Zl=Rl=sl=0):(wa=xt.constant.length>0?xt.constant[0]:0,Zl=xt.constant.length>1?xt.constant[1]:0,Rl=xt.constant.length>2?xt.constant[2]:0,sl=xt.constant.length>3?xt.constant[3]:0)):(Le(xt.buffer)?Br=pe.createStream(34962,xt.buffer):Br=pe.getBuffer(xt.buffer),Aa="type"in xt?Qt[xt.type]:Br.dtype,so=!!xt.normalized,Sa=xt.size|0,$n=xt.offset|0,_s=xt.stride|0,Ql=xt.divisor|0)),Za=Ue.state,Ue.state=bl,Fs=Ue.x,Ue.x=wa,mr=Ue.y,Ue.y=Zl,Ms=Ue.z,Ue.z=Rl,oo=Ue.w,Ue.w=sl,Ds=Ue.buffer,Ue.buffer=Br,Qa=Ue.size,Ue.size=Sa,ys=Ue.normalized,Ue.normalized=so,Kl=Ue.type,Ue.type=Aa,Ul=Ue.offset,Ue.offset=$n,vs=Ue.stride,Ue.stride=_s,Ba=Ue.divisor,Ue.divisor=Ql,Ao=_.call(this,oe,di,yi),pt.buffer=Ao,gl=!1,_r=1,zr=0,_l=0,xs=0,Gl=0,er=null,Jl=0,ws=!1,es=5126,ia=0,ts=0,ol=0,Le(pt)?(gl=!0,er=pe.createStream(34962,pt),es=er.dtype):(er=pe.getBuffer(pt),er?es=er.dtype:"constant"in pt?(_r=2,typeof pt.constant=="number"?(zr=pt.constant,_l=xs=Gl=0):(zr=pt.constant.length>0?pt.constant[0]:0,_l=pt.constant.length>1?pt.constant[1]:0,xs=pt.constant.length>2?pt.constant[2]:0,Gl=pt.constant.length>3?pt.constant[3]:0)):(Le(pt.buffer)?er=pe.createStream(34962,pt.buffer):er=pe.getBuffer(pt.buffer),es="type"in pt?Qt[pt.type]:er.dtype,ws=!!pt.normalized,Jl=pt.size|0,ia=pt.offset|0,ts=pt.stride|0,ol=pt.divisor|0)),Gr=Me.state,Me.state=_r,is=Me.x,Me.x=zr,qr=Me.y,Me.y=_l,da=Me.z,Me.z=xs,yl=Me.w,Me.w=Gl,dr=Me.buffer,Me.buffer=er,vl=Me.size,Me.size=Jl,co=Me.normalized,Me.normalized=ws,Xs=Me.type,Me.type=es,Ss=Me.offset,Me.offset=ia,xr=Me.stride,Me.stride=ts,Zs=Me.divisor,Me.divisor=ol,Eo=X.call(this,oe,di,yi),vt.buffer=Eo,Qs=!1,cl=1,fo=0,Ha=0,Fl=0,na=0,Nr=null,ns=0,dl=!1,fr=5126,As=0,Ns=0,rs=0,Le(vt)?(Qs=!0,Nr=pe.createStream(34962,vt),fr=Nr.dtype):(Nr=pe.getBuffer(vt),Nr?fr=Nr.dtype:"constant"in vt?(cl=2,typeof vt.constant=="number"?(fo=vt.constant,Ha=Fl=na=0):(fo=vt.constant.length>0?vt.constant[0]:0,Ha=vt.constant.length>1?vt.constant[1]:0,Fl=vt.constant.length>2?vt.constant[2]:0,na=vt.constant.length>3?vt.constant[3]:0)):(Le(vt.buffer)?Nr=pe.createStream(34962,vt.buffer):Nr=pe.getBuffer(vt.buffer),fr="type"in vt?Qt[vt.type]:Nr.dtype,dl=!!vt.normalized,ns=vt.size|0,As=vt.offset|0,Ns=vt.stride|0,rs=vt.divisor|0)),Bo=Be.state,Be.state=cl,$s=Be.x,Be.x=fo,as=Be.y,Be.y=Ha,To=Be.z,Be.z=Fl,Cr=Be.w,Be.w=na,Ka=Be.buffer,Be.buffer=Nr,ra=Be.size,Be.size=ns,Bs=Be.normalized,Be.normalized=dl,xl=Be.type,Be.type=fr,wl=Be.offset,Be.offset=As,Hs=Be.stride,Be.stride=Ns,Ps=Be.divisor,Be.divisor=rs,Sl=b.call(this,oe,di,yi),It.buffer=Sl,pr=!1,Es=1,Ea=0,fa=0,Ta=0,Ja=0,$r=null,Pa=0,fl=!1,ua=5126,Ks=0,Ts=0,tr=0,Le(It)?(pr=!0,$r=pe.createStream(34962,It),ua=$r.dtype):($r=pe.getBuffer(It),$r?ua=$r.dtype:"constant"in It?(Es=2,typeof It.constant=="number"?(Ea=It.constant,fa=Ta=Ja=0):(Ea=It.constant.length>0?It.constant[0]:0,fa=It.constant.length>1?It.constant[1]:0,Ta=It.constant.length>2?It.constant[2]:0,Ja=It.constant.length>3?It.constant[3]:0)):(Le(It.buffer)?$r=pe.createStream(34962,It.buffer):$r=pe.getBuffer(It.buffer),ua="type"in It?Qt[It.type]:$r.dtype,fl=!!It.normalized,Pa=It.size|0,Ks=It.offset|0,Ts=It.stride|0,tr=It.divisor|0)),br=ke.state,ke.state=Es,Kn=ke.x,ke.x=Ea,Ml=ke.y,ke.y=fa,Vr=ke.z,ke.z=Ta,wr=ke.w,ke.w=Ja,Ua=ke.buffer,ke.buffer=$r,uo=ke.size,ke.size=Pa,ho=ke.normalized,ke.normalized=fl,Os=ke.type,ke.type=ua,ks=ke.offset,ke.offset=Ks,mo=ke.stride,ke.stride=Ts,Vl=ke.divisor,ke.divisor=tr,po=w.call(this,oe,di,yi),Ft.buffer=po,Wl=!1,Al=1,Oa=0,el=0,Cs=0,El=0,ha=null,zs=0,jl=!1,Wr=5126,Is=0,ka=0,Oo=0,Le(Ft)?(Wl=!0,ha=pe.createStream(34962,Ft),Wr=ha.dtype):(ha=pe.getBuffer(Ft),ha?Wr=ha.dtype:"constant"in Ft?(Al=2,typeof Ft.constant=="number"?(Oa=Ft.constant,el=Cs=El=0):(Oa=Ft.constant.length>0?Ft.constant[0]:0,el=Ft.constant.length>1?Ft.constant[1]:0,Cs=Ft.constant.length>2?Ft.constant[2]:0,El=Ft.constant.length>3?Ft.constant[3]:0)):(Le(Ft.buffer)?ha=pe.createStream(34962,Ft.buffer):ha=pe.getBuffer(Ft.buffer),Wr="type"in Ft?Qt[Ft.type]:ha.dtype,jl=!!Ft.normalized,zs=Ft.size|0,Is=Ft.offset|0,ka=Ft.stride|0,Oo=Ft.divisor|0)),tl=Te.state,Te.state=Al,Wo=Te.x,Te.x=Oa,Yr=Te.y,Te.y=el,ko=Te.z,Te.z=Cs,Rc=Te.w,Te.w=El,Fc=Te.buffer,Te.buffer=ha,Xc=Te.size,Te.size=zs,wc=Te.normalized,Te.normalized=jl,Sc=Te.type,Te.type=Wr,Pd=Te.offset,Te.offset=Is,gd=Te.stride,Te.stride=ka,Zc=Te.divisor,Te.divisor=Oo,Ud=h.call(this,oe,di,yi),qt.buffer=Ud,Co=!1,bo=1,jo=0,qo=0,Ho=0,Ac=0,Dl=null,Yo=0,dc=!1,Xo=5126,Qc=0,Zo=0,Kc=0,Le(qt)?(Co=!0,Dl=pe.createStream(34962,qt),Xo=Dl.dtype):(Dl=pe.getBuffer(qt),Dl?Xo=Dl.dtype:"constant"in qt?(bo=2,typeof qt.constant=="number"?(jo=qt.constant,qo=Ho=Ac=0):(jo=qt.constant.length>0?qt.constant[0]:0,qo=qt.constant.length>1?qt.constant[1]:0,Ho=qt.constant.length>2?qt.constant[2]:0,Ac=qt.constant.length>3?qt.constant[3]:0)):(Le(qt.buffer)?Dl=pe.createStream(34962,qt.buffer):Dl=pe.getBuffer(qt.buffer),Xo="type"in qt?Qt[qt.type]:Dl.dtype,dc=!!qt.normalized,Yo=qt.size|0,Qc=qt.offset|0,Zo=qt.stride|0,Kc=qt.divisor|0)),_d=ze.state,ze.state=bo,Js=ze.x,ze.x=jo,fc=ze.y,ze.y=qo,Gd=ze.z,ze.z=Ho,uc=ze.w,ze.w=Ac,Qo=ze.buffer,ze.buffer=Dl,Mc=ze.size,ze.size=Yo,yd=ze.normalized,ze.normalized=dc,Vd=ze.type,ze.type=Xo,Po=ze.offset,ze.offset=Qc,Ec=ze.stride,ze.stride=Zo,Tf=ze.divisor,ze.divisor=Kc,Of=Ce.vert,Ce.vert=Xe,Dc=Ce.frag,Ce.frag=ut,ce.dirty=!0,Ri(oe,di,yi),xe.blend_enable=Ui,nt[0]=Li,nt[1]=Ei,Lt[0]=wi,Lt[1]=Ci,Lt[2]=Di,Lt[3]=$i,xe.cull_enable=Gi,xe.cull_face=tn,xe.depth_enable=Wi,xe.depth_mask=qi,Xi&&(t.cpuTime+=performance.now()-un),Oe.count=sn,Oe.instances=wn,Oe.primitive=fn,ye[ne]=Ln,ye[me]=Wn,ye[B]=Gn,ye[j]=jn,ye[M]=Qn,ye[le]=Pn,ye[De]=Jn,ye[Ee]=hr,ye[ft]=Ur,ye[lt]=ca,ye[Ke]=ya,ye[tt]=al,ye[fe]=xa,ye[ot]=ms,ye[Ne]=ps,ye[et]=gs,ye[ht]=gr,$a&&pe.destroyStream(Br),Ue.state=Za,Ue.x=Fs,Ue.y=mr,Ue.z=Ms,Ue.w=oo,Ue.buffer=Ds,Ue.size=Qa,Ue.normalized=ys,Ue.type=Kl,Ue.offset=Ul,Ue.stride=vs,Ue.divisor=Ba,gl&&pe.destroyStream(er),Me.state=Gr,Me.x=is,Me.y=qr,Me.z=da,Me.w=yl,Me.buffer=dr,Me.size=vl,Me.normalized=co,Me.type=Xs,Me.offset=Ss,Me.stride=xr,Me.divisor=Zs,Qs&&pe.destroyStream(Nr),Be.state=Bo,Be.x=$s,Be.y=as,Be.z=To,Be.w=Cr,Be.buffer=Ka,Be.size=ra,Be.normalized=Bs,Be.type=xl,Be.offset=wl,Be.stride=Hs,Be.divisor=Ps,pr&&pe.destroyStream($r),ke.state=br,ke.x=Kn,ke.y=Ml,ke.z=Vr,ke.w=wr,ke.buffer=Ua,ke.size=uo,ke.normalized=ho,ke.type=Os,ke.offset=ks,ke.stride=mo,ke.divisor=Vl,Wl&&pe.destroyStream(ha),Te.state=tl,Te.x=Wo,Te.y=Yr,Te.z=ko,Te.w=Rc,Te.buffer=Fc,Te.size=Xc,Te.normalized=wc,Te.type=Sc,Te.offset=Pd,Te.stride=gd,Te.divisor=Zc,Co&&pe.destroyStream(Dl),ze.state=_d,ze.x=Js,ze.y=fc,ze.z=Gd,ze.w=uc,ze.buffer=Qo,ze.size=Mc,ze.normalized=yd,ze.type=Vd,ze.offset=Po,ze.stride=Ec,ze.divisor=Tf,Ce.vert=Of,Ce.frag=Dc,ce.dirty=!0},batch:function(di,Ri){var yi,Ui,Li,Ei,wi,Ci;if(wt.angle_instanced_arrays,yi=mt.next,yi!==mt.cur&&(yi?D.bindFramebuffer(36160,yi.framebuffer):D.bindFramebuffer(36160,null),mt.cur=yi),ce.dirty){var Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn,fn,zn,Ln,Dn,Wn,Nn,Gn,Zn,jn,Sn,Qn,Hn,Pn,vr,Jn,rr,hr,Rn,Ur,Na,ca,Xa,ya,va,al,Ll,xa,hs,ms,pl,ps;Di=xe.dither,Di!==ce.dither&&(Di?D.enable(3024):D.disable(3024),ce.dither=Di),$i=_t[0],Gi=_t[1],tn=_t[2],Wi=_t[3],($i!==bt[0]||Gi!==bt[1]||tn!==bt[2]||Wi!==bt[3])&&(D.blendColor($i,Gi,tn,Wi),bt[0]=$i,bt[1]=Gi,bt[2]=tn,bt[3]=Wi),qi=xe.depth_func,qi!==ce.depth_func&&(D.depthFunc(qi),ce.depth_func=qi),Xi=Nt[0],un=Nt[1],(Xi!==zt[0]||un!==zt[1])&&(D.depthRange(Xi,un),zt[0]=Xi,zt[1]=un),Qi=Ut[0],sn=Ut[1],xn=Ut[2],wn=Ut[3],(Qi!==Mt[0]||sn!==Mt[1]||xn!==Mt[2]||wn!==Mt[3])&&(D.colorMask(Qi,sn,xn,wn),Mt[0]=Qi,Mt[1]=sn,Mt[2]=xn,Mt[3]=wn),fn=xe.frontFace,fn!==ce.frontFace&&(D.frontFace(fn),ce.frontFace=fn),zn=xe.lineWidth,zn!==ce.lineWidth&&(D.lineWidth(zn),ce.lineWidth=zn),Ln=xe.polygonOffset_enable,Ln!==ce.polygonOffset_enable&&(Ln?D.enable(32823):D.disable(32823),ce.polygonOffset_enable=Ln),Dn=Kt[0],Wn=Kt[1],(Dn!==ei[0]||Wn!==ei[1])&&(D.polygonOffset(Dn,Wn),ei[0]=Dn,ei[1]=Wn),Nn=xe.sample_alpha,Nn!==ce.sample_alpha&&(Nn?D.enable(32926):D.disable(32926),ce.sample_alpha=Nn),Gn=xe.sample_enable,Gn!==ce.sample_enable&&(Gn?D.enable(32928):D.disable(32928),ce.sample_enable=Gn),Zn=Jt[0],jn=Jt[1],(Zn!==Wt[0]||jn!==Wt[1])&&(D.sampleCoverage(Zn,jn),Wt[0]=Zn,Wt[1]=jn),Sn=xe.stencil_enable,Sn!==ce.stencil_enable&&(Sn?D.enable(2960):D.disable(2960),ce.stencil_enable=Sn),Qn=xe.stencil_mask,Qn!==ce.stencil_mask&&(D.stencilMask(Qn),ce.stencil_mask=Qn),Hn=$t[0],Pn=$t[1],vr=$t[2],(Hn!==Gt[0]||Pn!==Gt[1]||vr!==Gt[2])&&(D.stencilFunc(Hn,Pn,vr),Gt[0]=Hn,Gt[1]=Pn,Gt[2]=vr),Jn=Ot[0],rr=Ot[1],hr=Ot[2],Rn=Ot[3],(Jn!==Bt[0]||rr!==Bt[1]||hr!==Bt[2]||Rn!==Bt[3])&&(D.stencilOpSeparate(Jn,rr,hr,Rn),Bt[0]=Jn,Bt[1]=rr,Bt[2]=hr,Bt[3]=Rn),Ur=Zt[0],Na=Zt[1],ca=Zt[2],Xa=Zt[3],(Ur!==St[0]||Na!==St[1]||ca!==St[2]||Xa!==St[3])&&(D.stencilOpSeparate(Ur,Na,ca,Xa),St[0]=Ur,St[1]=Na,St[2]=ca,St[3]=Xa),ya=xe.scissor_enable,ya!==ce.scissor_enable&&(ya?D.enable(3089):D.disable(3089),ce.scissor_enable=ya),va=Vt[0],al=Vt[1],Ll=Vt[2],xa=Vt[3],(va!==Dt[0]||al!==Dt[1]||Ll!==Dt[2]||xa!==Dt[3])&&(D.scissor(va,al,Ll,xa),Dt[0]=va,Dt[1]=al,Dt[2]=Ll,Dt[3]=xa),hs=ii[0],ms=ii[1],pl=ii[2],ps=ii[3],(hs!==Pt[0]||ms!==Pt[1]||pl!==Pt[2]||ps!==Pt[3])&&(D.viewport(hs,ms,pl,ps),Pt[0]=hs,Pt[1]=ms,Pt[2]=pl,Pt[3]=ps)}at?D.enable(3042):D.disable(3042),ce.blend_enable=at,D.blendEquationSeparate(32774,32774),yt[0]=32774,yt[1]=32774,D.blendFuncSeparate(770,771,1,771),Tt[0]=770,Tt[1]=771,Tt[2]=1,Tt[3]=771,Je?D.enable(2884):D.disable(2884),ce.cull_enable=Je,D.cullFace(it),ce.cull_face=it,ct?D.enable(2929):D.disable(2929),ce.depth_enable=ct,D.depthMask(ve),ce.depth_mask=ve,Ui=ce.profile,Ui&&(Li=performance.now(),t.count+=Ri),D.useProgram(u.program),Ei=wt.angle_instanced_arrays;var bs,gs,Pl,gr,ll,$a,bl,wa,Zl,Rl,sl,Br,Sa,so,Aa,$n,_s,Ql,Za,Fs,mr,Ms,oo,Ds,Qa,ys,Kl,Ul,vs,Ba,Ao,gl,_r,zr,_l,xs,Gl,er,Jl,ws,es,ia,ts,ol,Gr,is,qr,da,yl,dr,vl,co,Xs,Ss,xr,Zs,Eo,Qs,cl,fo,Ha,Fl,na,Nr,ns,dl,fr,As,Ns,rs,Bo,$s,as,To,Cr,Ka,ra,Bs,xl,wl,Hs,Ps,Sl,pr,Es,Ea,fa,Ta,Ja,$r,Pa,fl,ua,Ks,Ts,tr,br,Kn,Ml,Vr,wr,Ua,uo,ho,Os,ks,mo,Vl,po,Wl,Al,Oa,el,Cs,El,ha,zs,jl,Wr,Is,ka,Oo,tl,Wo,Yr,ko;for(Pe.setVAO(null),bs=h.call(this,oe,Ci,wi),qt.buffer=bs,gs=!1,Pl=1,gr=0,ll=0,$a=0,bl=0,wa=null,Zl=0,Rl=!1,sl=5126,Br=0,Sa=0,so=0,Le(qt)?(gs=!0,wa=pe.createStream(34962,qt),sl=wa.dtype):(wa=pe.getBuffer(qt),wa?sl=wa.dtype:"constant"in qt?(Pl=2,typeof qt.constant=="number"?(gr=qt.constant,ll=$a=bl=0):(gr=qt.constant.length>0?qt.constant[0]:0,ll=qt.constant.length>1?qt.constant[1]:0,$a=qt.constant.length>2?qt.constant[2]:0,bl=qt.constant.length>3?qt.constant[3]:0)):(Le(qt.buffer)?wa=pe.createStream(34962,qt.buffer):wa=pe.getBuffer(qt.buffer),sl="type"in qt?Qt[qt.type]:wa.dtype,Rl=!!qt.normalized,Zl=qt.size|0,Br=qt.offset|0,Sa=qt.stride|0,so=qt.divisor|0)),Aa=m.location,$n=Qe[Aa],Pl===1?($n.buffer||D.enableVertexAttribArray(Aa),_s=Zl||1,($n.type!==sl||$n.size!==_s||$n.buffer!==wa||$n.normalized!==Rl||$n.offset!==Br||$n.stride!==Sa)&&(D.bindBuffer(34962,wa.buffer),D.vertexAttribPointer(Aa,_s,sl,Rl,Sa,Br),$n.type=sl,$n.size=_s,$n.buffer=wa,$n.normalized=Rl,$n.offset=Br,$n.stride=Sa),$n.divisor!==so&&(Ei.vertexAttribDivisorANGLE(Aa,so),$n.divisor=so)):($n.buffer&&(D.disableVertexAttribArray(Aa),$n.buffer=null),($n.x!==gr||$n.y!==ll||$n.z!==$a||$n.w!==bl)&&(D.vertexAttrib4f(Aa,gr,ll,$a,bl),$n.x=gr,$n.y=ll,$n.z=$a,$n.w=bl)),Ql=b.call(this,oe,Ci,wi),It.buffer=Ql,Za=!1,Fs=1,mr=0,Ms=0,oo=0,Ds=0,Qa=null,ys=0,Kl=!1,Ul=5126,vs=0,Ba=0,Ao=0,Le(It)?(Za=!0,Qa=pe.createStream(34962,It),Ul=Qa.dtype):(Qa=pe.getBuffer(It),Qa?Ul=Qa.dtype:"constant"in It?(Fs=2,typeof It.constant=="number"?(mr=It.constant,Ms=oo=Ds=0):(mr=It.constant.length>0?It.constant[0]:0,Ms=It.constant.length>1?It.constant[1]:0,oo=It.constant.length>2?It.constant[2]:0,Ds=It.constant.length>3?It.constant[3]:0)):(Le(It.buffer)?Qa=pe.createStream(34962,It.buffer):Qa=pe.getBuffer(It.buffer),Ul="type"in It?Qt[It.type]:Qa.dtype,Kl=!!It.normalized,ys=It.size|0,vs=It.offset|0,Ba=It.stride|0,Ao=It.divisor|0)),gl=g.location,_r=Qe[gl],Fs===1?(_r.buffer||D.enableVertexAttribArray(gl),zr=ys||4,(_r.type!==Ul||_r.size!==zr||_r.buffer!==Qa||_r.normalized!==Kl||_r.offset!==vs||_r.stride!==Ba)&&(D.bindBuffer(34962,Qa.buffer),D.vertexAttribPointer(gl,zr,Ul,Kl,Ba,vs),_r.type=Ul,_r.size=zr,_r.buffer=Qa,_r.normalized=Kl,_r.offset=vs,_r.stride=Ba),_r.divisor!==Ao&&(Ei.vertexAttribDivisorANGLE(gl,Ao),_r.divisor=Ao)):(_r.buffer&&(D.disableVertexAttribArray(gl),_r.buffer=null),(_r.x!==mr||_r.y!==Ms||_r.z!==oo||_r.w!==Ds)&&(D.vertexAttrib4f(gl,mr,Ms,oo,Ds),_r.x=mr,_r.y=Ms,_r.z=oo,_r.w=Ds)),_l=_.call(this,oe,Ci,wi),pt.buffer=_l,xs=!1,Gl=1,er=0,Jl=0,ws=0,es=0,ia=null,ts=0,ol=!1,Gr=5126,is=0,qr=0,da=0,Le(pt)?(xs=!0,ia=pe.createStream(34962,pt),Gr=ia.dtype):(ia=pe.getBuffer(pt),ia?Gr=ia.dtype:"constant"in pt?(Gl=2,typeof pt.constant=="number"?(er=pt.constant,Jl=ws=es=0):(er=pt.constant.length>0?pt.constant[0]:0,Jl=pt.constant.length>1?pt.constant[1]:0,ws=pt.constant.length>2?pt.constant[2]:0,es=pt.constant.length>3?pt.constant[3]:0)):(Le(pt.buffer)?ia=pe.createStream(34962,pt.buffer):ia=pe.getBuffer(pt.buffer),Gr="type"in pt?Qt[pt.type]:ia.dtype,ol=!!pt.normalized,ts=pt.size|0,is=pt.offset|0,qr=pt.stride|0,da=pt.divisor|0)),yl=z.location,dr=Qe[yl],Gl===1?(dr.buffer||D.enableVertexAttribArray(yl),vl=ts||2,(dr.type!==Gr||dr.size!==vl||dr.buffer!==ia||dr.normalized!==ol||dr.offset!==is||dr.stride!==qr)&&(D.bindBuffer(34962,ia.buffer),D.vertexAttribPointer(yl,vl,Gr,ol,qr,is),dr.type=Gr,dr.size=vl,dr.buffer=ia,dr.normalized=ol,dr.offset=is,dr.stride=qr),dr.divisor!==da&&(Ei.vertexAttribDivisorANGLE(yl,da),dr.divisor=da)):(dr.buffer&&(D.disableVertexAttribArray(yl),dr.buffer=null),(dr.x!==er||dr.y!==Jl||dr.z!==ws||dr.w!==es)&&(D.vertexAttrib4f(yl,er,Jl,ws,es),dr.x=er,dr.y=Jl,dr.z=ws,dr.w=es)),co=X.call(this,oe,Ci,wi),vt.buffer=co,Xs=!1,Ss=1,xr=0,Zs=0,Eo=0,Qs=0,cl=null,fo=0,Ha=!1,Fl=5126,na=0,Nr=0,ns=0,Le(vt)?(Xs=!0,cl=pe.createStream(34962,vt),Fl=cl.dtype):(cl=pe.getBuffer(vt),cl?Fl=cl.dtype:"constant"in vt?(Ss=2,typeof vt.constant=="number"?(xr=vt.constant,Zs=Eo=Qs=0):(xr=vt.constant.length>0?vt.constant[0]:0,Zs=vt.constant.length>1?vt.constant[1]:0,Eo=vt.constant.length>2?vt.constant[2]:0,Qs=vt.constant.length>3?vt.constant[3]:0)):(Le(vt.buffer)?cl=pe.createStream(34962,vt.buffer):cl=pe.getBuffer(vt.buffer),Fl="type"in vt?Qt[vt.type]:cl.dtype,Ha=!!vt.normalized,fo=vt.size|0,na=vt.offset|0,Nr=vt.stride|0,ns=vt.divisor|0)),dl=y.location,fr=Qe[dl],Ss===1?(fr.buffer||D.enableVertexAttribArray(dl),As=fo||2,(fr.type!==Fl||fr.size!==As||fr.buffer!==cl||fr.normalized!==Ha||fr.offset!==na||fr.stride!==Nr)&&(D.bindBuffer(34962,cl.buffer),D.vertexAttribPointer(dl,As,Fl,Ha,Nr,na),fr.type=Fl,fr.size=As,fr.buffer=cl,fr.normalized=Ha,fr.offset=na,fr.stride=Nr),fr.divisor!==ns&&(Ei.vertexAttribDivisorANGLE(dl,ns),fr.divisor=ns)):(fr.buffer&&(D.disableVertexAttribArray(dl),fr.buffer=null),(fr.x!==xr||fr.y!==Zs||fr.z!==Eo||fr.w!==Qs)&&(D.vertexAttrib4f(dl,xr,Zs,Eo,Qs),fr.x=xr,fr.y=Zs,fr.z=Eo,fr.w=Qs)),Ns=E.call(this,oe,Ci,wi),xt.buffer=Ns,rs=!1,Bo=1,$s=0,as=0,To=0,Cr=0,Ka=null,ra=0,Bs=!1,xl=5126,wl=0,Hs=0,Ps=0,Le(xt)?(rs=!0,Ka=pe.createStream(34962,xt),xl=Ka.dtype):(Ka=pe.getBuffer(xt),Ka?xl=Ka.dtype:"constant"in xt?(Bo=2,typeof xt.constant=="number"?($s=xt.constant,as=To=Cr=0):($s=xt.constant.length>0?xt.constant[0]:0,as=xt.constant.length>1?xt.constant[1]:0,To=xt.constant.length>2?xt.constant[2]:0,Cr=xt.constant.length>3?xt.constant[3]:0)):(Le(xt.buffer)?Ka=pe.createStream(34962,xt.buffer):Ka=pe.getBuffer(xt.buffer),xl="type"in xt?Qt[xt.type]:Ka.dtype,Bs=!!xt.normalized,ra=xt.size|0,wl=xt.offset|0,Hs=xt.stride|0,Ps=xt.divisor|0)),Sl=T.location,pr=Qe[Sl],Bo===1?(pr.buffer||D.enableVertexAttribArray(Sl),Es=ra||2,(pr.type!==xl||pr.size!==Es||pr.buffer!==Ka||pr.normalized!==Bs||pr.offset!==wl||pr.stride!==Hs)&&(D.bindBuffer(34962,Ka.buffer),D.vertexAttribPointer(Sl,Es,xl,Bs,Hs,wl),pr.type=xl,pr.size=Es,pr.buffer=Ka,pr.normalized=Bs,pr.offset=wl,pr.stride=Hs),pr.divisor!==Ps&&(Ei.vertexAttribDivisorANGLE(Sl,Ps),pr.divisor=Ps)):(pr.buffer&&(D.disableVertexAttribArray(Sl),pr.buffer=null),(pr.x!==$s||pr.y!==as||pr.z!==To||pr.w!==Cr)&&(D.vertexAttrib4f(Sl,$s,as,To,Cr),pr.x=$s,pr.y=as,pr.z=To,pr.w=Cr)),Ea=w.call(this,oe,Ci,wi),Ft.buffer=Ea,fa=!1,Ta=1,Ja=0,$r=0,Pa=0,fl=0,ua=null,Ks=0,Ts=!1,tr=5126,br=0,Kn=0,Ml=0,Le(Ft)?(fa=!0,ua=pe.createStream(34962,Ft),tr=ua.dtype):(ua=pe.getBuffer(Ft),ua?tr=ua.dtype:"constant"in Ft?(Ta=2,typeof Ft.constant=="number"?(Ja=Ft.constant,$r=Pa=fl=0):(Ja=Ft.constant.length>0?Ft.constant[0]:0,$r=Ft.constant.length>1?Ft.constant[1]:0,Pa=Ft.constant.length>2?Ft.constant[2]:0,fl=Ft.constant.length>3?Ft.constant[3]:0)):(Le(Ft.buffer)?ua=pe.createStream(34962,Ft.buffer):ua=pe.getBuffer(Ft.buffer),tr="type"in Ft?Qt[Ft.type]:ua.dtype,Ts=!!Ft.normalized,Ks=Ft.size|0,br=Ft.offset|0,Kn=Ft.stride|0,Ml=Ft.divisor|0)),Vr=I.location,wr=Qe[Vr],Ta===1?(wr.buffer||D.enableVertexAttribArray(Vr),Ua=Ks||1,(wr.type!==tr||wr.size!==Ua||wr.buffer!==ua||wr.normalized!==Ts||wr.offset!==br||wr.stride!==Kn)&&(D.bindBuffer(34962,ua.buffer),D.vertexAttribPointer(Vr,Ua,tr,Ts,Kn,br),wr.type=tr,wr.size=Ua,wr.buffer=ua,wr.normalized=Ts,wr.offset=br,wr.stride=Kn),wr.divisor!==Ml&&(Ei.vertexAttribDivisorANGLE(Vr,Ml),wr.divisor=Ml)):(wr.buffer&&(D.disableVertexAttribArray(Vr),wr.buffer=null),(wr.x!==Ja||wr.y!==$r||wr.z!==Pa||wr.w!==fl)&&(D.vertexAttrib4f(Vr,Ja,$r,Pa,fl),wr.x=Ja,wr.y=$r,wr.z=Pa,wr.w=fl)),uo=U.call(this,oe,Ci,wi),D.uniform1f(K.location,uo),ho=J.call(this,oe,Ci,wi),D.uniform1f(Y.location,ho),Os=Q.call(this,oe,Ci,wi),D.uniform1f(S.location,Os),ks=x.call(this,oe,Ci,wi),D.uniform1f(ae.location,ks),mo=O.call(this,oe,Ci,wi),D.uniform1f(A.location,mo),Vl=C.call(this,oe,Ci,wi),po=Vl[0],Wl=Vl[1],D.uniform2f(k.location,po,Wl),Al=Re.call(this,oe,Ci,wi),D.uniform1f(ee.location,Al),Oa=F.call(this,oe,Ci,wi),Oa&&Oa._reglType==="framebuffer"&&(Oa=Oa.color[0]),el=Oa._texture,D.uniform1i(ge.location,el.bind()),Cs=R.call(this,oe,Ci,wi),D.uniform1f(H.location,Cs),El=q.call(this,oe,Ci,wi),El&&El._reglType==="framebuffer"&&(El=El.color[0]),ha=El._texture,D.uniform1i($.location,ha.bind()),zs=te.call(this,oe,Ci,wi),jl=zs[0],Wr=zs[1],D.uniform2f(se.location,jl,Wr),Is=we.call(this,oe,Ci,wi),D.uniform1f(qe.location,Is),ka=G.call(this,oe,Ci,wi),D.uniformMatrix3fv(Se.location,!1,Array.isArray(ka)||ka instanceof Float32Array?ka:(Mi[0]=ka[0],Mi[1]=ka[1],Mi[2]=ka[2],Mi[3]=ka[3],Mi[4]=ka[4],Mi[5]=ka[5],Mi[6]=ka[6],Mi[7]=ka[7],Mi[8]=ka[8],Mi)),Oo=Ae.call(this,oe,Ci,wi),D.uniform1f(de.location,Oo),tl=Oe.elements,tl?D.bindBuffer(34963,tl.buffer.buffer):Pe.currentVAO&&(tl=Ye.getElements(Pe.currentVAO.elements),tl&&D.bindBuffer(34963,tl.buffer.buffer)),Wo=Oe.offset,Yr=W.call(this,oe,Ci,wi),ko=re.call(this,oe,Ci,wi),wi=0;wi<Ri;++wi)Ci=di[wi],Yr&&(ko>0?tl?Ei.drawElementsInstancedANGLE(5,Yr,tl.type,Wo<<(tl.type-5121>>1),ko):Ei.drawArraysInstancedANGLE(5,Wo,Yr,ko):ko<0&&(tl?D.drawElements(5,Yr,tl.type,Wo<<(tl.type-5121>>1)):D.drawArrays(5,Wo,Yr)));gs&&pe.destroyStream(wa),Za&&pe.destroyStream(Qa),xs&&pe.destroyStream(ia),Xs&&pe.destroyStream(cl),rs&&pe.destroyStream(Ka),fa&&pe.destroyStream(ua),el.unbind(),ha.unbind(),ce.dirty=!0,Pe.setVAO(null),Ui&&(t.cpuTime+=performance.now()-Li)}}},"2f7c7f7dc19b56c5cba8adc85f521391fae94c0383e508841812535aea6244ef":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae){var x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne;return x=e.gl,A=e.context,e.strings,O=e.next,k=e.current,C=e.draw,ee=e.elements,e.buffer,Re=e.shader,ge=e.attributes,F=e.vao,H=e.uniforms,R=e.framebuffer,$=e.extensions,e.timer,e.isBufferArgs,q=O.blend_color,se=k.blend_color,te=O.blend_equation,qe=k.blend_equation,we=O.blend_func,Se=k.blend_func,G=O.depth_range,de=k.depth_range,Ae=O.colorMask,W=k.colorMask,re=O.polygonOffset_offset,Rt=k.polygonOffset_offset,Ve=O.sample_coverage,Fe=k.sample_coverage,he=O.stencil_func,L=k.stencil_func,Z=O.stencil_opFront,ie=k.stencil_opFront,be=O.stencil_opBack,Ge=k.stencil_opBack,N=O.scissor_box,$e=k.scissor_box,He=O.viewport,ne=k.viewport,{draw:function(me){var B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe;if($.angle_instanced_arrays,B=n.call(this,A,me,0),j=R.getFramebuffer(B),ue=R.next,R.next=j,M=A.framebufferWidth,A.framebufferWidth=j?j.width:A.drawingBufferWidth,le=A.framebufferHeight,A.framebufferHeight=j?j.height:A.drawingBufferHeight,j!==R.cur&&(j?x.bindFramebuffer(36160,j.framebuffer):x.bindFramebuffer(36160,null),R.cur=j),k.dirty){var ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt;ut=O.dither,ut!==k.dither&&(ut?x.enable(3024):x.disable(3024),k.dither=ut),at=O.blend_enable,at!==k.blend_enable&&(at?x.enable(3042):x.disable(3042),k.blend_enable=at),Je=q[0],it=q[1],ct=q[2],ve=q[3],(Je!==se[0]||it!==se[1]||ct!==se[2]||ve!==se[3])&&(x.blendColor(Je,it,ct,ve),se[0]=Je,se[1]=it,se[2]=ct,se[3]=ve),D=te[0],oe=te[1],(D!==qe[0]||oe!==qe[1])&&(x.blendEquationSeparate(D,oe),qe[0]=D,qe[1]=oe),xe=we[0],ce=we[1],Oe=we[2],Ye=we[3],(xe!==Se[0]||ce!==Se[1]||Oe!==Se[2]||Ye!==Se[3])&&(x.blendFuncSeparate(xe,ce,Oe,Ye),Se[0]=xe,Se[1]=ce,Se[2]=Oe,Se[3]=Ye),pe=O.depth_enable,pe!==k.depth_enable&&(pe?x.enable(2929):x.disable(2929),k.depth_enable=pe),Ce=O.depth_func,Ce!==k.depth_func&&(x.depthFunc(Ce),k.depth_func=Ce),Qe=G[0],Pe=G[1],(Qe!==de[0]||Pe!==de[1])&&(x.depthRange(Qe,Pe),de[0]=Qe,de[1]=Pe),ye=O.depth_mask,ye!==k.depth_mask&&(x.depthMask(ye),k.depth_mask=ye),mt=Ae[0],wt=Ae[1],Le=Ae[2],_t=Ae[3],(mt!==W[0]||wt!==W[1]||Le!==W[2]||_t!==W[3])&&(x.colorMask(mt,wt,Le,_t),W[0]=mt,W[1]=wt,W[2]=Le,W[3]=_t),bt=O.cull_enable,bt!==k.cull_enable&&(bt?x.enable(2884):x.disable(2884),k.cull_enable=bt),nt=O.cull_face,nt!==k.cull_face&&(x.cullFace(nt),k.cull_face=nt),yt=O.frontFace,yt!==k.frontFace&&(x.frontFace(yt),k.frontFace=yt),Lt=O.lineWidth,Lt!==k.lineWidth&&(x.lineWidth(Lt),k.lineWidth=Lt),Tt=O.polygonOffset_enable,Tt!==k.polygonOffset_enable&&(Tt?x.enable(32823):x.disable(32823),k.polygonOffset_enable=Tt),Nt=re[0],zt=re[1],(Nt!==Rt[0]||zt!==Rt[1])&&(x.polygonOffset(Nt,zt),Rt[0]=Nt,Rt[1]=zt),Ut=O.sample_alpha,Ut!==k.sample_alpha&&(Ut?x.enable(32926):x.disable(32926),k.sample_alpha=Ut),Mt=O.sample_enable,Mt!==k.sample_enable&&(Mt?x.enable(32928):x.disable(32928),k.sample_enable=Mt),Kt=Ve[0],ei=Ve[1],(Kt!==Fe[0]||ei!==Fe[1])&&(x.sampleCoverage(Kt,ei),Fe[0]=Kt,Fe[1]=ei),Jt=O.stencil_enable,Jt!==k.stencil_enable&&(Jt?x.enable(2960):x.disable(2960),k.stencil_enable=Jt),Wt=O.stencil_mask,Wt!==k.stencil_mask&&(x.stencilMask(Wt),k.stencil_mask=Wt),$t=he[0],Gt=he[1],Ot=he[2],($t!==L[0]||Gt!==L[1]||Ot!==L[2])&&(x.stencilFunc($t,Gt,Ot),L[0]=$t,L[1]=Gt,L[2]=Ot),Bt=Z[0],Zt=Z[1],St=Z[2],Vt=Z[3],(Bt!==ie[0]||Zt!==ie[1]||St!==ie[2]||Vt!==ie[3])&&(x.stencilOpSeparate(Bt,Zt,St,Vt),ie[0]=Bt,ie[1]=Zt,ie[2]=St,ie[3]=Vt),Dt=be[0],ii=be[1],Pt=be[2],Qt=be[3],(Dt!==Ge[0]||ii!==Ge[1]||Pt!==Ge[2]||Qt!==Ge[3])&&(x.stencilOpSeparate(Dt,ii,Pt,Qt),Ge[0]=Dt,Ge[1]=ii,Ge[2]=Pt,Ge[3]=Qt),xt=O.scissor_enable,xt!==k.scissor_enable&&(xt?x.enable(3089):x.disable(3089),k.scissor_enable=xt)}De=A.framebufferWidth,Ee=A.framebufferHeight,ft=A.viewportWidth,A.viewportWidth=De,At=A.viewportHeight,A.viewportHeight=Ee,x.viewport(0,0,De,Ee),ne[0]=0,ne[1]=0,ne[2]=De,ne[3]=Ee,lt=A.framebufferWidth,Ke=A.framebufferHeight,x.scissor(0,0,lt,Ke),$e[0]=0,$e[1]=0,$e[2]=lt,$e[3]=Ke,tt=k.profile,tt&&(fe=performance.now(),t.count++),x.useProgram(l.program),je=$.angle_instanced_arrays,F.setVAO(null),ot=c.location,Ne=ge[ot],Ne.buffer||x.enableVertexAttribArray(ot),et=2,(Ne.type!==5126||Ne.size!==et||Ne.buffer!==s||Ne.normalized!==!1||Ne.offset!==0||Ne.stride!==0)&&(x.bindBuffer(34962,s.buffer),x.vertexAttribPointer(ot,et,5126,!1,0,0),Ne.type=5126,Ne.size=et,Ne.buffer=s,Ne.normalized=!1,Ne.offset=0,Ne.stride=0),Ne.divisor!==0&&(je.vertexAttribDivisorANGLE(ot,0),Ne.divisor=0),ht=u.call(this,A,me,0),x.uniform1f(d.location,ht),Ue=m.call(this,A,me,0),x.uniform1f(h.location,Ue),Me=g.call(this,A,me,0),Me&&Me._reglType==="framebuffer"&&(Me=Me.color[0]),Be=Me._texture,x.uniform1i(b.location,Be.bind()),ke=z.call(this,A,me,0),x.uniform1f(_.location,ke),Te=C.elements,Te?x.bindBuffer(34963,Te.buffer.buffer):F.currentVAO&&(Te=ee.getElements(F.currentVAO.elements),Te&&x.bindBuffer(34963,Te.buffer.buffer)),ze=C.offset,Xe=C.instances,Xe>0?Te?je.drawElementsInstancedANGLE(5,4,Te.type,ze<<(Te.type-5121>>1),Xe):je.drawArraysInstancedANGLE(5,ze,4,Xe):Xe<0&&(Te?x.drawElements(5,4,Te.type,ze<<(Te.type-5121>>1)):x.drawArrays(5,ze,4)),k.dirty=!0,F.setVAO(null),R.next=ue,A.framebufferWidth=M,A.framebufferHeight=le,A.viewportWidth=ft,A.viewportHeight=At,tt&&(t.cpuTime+=performance.now()-fe),Be.unbind()},scope:function(me,B,j){var ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt;ue=n.call(this,A,me,j),M=R.getFramebuffer(ue),le=R.next,R.next=M,De=A.framebufferWidth,A.framebufferWidth=M?M.width:A.drawingBufferWidth,Ee=A.framebufferHeight,A.framebufferHeight=M?M.height:A.drawingBufferHeight,ft=A.framebufferWidth,At=A.framebufferHeight,lt=A.viewportWidth,A.viewportWidth=ft,Ke=A.viewportHeight,A.viewportHeight=At,tt=He[0],He[0]=X,fe=He[1],He[1]=y,je=He[2],He[2]=ft,ot=He[3],He[3]=At,Ne=A.framebufferWidth,et=A.framebufferHeight,ht=N[0],N[0]=E,Ue=N[1],N[1]=T,Me=N[2],N[2]=Ne,Be=N[3],N[3]=et,ke=k.profile,ke&&(Te=performance.now(),t.count++),ze=C.count,C.count=w,Xe=C.primitive,C.primitive=I,ut=g.call(this,A,me,j),at=H[K],H[K]=ut,Je=m.call(this,A,me,j),it=H[U],H[U]=Je,ct=z.call(this,A,me,j),ve=H[Y],H[Y]=ct,D=u.call(this,A,me,j),oe=H[J],H[J]=D,xe=S.state,S.state=1,ce=S.x,S.x=0,Oe=S.y,S.y=0,Ye=S.z,S.z=0,pe=S.w,S.w=0,Ce=S.buffer,S.buffer=s,Qe=S.size,S.size=2,Pe=S.normalized,S.normalized=!1,ye=S.type,S.type=5126,mt=S.offset,S.offset=0,wt=S.stride,S.stride=0,Le=S.divisor,S.divisor=0,_t=Re.vert,Re.vert=Q,bt=Re.frag,Re.frag=ae,k.dirty=!0,B(A,me,j),R.next=le,A.framebufferWidth=De,A.framebufferHeight=Ee,A.viewportWidth=lt,A.viewportHeight=Ke,He[0]=tt,He[1]=fe,He[2]=je,He[3]=ot,N[0]=ht,N[1]=Ue,N[2]=Me,N[3]=Be,ke&&(t.cpuTime+=performance.now()-Te),C.count=ze,C.primitive=Xe,H[K]=at,H[U]=it,H[Y]=ve,H[J]=oe,S.state=xe,S.x=ce,S.y=Oe,S.z=Ye,S.w=pe,S.buffer=Ce,S.size=Qe,S.normalized=Pe,S.type=ye,S.offset=mt,S.stride=wt,S.divisor=Le,Re.vert=_t,Re.frag=bt,k.dirty=!0},batch:function(me,B){var j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et;if($.angle_instanced_arrays,j=n.call(this,A,me,0),ue=R.getFramebuffer(j),M=R.next,R.next=ue,le=A.framebufferWidth,A.framebufferWidth=ue?ue.width:A.drawingBufferWidth,De=A.framebufferHeight,A.framebufferHeight=ue?ue.height:A.drawingBufferHeight,ue!==R.cur&&(ue?x.bindFramebuffer(36160,ue.framebuffer):x.bindFramebuffer(36160,null),R.cur=ue),k.dirty){var ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt;ht=O.dither,ht!==k.dither&&(ht?x.enable(3024):x.disable(3024),k.dither=ht),Ue=O.blend_enable,Ue!==k.blend_enable&&(Ue?x.enable(3042):x.disable(3042),k.blend_enable=Ue),Me=q[0],Be=q[1],ke=q[2],Te=q[3],(Me!==se[0]||Be!==se[1]||ke!==se[2]||Te!==se[3])&&(x.blendColor(Me,Be,ke,Te),se[0]=Me,se[1]=Be,se[2]=ke,se[3]=Te),ze=te[0],Xe=te[1],(ze!==qe[0]||Xe!==qe[1])&&(x.blendEquationSeparate(ze,Xe),qe[0]=ze,qe[1]=Xe),ut=we[0],at=we[1],Je=we[2],it=we[3],(ut!==Se[0]||at!==Se[1]||Je!==Se[2]||it!==Se[3])&&(x.blendFuncSeparate(ut,at,Je,it),Se[0]=ut,Se[1]=at,Se[2]=Je,Se[3]=it),ct=O.depth_enable,ct!==k.depth_enable&&(ct?x.enable(2929):x.disable(2929),k.depth_enable=ct),ve=O.depth_func,ve!==k.depth_func&&(x.depthFunc(ve),k.depth_func=ve),D=G[0],oe=G[1],(D!==de[0]||oe!==de[1])&&(x.depthRange(D,oe),de[0]=D,de[1]=oe),xe=O.depth_mask,xe!==k.depth_mask&&(x.depthMask(xe),k.depth_mask=xe),ce=Ae[0],Oe=Ae[1],Ye=Ae[2],pe=Ae[3],(ce!==W[0]||Oe!==W[1]||Ye!==W[2]||pe!==W[3])&&(x.colorMask(ce,Oe,Ye,pe),W[0]=ce,W[1]=Oe,W[2]=Ye,W[3]=pe),Ce=O.cull_enable,Ce!==k.cull_enable&&(Ce?x.enable(2884):x.disable(2884),k.cull_enable=Ce),Qe=O.cull_face,Qe!==k.cull_face&&(x.cullFace(Qe),k.cull_face=Qe),Pe=O.frontFace,Pe!==k.frontFace&&(x.frontFace(Pe),k.frontFace=Pe),ye=O.lineWidth,ye!==k.lineWidth&&(x.lineWidth(ye),k.lineWidth=ye),mt=O.polygonOffset_enable,mt!==k.polygonOffset_enable&&(mt?x.enable(32823):x.disable(32823),k.polygonOffset_enable=mt),wt=re[0],Le=re[1],(wt!==Rt[0]||Le!==Rt[1])&&(x.polygonOffset(wt,Le),Rt[0]=wt,Rt[1]=Le),_t=O.sample_alpha,_t!==k.sample_alpha&&(_t?x.enable(32926):x.disable(32926),k.sample_alpha=_t),bt=O.sample_enable,bt!==k.sample_enable&&(bt?x.enable(32928):x.disable(32928),k.sample_enable=bt),nt=Ve[0],yt=Ve[1],(nt!==Fe[0]||yt!==Fe[1])&&(x.sampleCoverage(nt,yt),Fe[0]=nt,Fe[1]=yt),Lt=O.stencil_enable,Lt!==k.stencil_enable&&(Lt?x.enable(2960):x.disable(2960),k.stencil_enable=Lt),Tt=O.stencil_mask,Tt!==k.stencil_mask&&(x.stencilMask(Tt),k.stencil_mask=Tt),Nt=he[0],zt=he[1],Ut=he[2],(Nt!==L[0]||zt!==L[1]||Ut!==L[2])&&(x.stencilFunc(Nt,zt,Ut),L[0]=Nt,L[1]=zt,L[2]=Ut),Mt=Z[0],Kt=Z[1],ei=Z[2],Jt=Z[3],(Mt!==ie[0]||Kt!==ie[1]||ei!==ie[2]||Jt!==ie[3])&&(x.stencilOpSeparate(Mt,Kt,ei,Jt),ie[0]=Mt,ie[1]=Kt,ie[2]=ei,ie[3]=Jt),Wt=be[0],$t=be[1],Gt=be[2],Ot=be[3],(Wt!==Ge[0]||$t!==Ge[1]||Gt!==Ge[2]||Ot!==Ge[3])&&(x.stencilOpSeparate(Wt,$t,Gt,Ot),Ge[0]=Wt,Ge[1]=$t,Ge[2]=Gt,Ge[3]=Ot),Bt=O.scissor_enable,Bt!==k.scissor_enable&&(Bt?x.enable(3089):x.disable(3089),k.scissor_enable=Bt)}Ee=A.framebufferWidth,ft=A.framebufferHeight,At=A.viewportWidth,A.viewportWidth=Ee,lt=A.viewportHeight,A.viewportHeight=ft,x.viewport(0,0,Ee,ft),ne[0]=0,ne[1]=0,ne[2]=Ee,ne[3]=ft,Ke=A.framebufferWidth,tt=A.framebufferHeight,x.scissor(0,0,Ke,tt),$e[0]=0,$e[1]=0,$e[2]=Ke,$e[3]=tt,fe=k.profile,fe&&(je=performance.now(),t.count+=B),x.useProgram(l.program),ot=$.angle_instanced_arrays;var Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It;for(F.setVAO(null),Zt=c.location,St=ge[Zt],St.buffer||x.enableVertexAttribArray(Zt),Vt=2,(St.type!==5126||St.size!==Vt||St.buffer!==s||St.normalized!==!1||St.offset!==0||St.stride!==0)&&(x.bindBuffer(34962,s.buffer),x.vertexAttribPointer(Zt,Vt,5126,!1,0,0),St.type=5126,St.size=Vt,St.buffer=s,St.normalized=!1,St.offset=0,St.stride=0),St.divisor!==0&&(ot.vertexAttribDivisorANGLE(Zt,0),St.divisor=0),Dt=u.call(this,A,et,Ne),x.uniform1f(d.location,Dt),ii=m.call(this,A,et,Ne),x.uniform1f(h.location,ii),Pt=g.call(this,A,et,Ne),Pt&&Pt._reglType==="framebuffer"&&(Pt=Pt.color[0]),Qt=Pt._texture,x.uniform1i(b.location,Qt.bind()),xt=z.call(this,A,et,Ne),x.uniform1f(_.location,xt),pt=C.elements,pt?x.bindBuffer(34963,pt.buffer.buffer):F.currentVAO&&(pt=ee.getElements(F.currentVAO.elements),pt&&x.bindBuffer(34963,pt.buffer.buffer)),vt=C.offset,It=C.instances,Ne=0;Ne<B;++Ne)et=me[Ne],It>0?pt?ot.drawElementsInstancedANGLE(5,4,pt.type,vt<<(pt.type-5121>>1),It):ot.drawArraysInstancedANGLE(5,vt,4,It):It<0&&(pt?x.drawElements(5,4,pt.type,vt<<(pt.type-5121>>1)):x.drawArrays(5,vt,4));Qt.unbind(),k.dirty=!0,F.setVAO(null),R.next=M,A.framebufferWidth=le,A.framebufferHeight=De,A.viewportWidth=At,A.viewportHeight=lt,fe&&(t.cpuTime+=performance.now()-je)}}},"9d21b165a30f9f6f75398bdcb7c7a26023eb7f6897f345551a241761b2807eea":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H){var R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt;return R=e.gl,$=e.context,q=e.strings,se=e.next,te=e.current,qe=e.draw,e.elements,e.buffer,we=e.shader,e.attributes,Se=e.vao,G=e.uniforms,de=e.framebuffer,Ae=e.extensions,e.timer,e.isBufferArgs,W=se.blend_color,re=te.blend_color,Rt=se.blend_equation,Ve=te.blend_equation,Fe=se.blend_func,he=te.blend_func,L=se.depth_range,Z=te.depth_range,ie=se.colorMask,be=te.colorMask,Ge=se.polygonOffset_offset,N=te.polygonOffset_offset,$e=se.sample_coverage,He=te.sample_coverage,ne=se.stencil_func,me=te.stencil_func,B=se.stencil_opFront,j=te.stencil_opFront,ue=se.stencil_opBack,M=te.stencil_opBack,le=se.scissor_box,De=te.scissor_box,Ee=se.viewport,ft=te.viewport,At={},lt={},{draw:function(Ke){var tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it;if(Ae.angle_instanced_arrays,tt=n.call(this,$,Ke,0),fe=de.getFramebuffer(tt),je=de.next,de.next=fe,ot=$.framebufferWidth,$.framebufferWidth=fe?fe.width:$.drawingBufferWidth,Ne=$.framebufferHeight,$.framebufferHeight=fe?fe.height:$.drawingBufferHeight,fe!==de.cur&&(fe?R.bindFramebuffer(36160,fe.framebuffer):R.bindFramebuffer(36160,null),de.cur=fe),te.dirty){var ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft;ct=se.dither,ct!==te.dither&&(ct?R.enable(3024):R.disable(3024),te.dither=ct),ve=se.blend_enable,ve!==te.blend_enable&&(ve?R.enable(3042):R.disable(3042),te.blend_enable=ve),D=W[0],oe=W[1],xe=W[2],ce=W[3],(D!==re[0]||oe!==re[1]||xe!==re[2]||ce!==re[3])&&(R.blendColor(D,oe,xe,ce),re[0]=D,re[1]=oe,re[2]=xe,re[3]=ce),Oe=Rt[0],Ye=Rt[1],(Oe!==Ve[0]||Ye!==Ve[1])&&(R.blendEquationSeparate(Oe,Ye),Ve[0]=Oe,Ve[1]=Ye),pe=Fe[0],Ce=Fe[1],Qe=Fe[2],Pe=Fe[3],(pe!==he[0]||Ce!==he[1]||Qe!==he[2]||Pe!==he[3])&&(R.blendFuncSeparate(pe,Ce,Qe,Pe),he[0]=pe,he[1]=Ce,he[2]=Qe,he[3]=Pe),ye=se.depth_enable,ye!==te.depth_enable&&(ye?R.enable(2929):R.disable(2929),te.depth_enable=ye),mt=se.depth_func,mt!==te.depth_func&&(R.depthFunc(mt),te.depth_func=mt),wt=L[0],Le=L[1],(wt!==Z[0]||Le!==Z[1])&&(R.depthRange(wt,Le),Z[0]=wt,Z[1]=Le),_t=se.depth_mask,_t!==te.depth_mask&&(R.depthMask(_t),te.depth_mask=_t),bt=ie[0],nt=ie[1],yt=ie[2],Lt=ie[3],(bt!==be[0]||nt!==be[1]||yt!==be[2]||Lt!==be[3])&&(R.colorMask(bt,nt,yt,Lt),be[0]=bt,be[1]=nt,be[2]=yt,be[3]=Lt),Tt=se.cull_enable,Tt!==te.cull_enable&&(Tt?R.enable(2884):R.disable(2884),te.cull_enable=Tt),Nt=se.cull_face,Nt!==te.cull_face&&(R.cullFace(Nt),te.cull_face=Nt),zt=se.frontFace,zt!==te.frontFace&&(R.frontFace(zt),te.frontFace=zt),Ut=se.lineWidth,Ut!==te.lineWidth&&(R.lineWidth(Ut),te.lineWidth=Ut),Mt=se.polygonOffset_enable,Mt!==te.polygonOffset_enable&&(Mt?R.enable(32823):R.disable(32823),te.polygonOffset_enable=Mt),Kt=Ge[0],ei=Ge[1],(Kt!==N[0]||ei!==N[1])&&(R.polygonOffset(Kt,ei),N[0]=Kt,N[1]=ei),Jt=se.sample_alpha,Jt!==te.sample_alpha&&(Jt?R.enable(32926):R.disable(32926),te.sample_alpha=Jt),Wt=se.sample_enable,Wt!==te.sample_enable&&(Wt?R.enable(32928):R.disable(32928),te.sample_enable=Wt),$t=$e[0],Gt=$e[1],($t!==He[0]||Gt!==He[1])&&(R.sampleCoverage($t,Gt),He[0]=$t,He[1]=Gt),Ot=se.stencil_enable,Ot!==te.stencil_enable&&(Ot?R.enable(2960):R.disable(2960),te.stencil_enable=Ot),Bt=se.stencil_mask,Bt!==te.stencil_mask&&(R.stencilMask(Bt),te.stencil_mask=Bt),Zt=ne[0],St=ne[1],Vt=ne[2],(Zt!==me[0]||St!==me[1]||Vt!==me[2])&&(R.stencilFunc(Zt,St,Vt),me[0]=Zt,me[1]=St,me[2]=Vt),Dt=B[0],ii=B[1],Pt=B[2],Qt=B[3],(Dt!==j[0]||ii!==j[1]||Pt!==j[2]||Qt!==j[3])&&(R.stencilOpSeparate(Dt,ii,Pt,Qt),j[0]=Dt,j[1]=ii,j[2]=Pt,j[3]=Qt),xt=ue[0],pt=ue[1],vt=ue[2],It=ue[3],(xt!==M[0]||pt!==M[1]||vt!==M[2]||It!==M[3])&&(R.stencilOpSeparate(xt,pt,vt,It),M[0]=xt,M[1]=pt,M[2]=vt,M[3]=It),Ft=se.scissor_enable,Ft!==te.scissor_enable&&(Ft?R.enable(3089):R.disable(3089),te.scissor_enable=Ft)}et=$.framebufferWidth,ht=$.framebufferHeight,Ue=$.viewportWidth,$.viewportWidth=et,Me=$.viewportHeight,$.viewportHeight=ht,R.viewport(0,0,et,ht),ft[0]=0,ft[1]=0,ft[2]=et,ft[3]=ht,Be=$.framebufferWidth,ke=$.framebufferHeight,R.scissor(0,0,Be,ke),De[0]=0,De[1]=0,De[2]=Be,De[3]=ke,Te=te.profile,Te&&(ze=performance.now(),t.count++),Xe=l.call(this,$,Ke,0),ut=q.id(Xe),at=we.program(2,ut),R.useProgram(at.program),Se.setVAO(null),Je=at.id,it=At[Je],it?it.call(this,Ke):(it=At[Je]=s(at),it.call(this,Ke)),te.dirty=!0,Se.setVAO(null),de.next=je,$.framebufferWidth=ot,$.framebufferHeight=Ne,$.viewportWidth=Ue,$.viewportHeight=Me,Te&&(t.cpuTime+=performance.now()-ze)},scope:function(Ke,tt,fe){var je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It;je=n.call(this,$,Ke,fe),ot=de.getFramebuffer(je),Ne=de.next,de.next=ot,et=$.framebufferWidth,$.framebufferWidth=ot?ot.width:$.drawingBufferWidth,ht=$.framebufferHeight,$.framebufferHeight=ot?ot.height:$.drawingBufferHeight,Ue=$.framebufferWidth,Me=$.framebufferHeight,Be=$.viewportWidth,$.viewportWidth=Ue,ke=$.viewportHeight,$.viewportHeight=Me,Te=Ee[0],Ee[0]=c,ze=Ee[1],Ee[1]=d,Xe=Ee[2],Ee[2]=Ue,ut=Ee[3],Ee[3]=Me,at=$.framebufferWidth,Je=$.framebufferHeight,it=le[0],le[0]=u,ct=le[1],le[1]=h,ve=le[2],le[2]=at,D=le[3],le[3]=Je,oe=te.profile,oe&&(xe=performance.now(),t.count++),ce=qe.count,qe.count=m,Oe=qe.primitive,qe.primitive=b,Ye=g.call(this,$,Ke,fe),pe=G[_],G[_]=Ye,Ce=z.call(this,$,Ke,fe),Qe=G[X],G[X]=Ce,Pe=y.call(this,$,Ke,fe),ye=G[E],G[E]=Pe,mt=T.call(this,$,Ke,fe),wt=G[w],G[w]=mt,Le=I.call(this,$,Ke,fe),_t=G[K],G[K]=Le,bt=U.call(this,$,Ke,fe),nt=G[Y],G[Y]=bt,yt=J.call(this,$,Ke,fe),Lt=G[S],G[S]=yt,Tt=Q.call(this,$,Ke,fe),Nt=G[ae],G[ae]=Tt,zt=x.call(this,$,Ke,fe),Ut=G[A],G[A]=zt,Mt=O.call(this,$,Ke,fe),Kt=G[k],G[k]=Mt,ei=C.call(this,$,Ke,fe),Jt=G[ee],G[ee]=ei,Wt=ge.state,ge.state=1,$t=ge.x,ge.x=0,Gt=ge.y,ge.y=0,Ot=ge.z,ge.z=0,Bt=ge.w,ge.w=0,Zt=ge.buffer,ge.buffer=Re,St=ge.size,ge.size=2,Vt=ge.normalized,ge.normalized=!1,Dt=ge.type,ge.type=5126,ii=ge.offset,ge.offset=0,Pt=ge.stride,ge.stride=0,Qt=ge.divisor,ge.divisor=0,xt=we.vert,we.vert=F,pt=l.call(this,$,Ke,fe),vt=q.id(pt),It=we.frag,we.frag=vt,te.dirty=!0,tt($,Ke,fe),de.next=Ne,$.framebufferWidth=et,$.framebufferHeight=ht,$.viewportWidth=Be,$.viewportHeight=ke,Ee[0]=Te,Ee[1]=ze,Ee[2]=Xe,Ee[3]=ut,le[0]=it,le[1]=ct,le[2]=ve,le[3]=D,oe&&(t.cpuTime+=performance.now()-xe),qe.count=ce,qe.primitive=Oe,G[_]=pe,G[X]=Qe,G[E]=ye,G[w]=wt,G[K]=_t,G[Y]=nt,G[S]=Lt,G[ae]=Nt,G[A]=Ut,G[k]=Kt,G[ee]=Jt,ge.state=Wt,ge.x=$t,ge.y=Gt,ge.z=Ot,ge.w=Bt,ge.buffer=Zt,ge.size=St,ge.normalized=Vt,ge.type=Dt,ge.offset=ii,ge.stride=Pt,ge.divisor=Qt,we.vert=xt,we.frag=It,te.dirty=!0},batch:function(Ke,tt){var fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct;if(Ae.angle_instanced_arrays,fe=n.call(this,$,Ke,0),je=de.getFramebuffer(fe),ot=de.next,de.next=je,Ne=$.framebufferWidth,$.framebufferWidth=je?je.width:$.drawingBufferWidth,et=$.framebufferHeight,$.framebufferHeight=je?je.height:$.drawingBufferHeight,je!==de.cur&&(je?R.bindFramebuffer(36160,je.framebuffer):R.bindFramebuffer(36160,null),de.cur=je),te.dirty){var ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt;ve=se.dither,ve!==te.dither&&(ve?R.enable(3024):R.disable(3024),te.dither=ve),D=se.blend_enable,D!==te.blend_enable&&(D?R.enable(3042):R.disable(3042),te.blend_enable=D),oe=W[0],xe=W[1],ce=W[2],Oe=W[3],(oe!==re[0]||xe!==re[1]||ce!==re[2]||Oe!==re[3])&&(R.blendColor(oe,xe,ce,Oe),re[0]=oe,re[1]=xe,re[2]=ce,re[3]=Oe),Ye=Rt[0],pe=Rt[1],(Ye!==Ve[0]||pe!==Ve[1])&&(R.blendEquationSeparate(Ye,pe),Ve[0]=Ye,Ve[1]=pe),Ce=Fe[0],Qe=Fe[1],Pe=Fe[2],ye=Fe[3],(Ce!==he[0]||Qe!==he[1]||Pe!==he[2]||ye!==he[3])&&(R.blendFuncSeparate(Ce,Qe,Pe,ye),he[0]=Ce,he[1]=Qe,he[2]=Pe,he[3]=ye),mt=se.depth_enable,mt!==te.depth_enable&&(mt?R.enable(2929):R.disable(2929),te.depth_enable=mt),wt=se.depth_func,wt!==te.depth_func&&(R.depthFunc(wt),te.depth_func=wt),Le=L[0],_t=L[1],(Le!==Z[0]||_t!==Z[1])&&(R.depthRange(Le,_t),Z[0]=Le,Z[1]=_t),bt=se.depth_mask,bt!==te.depth_mask&&(R.depthMask(bt),te.depth_mask=bt),nt=ie[0],yt=ie[1],Lt=ie[2],Tt=ie[3],(nt!==be[0]||yt!==be[1]||Lt!==be[2]||Tt!==be[3])&&(R.colorMask(nt,yt,Lt,Tt),be[0]=nt,be[1]=yt,be[2]=Lt,be[3]=Tt),Nt=se.cull_enable,Nt!==te.cull_enable&&(Nt?R.enable(2884):R.disable(2884),te.cull_enable=Nt),zt=se.cull_face,zt!==te.cull_face&&(R.cullFace(zt),te.cull_face=zt),Ut=se.frontFace,Ut!==te.frontFace&&(R.frontFace(Ut),te.frontFace=Ut),Mt=se.lineWidth,Mt!==te.lineWidth&&(R.lineWidth(Mt),te.lineWidth=Mt),Kt=se.polygonOffset_enable,Kt!==te.polygonOffset_enable&&(Kt?R.enable(32823):R.disable(32823),te.polygonOffset_enable=Kt),ei=Ge[0],Jt=Ge[1],(ei!==N[0]||Jt!==N[1])&&(R.polygonOffset(ei,Jt),N[0]=ei,N[1]=Jt),Wt=se.sample_alpha,Wt!==te.sample_alpha&&(Wt?R.enable(32926):R.disable(32926),te.sample_alpha=Wt),$t=se.sample_enable,$t!==te.sample_enable&&($t?R.enable(32928):R.disable(32928),te.sample_enable=$t),Gt=$e[0],Ot=$e[1],(Gt!==He[0]||Ot!==He[1])&&(R.sampleCoverage(Gt,Ot),He[0]=Gt,He[1]=Ot),Bt=se.stencil_enable,Bt!==te.stencil_enable&&(Bt?R.enable(2960):R.disable(2960),te.stencil_enable=Bt),Zt=se.stencil_mask,Zt!==te.stencil_mask&&(R.stencilMask(Zt),te.stencil_mask=Zt),St=ne[0],Vt=ne[1],Dt=ne[2],(St!==me[0]||Vt!==me[1]||Dt!==me[2])&&(R.stencilFunc(St,Vt,Dt),me[0]=St,me[1]=Vt,me[2]=Dt),ii=B[0],Pt=B[1],Qt=B[2],xt=B[3],(ii!==j[0]||Pt!==j[1]||Qt!==j[2]||xt!==j[3])&&(R.stencilOpSeparate(ii,Pt,Qt,xt),j[0]=ii,j[1]=Pt,j[2]=Qt,j[3]=xt),pt=ue[0],vt=ue[1],It=ue[2],Ft=ue[3],(pt!==M[0]||vt!==M[1]||It!==M[2]||Ft!==M[3])&&(R.stencilOpSeparate(pt,vt,It,Ft),M[0]=pt,M[1]=vt,M[2]=It,M[3]=Ft),qt=se.scissor_enable,qt!==te.scissor_enable&&(qt?R.enable(3089):R.disable(3089),te.scissor_enable=qt)}ht=$.framebufferWidth,Ue=$.framebufferHeight,Me=$.viewportWidth,$.viewportWidth=ht,Be=$.viewportHeight,$.viewportHeight=Ue,R.viewport(0,0,ht,Ue),ft[0]=0,ft[1]=0,ft[2]=ht,ft[3]=Ue,ke=$.framebufferWidth,Te=$.framebufferHeight,R.scissor(0,0,ke,Te),De[0]=0,De[1]=0,De[2]=ke,De[3]=Te,ze=te.profile,ze&&(Xe=performance.now(),t.count+=tt),ut=l.call(this,$,Ke,0),at=q.id(ut),Je=we.program(2,at),R.useProgram(Je.program),Se.setVAO(null),it=Je.id,ct=lt[it],ct?ct.call(this,Ke,tt):(ct=lt[it]=H(Je),ct.call(this,Ke,tt)),te.dirty=!0,Se.setVAO(null),de.next=ot,$.framebufferWidth=Ne,$.framebufferHeight=et,$.viewportWidth=Me,$.viewportHeight=Be,ze&&(t.cpuTime+=performance.now()-Xe)}}},a56156b46387d9ebaeb16362ff9fd91a496e85692131cee7d7a0dd9997816a78:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J){var S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N;return S=e.gl,Q=e.context,e.strings,ae=e.next,x=e.current,A=e.draw,O=e.elements,e.buffer,k=e.shader,C=e.attributes,ee=e.vao,Re=e.uniforms,ge=e.framebuffer,F=e.extensions,e.timer,e.isBufferArgs,H=ae.blend_color,R=x.blend_color,$=ae.blend_equation,q=x.blend_equation,se=ae.blend_func,te=x.blend_func,qe=ae.depth_range,we=x.depth_range,Se=ae.colorMask,G=x.colorMask,de=ae.polygonOffset_offset,Ae=x.polygonOffset_offset,W=ae.sample_coverage,re=x.sample_coverage,Rt=ae.stencil_func,Ve=x.stencil_func,Fe=ae.stencil_opFront,he=x.stencil_opFront,L=ae.stencil_opBack,Z=x.stencil_opBack,ie=ae.scissor_box,be=x.scissor_box,Ge=ae.viewport,N=x.viewport,{draw:function($e){var He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te;if(F.angle_instanced_arrays,He=n.call(this,Q,$e,0),ne=ge.getFramebuffer(He),me=ge.next,ge.next=ne,B=Q.framebufferWidth,Q.framebufferWidth=ne?ne.width:Q.drawingBufferWidth,j=Q.framebufferHeight,Q.framebufferHeight=ne?ne.height:Q.drawingBufferHeight,ne!==ge.cur&&(ne?S.bindFramebuffer(36160,ne.framebuffer):S.bindFramebuffer(36160,null),ge.cur=ne),x.dirty){var ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt;ze=ae.dither,ze!==x.dither&&(ze?S.enable(3024):S.disable(3024),x.dither=ze),Xe=ae.blend_enable,Xe!==x.blend_enable&&(Xe?S.enable(3042):S.disable(3042),x.blend_enable=Xe),ut=H[0],at=H[1],Je=H[2],it=H[3],(ut!==R[0]||at!==R[1]||Je!==R[2]||it!==R[3])&&(S.blendColor(ut,at,Je,it),R[0]=ut,R[1]=at,R[2]=Je,R[3]=it),ct=$[0],ve=$[1],(ct!==q[0]||ve!==q[1])&&(S.blendEquationSeparate(ct,ve),q[0]=ct,q[1]=ve),D=se[0],oe=se[1],xe=se[2],ce=se[3],(D!==te[0]||oe!==te[1]||xe!==te[2]||ce!==te[3])&&(S.blendFuncSeparate(D,oe,xe,ce),te[0]=D,te[1]=oe,te[2]=xe,te[3]=ce),Oe=ae.depth_enable,Oe!==x.depth_enable&&(Oe?S.enable(2929):S.disable(2929),x.depth_enable=Oe),Ye=ae.depth_func,Ye!==x.depth_func&&(S.depthFunc(Ye),x.depth_func=Ye),pe=qe[0],Ce=qe[1],(pe!==we[0]||Ce!==we[1])&&(S.depthRange(pe,Ce),we[0]=pe,we[1]=Ce),Qe=ae.depth_mask,Qe!==x.depth_mask&&(S.depthMask(Qe),x.depth_mask=Qe),Pe=Se[0],ye=Se[1],mt=Se[2],wt=Se[3],(Pe!==G[0]||ye!==G[1]||mt!==G[2]||wt!==G[3])&&(S.colorMask(Pe,ye,mt,wt),G[0]=Pe,G[1]=ye,G[2]=mt,G[3]=wt),Le=ae.cull_enable,Le!==x.cull_enable&&(Le?S.enable(2884):S.disable(2884),x.cull_enable=Le),_t=ae.cull_face,_t!==x.cull_face&&(S.cullFace(_t),x.cull_face=_t),bt=ae.frontFace,bt!==x.frontFace&&(S.frontFace(bt),x.frontFace=bt),nt=ae.lineWidth,nt!==x.lineWidth&&(S.lineWidth(nt),x.lineWidth=nt),yt=ae.polygonOffset_enable,yt!==x.polygonOffset_enable&&(yt?S.enable(32823):S.disable(32823),x.polygonOffset_enable=yt),Lt=de[0],Tt=de[1],(Lt!==Ae[0]||Tt!==Ae[1])&&(S.polygonOffset(Lt,Tt),Ae[0]=Lt,Ae[1]=Tt),Nt=ae.sample_alpha,Nt!==x.sample_alpha&&(Nt?S.enable(32926):S.disable(32926),x.sample_alpha=Nt),zt=ae.sample_enable,zt!==x.sample_enable&&(zt?S.enable(32928):S.disable(32928),x.sample_enable=zt),Ut=W[0],Mt=W[1],(Ut!==re[0]||Mt!==re[1])&&(S.sampleCoverage(Ut,Mt),re[0]=Ut,re[1]=Mt),Kt=ae.stencil_enable,Kt!==x.stencil_enable&&(Kt?S.enable(2960):S.disable(2960),x.stencil_enable=Kt),ei=ae.stencil_mask,ei!==x.stencil_mask&&(S.stencilMask(ei),x.stencil_mask=ei),Jt=Rt[0],Wt=Rt[1],$t=Rt[2],(Jt!==Ve[0]||Wt!==Ve[1]||$t!==Ve[2])&&(S.stencilFunc(Jt,Wt,$t),Ve[0]=Jt,Ve[1]=Wt,Ve[2]=$t),Gt=Fe[0],Ot=Fe[1],Bt=Fe[2],Zt=Fe[3],(Gt!==he[0]||Ot!==he[1]||Bt!==he[2]||Zt!==he[3])&&(S.stencilOpSeparate(Gt,Ot,Bt,Zt),he[0]=Gt,he[1]=Ot,he[2]=Bt,he[3]=Zt),St=L[0],Vt=L[1],Dt=L[2],ii=L[3],(St!==Z[0]||Vt!==Z[1]||Dt!==Z[2]||ii!==Z[3])&&(S.stencilOpSeparate(St,Vt,Dt,ii),Z[0]=St,Z[1]=Vt,Z[2]=Dt,Z[3]=ii),Pt=ae.scissor_enable,Pt!==x.scissor_enable&&(Pt?S.enable(3089):S.disable(3089),x.scissor_enable=Pt)}ue=Q.framebufferWidth,M=Q.framebufferHeight,le=Q.viewportWidth,Q.viewportWidth=ue,De=Q.viewportHeight,Q.viewportHeight=M,S.viewport(0,0,ue,M),N[0]=0,N[1]=0,N[2]=ue,N[3]=M,Ee=Q.framebufferWidth,ft=Q.framebufferHeight,S.scissor(0,0,Ee,ft),be[0]=0,be[1]=0,be[2]=Ee,be[3]=ft,At=x.profile,At&&(lt=performance.now(),t.count++),S.useProgram(l.program),Ke=F.angle_instanced_arrays,ee.setVAO(null),tt=c.location,fe=C[tt],fe.buffer||S.enableVertexAttribArray(tt),je=2,(fe.type!==5126||fe.size!==je||fe.buffer!==s||fe.normalized!==!1||fe.offset!==0||fe.stride!==0)&&(S.bindBuffer(34962,s.buffer),S.vertexAttribPointer(tt,je,5126,!1,0,0),fe.type=5126,fe.size=je,fe.buffer=s,fe.normalized=!1,fe.offset=0,fe.stride=0),fe.divisor!==0&&(Ke.vertexAttribDivisorANGLE(tt,0),fe.divisor=0),ot=u.call(this,Q,$e,0),Ne=ot[0],et=ot[1],S.uniform2f(d.location,Ne,et),ht=m.call(this,Q,$e,0),ht&&ht._reglType==="framebuffer"&&(ht=ht.color[0]),Ue=ht._texture,S.uniform1i(h.location,Ue.bind()),Me=g.call(this,Q,$e,0),S.uniform1f(b.location,Me),Be=A.elements,Be?S.bindBuffer(34963,Be.buffer.buffer):ee.currentVAO&&(Be=O.getElements(ee.currentVAO.elements),Be&&S.bindBuffer(34963,Be.buffer.buffer)),ke=A.offset,Te=A.instances,Te>0?Be?Ke.drawElementsInstancedANGLE(5,4,Be.type,ke<<(Be.type-5121>>1),Te):Ke.drawArraysInstancedANGLE(5,ke,4,Te):Te<0&&(Be?S.drawElements(5,4,Be.type,ke<<(Be.type-5121>>1)):S.drawArrays(5,ke,4)),x.dirty=!0,ee.setVAO(null),ge.next=me,Q.framebufferWidth=B,Q.framebufferHeight=j,Q.viewportWidth=le,Q.viewportHeight=De,At&&(t.cpuTime+=performance.now()-lt),Ue.unbind()},scope:function($e,He,ne){var me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye;me=n.call(this,Q,$e,ne),B=ge.getFramebuffer(me),j=ge.next,ge.next=B,ue=Q.framebufferWidth,Q.framebufferWidth=B?B.width:Q.drawingBufferWidth,M=Q.framebufferHeight,Q.framebufferHeight=B?B.height:Q.drawingBufferHeight,le=Q.framebufferWidth,De=Q.framebufferHeight,Ee=Q.viewportWidth,Q.viewportWidth=le,ft=Q.viewportHeight,Q.viewportHeight=De,At=Ge[0],Ge[0]=_,lt=Ge[1],Ge[1]=z,Ke=Ge[2],Ge[2]=le,tt=Ge[3],Ge[3]=De,fe=Q.framebufferWidth,je=Q.framebufferHeight,ot=ie[0],ie[0]=X,Ne=ie[1],ie[1]=y,et=ie[2],ie[2]=fe,ht=ie[3],ie[3]=je,Ue=x.profile,Ue&&(Me=performance.now(),t.count++),Be=A.count,A.count=E,ke=A.primitive,A.primitive=T,Te=m.call(this,Q,$e,ne),ze=Re[w],Re[w]=Te,Xe=u.call(this,Q,$e,ne),ut=Re[I],Re[I]=Xe,at=g.call(this,Q,$e,ne),Je=Re[K],Re[K]=at,it=U.state,U.state=1,ct=U.x,U.x=0,ve=U.y,U.y=0,D=U.z,U.z=0,oe=U.w,U.w=0,xe=U.buffer,U.buffer=s,ce=U.size,U.size=2,Oe=U.normalized,U.normalized=!1,Ye=U.type,U.type=5126,pe=U.offset,U.offset=0,Ce=U.stride,U.stride=0,Qe=U.divisor,U.divisor=0,Pe=k.vert,k.vert=Y,ye=k.frag,k.frag=J,x.dirty=!0,He(Q,$e,ne),ge.next=j,Q.framebufferWidth=ue,Q.framebufferHeight=M,Q.viewportWidth=Ee,Q.viewportHeight=ft,Ge[0]=At,Ge[1]=lt,Ge[2]=Ke,Ge[3]=tt,ie[0]=ot,ie[1]=Ne,ie[2]=et,ie[3]=ht,Ue&&(t.cpuTime+=performance.now()-Me),A.count=Be,A.primitive=ke,Re[w]=ze,Re[I]=ut,Re[K]=Je,U.state=it,U.x=ct,U.y=ve,U.z=D,U.w=oe,U.buffer=xe,U.size=ce,U.normalized=Oe,U.type=Ye,U.offset=pe,U.stride=Ce,U.divisor=Qe,k.vert=Pe,k.frag=ye,x.dirty=!0},batch:function($e,He){var ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je;if(F.angle_instanced_arrays,ne=n.call(this,Q,$e,0),me=ge.getFramebuffer(ne),B=ge.next,ge.next=me,j=Q.framebufferWidth,Q.framebufferWidth=me?me.width:Q.drawingBufferWidth,ue=Q.framebufferHeight,Q.framebufferHeight=me?me.height:Q.drawingBufferHeight,me!==ge.cur&&(me?S.bindFramebuffer(36160,me.framebuffer):S.bindFramebuffer(36160,null),ge.cur=me),x.dirty){var ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t;ot=ae.dither,ot!==x.dither&&(ot?S.enable(3024):S.disable(3024),x.dither=ot),Ne=ae.blend_enable,Ne!==x.blend_enable&&(Ne?S.enable(3042):S.disable(3042),x.blend_enable=Ne),et=H[0],ht=H[1],Ue=H[2],Me=H[3],(et!==R[0]||ht!==R[1]||Ue!==R[2]||Me!==R[3])&&(S.blendColor(et,ht,Ue,Me),R[0]=et,R[1]=ht,R[2]=Ue,R[3]=Me),Be=$[0],ke=$[1],(Be!==q[0]||ke!==q[1])&&(S.blendEquationSeparate(Be,ke),q[0]=Be,q[1]=ke),Te=se[0],ze=se[1],Xe=se[2],ut=se[3],(Te!==te[0]||ze!==te[1]||Xe!==te[2]||ut!==te[3])&&(S.blendFuncSeparate(Te,ze,Xe,ut),te[0]=Te,te[1]=ze,te[2]=Xe,te[3]=ut),at=ae.depth_enable,at!==x.depth_enable&&(at?S.enable(2929):S.disable(2929),x.depth_enable=at),Je=ae.depth_func,Je!==x.depth_func&&(S.depthFunc(Je),x.depth_func=Je),it=qe[0],ct=qe[1],(it!==we[0]||ct!==we[1])&&(S.depthRange(it,ct),we[0]=it,we[1]=ct),ve=ae.depth_mask,ve!==x.depth_mask&&(S.depthMask(ve),x.depth_mask=ve),D=Se[0],oe=Se[1],xe=Se[2],ce=Se[3],(D!==G[0]||oe!==G[1]||xe!==G[2]||ce!==G[3])&&(S.colorMask(D,oe,xe,ce),G[0]=D,G[1]=oe,G[2]=xe,G[3]=ce),Oe=ae.cull_enable,Oe!==x.cull_enable&&(Oe?S.enable(2884):S.disable(2884),x.cull_enable=Oe),Ye=ae.cull_face,Ye!==x.cull_face&&(S.cullFace(Ye),x.cull_face=Ye),pe=ae.frontFace,pe!==x.frontFace&&(S.frontFace(pe),x.frontFace=pe),Ce=ae.lineWidth,Ce!==x.lineWidth&&(S.lineWidth(Ce),x.lineWidth=Ce),Qe=ae.polygonOffset_enable,Qe!==x.polygonOffset_enable&&(Qe?S.enable(32823):S.disable(32823),x.polygonOffset_enable=Qe),Pe=de[0],ye=de[1],(Pe!==Ae[0]||ye!==Ae[1])&&(S.polygonOffset(Pe,ye),Ae[0]=Pe,Ae[1]=ye),mt=ae.sample_alpha,mt!==x.sample_alpha&&(mt?S.enable(32926):S.disable(32926),x.sample_alpha=mt),wt=ae.sample_enable,wt!==x.sample_enable&&(wt?S.enable(32928):S.disable(32928),x.sample_enable=wt),Le=W[0],_t=W[1],(Le!==re[0]||_t!==re[1])&&(S.sampleCoverage(Le,_t),re[0]=Le,re[1]=_t),bt=ae.stencil_enable,bt!==x.stencil_enable&&(bt?S.enable(2960):S.disable(2960),x.stencil_enable=bt),nt=ae.stencil_mask,nt!==x.stencil_mask&&(S.stencilMask(nt),x.stencil_mask=nt),yt=Rt[0],Lt=Rt[1],Tt=Rt[2],(yt!==Ve[0]||Lt!==Ve[1]||Tt!==Ve[2])&&(S.stencilFunc(yt,Lt,Tt),Ve[0]=yt,Ve[1]=Lt,Ve[2]=Tt),Nt=Fe[0],zt=Fe[1],Ut=Fe[2],Mt=Fe[3],(Nt!==he[0]||zt!==he[1]||Ut!==he[2]||Mt!==he[3])&&(S.stencilOpSeparate(Nt,zt,Ut,Mt),he[0]=Nt,he[1]=zt,he[2]=Ut,he[3]=Mt),Kt=L[0],ei=L[1],Jt=L[2],Wt=L[3],(Kt!==Z[0]||ei!==Z[1]||Jt!==Z[2]||Wt!==Z[3])&&(S.stencilOpSeparate(Kt,ei,Jt,Wt),Z[0]=Kt,Z[1]=ei,Z[2]=Jt,Z[3]=Wt),$t=ae.scissor_enable,$t!==x.scissor_enable&&($t?S.enable(3089):S.disable(3089),x.scissor_enable=$t)}M=Q.framebufferWidth,le=Q.framebufferHeight,De=Q.viewportWidth,Q.viewportWidth=M,Ee=Q.viewportHeight,Q.viewportHeight=le,S.viewport(0,0,M,le),N[0]=0,N[1]=0,N[2]=M,N[3]=le,ft=Q.framebufferWidth,At=Q.framebufferHeight,S.scissor(0,0,ft,At),be[0]=0,be[1]=0,be[2]=ft,be[3]=At,lt=x.profile,lt&&(Ke=performance.now(),t.count+=He),S.useProgram(l.program),tt=F.angle_instanced_arrays;var Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt;for(ee.setVAO(null),Gt=c.location,Ot=C[Gt],Ot.buffer||S.enableVertexAttribArray(Gt),Bt=2,(Ot.type!==5126||Ot.size!==Bt||Ot.buffer!==s||Ot.normalized!==!1||Ot.offset!==0||Ot.stride!==0)&&(S.bindBuffer(34962,s.buffer),S.vertexAttribPointer(Gt,Bt,5126,!1,0,0),Ot.type=5126,Ot.size=Bt,Ot.buffer=s,Ot.normalized=!1,Ot.offset=0,Ot.stride=0),Ot.divisor!==0&&(tt.vertexAttribDivisorANGLE(Gt,0),Ot.divisor=0),Zt=u.call(this,Q,je,fe),St=Zt[0],Vt=Zt[1],S.uniform2f(d.location,St,Vt),Dt=m.call(this,Q,je,fe),Dt&&Dt._reglType==="framebuffer"&&(Dt=Dt.color[0]),ii=Dt._texture,S.uniform1i(h.location,ii.bind()),Pt=g.call(this,Q,je,fe),S.uniform1f(b.location,Pt),Qt=A.elements,Qt?S.bindBuffer(34963,Qt.buffer.buffer):ee.currentVAO&&(Qt=O.getElements(ee.currentVAO.elements),Qt&&S.bindBuffer(34963,Qt.buffer.buffer)),xt=A.offset,pt=A.instances,fe=0;fe<He;++fe)je=$e[fe],pt>0?Qt?tt.drawElementsInstancedANGLE(5,4,Qt.type,xt<<(Qt.type-5121>>1),pt):tt.drawArraysInstancedANGLE(5,xt,4,pt):pt<0&&(Qt?S.drawElements(5,4,Qt.type,xt<<(Qt.type-5121>>1)):S.drawArrays(5,xt,4));ii.unbind(),x.dirty=!0,ee.setVAO(null),ge.next=B,Q.framebufferWidth=j,Q.framebufferHeight=ue,Q.viewportWidth=De,Q.viewportHeight=Ee,lt&&(t.cpuTime+=performance.now()-Ke)}}},a078ac08badcbb8d92ee14097c5aa87a7d715adc669508e1f2527db65d2020a6:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X){var y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re;return y=e.gl,E=e.context,e.strings,T=e.next,w=e.current,I=e.draw,K=e.elements,e.buffer,U=e.shader,Y=e.attributes,J=e.vao,e.uniforms,S=e.framebuffer,Q=e.extensions,e.timer,e.isBufferArgs,ae=T.blend_color,x=w.blend_color,A=T.blend_equation,O=w.blend_equation,k=T.blend_func,C=w.blend_func,ee=T.depth_range,Re=w.depth_range,ge=T.colorMask,F=w.colorMask,H=T.polygonOffset_offset,R=w.polygonOffset_offset,$=T.sample_coverage,q=w.sample_coverage,se=T.stencil_func,te=w.stencil_func,qe=T.stencil_opFront,we=w.stencil_opFront,Se=T.stencil_opBack,G=w.stencil_opBack,de=T.scissor_box,Ae=w.scissor_box,W=T.viewport,re=w.viewport,{draw:function(Rt){var Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee;if(Q.angle_instanced_arrays,Ve=n.call(this,E,Rt,0),Fe=S.getFramebuffer(Ve),he=S.next,S.next=Fe,L=E.framebufferWidth,E.framebufferWidth=Fe?Fe.width:E.drawingBufferWidth,Z=E.framebufferHeight,E.framebufferHeight=Fe?Fe.height:E.drawingBufferHeight,Fe!==S.cur&&(Fe?y.bindFramebuffer(36160,Fe.framebuffer):y.bindFramebuffer(36160,null),S.cur=Fe),w.dirty){var ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt;ft=T.dither,ft!==w.dither&&(ft?y.enable(3024):y.disable(3024),w.dither=ft),At=T.blend_enable,At!==w.blend_enable&&(At?y.enable(3042):y.disable(3042),w.blend_enable=At),lt=ae[0],Ke=ae[1],tt=ae[2],fe=ae[3],(lt!==x[0]||Ke!==x[1]||tt!==x[2]||fe!==x[3])&&(y.blendColor(lt,Ke,tt,fe),x[0]=lt,x[1]=Ke,x[2]=tt,x[3]=fe),je=A[0],ot=A[1],(je!==O[0]||ot!==O[1])&&(y.blendEquationSeparate(je,ot),O[0]=je,O[1]=ot),Ne=k[0],et=k[1],ht=k[2],Ue=k[3],(Ne!==C[0]||et!==C[1]||ht!==C[2]||Ue!==C[3])&&(y.blendFuncSeparate(Ne,et,ht,Ue),C[0]=Ne,C[1]=et,C[2]=ht,C[3]=Ue),Me=T.depth_enable,Me!==w.depth_enable&&(Me?y.enable(2929):y.disable(2929),w.depth_enable=Me),Be=T.depth_func,Be!==w.depth_func&&(y.depthFunc(Be),w.depth_func=Be),ke=ee[0],Te=ee[1],(ke!==Re[0]||Te!==Re[1])&&(y.depthRange(ke,Te),Re[0]=ke,Re[1]=Te),ze=T.depth_mask,ze!==w.depth_mask&&(y.depthMask(ze),w.depth_mask=ze),Xe=ge[0],ut=ge[1],at=ge[2],Je=ge[3],(Xe!==F[0]||ut!==F[1]||at!==F[2]||Je!==F[3])&&(y.colorMask(Xe,ut,at,Je),F[0]=Xe,F[1]=ut,F[2]=at,F[3]=Je),it=T.cull_enable,it!==w.cull_enable&&(it?y.enable(2884):y.disable(2884),w.cull_enable=it),ct=T.cull_face,ct!==w.cull_face&&(y.cullFace(ct),w.cull_face=ct),ve=T.frontFace,ve!==w.frontFace&&(y.frontFace(ve),w.frontFace=ve),D=T.lineWidth,D!==w.lineWidth&&(y.lineWidth(D),w.lineWidth=D),oe=T.polygonOffset_enable,oe!==w.polygonOffset_enable&&(oe?y.enable(32823):y.disable(32823),w.polygonOffset_enable=oe),xe=H[0],ce=H[1],(xe!==R[0]||ce!==R[1])&&(y.polygonOffset(xe,ce),R[0]=xe,R[1]=ce),Oe=T.sample_alpha,Oe!==w.sample_alpha&&(Oe?y.enable(32926):y.disable(32926),w.sample_alpha=Oe),Ye=T.sample_enable,Ye!==w.sample_enable&&(Ye?y.enable(32928):y.disable(32928),w.sample_enable=Ye),pe=$[0],Ce=$[1],(pe!==q[0]||Ce!==q[1])&&(y.sampleCoverage(pe,Ce),q[0]=pe,q[1]=Ce),Qe=T.stencil_enable,Qe!==w.stencil_enable&&(Qe?y.enable(2960):y.disable(2960),w.stencil_enable=Qe),Pe=T.stencil_mask,Pe!==w.stencil_mask&&(y.stencilMask(Pe),w.stencil_mask=Pe),ye=se[0],mt=se[1],wt=se[2],(ye!==te[0]||mt!==te[1]||wt!==te[2])&&(y.stencilFunc(ye,mt,wt),te[0]=ye,te[1]=mt,te[2]=wt),Le=qe[0],_t=qe[1],bt=qe[2],nt=qe[3],(Le!==we[0]||_t!==we[1]||bt!==we[2]||nt!==we[3])&&(y.stencilOpSeparate(Le,_t,bt,nt),we[0]=Le,we[1]=_t,we[2]=bt,we[3]=nt),yt=Se[0],Lt=Se[1],Tt=Se[2],Nt=Se[3],(yt!==G[0]||Lt!==G[1]||Tt!==G[2]||Nt!==G[3])&&(y.stencilOpSeparate(yt,Lt,Tt,Nt),G[0]=yt,G[1]=Lt,G[2]=Tt,G[3]=Nt),zt=T.scissor_enable,zt!==w.scissor_enable&&(zt?y.enable(3089):y.disable(3089),w.scissor_enable=zt)}ie=E.framebufferWidth,be=E.framebufferHeight,Ge=E.viewportWidth,E.viewportWidth=ie,N=E.viewportHeight,E.viewportHeight=be,y.viewport(0,0,ie,be),re[0]=0,re[1]=0,re[2]=ie,re[3]=be,$e=E.framebufferWidth,He=E.framebufferHeight,y.scissor(0,0,$e,He),Ae[0]=0,Ae[1]=0,Ae[2]=$e,Ae[3]=He,ne=w.profile,ne&&(me=performance.now(),t.count++),y.useProgram(l.program),B=Q.angle_instanced_arrays,J.setVAO(null),j=c.location,ue=Y[j],ue.buffer||y.enableVertexAttribArray(j),M=2,(ue.type!==5126||ue.size!==M||ue.buffer!==s||ue.normalized!==!1||ue.offset!==0||ue.stride!==0)&&(y.bindBuffer(34962,s.buffer),y.vertexAttribPointer(j,M,5126,!1,0,0),ue.type=5126,ue.size=M,ue.buffer=s,ue.normalized=!1,ue.offset=0,ue.stride=0),ue.divisor!==0&&(B.vertexAttribDivisorANGLE(j,0),ue.divisor=0),le=I.elements,le?y.bindBuffer(34963,le.buffer.buffer):J.currentVAO&&(le=K.getElements(J.currentVAO.elements),le&&y.bindBuffer(34963,le.buffer.buffer)),De=I.offset,Ee=I.instances,Ee>0?le?B.drawElementsInstancedANGLE(5,4,le.type,De<<(le.type-5121>>1),Ee):B.drawArraysInstancedANGLE(5,De,4,Ee):Ee<0&&(le?y.drawElements(5,4,le.type,De<<(le.type-5121>>1)):y.drawArrays(5,De,4)),w.dirty=!0,J.setVAO(null),S.next=he,E.framebufferWidth=L,E.framebufferHeight=Z,E.viewportWidth=Ge,E.viewportHeight=N,ne&&(t.cpuTime+=performance.now()-me)},scope:function(Rt,Ve,Fe){var he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut;he=n.call(this,E,Rt,Fe),L=S.getFramebuffer(he),Z=S.next,S.next=L,ie=E.framebufferWidth,E.framebufferWidth=L?L.width:E.drawingBufferWidth,be=E.framebufferHeight,E.framebufferHeight=L?L.height:E.drawingBufferHeight,Ge=E.framebufferWidth,N=E.framebufferHeight,$e=E.viewportWidth,E.viewportWidth=Ge,He=E.viewportHeight,E.viewportHeight=N,ne=W[0],W[0]=d,me=W[1],W[1]=u,B=W[2],W[2]=Ge,j=W[3],W[3]=N,ue=E.framebufferWidth,M=E.framebufferHeight,le=de[0],de[0]=h,De=de[1],de[1]=m,Ee=de[2],de[2]=ue,ft=de[3],de[3]=M,At=w.profile,At&&(lt=performance.now(),t.count++),Ke=I.count,I.count=b,tt=I.primitive,I.primitive=g,fe=_.state,_.state=1,je=_.x,_.x=0,ot=_.y,_.y=0,Ne=_.z,_.z=0,et=_.w,_.w=0,ht=_.buffer,_.buffer=s,Ue=_.size,_.size=2,Me=_.normalized,_.normalized=!1,Be=_.type,_.type=5126,ke=_.offset,_.offset=0,Te=_.stride,_.stride=0,ze=_.divisor,_.divisor=0,Xe=U.vert,U.vert=z,ut=U.frag,U.frag=X,w.dirty=!0,Ve(E,Rt,Fe),S.next=Z,E.framebufferWidth=ie,E.framebufferHeight=be,E.viewportWidth=$e,E.viewportHeight=He,W[0]=ne,W[1]=me,W[2]=B,W[3]=j,de[0]=le,de[1]=De,de[2]=Ee,de[3]=ft,At&&(t.cpuTime+=performance.now()-lt),I.count=Ke,I.primitive=tt,_.state=fe,_.x=je,_.y=ot,_.z=Ne,_.w=et,_.buffer=ht,_.size=Ue,_.normalized=Me,_.type=Be,_.offset=ke,_.stride=Te,_.divisor=ze,U.vert=Xe,U.frag=ut,w.dirty=!0},batch:function(Rt,Ve){var Fe,he,L,Z,ie;if(Q.angle_instanced_arrays,w.dirty){var be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce;be=T.dither,be!==w.dither&&(be?y.enable(3024):y.disable(3024),w.dither=be),Ge=T.blend_enable,Ge!==w.blend_enable&&(Ge?y.enable(3042):y.disable(3042),w.blend_enable=Ge),N=ae[0],$e=ae[1],He=ae[2],ne=ae[3],(N!==x[0]||$e!==x[1]||He!==x[2]||ne!==x[3])&&(y.blendColor(N,$e,He,ne),x[0]=N,x[1]=$e,x[2]=He,x[3]=ne),me=A[0],B=A[1],(me!==O[0]||B!==O[1])&&(y.blendEquationSeparate(me,B),O[0]=me,O[1]=B),j=k[0],ue=k[1],M=k[2],le=k[3],(j!==C[0]||ue!==C[1]||M!==C[2]||le!==C[3])&&(y.blendFuncSeparate(j,ue,M,le),C[0]=j,C[1]=ue,C[2]=M,C[3]=le),De=T.depth_enable,De!==w.depth_enable&&(De?y.enable(2929):y.disable(2929),w.depth_enable=De),Ee=T.depth_func,Ee!==w.depth_func&&(y.depthFunc(Ee),w.depth_func=Ee),ft=ee[0],At=ee[1],(ft!==Re[0]||At!==Re[1])&&(y.depthRange(ft,At),Re[0]=ft,Re[1]=At),lt=T.depth_mask,lt!==w.depth_mask&&(y.depthMask(lt),w.depth_mask=lt),Ke=ge[0],tt=ge[1],fe=ge[2],je=ge[3],(Ke!==F[0]||tt!==F[1]||fe!==F[2]||je!==F[3])&&(y.colorMask(Ke,tt,fe,je),F[0]=Ke,F[1]=tt,F[2]=fe,F[3]=je),ot=T.cull_enable,ot!==w.cull_enable&&(ot?y.enable(2884):y.disable(2884),w.cull_enable=ot),Ne=T.cull_face,Ne!==w.cull_face&&(y.cullFace(Ne),w.cull_face=Ne),et=T.frontFace,et!==w.frontFace&&(y.frontFace(et),w.frontFace=et),ht=T.lineWidth,ht!==w.lineWidth&&(y.lineWidth(ht),w.lineWidth=ht),Ue=T.polygonOffset_enable,Ue!==w.polygonOffset_enable&&(Ue?y.enable(32823):y.disable(32823),w.polygonOffset_enable=Ue),Me=H[0],Be=H[1],(Me!==R[0]||Be!==R[1])&&(y.polygonOffset(Me,Be),R[0]=Me,R[1]=Be),ke=T.sample_alpha,ke!==w.sample_alpha&&(ke?y.enable(32926):y.disable(32926),w.sample_alpha=ke),Te=T.sample_enable,Te!==w.sample_enable&&(Te?y.enable(32928):y.disable(32928),w.sample_enable=Te),ze=$[0],Xe=$[1],(ze!==q[0]||Xe!==q[1])&&(y.sampleCoverage(ze,Xe),q[0]=ze,q[1]=Xe),ut=T.stencil_enable,ut!==w.stencil_enable&&(ut?y.enable(2960):y.disable(2960),w.stencil_enable=ut),at=T.stencil_mask,at!==w.stencil_mask&&(y.stencilMask(at),w.stencil_mask=at),Je=se[0],it=se[1],ct=se[2],(Je!==te[0]||it!==te[1]||ct!==te[2])&&(y.stencilFunc(Je,it,ct),te[0]=Je,te[1]=it,te[2]=ct),ve=qe[0],D=qe[1],oe=qe[2],xe=qe[3],(ve!==we[0]||D!==we[1]||oe!==we[2]||xe!==we[3])&&(y.stencilOpSeparate(ve,D,oe,xe),we[0]=ve,we[1]=D,we[2]=oe,we[3]=xe),ce=Se[0],Oe=Se[1],Ye=Se[2],pe=Se[3],(ce!==G[0]||Oe!==G[1]||Ye!==G[2]||pe!==G[3])&&(y.stencilOpSeparate(ce,Oe,Ye,pe),G[0]=ce,G[1]=Oe,G[2]=Ye,G[3]=pe),Ce=T.scissor_enable,Ce!==w.scissor_enable&&(Ce?y.enable(3089):y.disable(3089),w.scissor_enable=Ce)}Fe=w.profile,Fe&&(he=performance.now(),t.count+=Ve),y.useProgram(l.program),L=Q.angle_instanced_arrays;var Qe,Pe,ye,mt,wt,Le;for(J.setVAO(null),Qe=c.location,Pe=Y[Qe],Pe.buffer||y.enableVertexAttribArray(Qe),ye=2,(Pe.type!==5126||Pe.size!==ye||Pe.buffer!==s||Pe.normalized!==!1||Pe.offset!==0||Pe.stride!==0)&&(y.bindBuffer(34962,s.buffer),y.vertexAttribPointer(Qe,ye,5126,!1,0,0),Pe.type=5126,Pe.size=ye,Pe.buffer=s,Pe.normalized=!1,Pe.offset=0,Pe.stride=0),Pe.divisor!==0&&(L.vertexAttribDivisorANGLE(Qe,0),Pe.divisor=0),mt=I.elements,mt?y.bindBuffer(34963,mt.buffer.buffer):J.currentVAO&&(mt=K.getElements(J.currentVAO.elements),mt&&y.bindBuffer(34963,mt.buffer.buffer)),wt=I.offset,Le=I.instances,Z=0;Z<Ve;++Z){ie=Rt[Z];var _t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt;_t=n.call(this,E,ie,Z),bt=S.getFramebuffer(_t),nt=S.next,S.next=bt,yt=E.framebufferWidth,E.framebufferWidth=bt?bt.width:E.drawingBufferWidth,Lt=E.framebufferHeight,E.framebufferHeight=bt?bt.height:E.drawingBufferHeight,bt!==S.cur&&(bt?y.bindFramebuffer(36160,bt.framebuffer):y.bindFramebuffer(36160,null),S.cur=bt),Tt=E.framebufferWidth,Nt=E.framebufferHeight,zt=E.viewportWidth,E.viewportWidth=Tt,Ut=E.viewportHeight,E.viewportHeight=Nt,y.viewport(0,0,Tt,Nt),re[0]=0,re[1]=0,re[2]=Tt,re[3]=Nt,Mt=E.framebufferWidth,Kt=E.framebufferHeight,y.scissor(0,0,Mt,Kt),Ae[0]=0,Ae[1]=0,Ae[2]=Mt,Ae[3]=Kt,Le>0?mt?L.drawElementsInstancedANGLE(5,4,mt.type,wt<<(mt.type-5121>>1),Le):L.drawArraysInstancedANGLE(5,wt,4,Le):Le<0&&(mt?y.drawElements(5,4,mt.type,wt<<(mt.type-5121>>1)):y.drawArrays(5,wt,4)),S.next=nt,E.framebufferWidth=yt,E.framebufferHeight=Lt,E.viewportWidth=zt,E.viewportHeight=Ut}w.dirty=!0,J.setVAO(null),Fe&&(t.cpuTime+=performance.now()-he)}}},"0313f92b852b73f25a96e0578ae69b31e2d4866f1f8cfd75345ecb3cf4ca66c6":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se){var G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et;return G=e.gl,de=e.context,e.strings,Ae=e.next,W=e.current,re=e.draw,Rt=e.elements,e.buffer,Ve=e.shader,Fe=e.attributes,he=e.vao,L=e.uniforms,Z=e.framebuffer,ie=e.extensions,e.timer,e.isBufferArgs,be=Ae.blend_color,Ge=W.blend_color,N=Ae.blend_equation,$e=W.blend_equation,He=Ae.blend_func,ne=W.blend_func,me=Ae.depth_range,B=W.depth_range,j=Ae.colorMask,ue=W.colorMask,M=Ae.polygonOffset_offset,le=W.polygonOffset_offset,De=Ae.sample_coverage,Ee=W.sample_coverage,ft=Ae.stencil_func,At=W.stencil_func,lt=Ae.stencil_opFront,Ke=W.stencil_opFront,tt=Ae.stencil_opBack,fe=W.stencil_opBack,je=Ae.scissor_box,ot=W.scissor_box,Ne=Ae.viewport,et=W.viewport,{draw:function(ht){var Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt;if(ie.angle_instanced_arrays,Ue=n.call(this,de,ht,0),Me=Z.getFramebuffer(Ue),Be=Z.next,Z.next=Me,ke=de.framebufferWidth,de.framebufferWidth=Me?Me.width:de.drawingBufferWidth,Te=de.framebufferHeight,de.framebufferHeight=Me?Me.height:de.drawingBufferHeight,Me!==Z.cur&&(Me?G.bindFramebuffer(36160,Me.framebuffer):G.bindFramebuffer(36160,null),Z.cur=Me),W.dirty){var Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri;Le=Ae.dither,Le!==W.dither&&(Le?G.enable(3024):G.disable(3024),W.dither=Le),_t=be[0],bt=be[1],nt=be[2],yt=be[3],(_t!==Ge[0]||bt!==Ge[1]||nt!==Ge[2]||yt!==Ge[3])&&(G.blendColor(_t,bt,nt,yt),Ge[0]=_t,Ge[1]=bt,Ge[2]=nt,Ge[3]=yt),Lt=Ae.depth_func,Lt!==W.depth_func&&(G.depthFunc(Lt),W.depth_func=Lt),Tt=me[0],Nt=me[1],(Tt!==B[0]||Nt!==B[1])&&(G.depthRange(Tt,Nt),B[0]=Tt,B[1]=Nt),zt=j[0],Ut=j[1],Mt=j[2],Kt=j[3],(zt!==ue[0]||Ut!==ue[1]||Mt!==ue[2]||Kt!==ue[3])&&(G.colorMask(zt,Ut,Mt,Kt),ue[0]=zt,ue[1]=Ut,ue[2]=Mt,ue[3]=Kt),ei=Ae.cull_enable,ei!==W.cull_enable&&(ei?G.enable(2884):G.disable(2884),W.cull_enable=ei),Jt=Ae.cull_face,Jt!==W.cull_face&&(G.cullFace(Jt),W.cull_face=Jt),Wt=Ae.frontFace,Wt!==W.frontFace&&(G.frontFace(Wt),W.frontFace=Wt),$t=Ae.lineWidth,$t!==W.lineWidth&&(G.lineWidth($t),W.lineWidth=$t),Gt=Ae.polygonOffset_enable,Gt!==W.polygonOffset_enable&&(Gt?G.enable(32823):G.disable(32823),W.polygonOffset_enable=Gt),Ot=M[0],Bt=M[1],(Ot!==le[0]||Bt!==le[1])&&(G.polygonOffset(Ot,Bt),le[0]=Ot,le[1]=Bt),Zt=Ae.sample_alpha,Zt!==W.sample_alpha&&(Zt?G.enable(32926):G.disable(32926),W.sample_alpha=Zt),St=Ae.sample_enable,St!==W.sample_enable&&(St?G.enable(32928):G.disable(32928),W.sample_enable=St),Vt=De[0],Dt=De[1],(Vt!==Ee[0]||Dt!==Ee[1])&&(G.sampleCoverage(Vt,Dt),Ee[0]=Vt,Ee[1]=Dt),ii=Ae.stencil_mask,ii!==W.stencil_mask&&(G.stencilMask(ii),W.stencil_mask=ii),Pt=ft[0],Qt=ft[1],xt=ft[2],(Pt!==At[0]||Qt!==At[1]||xt!==At[2])&&(G.stencilFunc(Pt,Qt,xt),At[0]=Pt,At[1]=Qt,At[2]=xt),pt=lt[0],vt=lt[1],It=lt[2],Ft=lt[3],(pt!==Ke[0]||vt!==Ke[1]||It!==Ke[2]||Ft!==Ke[3])&&(G.stencilOpSeparate(pt,vt,It,Ft),Ke[0]=pt,Ke[1]=vt,Ke[2]=It,Ke[3]=Ft),qt=tt[0],zi=tt[1],Mi=tt[2],di=tt[3],(qt!==fe[0]||zi!==fe[1]||Mi!==fe[2]||di!==fe[3])&&(G.stencilOpSeparate(qt,zi,Mi,di),fe[0]=qt,fe[1]=zi,fe[2]=Mi,fe[3]=di),Ri=Ae.scissor_enable,Ri!==W.scissor_enable&&(Ri?G.enable(3089):G.disable(3089),W.scissor_enable=Ri)}ze=de.framebufferWidth,Xe=de.framebufferHeight,ut=de.viewportWidth,de.viewportWidth=ze,at=de.viewportHeight,de.viewportHeight=Xe,G.viewport(0,0,ze,Xe),et[0]=0,et[1]=0,et[2]=ze,et[3]=Xe,l?G.enable(3042):G.disable(3042),W.blend_enable=l,G.blendEquationSeparate(32774,32774),$e[0]=32774,$e[1]=32774,G.blendFuncSeparate(1,1,1,1),ne[0]=1,ne[1]=1,ne[2]=1,ne[3]=1,s?G.enable(2929):G.disable(2929),W.depth_enable=s,G.depthMask(c),W.depth_mask=c,Je=de.framebufferWidth,it=de.framebufferHeight,G.scissor(0,0,Je,it),ot[0]=0,ot[1]=0,ot[2]=Je,ot[3]=it,d?G.enable(2960):G.disable(2960),W.stencil_enable=d,ct=W.profile,ct&&(ve=performance.now(),t.count++),G.useProgram(u.program),D=ie.angle_instanced_arrays,he.setVAO(null),oe=m.location,xe=Fe[oe],xe.buffer||G.enableVertexAttribArray(oe),ce=2,(xe.type!==5126||xe.size!==ce||xe.buffer!==h||xe.normalized!==!1||xe.offset!==0||xe.stride!==0)&&(G.bindBuffer(34962,h.buffer),G.vertexAttribPointer(oe,ce,5126,!1,0,0),xe.type=5126,xe.size=ce,xe.buffer=h,xe.normalized=!1,xe.offset=0,xe.stride=0),xe.divisor!==0&&(D.vertexAttribDivisorANGLE(oe,0),xe.divisor=0),Oe=g.call(this,de,ht,0),G.uniform1f(b.location,Oe),Ye=z.call(this,de,ht,0),G.uniform1f(_.location,Ye),pe=y.call(this,de,ht,0),G.uniform1f(X.location,pe),Ce=T.call(this,de,ht,0),Ce&&Ce._reglType==="framebuffer"&&(Ce=Ce.color[0]),Qe=Ce._texture,G.uniform1i(E.location,Qe.bind()),Pe=re.elements,Pe?G.bindBuffer(34963,Pe.buffer.buffer):he.currentVAO&&(Pe=Rt.getElements(he.currentVAO.elements),Pe&&G.bindBuffer(34963,Pe.buffer.buffer)),ye=re.offset,mt=w.call(this,de,ht,0),mt&&(wt=re.instances,wt>0?Pe?D.drawElementsInstancedANGLE(0,mt,Pe.type,ye<<(Pe.type-5121>>1),wt):D.drawArraysInstancedANGLE(0,ye,mt,wt):wt<0&&(Pe?G.drawElements(0,mt,Pe.type,ye<<(Pe.type-5121>>1)):G.drawArrays(0,ye,mt)),W.dirty=!0,he.setVAO(null),Z.next=Be,de.framebufferWidth=ke,de.framebufferHeight=Te,de.viewportWidth=ut,de.viewportHeight=at,ct&&(t.cpuTime+=performance.now()-ve),Qe.unbind())},scope:function(ht,Ue,Me){var Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt;Be=n.call(this,de,ht,Me),ke=Z.getFramebuffer(Be),Te=Z.next,Z.next=ke,ze=de.framebufferWidth,de.framebufferWidth=ke?ke.width:de.drawingBufferWidth,Xe=de.framebufferHeight,de.framebufferHeight=ke?ke.height:de.drawingBufferHeight,ut=de.framebufferWidth,at=de.framebufferHeight,Je=de.viewportWidth,de.viewportWidth=ut,it=de.viewportHeight,de.viewportHeight=at,ct=Ne[0],Ne[0]=I,ve=Ne[1],Ne[1]=K,D=Ne[2],Ne[2]=ut,oe=Ne[3],Ne[3]=at,xe=Ae.blend_enable,Ae.blend_enable=U,ce=N[0],N[0]=Y,Oe=N[1],N[1]=J,Ye=He[0],He[0]=S,pe=He[1],He[1]=Q,Ce=He[2],He[2]=ae,Qe=He[3],He[3]=x,Pe=Ae.depth_enable,Ae.depth_enable=A,ye=Ae.depth_mask,Ae.depth_mask=O,mt=de.framebufferWidth,wt=de.framebufferHeight,Le=je[0],je[0]=k,_t=je[1],je[1]=C,bt=je[2],je[2]=mt,nt=je[3],je[3]=wt,yt=Ae.stencil_enable,Ae.stencil_enable=ee,Lt=W.profile,Lt&&(Tt=performance.now(),t.count++),Nt=w.call(this,de,ht,Me),zt=re.count,re.count=Nt,Ut=re.primitive,re.primitive=Re,Mt=T.call(this,de,ht,Me),Kt=L[ge],L[ge]=Mt,ei=y.call(this,de,ht,Me),Jt=L[F],L[F]=ei,Wt=z.call(this,de,ht,Me),$t=L[H],L[H]=Wt,Gt=g.call(this,de,ht,Me),Ot=L[R],L[R]=Gt,Bt=$.state,$.state=1,Zt=$.x,$.x=0,St=$.y,$.y=0,Vt=$.z,$.z=0,Dt=$.w,$.w=0,ii=$.buffer,$.buffer=h,Pt=$.size,$.size=2,Qt=$.normalized,$.normalized=!1,xt=$.type,$.type=5126,pt=$.offset,$.offset=0,vt=$.stride,$.stride=0,It=$.divisor,$.divisor=0,Ft=Ve.vert,Ve.vert=q,qt=Ve.frag,Ve.frag=se,W.dirty=!0,Ue(de,ht,Me),Z.next=Te,de.framebufferWidth=ze,de.framebufferHeight=Xe,de.viewportWidth=Je,de.viewportHeight=it,Ne[0]=ct,Ne[1]=ve,Ne[2]=D,Ne[3]=oe,Ae.blend_enable=xe,N[0]=ce,N[1]=Oe,He[0]=Ye,He[1]=pe,He[2]=Ce,He[3]=Qe,Ae.depth_enable=Pe,Ae.depth_mask=ye,je[0]=Le,je[1]=_t,je[2]=bt,je[3]=nt,Ae.stencil_enable=yt,Lt&&(t.cpuTime+=performance.now()-Tt),re.count=zt,re.primitive=Ut,L[ge]=Kt,L[F]=Jt,L[H]=$t,L[R]=Ot,$.state=Bt,$.x=Zt,$.y=St,$.z=Vt,$.w=Dt,$.buffer=ii,$.size=Pt,$.normalized=Qt,$.type=xt,$.offset=pt,$.stride=vt,$.divisor=It,Ve.vert=Ft,Ve.frag=qt,W.dirty=!0},batch:function(ht,Ue){var Me,Be,ke,Te,ze;if(ie.angle_instanced_arrays,W.dirty){var Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t;Xe=Ae.dither,Xe!==W.dither&&(Xe?G.enable(3024):G.disable(3024),W.dither=Xe),ut=be[0],at=be[1],Je=be[2],it=be[3],(ut!==Ge[0]||at!==Ge[1]||Je!==Ge[2]||it!==Ge[3])&&(G.blendColor(ut,at,Je,it),Ge[0]=ut,Ge[1]=at,Ge[2]=Je,Ge[3]=it),ct=Ae.depth_func,ct!==W.depth_func&&(G.depthFunc(ct),W.depth_func=ct),ve=me[0],D=me[1],(ve!==B[0]||D!==B[1])&&(G.depthRange(ve,D),B[0]=ve,B[1]=D),oe=j[0],xe=j[1],ce=j[2],Oe=j[3],(oe!==ue[0]||xe!==ue[1]||ce!==ue[2]||Oe!==ue[3])&&(G.colorMask(oe,xe,ce,Oe),ue[0]=oe,ue[1]=xe,ue[2]=ce,ue[3]=Oe),Ye=Ae.cull_enable,Ye!==W.cull_enable&&(Ye?G.enable(2884):G.disable(2884),W.cull_enable=Ye),pe=Ae.cull_face,pe!==W.cull_face&&(G.cullFace(pe),W.cull_face=pe),Ce=Ae.frontFace,Ce!==W.frontFace&&(G.frontFace(Ce),W.frontFace=Ce),Qe=Ae.lineWidth,Qe!==W.lineWidth&&(G.lineWidth(Qe),W.lineWidth=Qe),Pe=Ae.polygonOffset_enable,Pe!==W.polygonOffset_enable&&(Pe?G.enable(32823):G.disable(32823),W.polygonOffset_enable=Pe),ye=M[0],mt=M[1],(ye!==le[0]||mt!==le[1])&&(G.polygonOffset(ye,mt),le[0]=ye,le[1]=mt),wt=Ae.sample_alpha,wt!==W.sample_alpha&&(wt?G.enable(32926):G.disable(32926),W.sample_alpha=wt),Le=Ae.sample_enable,Le!==W.sample_enable&&(Le?G.enable(32928):G.disable(32928),W.sample_enable=Le),_t=De[0],bt=De[1],(_t!==Ee[0]||bt!==Ee[1])&&(G.sampleCoverage(_t,bt),Ee[0]=_t,Ee[1]=bt),nt=Ae.stencil_mask,nt!==W.stencil_mask&&(G.stencilMask(nt),W.stencil_mask=nt),yt=ft[0],Lt=ft[1],Tt=ft[2],(yt!==At[0]||Lt!==At[1]||Tt!==At[2])&&(G.stencilFunc(yt,Lt,Tt),At[0]=yt,At[1]=Lt,At[2]=Tt),Nt=lt[0],zt=lt[1],Ut=lt[2],Mt=lt[3],(Nt!==Ke[0]||zt!==Ke[1]||Ut!==Ke[2]||Mt!==Ke[3])&&(G.stencilOpSeparate(Nt,zt,Ut,Mt),Ke[0]=Nt,Ke[1]=zt,Ke[2]=Ut,Ke[3]=Mt),Kt=tt[0],ei=tt[1],Jt=tt[2],Wt=tt[3],(Kt!==fe[0]||ei!==fe[1]||Jt!==fe[2]||Wt!==fe[3])&&(G.stencilOpSeparate(Kt,ei,Jt,Wt),fe[0]=Kt,fe[1]=ei,fe[2]=Jt,fe[3]=Wt),$t=Ae.scissor_enable,$t!==W.scissor_enable&&($t?G.enable(3089):G.disable(3089),W.scissor_enable=$t)}te?G.enable(3042):G.disable(3042),W.blend_enable=te,G.blendEquationSeparate(32774,32774),$e[0]=32774,$e[1]=32774,G.blendFuncSeparate(1,1,1,1),ne[0]=1,ne[1]=1,ne[2]=1,ne[3]=1,qe?G.enable(2929):G.disable(2929),W.depth_enable=qe,G.depthMask(we),W.depth_mask=we,Se?G.enable(2960):G.disable(2960),W.stencil_enable=Se,Me=W.profile,Me&&(Be=performance.now(),t.count+=Ue),G.useProgram(u.program),ke=ie.angle_instanced_arrays;var Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt;for(he.setVAO(null),Gt=m.location,Ot=Fe[Gt],Ot.buffer||G.enableVertexAttribArray(Gt),Bt=2,(Ot.type!==5126||Ot.size!==Bt||Ot.buffer!==h||Ot.normalized!==!1||Ot.offset!==0||Ot.stride!==0)&&(G.bindBuffer(34962,h.buffer),G.vertexAttribPointer(Gt,Bt,5126,!1,0,0),Ot.type=5126,Ot.size=Bt,Ot.buffer=h,Ot.normalized=!1,Ot.offset=0,Ot.stride=0),Ot.divisor!==0&&(ke.vertexAttribDivisorANGLE(Gt,0),Ot.divisor=0),Zt=y.call(this,de,ze,Te),G.uniform1f(X.location,Zt),St=T.call(this,de,ze,Te),St&&St._reglType==="framebuffer"&&(St=St.color[0]),Vt=St._texture,G.uniform1i(E.location,Vt.bind()),Dt=re.elements,Dt?G.bindBuffer(34963,Dt.buffer.buffer):he.currentVAO&&(Dt=Rt.getElements(he.currentVAO.elements),Dt&&G.bindBuffer(34963,Dt.buffer.buffer)),ii=re.offset,Pt=w.call(this,de,ze,Te),Qt=re.instances,Te=0;Te<Ue;++Te){ze=ht[Te];var xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi;xt=n.call(this,de,ze,Te),pt=Z.getFramebuffer(xt),vt=Z.next,Z.next=pt,It=de.framebufferWidth,de.framebufferWidth=pt?pt.width:de.drawingBufferWidth,Ft=de.framebufferHeight,de.framebufferHeight=pt?pt.height:de.drawingBufferHeight,pt!==Z.cur&&(pt?G.bindFramebuffer(36160,pt.framebuffer):G.bindFramebuffer(36160,null),Z.cur=pt),qt=de.framebufferWidth,zi=de.framebufferHeight,Mi=de.viewportWidth,de.viewportWidth=qt,di=de.viewportHeight,de.viewportHeight=zi,G.viewport(0,0,qt,zi),et[0]=0,et[1]=0,et[2]=qt,et[3]=zi,Ri=de.framebufferWidth,yi=de.framebufferHeight,G.scissor(0,0,Ri,yi),ot[0]=0,ot[1]=0,ot[2]=Ri,ot[3]=yi,Ui=g.call(this,de,ze,Te),(!Te||Li!==Ui)&&(Li=Ui,G.uniform1f(b.location,Ui)),Ei=z.call(this,de,ze,Te),(!Te||wi!==Ei)&&(wi=Ei,G.uniform1f(_.location,Ei)),Pt&&(Qt>0?Dt?ke.drawElementsInstancedANGLE(0,Pt,Dt.type,ii<<(Dt.type-5121>>1),Qt):ke.drawArraysInstancedANGLE(0,ii,Pt,Qt):Qt<0&&(Dt?G.drawElements(0,Pt,Dt.type,ii<<(Dt.type-5121>>1)):G.drawArrays(0,ii,Pt)),Z.next=vt,de.framebufferWidth=It,de.framebufferHeight=Ft,de.viewportWidth=Mi,de.viewportHeight=di)}Vt.unbind(),W.dirty=!0,he.setVAO(null),Me&&(t.cpuTime+=performance.now()-Be)}}},bcafcc30f5fd1e9f176e7deb4f9067870505d786fa0f2b66a991174be81e4f1a:function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge){var N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve;return N=e.gl,$e=e.context,e.strings,He=e.next,ne=e.current,me=e.draw,B=e.elements,e.buffer,j=e.shader,ue=e.attributes,M=e.vao,le=e.uniforms,De=e.framebuffer,Ee=e.extensions,e.timer,e.isBufferArgs,ft=He.blend_color,At=ne.blend_color,lt=He.blend_equation,Ke=ne.blend_equation,tt=He.blend_func,fe=ne.blend_func,je=He.depth_range,ot=ne.depth_range,Ne=He.colorMask,et=ne.colorMask,ht=He.polygonOffset_offset,Ue=ne.polygonOffset_offset,Me=He.sample_coverage,Be=ne.sample_coverage,ke=He.stencil_func,Te=ne.stencil_func,ze=He.stencil_opFront,Xe=ne.stencil_opFront,ut=He.stencil_opBack,at=ne.stencil_opBack,Je=He.scissor_box,it=ne.scissor_box,ct=He.viewport,ve=ne.viewport,{draw:function(D){var oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot;if(Ee.angle_instanced_arrays,oe=n.call(this,$e,D,0),xe=De.getFramebuffer(oe),ce=De.next,De.next=xe,Oe=$e.framebufferWidth,$e.framebufferWidth=xe?xe.width:$e.drawingBufferWidth,Ye=$e.framebufferHeight,$e.framebufferHeight=xe?xe.height:$e.drawingBufferHeight,xe!==De.cur&&(xe?N.bindFramebuffer(36160,xe.framebuffer):N.bindFramebuffer(36160,null),De.cur=xe),ne.dirty){var Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn;Bt=He.dither,Bt!==ne.dither&&(Bt?N.enable(3024):N.disable(3024),ne.dither=Bt),Zt=ft[0],St=ft[1],Vt=ft[2],Dt=ft[3],(Zt!==At[0]||St!==At[1]||Vt!==At[2]||Dt!==At[3])&&(N.blendColor(Zt,St,Vt,Dt),At[0]=Zt,At[1]=St,At[2]=Vt,At[3]=Dt),ii=He.depth_func,ii!==ne.depth_func&&(N.depthFunc(ii),ne.depth_func=ii),Pt=je[0],Qt=je[1],(Pt!==ot[0]||Qt!==ot[1])&&(N.depthRange(Pt,Qt),ot[0]=Pt,ot[1]=Qt),xt=Ne[0],pt=Ne[1],vt=Ne[2],It=Ne[3],(xt!==et[0]||pt!==et[1]||vt!==et[2]||It!==et[3])&&(N.colorMask(xt,pt,vt,It),et[0]=xt,et[1]=pt,et[2]=vt,et[3]=It),Ft=He.cull_enable,Ft!==ne.cull_enable&&(Ft?N.enable(2884):N.disable(2884),ne.cull_enable=Ft),qt=He.cull_face,qt!==ne.cull_face&&(N.cullFace(qt),ne.cull_face=qt),zi=He.frontFace,zi!==ne.frontFace&&(N.frontFace(zi),ne.frontFace=zi),Mi=He.lineWidth,Mi!==ne.lineWidth&&(N.lineWidth(Mi),ne.lineWidth=Mi),di=He.polygonOffset_enable,di!==ne.polygonOffset_enable&&(di?N.enable(32823):N.disable(32823),ne.polygonOffset_enable=di),Ri=ht[0],yi=ht[1],(Ri!==Ue[0]||yi!==Ue[1])&&(N.polygonOffset(Ri,yi),Ue[0]=Ri,Ue[1]=yi),Ui=He.sample_alpha,Ui!==ne.sample_alpha&&(Ui?N.enable(32926):N.disable(32926),ne.sample_alpha=Ui),Li=He.sample_enable,Li!==ne.sample_enable&&(Li?N.enable(32928):N.disable(32928),ne.sample_enable=Li),Ei=Me[0],wi=Me[1],(Ei!==Be[0]||wi!==Be[1])&&(N.sampleCoverage(Ei,wi),Be[0]=Ei,Be[1]=wi),Ci=He.stencil_mask,Ci!==ne.stencil_mask&&(N.stencilMask(Ci),ne.stencil_mask=Ci),Di=ke[0],$i=ke[1],Gi=ke[2],(Di!==Te[0]||$i!==Te[1]||Gi!==Te[2])&&(N.stencilFunc(Di,$i,Gi),Te[0]=Di,Te[1]=$i,Te[2]=Gi),tn=ze[0],Wi=ze[1],qi=ze[2],Xi=ze[3],(tn!==Xe[0]||Wi!==Xe[1]||qi!==Xe[2]||Xi!==Xe[3])&&(N.stencilOpSeparate(tn,Wi,qi,Xi),Xe[0]=tn,Xe[1]=Wi,Xe[2]=qi,Xe[3]=Xi),un=ut[0],Qi=ut[1],sn=ut[2],xn=ut[3],(un!==at[0]||Qi!==at[1]||sn!==at[2]||xn!==at[3])&&(N.stencilOpSeparate(un,Qi,sn,xn),at[0]=un,at[1]=Qi,at[2]=sn,at[3]=xn),wn=He.scissor_enable,wn!==ne.scissor_enable&&(wn?N.enable(3089):N.disable(3089),ne.scissor_enable=wn)}pe=$e.framebufferWidth,Ce=$e.framebufferHeight,Qe=$e.viewportWidth,$e.viewportWidth=pe,Pe=$e.viewportHeight,$e.viewportHeight=Ce,N.viewport(0,0,pe,Ce),ve[0]=0,ve[1]=0,ve[2]=pe,ve[3]=Ce,l?N.enable(3042):N.disable(3042),ne.blend_enable=l,N.blendEquationSeparate(32774,32774),Ke[0]=32774,Ke[1]=32774,N.blendFuncSeparate(1,1,1,1),fe[0]=1,fe[1]=1,fe[2]=1,fe[3]=1,s?N.enable(2929):N.disable(2929),ne.depth_enable=s,N.depthMask(c),ne.depth_mask=c,ye=$e.framebufferWidth,mt=$e.framebufferHeight,N.scissor(0,0,ye,mt),it[0]=0,it[1]=0,it[2]=ye,it[3]=mt,d?N.enable(2960):N.disable(2960),ne.stencil_enable=d,wt=ne.profile,wt&&(Le=performance.now(),t.count++),N.useProgram(u.program),_t=Ee.angle_instanced_arrays,M.setVAO(null),bt=m.location,nt=ue[bt],nt.buffer||N.enableVertexAttribArray(bt),yt=2,(nt.type!==5126||nt.size!==yt||nt.buffer!==h||nt.normalized!==!1||nt.offset!==0||nt.stride!==0)&&(N.bindBuffer(34962,h.buffer),N.vertexAttribPointer(bt,yt,5126,!1,0,0),nt.type=5126,nt.size=yt,nt.buffer=h,nt.normalized=!1,nt.offset=0,nt.stride=0),nt.divisor!==0&&(_t.vertexAttribDivisorANGLE(bt,0),nt.divisor=0),Lt=g.call(this,$e,D,0),N.uniform1f(b.location,Lt),Tt=z.call(this,$e,D,0),N.uniform1f(_.location,Tt),Nt=y.call(this,$e,D,0),Nt&&Nt._reglType==="framebuffer"&&(Nt=Nt.color[0]),zt=Nt._texture,N.uniform1i(X.location,zt.bind()),Ut=T.call(this,$e,D,0),N.uniform1f(E.location,Ut),N.uniform1f(w.location,12),Mt=K.call(this,$e,D,0),Mt&&Mt._reglType==="framebuffer"&&(Mt=Mt.color[0]),Kt=Mt._texture,N.uniform1i(I.location,Kt.bind()),ei=Y.call(this,$e,D,0),N.uniform1f(U.location,ei),Jt=S.call(this,$e,D,0),N.uniform1f(J.location,Jt),Wt=ae.call(this,$e,D,0),N.uniform1f(Q.location,Wt),$t=me.elements,$t?N.bindBuffer(34963,$t.buffer.buffer):M.currentVAO&&($t=B.getElements(M.currentVAO.elements),$t&&N.bindBuffer(34963,$t.buffer.buffer)),Gt=me.offset,Ot=me.instances,Ot>0?$t?_t.drawElementsInstancedANGLE(5,4,$t.type,Gt<<($t.type-5121>>1),Ot):_t.drawArraysInstancedANGLE(5,Gt,4,Ot):Ot<0&&($t?N.drawElements(5,4,$t.type,Gt<<($t.type-5121>>1)):N.drawArrays(5,Gt,4)),ne.dirty=!0,M.setVAO(null),De.next=ce,$e.framebufferWidth=Oe,$e.framebufferHeight=Ye,$e.viewportWidth=Qe,$e.viewportHeight=Pe,wt&&(t.cpuTime+=performance.now()-Le),zt.unbind(),Kt.unbind()},scope:function(D,oe,xe){var ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn,wn;ce=n.call(this,$e,D,xe),Oe=De.getFramebuffer(ce),Ye=De.next,De.next=Oe,pe=$e.framebufferWidth,$e.framebufferWidth=Oe?Oe.width:$e.drawingBufferWidth,Ce=$e.framebufferHeight,$e.framebufferHeight=Oe?Oe.height:$e.drawingBufferHeight,Qe=$e.framebufferWidth,Pe=$e.framebufferHeight,ye=$e.viewportWidth,$e.viewportWidth=Qe,mt=$e.viewportHeight,$e.viewportHeight=Pe,wt=ct[0],ct[0]=x,Le=ct[1],ct[1]=A,_t=ct[2],ct[2]=Qe,bt=ct[3],ct[3]=Pe,nt=He.blend_enable,He.blend_enable=O,yt=lt[0],lt[0]=k,Lt=lt[1],lt[1]=C,Tt=tt[0],tt[0]=ee,Nt=tt[1],tt[1]=Re,zt=tt[2],tt[2]=ge,Ut=tt[3],tt[3]=F,Mt=He.depth_enable,He.depth_enable=H,Kt=He.depth_mask,He.depth_mask=R,ei=$e.framebufferWidth,Jt=$e.framebufferHeight,Wt=Je[0],Je[0]=$,$t=Je[1],Je[1]=q,Gt=Je[2],Je[2]=ei,Ot=Je[3],Je[3]=Jt,Bt=He.stencil_enable,He.stencil_enable=se,Zt=ne.profile,Zt&&(St=performance.now(),t.count++),Vt=me.count,me.count=te,Dt=me.primitive,me.primitive=qe,ii=le[we],le[we]=12,Pt=K.call(this,$e,D,xe),Qt=le[Se],le[Se]=Pt,xt=z.call(this,$e,D,xe),pt=le[G],le[G]=xt,vt=y.call(this,$e,D,xe),It=le[de],le[de]=vt,Ft=T.call(this,$e,D,xe),qt=le[Ae],le[Ae]=Ft,zi=g.call(this,$e,D,xe),Mi=le[W],le[W]=zi,di=Y.call(this,$e,D,xe),Ri=le[re],le[re]=di,yi=S.call(this,$e,D,xe),Ui=le[Rt],le[Rt]=yi,Li=ae.call(this,$e,D,xe),Ei=le[Ve],le[Ve]=Li,wi=Fe.state,Fe.state=1,Ci=Fe.x,Fe.x=0,Di=Fe.y,Fe.y=0,$i=Fe.z,Fe.z=0,Gi=Fe.w,Fe.w=0,tn=Fe.buffer,Fe.buffer=h,Wi=Fe.size,Fe.size=2,qi=Fe.normalized,Fe.normalized=!1,Xi=Fe.type,Fe.type=5126,un=Fe.offset,Fe.offset=0,Qi=Fe.stride,Fe.stride=0,sn=Fe.divisor,Fe.divisor=0,xn=j.vert,j.vert=he,wn=j.frag,j.frag=L,ne.dirty=!0,oe($e,D,xe),De.next=Ye,$e.framebufferWidth=pe,$e.framebufferHeight=Ce,$e.viewportWidth=ye,$e.viewportHeight=mt,ct[0]=wt,ct[1]=Le,ct[2]=_t,ct[3]=bt,He.blend_enable=nt,lt[0]=yt,lt[1]=Lt,tt[0]=Tt,tt[1]=Nt,tt[2]=zt,tt[3]=Ut,He.depth_enable=Mt,He.depth_mask=Kt,Je[0]=Wt,Je[1]=$t,Je[2]=Gt,Je[3]=Ot,He.stencil_enable=Bt,Zt&&(t.cpuTime+=performance.now()-St),me.count=Vt,me.primitive=Dt,le[we]=ii,le[Se]=Qt,le[G]=pt,le[de]=It,le[Ae]=qt,le[W]=Mi,le[re]=Ri,le[Rt]=Ui,le[Ve]=Ei,Fe.state=wi,Fe.x=Ci,Fe.y=Di,Fe.z=$i,Fe.w=Gi,Fe.buffer=tn,Fe.size=Wi,Fe.normalized=qi,Fe.type=Xi,Fe.offset=un,Fe.stride=Qi,Fe.divisor=sn,j.vert=xn,j.frag=wn,ne.dirty=!0},batch:function(D,oe){var xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt;if(Ee.angle_instanced_arrays,xe=n.call(this,$e,D,0),ce=De.getFramebuffer(xe),Oe=De.next,De.next=ce,Ye=$e.framebufferWidth,$e.framebufferWidth=ce?ce.width:$e.drawingBufferWidth,pe=$e.framebufferHeight,$e.framebufferHeight=ce?ce.height:$e.drawingBufferHeight,ce!==De.cur&&(ce?N.bindFramebuffer(36160,ce.framebuffer):N.bindFramebuffer(36160,null),De.cur=ce),ne.dirty){var Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi;Lt=He.dither,Lt!==ne.dither&&(Lt?N.enable(3024):N.disable(3024),ne.dither=Lt),Tt=ft[0],Nt=ft[1],zt=ft[2],Ut=ft[3],(Tt!==At[0]||Nt!==At[1]||zt!==At[2]||Ut!==At[3])&&(N.blendColor(Tt,Nt,zt,Ut),At[0]=Tt,At[1]=Nt,At[2]=zt,At[3]=Ut),Mt=He.depth_func,Mt!==ne.depth_func&&(N.depthFunc(Mt),ne.depth_func=Mt),Kt=je[0],ei=je[1],(Kt!==ot[0]||ei!==ot[1])&&(N.depthRange(Kt,ei),ot[0]=Kt,ot[1]=ei),Jt=Ne[0],Wt=Ne[1],$t=Ne[2],Gt=Ne[3],(Jt!==et[0]||Wt!==et[1]||$t!==et[2]||Gt!==et[3])&&(N.colorMask(Jt,Wt,$t,Gt),et[0]=Jt,et[1]=Wt,et[2]=$t,et[3]=Gt),Ot=He.cull_enable,Ot!==ne.cull_enable&&(Ot?N.enable(2884):N.disable(2884),ne.cull_enable=Ot),Bt=He.cull_face,Bt!==ne.cull_face&&(N.cullFace(Bt),ne.cull_face=Bt),Zt=He.frontFace,Zt!==ne.frontFace&&(N.frontFace(Zt),ne.frontFace=Zt),St=He.lineWidth,St!==ne.lineWidth&&(N.lineWidth(St),ne.lineWidth=St),Vt=He.polygonOffset_enable,Vt!==ne.polygonOffset_enable&&(Vt?N.enable(32823):N.disable(32823),ne.polygonOffset_enable=Vt),Dt=ht[0],ii=ht[1],(Dt!==Ue[0]||ii!==Ue[1])&&(N.polygonOffset(Dt,ii),Ue[0]=Dt,Ue[1]=ii),Pt=He.sample_alpha,Pt!==ne.sample_alpha&&(Pt?N.enable(32926):N.disable(32926),ne.sample_alpha=Pt),Qt=He.sample_enable,Qt!==ne.sample_enable&&(Qt?N.enable(32928):N.disable(32928),ne.sample_enable=Qt),xt=Me[0],pt=Me[1],(xt!==Be[0]||pt!==Be[1])&&(N.sampleCoverage(xt,pt),Be[0]=xt,Be[1]=pt),vt=He.stencil_mask,vt!==ne.stencil_mask&&(N.stencilMask(vt),ne.stencil_mask=vt),It=ke[0],Ft=ke[1],qt=ke[2],(It!==Te[0]||Ft!==Te[1]||qt!==Te[2])&&(N.stencilFunc(It,Ft,qt),Te[0]=It,Te[1]=Ft,Te[2]=qt),zi=ze[0],Mi=ze[1],di=ze[2],Ri=ze[3],(zi!==Xe[0]||Mi!==Xe[1]||di!==Xe[2]||Ri!==Xe[3])&&(N.stencilOpSeparate(zi,Mi,di,Ri),Xe[0]=zi,Xe[1]=Mi,Xe[2]=di,Xe[3]=Ri),yi=ut[0],Ui=ut[1],Li=ut[2],Ei=ut[3],(yi!==at[0]||Ui!==at[1]||Li!==at[2]||Ei!==at[3])&&(N.stencilOpSeparate(yi,Ui,Li,Ei),at[0]=yi,at[1]=Ui,at[2]=Li,at[3]=Ei),wi=He.scissor_enable,wi!==ne.scissor_enable&&(wi?N.enable(3089):N.disable(3089),ne.scissor_enable=wi)}Ce=$e.framebufferWidth,Qe=$e.framebufferHeight,Pe=$e.viewportWidth,$e.viewportWidth=Ce,ye=$e.viewportHeight,$e.viewportHeight=Qe,N.viewport(0,0,Ce,Qe),ve[0]=0,ve[1]=0,ve[2]=Ce,ve[3]=Qe,Z?N.enable(3042):N.disable(3042),ne.blend_enable=Z,N.blendEquationSeparate(32774,32774),Ke[0]=32774,Ke[1]=32774,N.blendFuncSeparate(1,1,1,1),fe[0]=1,fe[1]=1,fe[2]=1,fe[3]=1,ie?N.enable(2929):N.disable(2929),ne.depth_enable=ie,N.depthMask(be),ne.depth_mask=be,mt=$e.framebufferWidth,wt=$e.framebufferHeight,N.scissor(0,0,mt,wt),it[0]=0,it[1]=0,it[2]=mt,it[3]=wt,Ge?N.enable(2960):N.disable(2960),ne.stencil_enable=Ge,Le=ne.profile,Le&&(_t=performance.now(),t.count+=oe),N.useProgram(u.program),bt=Ee.angle_instanced_arrays;var Ci,Di,$i,Gi,tn,Wi,qi,Xi,un,Qi,sn,xn;for(M.setVAO(null),Ci=m.location,Di=ue[Ci],Di.buffer||N.enableVertexAttribArray(Ci),$i=2,(Di.type!==5126||Di.size!==$i||Di.buffer!==h||Di.normalized!==!1||Di.offset!==0||Di.stride!==0)&&(N.bindBuffer(34962,h.buffer),N.vertexAttribPointer(Ci,$i,5126,!1,0,0),Di.type=5126,Di.size=$i,Di.buffer=h,Di.normalized=!1,Di.offset=0,Di.stride=0),Di.divisor!==0&&(bt.vertexAttribDivisorANGLE(Ci,0),Di.divisor=0),Gi=g.call(this,$e,yt,nt),N.uniform1f(b.location,Gi),N.uniform1f(w.location,12),tn=K.call(this,$e,yt,nt),tn&&tn._reglType==="framebuffer"&&(tn=tn.color[0]),Wi=tn._texture,N.uniform1i(I.location,Wi.bind()),qi=Y.call(this,$e,yt,nt),N.uniform1f(U.location,qi),Xi=S.call(this,$e,yt,nt),N.uniform1f(J.location,Xi),un=ae.call(this,$e,yt,nt),N.uniform1f(Q.location,un),Qi=me.elements,Qi?N.bindBuffer(34963,Qi.buffer.buffer):M.currentVAO&&(Qi=B.getElements(M.currentVAO.elements),Qi&&N.bindBuffer(34963,Qi.buffer.buffer)),sn=me.offset,xn=me.instances,nt=0;nt<oe;++nt){yt=D[nt];var wn,fn,zn,Ln,Dn,Wn;wn=z.call(this,$e,yt,nt),(!nt||fn!==wn)&&(fn=wn,N.uniform1f(_.location,wn)),zn=y.call(this,$e,yt,nt),zn&&zn._reglType==="framebuffer"&&(zn=zn.color[0]),Ln=zn._texture,N.uniform1i(X.location,Ln.bind()),Dn=T.call(this,$e,yt,nt),(!nt||Wn!==Dn)&&(Wn=Dn,N.uniform1f(E.location,Dn)),xn>0?Qi?bt.drawElementsInstancedANGLE(5,4,Qi.type,sn<<(Qi.type-5121>>1),xn):bt.drawArraysInstancedANGLE(5,sn,4,xn):xn<0&&(Qi?N.drawElements(5,4,Qi.type,sn<<(Qi.type-5121>>1)):N.drawArrays(5,sn,4)),Ln.unbind()}Wi.unbind(),ne.dirty=!0,M.setVAO(null),De.next=Oe,$e.framebufferWidth=Ye,$e.framebufferHeight=pe,$e.viewportWidth=Pe,$e.viewportHeight=ye,Le&&(t.cpuTime+=performance.now()-_t)}}},"5164528162536a2d3935adfd876eb6915b6448abe41d002329c46590ce9a98e6":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe){var he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe;return he=e.gl,L=e.context,e.strings,Z=e.next,ie=e.current,be=e.draw,Ge=e.elements,e.buffer,N=e.shader,$e=e.attributes,He=e.vao,ne=e.uniforms,me=e.framebuffer,B=e.extensions,e.timer,e.isBufferArgs,j=Z.blend_color,ue=ie.blend_color,M=Z.blend_equation,le=ie.blend_equation,De=Z.blend_func,Ee=ie.blend_func,ft=Z.depth_range,At=ie.depth_range,lt=Z.colorMask,Ke=ie.colorMask,tt=Z.polygonOffset_offset,fe=ie.polygonOffset_offset,je=Z.sample_coverage,ot=ie.sample_coverage,Ne=Z.stencil_func,et=ie.stencil_func,ht=Z.stencil_opFront,Ue=ie.stencil_opFront,Me=Z.stencil_opBack,Be=ie.stencil_opBack,ke=Z.scissor_box,Te=ie.scissor_box,ze=Z.viewport,Xe=ie.viewport,{draw:function(ut){var at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt;if(B.angle_instanced_arrays,at=n.call(this,L,ut,0),Je=me.getFramebuffer(at),it=me.next,me.next=Je,ct=L.framebufferWidth,L.framebufferWidth=Je?Je.width:L.drawingBufferWidth,ve=L.framebufferHeight,L.framebufferHeight=Je?Je.height:L.drawingBufferHeight,Je!==me.cur&&(Je?he.bindFramebuffer(36160,Je.framebuffer):he.bindFramebuffer(36160,null),me.cur=Je),ie.dirty){var Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi;Kt=Z.dither,Kt!==ie.dither&&(Kt?he.enable(3024):he.disable(3024),ie.dither=Kt),ei=j[0],Jt=j[1],Wt=j[2],$t=j[3],(ei!==ue[0]||Jt!==ue[1]||Wt!==ue[2]||$t!==ue[3])&&(he.blendColor(ei,Jt,Wt,$t),ue[0]=ei,ue[1]=Jt,ue[2]=Wt,ue[3]=$t),Gt=Z.depth_func,Gt!==ie.depth_func&&(he.depthFunc(Gt),ie.depth_func=Gt),Ot=ft[0],Bt=ft[1],(Ot!==At[0]||Bt!==At[1])&&(he.depthRange(Ot,Bt),At[0]=Ot,At[1]=Bt),Zt=lt[0],St=lt[1],Vt=lt[2],Dt=lt[3],(Zt!==Ke[0]||St!==Ke[1]||Vt!==Ke[2]||Dt!==Ke[3])&&(he.colorMask(Zt,St,Vt,Dt),Ke[0]=Zt,Ke[1]=St,Ke[2]=Vt,Ke[3]=Dt),ii=Z.cull_enable,ii!==ie.cull_enable&&(ii?he.enable(2884):he.disable(2884),ie.cull_enable=ii),Pt=Z.cull_face,Pt!==ie.cull_face&&(he.cullFace(Pt),ie.cull_face=Pt),Qt=Z.frontFace,Qt!==ie.frontFace&&(he.frontFace(Qt),ie.frontFace=Qt),xt=Z.lineWidth,xt!==ie.lineWidth&&(he.lineWidth(xt),ie.lineWidth=xt),pt=Z.polygonOffset_enable,pt!==ie.polygonOffset_enable&&(pt?he.enable(32823):he.disable(32823),ie.polygonOffset_enable=pt),vt=tt[0],It=tt[1],(vt!==fe[0]||It!==fe[1])&&(he.polygonOffset(vt,It),fe[0]=vt,fe[1]=It),Ft=Z.sample_alpha,Ft!==ie.sample_alpha&&(Ft?he.enable(32926):he.disable(32926),ie.sample_alpha=Ft),qt=Z.sample_enable,qt!==ie.sample_enable&&(qt?he.enable(32928):he.disable(32928),ie.sample_enable=qt),zi=je[0],Mi=je[1],(zi!==ot[0]||Mi!==ot[1])&&(he.sampleCoverage(zi,Mi),ot[0]=zi,ot[1]=Mi),di=Z.stencil_mask,di!==ie.stencil_mask&&(he.stencilMask(di),ie.stencil_mask=di),Ri=Ne[0],yi=Ne[1],Ui=Ne[2],(Ri!==et[0]||yi!==et[1]||Ui!==et[2])&&(he.stencilFunc(Ri,yi,Ui),et[0]=Ri,et[1]=yi,et[2]=Ui),Li=ht[0],Ei=ht[1],wi=ht[2],Ci=ht[3],(Li!==Ue[0]||Ei!==Ue[1]||wi!==Ue[2]||Ci!==Ue[3])&&(he.stencilOpSeparate(Li,Ei,wi,Ci),Ue[0]=Li,Ue[1]=Ei,Ue[2]=wi,Ue[3]=Ci),Di=Me[0],$i=Me[1],Gi=Me[2],tn=Me[3],(Di!==Be[0]||$i!==Be[1]||Gi!==Be[2]||tn!==Be[3])&&(he.stencilOpSeparate(Di,$i,Gi,tn),Be[0]=Di,Be[1]=$i,Be[2]=Gi,Be[3]=tn),Wi=Z.scissor_enable,Wi!==ie.scissor_enable&&(Wi?he.enable(3089):he.disable(3089),ie.scissor_enable=Wi)}D=L.framebufferWidth,oe=L.framebufferHeight,xe=L.viewportWidth,L.viewportWidth=D,ce=L.viewportHeight,L.viewportHeight=oe,he.viewport(0,0,D,oe),Xe[0]=0,Xe[1]=0,Xe[2]=D,Xe[3]=oe,l?he.enable(3042):he.disable(3042),ie.blend_enable=l,he.blendEquationSeparate(32774,32774),le[0]=32774,le[1]=32774,he.blendFuncSeparate(1,1,1,1),Ee[0]=1,Ee[1]=1,Ee[2]=1,Ee[3]=1,s?he.enable(2929):he.disable(2929),ie.depth_enable=s,he.depthMask(c),ie.depth_mask=c,Oe=L.framebufferWidth,Ye=L.framebufferHeight,he.scissor(0,0,Oe,Ye),Te[0]=0,Te[1]=0,Te[2]=Oe,Te[3]=Ye,d?he.enable(2960):he.disable(2960),ie.stencil_enable=d,pe=ie.profile,pe&&(Ce=performance.now(),t.count++),he.useProgram(u.program),Qe=B.angle_instanced_arrays,He.setVAO(null),Pe=m.location,ye=$e[Pe],ye.buffer||he.enableVertexAttribArray(Pe),mt=2,(ye.type!==5126||ye.size!==mt||ye.buffer!==h||ye.normalized!==!1||ye.offset!==0||ye.stride!==0)&&(he.bindBuffer(34962,h.buffer),he.vertexAttribPointer(Pe,mt,5126,!1,0,0),ye.type=5126,ye.size=mt,ye.buffer=h,ye.normalized=!1,ye.offset=0,ye.stride=0),ye.divisor!==0&&(Qe.vertexAttribDivisorANGLE(Pe,0),ye.divisor=0),wt=g.call(this,L,ut,0),he.uniform1f(b.location,wt),Le=z.call(this,L,ut,0),Le&&Le._reglType==="framebuffer"&&(Le=Le.color[0]),_t=Le._texture,he.uniform1i(_.location,_t.bind()),bt=y.call(this,L,ut,0),he.uniform1f(X.location,bt),nt=T.call(this,L,ut,0),nt&&nt._reglType==="framebuffer"&&(nt=nt.color[0]),yt=nt._texture,he.uniform1i(E.location,yt.bind()),Lt=I.call(this,L,ut,0),Lt&&Lt._reglType==="framebuffer"&&(Lt=Lt.color[0]),Tt=Lt._texture,he.uniform1i(w.location,Tt.bind()),Nt=U.call(this,L,ut,0),he.uniform1f(K.location,Nt),zt=be.elements,zt?he.bindBuffer(34963,zt.buffer.buffer):He.currentVAO&&(zt=Ge.getElements(He.currentVAO.elements),zt&&he.bindBuffer(34963,zt.buffer.buffer)),Ut=be.offset,Mt=be.instances,Mt>0?zt?Qe.drawElementsInstancedANGLE(5,4,zt.type,Ut<<(zt.type-5121>>1),Mt):Qe.drawArraysInstancedANGLE(5,Ut,4,Mt):Mt<0&&(zt?he.drawElements(5,4,zt.type,Ut<<(zt.type-5121>>1)):he.drawArrays(5,Ut,4)),ie.dirty=!0,He.setVAO(null),me.next=it,L.framebufferWidth=ct,L.framebufferHeight=ve,L.viewportWidth=xe,L.viewportHeight=ce,pe&&(t.cpuTime+=performance.now()-Ce),_t.unbind(),yt.unbind(),Tt.unbind()},scope:function(ut,at,Je){var it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di,Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi;it=n.call(this,L,ut,Je),ct=me.getFramebuffer(it),ve=me.next,me.next=ct,D=L.framebufferWidth,L.framebufferWidth=ct?ct.width:L.drawingBufferWidth,oe=L.framebufferHeight,L.framebufferHeight=ct?ct.height:L.drawingBufferHeight,xe=L.framebufferWidth,ce=L.framebufferHeight,Oe=L.viewportWidth,L.viewportWidth=xe,Ye=L.viewportHeight,L.viewportHeight=ce,pe=ze[0],ze[0]=Y,Ce=ze[1],ze[1]=J,Qe=ze[2],ze[2]=xe,Pe=ze[3],ze[3]=ce,ye=Z.blend_enable,Z.blend_enable=S,mt=M[0],M[0]=Q,wt=M[1],M[1]=ae,Le=De[0],De[0]=x,_t=De[1],De[1]=A,bt=De[2],De[2]=O,nt=De[3],De[3]=k,yt=Z.depth_enable,Z.depth_enable=C,Lt=Z.depth_mask,Z.depth_mask=ee,Tt=L.framebufferWidth,Nt=L.framebufferHeight,zt=ke[0],ke[0]=Re,Ut=ke[1],ke[1]=ge,Mt=ke[2],ke[2]=Tt,Kt=ke[3],ke[3]=Nt,ei=Z.stencil_enable,Z.stencil_enable=F,Jt=ie.profile,Jt&&(Wt=performance.now(),t.count++),$t=be.count,be.count=H,Gt=be.primitive,be.primitive=R,Ot=T.call(this,L,ut,Je),Bt=ne[$],ne[$]=Ot,Zt=I.call(this,L,ut,Je),St=ne[q],ne[q]=Zt,Vt=z.call(this,L,ut,Je),Dt=ne[se],ne[se]=Vt,ii=y.call(this,L,ut,Je),Pt=ne[te],ne[te]=ii,Qt=g.call(this,L,ut,Je),xt=ne[qe],ne[qe]=Qt,pt=U.call(this,L,ut,Je),vt=ne[we],ne[we]=pt,It=Se.call(this,L,ut,Je),Ft=ne[G],ne[G]=It,qt=de.state,de.state=1,zi=de.x,de.x=0,Mi=de.y,de.y=0,di=de.z,de.z=0,Ri=de.w,de.w=0,yi=de.buffer,de.buffer=h,Ui=de.size,de.size=2,Li=de.normalized,de.normalized=!1,Ei=de.type,de.type=5126,wi=de.offset,de.offset=0,Ci=de.stride,de.stride=0,Di=de.divisor,de.divisor=0,$i=N.vert,N.vert=Ae,Gi=N.frag,N.frag=W,ie.dirty=!0,at(L,ut,Je),me.next=ve,L.framebufferWidth=D,L.framebufferHeight=oe,L.viewportWidth=Oe,L.viewportHeight=Ye,ze[0]=pe,ze[1]=Ce,ze[2]=Qe,ze[3]=Pe,Z.blend_enable=ye,M[0]=mt,M[1]=wt,De[0]=Le,De[1]=_t,De[2]=bt,De[3]=nt,Z.depth_enable=yt,Z.depth_mask=Lt,ke[0]=zt,ke[1]=Ut,ke[2]=Mt,ke[3]=Kt,Z.stencil_enable=ei,Jt&&(t.cpuTime+=performance.now()-Wt),be.count=$t,be.primitive=Gt,ne[$]=Bt,ne[q]=St,ne[se]=Dt,ne[te]=Pt,ne[qe]=xt,ne[we]=vt,ne[G]=Ft,de.state=qt,de.x=zi,de.y=Mi,de.z=di,de.w=Ri,de.buffer=yi,de.size=Ui,de.normalized=Li,de.type=Ei,de.offset=wi,de.stride=Ci,de.divisor=Di,N.vert=$i,N.frag=Gi,ie.dirty=!0},batch:function(ut,at){var Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt;if(B.angle_instanced_arrays,Je=n.call(this,L,ut,0),it=me.getFramebuffer(Je),ct=me.next,me.next=it,ve=L.framebufferWidth,L.framebufferWidth=it?it.width:L.drawingBufferWidth,D=L.framebufferHeight,L.framebufferHeight=it?it.height:L.drawingBufferHeight,it!==me.cur&&(it?he.bindFramebuffer(36160,it.framebuffer):he.bindFramebuffer(36160,null),me.cur=it),ie.dirty){var wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft,qt,zi,Mi,di;wt=Z.dither,wt!==ie.dither&&(wt?he.enable(3024):he.disable(3024),ie.dither=wt),Le=j[0],_t=j[1],bt=j[2],nt=j[3],(Le!==ue[0]||_t!==ue[1]||bt!==ue[2]||nt!==ue[3])&&(he.blendColor(Le,_t,bt,nt),ue[0]=Le,ue[1]=_t,ue[2]=bt,ue[3]=nt),yt=Z.depth_func,yt!==ie.depth_func&&(he.depthFunc(yt),ie.depth_func=yt),Lt=ft[0],Tt=ft[1],(Lt!==At[0]||Tt!==At[1])&&(he.depthRange(Lt,Tt),At[0]=Lt,At[1]=Tt),Nt=lt[0],zt=lt[1],Ut=lt[2],Mt=lt[3],(Nt!==Ke[0]||zt!==Ke[1]||Ut!==Ke[2]||Mt!==Ke[3])&&(he.colorMask(Nt,zt,Ut,Mt),Ke[0]=Nt,Ke[1]=zt,Ke[2]=Ut,Ke[3]=Mt),Kt=Z.cull_enable,Kt!==ie.cull_enable&&(Kt?he.enable(2884):he.disable(2884),ie.cull_enable=Kt),ei=Z.cull_face,ei!==ie.cull_face&&(he.cullFace(ei),ie.cull_face=ei),Jt=Z.frontFace,Jt!==ie.frontFace&&(he.frontFace(Jt),ie.frontFace=Jt),Wt=Z.lineWidth,Wt!==ie.lineWidth&&(he.lineWidth(Wt),ie.lineWidth=Wt),$t=Z.polygonOffset_enable,$t!==ie.polygonOffset_enable&&($t?he.enable(32823):he.disable(32823),ie.polygonOffset_enable=$t),Gt=tt[0],Ot=tt[1],(Gt!==fe[0]||Ot!==fe[1])&&(he.polygonOffset(Gt,Ot),fe[0]=Gt,fe[1]=Ot),Bt=Z.sample_alpha,Bt!==ie.sample_alpha&&(Bt?he.enable(32926):he.disable(32926),ie.sample_alpha=Bt),Zt=Z.sample_enable,Zt!==ie.sample_enable&&(Zt?he.enable(32928):he.disable(32928),ie.sample_enable=Zt),St=je[0],Vt=je[1],(St!==ot[0]||Vt!==ot[1])&&(he.sampleCoverage(St,Vt),ot[0]=St,ot[1]=Vt),Dt=Z.stencil_mask,Dt!==ie.stencil_mask&&(he.stencilMask(Dt),ie.stencil_mask=Dt),ii=Ne[0],Pt=Ne[1],Qt=Ne[2],(ii!==et[0]||Pt!==et[1]||Qt!==et[2])&&(he.stencilFunc(ii,Pt,Qt),et[0]=ii,et[1]=Pt,et[2]=Qt),xt=ht[0],pt=ht[1],vt=ht[2],It=ht[3],(xt!==Ue[0]||pt!==Ue[1]||vt!==Ue[2]||It!==Ue[3])&&(he.stencilOpSeparate(xt,pt,vt,It),Ue[0]=xt,Ue[1]=pt,Ue[2]=vt,Ue[3]=It),Ft=Me[0],qt=Me[1],zi=Me[2],Mi=Me[3],(Ft!==Be[0]||qt!==Be[1]||zi!==Be[2]||Mi!==Be[3])&&(he.stencilOpSeparate(Ft,qt,zi,Mi),Be[0]=Ft,Be[1]=qt,Be[2]=zi,Be[3]=Mi),di=Z.scissor_enable,di!==ie.scissor_enable&&(di?he.enable(3089):he.disable(3089),ie.scissor_enable=di)}oe=L.framebufferWidth,xe=L.framebufferHeight,ce=L.viewportWidth,L.viewportWidth=oe,Oe=L.viewportHeight,L.viewportHeight=xe,he.viewport(0,0,oe,xe),Xe[0]=0,Xe[1]=0,Xe[2]=oe,Xe[3]=xe,re?he.enable(3042):he.disable(3042),ie.blend_enable=re,he.blendEquationSeparate(32774,32774),le[0]=32774,le[1]=32774,he.blendFuncSeparate(1,1,1,1),Ee[0]=1,Ee[1]=1,Ee[2]=1,Ee[3]=1,Rt?he.enable(2929):he.disable(2929),ie.depth_enable=Rt,he.depthMask(Ve),ie.depth_mask=Ve,Ye=L.framebufferWidth,pe=L.framebufferHeight,he.scissor(0,0,Ye,pe),Te[0]=0,Te[1]=0,Te[2]=Ye,Te[3]=pe,Fe?he.enable(2960):he.disable(2960),ie.stencil_enable=Fe,Ce=ie.profile,Ce&&(Qe=performance.now(),t.count+=at),he.useProgram(u.program),Pe=B.angle_instanced_arrays;var Ri,yi,Ui,Li,Ei,wi,Ci,Di,$i,Gi,tn,Wi;for(He.setVAO(null),Ri=m.location,yi=$e[Ri],yi.buffer||he.enableVertexAttribArray(Ri),Ui=2,(yi.type!==5126||yi.size!==Ui||yi.buffer!==h||yi.normalized!==!1||yi.offset!==0||yi.stride!==0)&&(he.bindBuffer(34962,h.buffer),he.vertexAttribPointer(Ri,Ui,5126,!1,0,0),yi.type=5126,yi.size=Ui,yi.buffer=h,yi.normalized=!1,yi.offset=0,yi.stride=0),yi.divisor!==0&&(Pe.vertexAttribDivisorANGLE(Ri,0),yi.divisor=0),Li=g.call(this,L,mt,ye),he.uniform1f(b.location,Li),Ei=T.call(this,L,mt,ye),Ei&&Ei._reglType==="framebuffer"&&(Ei=Ei.color[0]),wi=Ei._texture,he.uniform1i(E.location,wi.bind()),Ci=I.call(this,L,mt,ye),Ci&&Ci._reglType==="framebuffer"&&(Ci=Ci.color[0]),Di=Ci._texture,he.uniform1i(w.location,Di.bind()),$i=U.call(this,L,mt,ye),he.uniform1f(K.location,$i),Gi=be.elements,Gi?he.bindBuffer(34963,Gi.buffer.buffer):He.currentVAO&&(Gi=Ge.getElements(He.currentVAO.elements),Gi&&he.bindBuffer(34963,Gi.buffer.buffer)),tn=be.offset,Wi=be.instances,ye=0;ye<at;++ye){mt=ut[ye];var qi,Xi,un,Qi;qi=z.call(this,L,mt,ye),qi&&qi._reglType==="framebuffer"&&(qi=qi.color[0]),Xi=qi._texture,he.uniform1i(_.location,Xi.bind()),un=y.call(this,L,mt,ye),(!ye||Qi!==un)&&(Qi=un,he.uniform1f(X.location,un)),Wi>0?Gi?Pe.drawElementsInstancedANGLE(5,4,Gi.type,tn<<(Gi.type-5121>>1),Wi):Pe.drawArraysInstancedANGLE(5,tn,4,Wi):Wi<0&&(Gi?he.drawElements(5,4,Gi.type,tn<<(Gi.type-5121>>1)):he.drawArrays(5,tn,4)),Xi.unbind()}wi.unbind(),Di.unbind(),ie.dirty=!0,He.setVAO(null),me.next=ct,L.framebufferWidth=ve,L.framebufferHeight=D,L.viewportWidth=ce,L.viewportHeight=Oe,Ce&&(t.cpuTime+=performance.now()-Qe)}}},"4c49c9fbc540a4c73ceaba3ffddb6429d780830bc23a82ffeb3dbfe550c35fdb":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$){var q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke;return q=e.gl,se=e.context,e.strings,te=e.next,qe=e.current,we=e.draw,Se=e.elements,e.buffer,G=e.shader,de=e.attributes,Ae=e.vao,W=e.uniforms,re=e.framebuffer,Rt=e.extensions,e.timer,e.isBufferArgs,Ve=te.blend_color,Fe=qe.blend_color,he=te.blend_equation,L=qe.blend_equation,Z=te.blend_func,ie=qe.blend_func,be=te.depth_range,Ge=qe.depth_range,N=te.colorMask,$e=qe.colorMask,He=te.polygonOffset_offset,ne=qe.polygonOffset_offset,me=te.sample_coverage,B=qe.sample_coverage,j=te.stencil_func,ue=qe.stencil_func,M=te.stencil_opFront,le=qe.stencil_opFront,De=te.stencil_opBack,Ee=qe.stencil_opBack,ft=te.scissor_box,At=qe.scissor_box,lt=te.viewport,Ke=qe.viewport,{draw:function(tt){var fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe;if(Rt.angle_instanced_arrays,fe=n.call(this,se,tt,0),je=re.getFramebuffer(fe),ot=re.next,re.next=je,Ne=se.framebufferWidth,se.framebufferWidth=je?je.width:se.drawingBufferWidth,et=se.framebufferHeight,se.framebufferHeight=je?je.height:se.drawingBufferHeight,je!==re.cur&&(je?q.bindFramebuffer(36160,je.framebuffer):q.bindFramebuffer(36160,null),re.cur=je),qe.dirty){var Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt;Ye=te.dither,Ye!==qe.dither&&(Ye?q.enable(3024):q.disable(3024),qe.dither=Ye),pe=Ve[0],Ce=Ve[1],Qe=Ve[2],Pe=Ve[3],(pe!==Fe[0]||Ce!==Fe[1]||Qe!==Fe[2]||Pe!==Fe[3])&&(q.blendColor(pe,Ce,Qe,Pe),Fe[0]=pe,Fe[1]=Ce,Fe[2]=Qe,Fe[3]=Pe),ye=te.depth_func,ye!==qe.depth_func&&(q.depthFunc(ye),qe.depth_func=ye),mt=be[0],wt=be[1],(mt!==Ge[0]||wt!==Ge[1])&&(q.depthRange(mt,wt),Ge[0]=mt,Ge[1]=wt),Le=N[0],_t=N[1],bt=N[2],nt=N[3],(Le!==$e[0]||_t!==$e[1]||bt!==$e[2]||nt!==$e[3])&&(q.colorMask(Le,_t,bt,nt),$e[0]=Le,$e[1]=_t,$e[2]=bt,$e[3]=nt),yt=te.cull_enable,yt!==qe.cull_enable&&(yt?q.enable(2884):q.disable(2884),qe.cull_enable=yt),Lt=te.cull_face,Lt!==qe.cull_face&&(q.cullFace(Lt),qe.cull_face=Lt),Tt=te.frontFace,Tt!==qe.frontFace&&(q.frontFace(Tt),qe.frontFace=Tt),Nt=te.lineWidth,Nt!==qe.lineWidth&&(q.lineWidth(Nt),qe.lineWidth=Nt),zt=te.polygonOffset_enable,zt!==qe.polygonOffset_enable&&(zt?q.enable(32823):q.disable(32823),qe.polygonOffset_enable=zt),Ut=He[0],Mt=He[1],(Ut!==ne[0]||Mt!==ne[1])&&(q.polygonOffset(Ut,Mt),ne[0]=Ut,ne[1]=Mt),Kt=te.sample_alpha,Kt!==qe.sample_alpha&&(Kt?q.enable(32926):q.disable(32926),qe.sample_alpha=Kt),ei=te.sample_enable,ei!==qe.sample_enable&&(ei?q.enable(32928):q.disable(32928),qe.sample_enable=ei),Jt=me[0],Wt=me[1],(Jt!==B[0]||Wt!==B[1])&&(q.sampleCoverage(Jt,Wt),B[0]=Jt,B[1]=Wt),$t=te.stencil_mask,$t!==qe.stencil_mask&&(q.stencilMask($t),qe.stencil_mask=$t),Gt=j[0],Ot=j[1],Bt=j[2],(Gt!==ue[0]||Ot!==ue[1]||Bt!==ue[2])&&(q.stencilFunc(Gt,Ot,Bt),ue[0]=Gt,ue[1]=Ot,ue[2]=Bt),Zt=M[0],St=M[1],Vt=M[2],Dt=M[3],(Zt!==le[0]||St!==le[1]||Vt!==le[2]||Dt!==le[3])&&(q.stencilOpSeparate(Zt,St,Vt,Dt),le[0]=Zt,le[1]=St,le[2]=Vt,le[3]=Dt),ii=De[0],Pt=De[1],Qt=De[2],xt=De[3],(ii!==Ee[0]||Pt!==Ee[1]||Qt!==Ee[2]||xt!==Ee[3])&&(q.stencilOpSeparate(ii,Pt,Qt,xt),Ee[0]=ii,Ee[1]=Pt,Ee[2]=Qt,Ee[3]=xt),pt=te.scissor_enable,pt!==qe.scissor_enable&&(pt?q.enable(3089):q.disable(3089),qe.scissor_enable=pt)}ht=se.framebufferWidth,Ue=se.framebufferHeight,Me=se.viewportWidth,se.viewportWidth=ht,Be=se.viewportHeight,se.viewportHeight=Ue,q.viewport(0,0,ht,Ue),Ke[0]=0,Ke[1]=0,Ke[2]=ht,Ke[3]=Ue,l?q.enable(3042):q.disable(3042),qe.blend_enable=l,q.blendEquationSeparate(32774,32774),L[0]=32774,L[1]=32774,q.blendFuncSeparate(1,1,1,1),ie[0]=1,ie[1]=1,ie[2]=1,ie[3]=1,s?q.enable(2929):q.disable(2929),qe.depth_enable=s,q.depthMask(c),qe.depth_mask=c,ke=se.framebufferWidth,Te=se.framebufferHeight,q.scissor(0,0,ke,Te),At[0]=0,At[1]=0,At[2]=ke,At[3]=Te,d?q.enable(2960):q.disable(2960),qe.stencil_enable=d,ze=qe.profile,ze&&(Xe=performance.now(),t.count++),q.useProgram(u.program),ut=Rt.angle_instanced_arrays,Ae.setVAO(null),at=m.location,Je=de[at],Je.buffer||q.enableVertexAttribArray(at),it=2,(Je.type!==5126||Je.size!==it||Je.buffer!==h||Je.normalized!==!1||Je.offset!==0||Je.stride!==0)&&(q.bindBuffer(34962,h.buffer),q.vertexAttribPointer(at,it,5126,!1,0,0),Je.type=5126,Je.size=it,Je.buffer=h,Je.normalized=!1,Je.offset=0,Je.stride=0),Je.divisor!==0&&(ut.vertexAttribDivisorANGLE(at,0),Je.divisor=0),ct=g.call(this,se,tt,0),q.uniform1f(b.location,ct),ve=z.call(this,se,tt,0),ve&&ve._reglType==="framebuffer"&&(ve=ve.color[0]),D=ve._texture,q.uniform1i(_.location,D.bind()),oe=we.elements,oe?q.bindBuffer(34963,oe.buffer.buffer):Ae.currentVAO&&(oe=Se.getElements(Ae.currentVAO.elements),oe&&q.bindBuffer(34963,oe.buffer.buffer)),xe=we.offset,ce=X.call(this,se,tt,0),ce&&(Oe=we.instances,Oe>0?oe?ut.drawElementsInstancedANGLE(0,ce,oe.type,xe<<(oe.type-5121>>1),Oe):ut.drawArraysInstancedANGLE(0,xe,ce,Oe):Oe<0&&(oe?q.drawElements(0,ce,oe.type,xe<<(oe.type-5121>>1)):q.drawArrays(0,xe,ce)),qe.dirty=!0,Ae.setVAO(null),re.next=ot,se.framebufferWidth=Ne,se.framebufferHeight=et,se.viewportWidth=Me,se.viewportHeight=Be,ze&&(t.cpuTime+=performance.now()-Xe),D.unbind())},scope:function(tt,fe,je){var ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt;ot=n.call(this,se,tt,je),Ne=re.getFramebuffer(ot),et=re.next,re.next=Ne,ht=se.framebufferWidth,se.framebufferWidth=Ne?Ne.width:se.drawingBufferWidth,Ue=se.framebufferHeight,se.framebufferHeight=Ne?Ne.height:se.drawingBufferHeight,Me=se.framebufferWidth,Be=se.framebufferHeight,ke=se.viewportWidth,se.viewportWidth=Me,Te=se.viewportHeight,se.viewportHeight=Be,ze=lt[0],lt[0]=y,Xe=lt[1],lt[1]=E,ut=lt[2],lt[2]=Me,at=lt[3],lt[3]=Be,Je=te.blend_enable,te.blend_enable=T,it=he[0],he[0]=w,ct=he[1],he[1]=I,ve=Z[0],Z[0]=K,D=Z[1],Z[1]=U,oe=Z[2],Z[2]=Y,xe=Z[3],Z[3]=J,ce=te.depth_enable,te.depth_enable=S,Oe=te.depth_mask,te.depth_mask=Q,Ye=se.framebufferWidth,pe=se.framebufferHeight,Ce=ft[0],ft[0]=ae,Qe=ft[1],ft[1]=x,Pe=ft[2],ft[2]=Ye,ye=ft[3],ft[3]=pe,mt=te.stencil_enable,te.stencil_enable=A,wt=qe.profile,wt&&(Le=performance.now(),t.count++),_t=X.call(this,se,tt,je),bt=we.count,we.count=_t,nt=we.primitive,we.primitive=O,yt=z.call(this,se,tt,je),Lt=W[k],W[k]=yt,Tt=g.call(this,se,tt,je),Nt=W[C],W[C]=Tt,zt=ee.state,ee.state=1,Ut=ee.x,ee.x=0,Mt=ee.y,ee.y=0,Kt=ee.z,ee.z=0,ei=ee.w,ee.w=0,Jt=ee.buffer,ee.buffer=h,Wt=ee.size,ee.size=2,$t=ee.normalized,ee.normalized=!1,Gt=ee.type,ee.type=5126,Ot=ee.offset,ee.offset=0,Bt=ee.stride,ee.stride=0,Zt=ee.divisor,ee.divisor=0,St=G.vert,G.vert=Re,Vt=G.frag,G.frag=ge,qe.dirty=!0,fe(se,tt,je),re.next=et,se.framebufferWidth=ht,se.framebufferHeight=Ue,se.viewportWidth=ke,se.viewportHeight=Te,lt[0]=ze,lt[1]=Xe,lt[2]=ut,lt[3]=at,te.blend_enable=Je,he[0]=it,he[1]=ct,Z[0]=ve,Z[1]=D,Z[2]=oe,Z[3]=xe,te.depth_enable=ce,te.depth_mask=Oe,ft[0]=Ce,ft[1]=Qe,ft[2]=Pe,ft[3]=ye,te.stencil_enable=mt,wt&&(t.cpuTime+=performance.now()-Le),we.count=bt,we.primitive=nt,W[k]=Lt,W[C]=Nt,ee.state=zt,ee.x=Ut,ee.y=Mt,ee.z=Kt,ee.w=ei,ee.buffer=Jt,ee.size=Wt,ee.normalized=$t,ee.type=Gt,ee.offset=Ot,ee.stride=Bt,ee.divisor=Zt,G.vert=St,G.frag=Vt,qe.dirty=!0},batch:function(tt,fe){var je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it;if(Rt.angle_instanced_arrays,je=n.call(this,se,tt,0),ot=re.getFramebuffer(je),Ne=re.next,re.next=ot,et=se.framebufferWidth,se.framebufferWidth=ot?ot.width:se.drawingBufferWidth,ht=se.framebufferHeight,se.framebufferHeight=ot?ot.height:se.drawingBufferHeight,ot!==re.cur&&(ot?q.bindFramebuffer(36160,ot.framebuffer):q.bindFramebuffer(36160,null),re.cur=ot),qe.dirty){var ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St;ct=te.dither,ct!==qe.dither&&(ct?q.enable(3024):q.disable(3024),qe.dither=ct),ve=Ve[0],D=Ve[1],oe=Ve[2],xe=Ve[3],(ve!==Fe[0]||D!==Fe[1]||oe!==Fe[2]||xe!==Fe[3])&&(q.blendColor(ve,D,oe,xe),Fe[0]=ve,Fe[1]=D,Fe[2]=oe,Fe[3]=xe),ce=te.depth_func,ce!==qe.depth_func&&(q.depthFunc(ce),qe.depth_func=ce),Oe=be[0],Ye=be[1],(Oe!==Ge[0]||Ye!==Ge[1])&&(q.depthRange(Oe,Ye),Ge[0]=Oe,Ge[1]=Ye),pe=N[0],Ce=N[1],Qe=N[2],Pe=N[3],(pe!==$e[0]||Ce!==$e[1]||Qe!==$e[2]||Pe!==$e[3])&&(q.colorMask(pe,Ce,Qe,Pe),$e[0]=pe,$e[1]=Ce,$e[2]=Qe,$e[3]=Pe),ye=te.cull_enable,ye!==qe.cull_enable&&(ye?q.enable(2884):q.disable(2884),qe.cull_enable=ye),mt=te.cull_face,mt!==qe.cull_face&&(q.cullFace(mt),qe.cull_face=mt),wt=te.frontFace,wt!==qe.frontFace&&(q.frontFace(wt),qe.frontFace=wt),Le=te.lineWidth,Le!==qe.lineWidth&&(q.lineWidth(Le),qe.lineWidth=Le),_t=te.polygonOffset_enable,_t!==qe.polygonOffset_enable&&(_t?q.enable(32823):q.disable(32823),qe.polygonOffset_enable=_t),bt=He[0],nt=He[1],(bt!==ne[0]||nt!==ne[1])&&(q.polygonOffset(bt,nt),ne[0]=bt,ne[1]=nt),yt=te.sample_alpha,yt!==qe.sample_alpha&&(yt?q.enable(32926):q.disable(32926),qe.sample_alpha=yt),Lt=te.sample_enable,Lt!==qe.sample_enable&&(Lt?q.enable(32928):q.disable(32928),qe.sample_enable=Lt),Tt=me[0],Nt=me[1],(Tt!==B[0]||Nt!==B[1])&&(q.sampleCoverage(Tt,Nt),B[0]=Tt,B[1]=Nt),zt=te.stencil_mask,zt!==qe.stencil_mask&&(q.stencilMask(zt),qe.stencil_mask=zt),Ut=j[0],Mt=j[1],Kt=j[2],(Ut!==ue[0]||Mt!==ue[1]||Kt!==ue[2])&&(q.stencilFunc(Ut,Mt,Kt),ue[0]=Ut,ue[1]=Mt,ue[2]=Kt),ei=M[0],Jt=M[1],Wt=M[2],$t=M[3],(ei!==le[0]||Jt!==le[1]||Wt!==le[2]||$t!==le[3])&&(q.stencilOpSeparate(ei,Jt,Wt,$t),le[0]=ei,le[1]=Jt,le[2]=Wt,le[3]=$t),Gt=De[0],Ot=De[1],Bt=De[2],Zt=De[3],(Gt!==Ee[0]||Ot!==Ee[1]||Bt!==Ee[2]||Zt!==Ee[3])&&(q.stencilOpSeparate(Gt,Ot,Bt,Zt),Ee[0]=Gt,Ee[1]=Ot,Ee[2]=Bt,Ee[3]=Zt),St=te.scissor_enable,St!==qe.scissor_enable&&(St?q.enable(3089):q.disable(3089),qe.scissor_enable=St)}Ue=se.framebufferWidth,Me=se.framebufferHeight,Be=se.viewportWidth,se.viewportWidth=Ue,ke=se.viewportHeight,se.viewportHeight=Me,q.viewport(0,0,Ue,Me),Ke[0]=0,Ke[1]=0,Ke[2]=Ue,Ke[3]=Me,F?q.enable(3042):q.disable(3042),qe.blend_enable=F,q.blendEquationSeparate(32774,32774),L[0]=32774,L[1]=32774,q.blendFuncSeparate(1,1,1,1),ie[0]=1,ie[1]=1,ie[2]=1,ie[3]=1,H?q.enable(2929):q.disable(2929),qe.depth_enable=H,q.depthMask(R),qe.depth_mask=R,Te=se.framebufferWidth,ze=se.framebufferHeight,q.scissor(0,0,Te,ze),At[0]=0,At[1]=0,At[2]=Te,At[3]=ze,$?q.enable(2960):q.disable(2960),qe.stencil_enable=$,Xe=qe.profile,Xe&&(ut=performance.now(),t.count+=fe),q.useProgram(u.program),at=Rt.angle_instanced_arrays;var Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft;for(Ae.setVAO(null),Vt=m.location,Dt=de[Vt],Dt.buffer||q.enableVertexAttribArray(Vt),ii=2,(Dt.type!==5126||Dt.size!==ii||Dt.buffer!==h||Dt.normalized!==!1||Dt.offset!==0||Dt.stride!==0)&&(q.bindBuffer(34962,h.buffer),q.vertexAttribPointer(Vt,ii,5126,!1,0,0),Dt.type=5126,Dt.size=ii,Dt.buffer=h,Dt.normalized=!1,Dt.offset=0,Dt.stride=0),Dt.divisor!==0&&(at.vertexAttribDivisorANGLE(Vt,0),Dt.divisor=0),Pt=g.call(this,se,it,Je),q.uniform1f(b.location,Pt),Qt=z.call(this,se,it,Je),Qt&&Qt._reglType==="framebuffer"&&(Qt=Qt.color[0]),xt=Qt._texture,q.uniform1i(_.location,xt.bind()),pt=we.elements,pt?q.bindBuffer(34963,pt.buffer.buffer):Ae.currentVAO&&(pt=Se.getElements(Ae.currentVAO.elements),pt&&q.bindBuffer(34963,pt.buffer.buffer)),vt=we.offset,It=X.call(this,se,it,Je),Ft=we.instances,Je=0;Je<fe;++Je)it=tt[Je],It&&(Ft>0?pt?at.drawElementsInstancedANGLE(0,It,pt.type,vt<<(pt.type-5121>>1),Ft):at.drawArraysInstancedANGLE(0,vt,It,Ft):Ft<0&&(pt?q.drawElements(0,It,pt.type,vt<<(pt.type-5121>>1)):q.drawArrays(0,vt,It)));xt.unbind(),qe.dirty=!0,Ae.setVAO(null),re.next=Ne,se.framebufferWidth=et,se.framebufferHeight=ht,se.viewportWidth=Be,se.viewportHeight=ke,Xe&&(t.cpuTime+=performance.now()-ut)}}},"21f35e0b5f6b6b998967928bf1cb4872a9803004bf6455ca860fe126500cf347":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae){var x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne;return x=e.gl,A=e.context,e.strings,O=e.next,k=e.current,C=e.draw,ee=e.elements,e.buffer,Re=e.shader,ge=e.attributes,F=e.vao,H=e.uniforms,R=e.framebuffer,$=e.extensions,e.timer,e.isBufferArgs,q=O.blend_color,se=k.blend_color,te=O.blend_equation,qe=k.blend_equation,we=O.blend_func,Se=k.blend_func,G=O.depth_range,de=k.depth_range,Ae=O.colorMask,W=k.colorMask,re=O.polygonOffset_offset,Rt=k.polygonOffset_offset,Ve=O.sample_coverage,Fe=k.sample_coverage,he=O.stencil_func,L=k.stencil_func,Z=O.stencil_opFront,ie=k.stencil_opFront,be=O.stencil_opBack,Ge=k.stencil_opBack,N=O.scissor_box,$e=k.scissor_box,He=O.viewport,ne=k.viewport,{draw:function(me){var B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut;if($.angle_instanced_arrays,B=n.call(this,A,me,0),j=R.getFramebuffer(B),ue=R.next,R.next=j,M=A.framebufferWidth,A.framebufferWidth=j?j.width:A.drawingBufferWidth,le=A.framebufferHeight,A.framebufferHeight=j?j.height:A.drawingBufferHeight,j!==R.cur&&(j?x.bindFramebuffer(36160,j.framebuffer):x.bindFramebuffer(36160,null),R.cur=j),k.dirty){var at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt,Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt;at=O.dither,at!==k.dither&&(at?x.enable(3024):x.disable(3024),k.dither=at),Je=O.blend_enable,Je!==k.blend_enable&&(Je?x.enable(3042):x.disable(3042),k.blend_enable=Je),it=q[0],ct=q[1],ve=q[2],D=q[3],(it!==se[0]||ct!==se[1]||ve!==se[2]||D!==se[3])&&(x.blendColor(it,ct,ve,D),se[0]=it,se[1]=ct,se[2]=ve,se[3]=D),oe=te[0],xe=te[1],(oe!==qe[0]||xe!==qe[1])&&(x.blendEquationSeparate(oe,xe),qe[0]=oe,qe[1]=xe),ce=we[0],Oe=we[1],Ye=we[2],pe=we[3],(ce!==Se[0]||Oe!==Se[1]||Ye!==Se[2]||pe!==Se[3])&&(x.blendFuncSeparate(ce,Oe,Ye,pe),Se[0]=ce,Se[1]=Oe,Se[2]=Ye,Se[3]=pe),Ce=O.depth_enable,Ce!==k.depth_enable&&(Ce?x.enable(2929):x.disable(2929),k.depth_enable=Ce),Qe=O.depth_func,Qe!==k.depth_func&&(x.depthFunc(Qe),k.depth_func=Qe),Pe=G[0],ye=G[1],(Pe!==de[0]||ye!==de[1])&&(x.depthRange(Pe,ye),de[0]=Pe,de[1]=ye),mt=O.depth_mask,mt!==k.depth_mask&&(x.depthMask(mt),k.depth_mask=mt),wt=Ae[0],Le=Ae[1],_t=Ae[2],bt=Ae[3],(wt!==W[0]||Le!==W[1]||_t!==W[2]||bt!==W[3])&&(x.colorMask(wt,Le,_t,bt),W[0]=wt,W[1]=Le,W[2]=_t,W[3]=bt),nt=O.cull_enable,nt!==k.cull_enable&&(nt?x.enable(2884):x.disable(2884),k.cull_enable=nt),yt=O.cull_face,yt!==k.cull_face&&(x.cullFace(yt),k.cull_face=yt),Lt=O.frontFace,Lt!==k.frontFace&&(x.frontFace(Lt),k.frontFace=Lt),Tt=O.lineWidth,Tt!==k.lineWidth&&(x.lineWidth(Tt),k.lineWidth=Tt),Nt=O.polygonOffset_enable,Nt!==k.polygonOffset_enable&&(Nt?x.enable(32823):x.disable(32823),k.polygonOffset_enable=Nt),zt=re[0],Ut=re[1],(zt!==Rt[0]||Ut!==Rt[1])&&(x.polygonOffset(zt,Ut),Rt[0]=zt,Rt[1]=Ut),Mt=O.sample_alpha,Mt!==k.sample_alpha&&(Mt?x.enable(32926):x.disable(32926),k.sample_alpha=Mt),Kt=O.sample_enable,Kt!==k.sample_enable&&(Kt?x.enable(32928):x.disable(32928),k.sample_enable=Kt),ei=Ve[0],Jt=Ve[1],(ei!==Fe[0]||Jt!==Fe[1])&&(x.sampleCoverage(ei,Jt),Fe[0]=ei,Fe[1]=Jt),Wt=O.stencil_enable,Wt!==k.stencil_enable&&(Wt?x.enable(2960):x.disable(2960),k.stencil_enable=Wt),$t=O.stencil_mask,$t!==k.stencil_mask&&(x.stencilMask($t),k.stencil_mask=$t),Gt=he[0],Ot=he[1],Bt=he[2],(Gt!==L[0]||Ot!==L[1]||Bt!==L[2])&&(x.stencilFunc(Gt,Ot,Bt),L[0]=Gt,L[1]=Ot,L[2]=Bt),Zt=Z[0],St=Z[1],Vt=Z[2],Dt=Z[3],(Zt!==ie[0]||St!==ie[1]||Vt!==ie[2]||Dt!==ie[3])&&(x.stencilOpSeparate(Zt,St,Vt,Dt),ie[0]=Zt,ie[1]=St,ie[2]=Vt,ie[3]=Dt),ii=be[0],Pt=be[1],Qt=be[2],xt=be[3],(ii!==Ge[0]||Pt!==Ge[1]||Qt!==Ge[2]||xt!==Ge[3])&&(x.stencilOpSeparate(ii,Pt,Qt,xt),Ge[0]=ii,Ge[1]=Pt,Ge[2]=Qt,Ge[3]=xt),pt=O.scissor_enable,pt!==k.scissor_enable&&(pt?x.enable(3089):x.disable(3089),k.scissor_enable=pt)}De=A.framebufferWidth,Ee=A.framebufferHeight,ft=A.viewportWidth,A.viewportWidth=De,At=A.viewportHeight,A.viewportHeight=Ee,x.viewport(0,0,De,Ee),ne[0]=0,ne[1]=0,ne[2]=De,ne[3]=Ee,lt=A.framebufferWidth,Ke=A.framebufferHeight,x.scissor(0,0,lt,Ke),$e[0]=0,$e[1]=0,$e[2]=lt,$e[3]=Ke,tt=k.profile,tt&&(fe=performance.now(),t.count++),x.useProgram(l.program),je=$.angle_instanced_arrays,F.setVAO(null),ot=c.location,Ne=ge[ot],Ne.buffer||x.enableVertexAttribArray(ot),et=2,(Ne.type!==5126||Ne.size!==et||Ne.buffer!==s||Ne.normalized!==!1||Ne.offset!==0||Ne.stride!==0)&&(x.bindBuffer(34962,s.buffer),x.vertexAttribPointer(ot,et,5126,!1,0,0),Ne.type=5126,Ne.size=et,Ne.buffer=s,Ne.normalized=!1,Ne.offset=0,Ne.stride=0),Ne.divisor!==0&&(je.vertexAttribDivisorANGLE(ot,0),Ne.divisor=0),ht=u.call(this,A,me,0),x.uniform1f(d.location,ht),Ue=m.call(this,A,me,0),x.uniform1f(h.location,Ue),Me=g.call(this,A,me,0),Me&&Me._reglType==="framebuffer"&&(Me=Me.color[0]),Be=Me._texture,x.uniform1i(b.location,Be.bind()),ke=z.call(this,A,me,0),ke&&ke._reglType==="framebuffer"&&(ke=ke.color[0]),Te=ke._texture,x.uniform1i(_.location,Te.bind()),ze=C.elements,ze?x.bindBuffer(34963,ze.buffer.buffer):F.currentVAO&&(ze=ee.getElements(F.currentVAO.elements),ze&&x.bindBuffer(34963,ze.buffer.buffer)),Xe=C.offset,ut=C.instances,ut>0?ze?je.drawElementsInstancedANGLE(5,4,ze.type,Xe<<(ze.type-5121>>1),ut):je.drawArraysInstancedANGLE(5,Xe,4,ut):ut<0&&(ze?x.drawElements(5,4,ze.type,Xe<<(ze.type-5121>>1)):x.drawArrays(5,Xe,4)),k.dirty=!0,F.setVAO(null),R.next=ue,A.framebufferWidth=M,A.framebufferHeight=le,A.viewportWidth=ft,A.viewportHeight=At,tt&&(t.cpuTime+=performance.now()-fe),Be.unbind(),Te.unbind()},scope:function(me,B,j){var ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt;ue=n.call(this,A,me,j),M=R.getFramebuffer(ue),le=R.next,R.next=M,De=A.framebufferWidth,A.framebufferWidth=M?M.width:A.drawingBufferWidth,Ee=A.framebufferHeight,A.framebufferHeight=M?M.height:A.drawingBufferHeight,ft=A.framebufferWidth,At=A.framebufferHeight,lt=A.viewportWidth,A.viewportWidth=ft,Ke=A.viewportHeight,A.viewportHeight=At,tt=He[0],He[0]=X,fe=He[1],He[1]=y,je=He[2],He[2]=ft,ot=He[3],He[3]=At,Ne=A.framebufferWidth,et=A.framebufferHeight,ht=N[0],N[0]=E,Ue=N[1],N[1]=T,Me=N[2],N[2]=Ne,Be=N[3],N[3]=et,ke=k.profile,ke&&(Te=performance.now(),t.count++),ze=C.count,C.count=w,Xe=C.primitive,C.primitive=I,ut=z.call(this,A,me,j),at=H[K],H[K]=ut,Je=g.call(this,A,me,j),it=H[U],H[U]=Je,ct=m.call(this,A,me,j),ve=H[Y],H[Y]=ct,D=u.call(this,A,me,j),oe=H[J],H[J]=D,xe=S.state,S.state=1,ce=S.x,S.x=0,Oe=S.y,S.y=0,Ye=S.z,S.z=0,pe=S.w,S.w=0,Ce=S.buffer,S.buffer=s,Qe=S.size,S.size=2,Pe=S.normalized,S.normalized=!1,ye=S.type,S.type=5126,mt=S.offset,S.offset=0,wt=S.stride,S.stride=0,Le=S.divisor,S.divisor=0,_t=Re.vert,Re.vert=Q,bt=Re.frag,Re.frag=ae,k.dirty=!0,B(A,me,j),R.next=le,A.framebufferWidth=De,A.framebufferHeight=Ee,A.viewportWidth=lt,A.viewportHeight=Ke,He[0]=tt,He[1]=fe,He[2]=je,He[3]=ot,N[0]=ht,N[1]=Ue,N[2]=Me,N[3]=Be,ke&&(t.cpuTime+=performance.now()-Te),C.count=ze,C.primitive=Xe,H[K]=at,H[U]=it,H[Y]=ve,H[J]=oe,S.state=xe,S.x=ce,S.y=Oe,S.z=Ye,S.w=pe,S.buffer=Ce,S.size=Qe,S.normalized=Pe,S.type=ye,S.offset=mt,S.stride=wt,S.divisor=Le,Re.vert=_t,Re.frag=bt,k.dirty=!0},batch:function(me,B){var j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et;if($.angle_instanced_arrays,j=n.call(this,A,me,0),ue=R.getFramebuffer(j),M=R.next,R.next=ue,le=A.framebufferWidth,A.framebufferWidth=ue?ue.width:A.drawingBufferWidth,De=A.framebufferHeight,A.framebufferHeight=ue?ue.height:A.drawingBufferHeight,ue!==R.cur&&(ue?x.bindFramebuffer(36160,ue.framebuffer):x.bindFramebuffer(36160,null),R.cur=ue),k.dirty){var ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt,wt,Le,_t,bt,nt,yt,Lt,Tt,Nt,zt,Ut,Mt,Kt,ei,Jt,Wt,$t,Gt,Ot,Bt;ht=O.dither,ht!==k.dither&&(ht?x.enable(3024):x.disable(3024),k.dither=ht),Ue=O.blend_enable,Ue!==k.blend_enable&&(Ue?x.enable(3042):x.disable(3042),k.blend_enable=Ue),Me=q[0],Be=q[1],ke=q[2],Te=q[3],(Me!==se[0]||Be!==se[1]||ke!==se[2]||Te!==se[3])&&(x.blendColor(Me,Be,ke,Te),se[0]=Me,se[1]=Be,se[2]=ke,se[3]=Te),ze=te[0],Xe=te[1],(ze!==qe[0]||Xe!==qe[1])&&(x.blendEquationSeparate(ze,Xe),qe[0]=ze,qe[1]=Xe),ut=we[0],at=we[1],Je=we[2],it=we[3],(ut!==Se[0]||at!==Se[1]||Je!==Se[2]||it!==Se[3])&&(x.blendFuncSeparate(ut,at,Je,it),Se[0]=ut,Se[1]=at,Se[2]=Je,Se[3]=it),ct=O.depth_enable,ct!==k.depth_enable&&(ct?x.enable(2929):x.disable(2929),k.depth_enable=ct),ve=O.depth_func,ve!==k.depth_func&&(x.depthFunc(ve),k.depth_func=ve),D=G[0],oe=G[1],(D!==de[0]||oe!==de[1])&&(x.depthRange(D,oe),de[0]=D,de[1]=oe),xe=O.depth_mask,xe!==k.depth_mask&&(x.depthMask(xe),k.depth_mask=xe),ce=Ae[0],Oe=Ae[1],Ye=Ae[2],pe=Ae[3],(ce!==W[0]||Oe!==W[1]||Ye!==W[2]||pe!==W[3])&&(x.colorMask(ce,Oe,Ye,pe),W[0]=ce,W[1]=Oe,W[2]=Ye,W[3]=pe),Ce=O.cull_enable,Ce!==k.cull_enable&&(Ce?x.enable(2884):x.disable(2884),k.cull_enable=Ce),Qe=O.cull_face,Qe!==k.cull_face&&(x.cullFace(Qe),k.cull_face=Qe),Pe=O.frontFace,Pe!==k.frontFace&&(x.frontFace(Pe),k.frontFace=Pe),ye=O.lineWidth,ye!==k.lineWidth&&(x.lineWidth(ye),k.lineWidth=ye),mt=O.polygonOffset_enable,mt!==k.polygonOffset_enable&&(mt?x.enable(32823):x.disable(32823),k.polygonOffset_enable=mt),wt=re[0],Le=re[1],(wt!==Rt[0]||Le!==Rt[1])&&(x.polygonOffset(wt,Le),Rt[0]=wt,Rt[1]=Le),_t=O.sample_alpha,_t!==k.sample_alpha&&(_t?x.enable(32926):x.disable(32926),k.sample_alpha=_t),bt=O.sample_enable,bt!==k.sample_enable&&(bt?x.enable(32928):x.disable(32928),k.sample_enable=bt),nt=Ve[0],yt=Ve[1],(nt!==Fe[0]||yt!==Fe[1])&&(x.sampleCoverage(nt,yt),Fe[0]=nt,Fe[1]=yt),Lt=O.stencil_enable,Lt!==k.stencil_enable&&(Lt?x.enable(2960):x.disable(2960),k.stencil_enable=Lt),Tt=O.stencil_mask,Tt!==k.stencil_mask&&(x.stencilMask(Tt),k.stencil_mask=Tt),Nt=he[0],zt=he[1],Ut=he[2],(Nt!==L[0]||zt!==L[1]||Ut!==L[2])&&(x.stencilFunc(Nt,zt,Ut),L[0]=Nt,L[1]=zt,L[2]=Ut),Mt=Z[0],Kt=Z[1],ei=Z[2],Jt=Z[3],(Mt!==ie[0]||Kt!==ie[1]||ei!==ie[2]||Jt!==ie[3])&&(x.stencilOpSeparate(Mt,Kt,ei,Jt),ie[0]=Mt,ie[1]=Kt,ie[2]=ei,ie[3]=Jt),Wt=be[0],$t=be[1],Gt=be[2],Ot=be[3],(Wt!==Ge[0]||$t!==Ge[1]||Gt!==Ge[2]||Ot!==Ge[3])&&(x.stencilOpSeparate(Wt,$t,Gt,Ot),Ge[0]=Wt,Ge[1]=$t,Ge[2]=Gt,Ge[3]=Ot),Bt=O.scissor_enable,Bt!==k.scissor_enable&&(Bt?x.enable(3089):x.disable(3089),k.scissor_enable=Bt)}Ee=A.framebufferWidth,ft=A.framebufferHeight,At=A.viewportWidth,A.viewportWidth=Ee,lt=A.viewportHeight,A.viewportHeight=ft,x.viewport(0,0,Ee,ft),ne[0]=0,ne[1]=0,ne[2]=Ee,ne[3]=ft,Ke=A.framebufferWidth,tt=A.framebufferHeight,x.scissor(0,0,Ke,tt),$e[0]=0,$e[1]=0,$e[2]=Ke,$e[3]=tt,fe=k.profile,fe&&(je=performance.now(),t.count+=B),x.useProgram(l.program),ot=$.angle_instanced_arrays;var Zt,St,Vt,Dt,ii,Pt,Qt,xt,pt,vt,It,Ft;for(F.setVAO(null),Zt=c.location,St=ge[Zt],St.buffer||x.enableVertexAttribArray(Zt),Vt=2,(St.type!==5126||St.size!==Vt||St.buffer!==s||St.normalized!==!1||St.offset!==0||St.stride!==0)&&(x.bindBuffer(34962,s.buffer),x.vertexAttribPointer(Zt,Vt,5126,!1,0,0),St.type=5126,St.size=Vt,St.buffer=s,St.normalized=!1,St.offset=0,St.stride=0),St.divisor!==0&&(ot.vertexAttribDivisorANGLE(Zt,0),St.divisor=0),Dt=u.call(this,A,et,Ne),x.uniform1f(d.location,Dt),ii=m.call(this,A,et,Ne),x.uniform1f(h.location,ii),Pt=g.call(this,A,et,Ne),Pt&&Pt._reglType==="framebuffer"&&(Pt=Pt.color[0]),Qt=Pt._texture,x.uniform1i(b.location,Qt.bind()),xt=z.call(this,A,et,Ne),xt&&xt._reglType==="framebuffer"&&(xt=xt.color[0]),pt=xt._texture,x.uniform1i(_.location,pt.bind()),vt=C.elements,vt?x.bindBuffer(34963,vt.buffer.buffer):F.currentVAO&&(vt=ee.getElements(F.currentVAO.elements),vt&&x.bindBuffer(34963,vt.buffer.buffer)),It=C.offset,Ft=C.instances,Ne=0;Ne<B;++Ne)et=me[Ne],Ft>0?vt?ot.drawElementsInstancedANGLE(5,4,vt.type,It<<(vt.type-5121>>1),Ft):ot.drawArraysInstancedANGLE(5,It,4,Ft):Ft<0&&(vt?x.drawElements(5,4,vt.type,It<<(vt.type-5121>>1)):x.drawArrays(5,It,4));Qt.unbind(),pt.unbind(),k.dirty=!0,F.setVAO(null),R.next=M,A.framebufferWidth=le,A.framebufferHeight=De,A.viewportWidth=At,A.viewportHeight=lt,fe&&(t.cpuTime+=performance.now()-je)}}},"1596bccf6b7a59d3fe8f9b73749b6b4f7e0e856d9694b6958aec3c25433b26b6":function(e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S){var Q,ae,x,A,O,k,C,ee,Re;return Q=e.gl,ae=e.context,e.strings,x=e.next,A=e.current,O=e.draw,k=e.elements,e.buffer,e.shader,C=e.attributes,ee=e.vao,e.uniforms,e.framebuffer,Re=e.extensions,e.timer,e.isBufferArgs,x.blend_color,A.blend_color,x.blend_equation,A.blend_equation,x.blend_func,A.blend_func,x.depth_range,A.depth_range,x.colorMask,A.colorMask,x.polygonOffset_offset,A.polygonOffset_offset,x.sample_coverage,A.sample_coverage,x.stencil_func,A.stencil_func,x.stencil_opFront,A.stencil_opFront,x.stencil_opBack,A.stencil_opBack,x.scissor_box,A.scissor_box,x.viewport,A.viewport,{body:function(ge){var F,H,R,$,q,se,te,qe,we,Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N;Re.angle_instanced_arrays,F=Re.angle_instanced_arrays,ee.setVAO(null),H=n.location,R=C[H],R.buffer||Q.enableVertexAttribArray(H),$=2,(R.type!==5126||R.size!==$||R.buffer!==t||R.normalized!==!1||R.offset!==0||R.stride!==0)&&(Q.bindBuffer(34962,t.buffer),Q.vertexAttribPointer(H,$,5126,!1,0,0),R.type=5126,R.size=$,R.buffer=t,R.normalized=!1,R.offset=0,R.stride=0),R.divisor!==0&&(F.vertexAttribDivisorANGLE(H,0),R.divisor=0),q=s.call(this,ae,ge,0),Q.uniform1f(l.location,q),se=d.call(this,ae,ge,0),Q.uniform1f(c.location,se),te=h.call(this,ae,ge,0),qe=te[0],we=te[1],Q.uniform2f(u.location,qe,we),Se=b.call(this,ae,ge,0),Q.uniform1f(m.location,Se),G=_.call(this,ae,ge,0),Q.uniform1f(g.location,G),de=X.call(this,ae,ge,0),Q.uniform1f(z.location,de),Ae=E.call(this,ae,ge,0),Ae&&Ae._reglType==="framebuffer"&&(Ae=Ae.color[0]),W=Ae._texture,Q.uniform1i(y.location,W.bind()),re=w.call(this,ae,ge,0),re&&re._reglType==="framebuffer"&&(re=re.color[0]),Rt=re._texture,Q.uniform1i(T.location,Rt.bind()),Ve=K.call(this,ae,ge,0),Ve&&Ve._reglType==="framebuffer"&&(Ve=Ve.color[0]),Fe=Ve._texture,Q.uniform1i(I.location,Fe.bind()),he=Y.call(this,ae,ge,0),he&&he._reglType==="framebuffer"&&(he=he.color[0]),L=he._texture,Q.uniform1i(U.location,L.bind()),Z=S.call(this,ae,ge,0),Z&&Z._reglType==="framebuffer"&&(Z=Z.color[0]),ie=Z._texture,Q.uniform1i(J.location,ie.bind()),be=O.elements,be?Q.bindBuffer(34963,be.buffer.buffer):ee.currentVAO&&(be=k.getElements(ee.currentVAO.elements),be&&Q.bindBuffer(34963,be.buffer.buffer)),Ge=O.offset,N=O.instances,N>0?be?F.drawElementsInstancedANGLE(5,4,be.type,Ge<<(be.type-5121>>1),N):F.drawArraysInstancedANGLE(5,Ge,4,N):N<0&&(be?Q.drawElements(5,4,be.type,Ge<<(be.type-5121>>1)):Q.drawArrays(5,Ge,4)),W.unbind(),Rt.unbind(),Fe.unbind(),L.unbind(),ie.unbind()}}},a05bf3c1b12ac6d06248a1605bddec766ce3c5beca448738b9fcb95625273f0b:function(e,t,n,l,s,c,d,u,h){var m,b,g,_,z,X,y,E,T,w,I,K,U,Y,J,S,Q,ae,x,A,O,k,C,ee,Re,ge,F,H,R,$,q,se,te,qe;return m=e.gl,b=e.context,e.strings,g=e.next,_=e.current,e.draw,e.elements,e.buffer,z=e.shader,e.attributes,X=e.vao,e.uniforms,y=e.framebuffer,E=e.extensions,e.timer,e.isBufferArgs,T=g.blend_color,w=_.blend_color,I=g.blend_equation,K=_.blend_equation,U=g.blend_func,Y=_.blend_func,J=g.depth_range,S=_.depth_range,Q=g.colorMask,ae=_.colorMask,x=g.polygonOffset_offset,A=_.polygonOffset_offset,O=g.sample_coverage,k=_.sample_coverage,C=g.stencil_func,ee=_.stencil_func,Re=g.stencil_opFront,ge=_.stencil_opFront,F=g.stencil_opBack,H=_.stencil_opBack,R=g.scissor_box,$=_.scissor_box,q=g.viewport,se=_.viewport,te={},qe={},{draw:function(we){var Se,G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N;if(E.angle_instanced_arrays,Se=y.next,y.next=n,G=b.framebufferWidth,b.framebufferWidth=n.width,de=b.framebufferHeight,b.framebufferHeight=n.height,n!==y.cur&&(n?m.bindFramebuffer(36160,n.framebuffer):m.bindFramebuffer(36160,null),y.cur=n),_.dirty){var $e,He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye;$e=g.dither,$e!==_.dither&&($e?m.enable(3024):m.disable(3024),_.dither=$e),He=g.blend_enable,He!==_.blend_enable&&(He?m.enable(3042):m.disable(3042),_.blend_enable=He),ne=T[0],me=T[1],B=T[2],j=T[3],(ne!==w[0]||me!==w[1]||B!==w[2]||j!==w[3])&&(m.blendColor(ne,me,B,j),w[0]=ne,w[1]=me,w[2]=B,w[3]=j),ue=I[0],M=I[1],(ue!==K[0]||M!==K[1])&&(m.blendEquationSeparate(ue,M),K[0]=ue,K[1]=M),le=U[0],De=U[1],Ee=U[2],ft=U[3],(le!==Y[0]||De!==Y[1]||Ee!==Y[2]||ft!==Y[3])&&(m.blendFuncSeparate(le,De,Ee,ft),Y[0]=le,Y[1]=De,Y[2]=Ee,Y[3]=ft),At=g.depth_enable,At!==_.depth_enable&&(At?m.enable(2929):m.disable(2929),_.depth_enable=At),lt=g.depth_func,lt!==_.depth_func&&(m.depthFunc(lt),_.depth_func=lt),Ke=J[0],tt=J[1],(Ke!==S[0]||tt!==S[1])&&(m.depthRange(Ke,tt),S[0]=Ke,S[1]=tt),fe=g.depth_mask,fe!==_.depth_mask&&(m.depthMask(fe),_.depth_mask=fe),je=Q[0],ot=Q[1],Ne=Q[2],et=Q[3],(je!==ae[0]||ot!==ae[1]||Ne!==ae[2]||et!==ae[3])&&(m.colorMask(je,ot,Ne,et),ae[0]=je,ae[1]=ot,ae[2]=Ne,ae[3]=et),ht=g.cull_enable,ht!==_.cull_enable&&(ht?m.enable(2884):m.disable(2884),_.cull_enable=ht),Ue=g.cull_face,Ue!==_.cull_face&&(m.cullFace(Ue),_.cull_face=Ue),Me=g.frontFace,Me!==_.frontFace&&(m.frontFace(Me),_.frontFace=Me),Be=g.lineWidth,Be!==_.lineWidth&&(m.lineWidth(Be),_.lineWidth=Be),ke=g.polygonOffset_enable,ke!==_.polygonOffset_enable&&(ke?m.enable(32823):m.disable(32823),_.polygonOffset_enable=ke),Te=x[0],ze=x[1],(Te!==A[0]||ze!==A[1])&&(m.polygonOffset(Te,ze),A[0]=Te,A[1]=ze),Xe=g.sample_alpha,Xe!==_.sample_alpha&&(Xe?m.enable(32926):m.disable(32926),_.sample_alpha=Xe),ut=g.sample_enable,ut!==_.sample_enable&&(ut?m.enable(32928):m.disable(32928),_.sample_enable=ut),at=O[0],Je=O[1],(at!==k[0]||Je!==k[1])&&(m.sampleCoverage(at,Je),k[0]=at,k[1]=Je),it=g.stencil_enable,it!==_.stencil_enable&&(it?m.enable(2960):m.disable(2960),_.stencil_enable=it),ct=g.stencil_mask,ct!==_.stencil_mask&&(m.stencilMask(ct),_.stencil_mask=ct),ve=C[0],D=C[1],oe=C[2],(ve!==ee[0]||D!==ee[1]||oe!==ee[2])&&(m.stencilFunc(ve,D,oe),ee[0]=ve,ee[1]=D,ee[2]=oe),xe=Re[0],ce=Re[1],Oe=Re[2],Ye=Re[3],(xe!==ge[0]||ce!==ge[1]||Oe!==ge[2]||Ye!==ge[3])&&(m.stencilOpSeparate(xe,ce,Oe,Ye),ge[0]=xe,ge[1]=ce,ge[2]=Oe,ge[3]=Ye),pe=F[0],Ce=F[1],Qe=F[2],Pe=F[3],(pe!==H[0]||Ce!==H[1]||Qe!==H[2]||Pe!==H[3])&&(m.stencilOpSeparate(pe,Ce,Qe,Pe),H[0]=pe,H[1]=Ce,H[2]=Qe,H[3]=Pe),ye=g.scissor_enable,ye!==_.scissor_enable&&(ye?m.enable(3089):m.disable(3089),_.scissor_enable=ye)}Ae=b.framebufferWidth,W=b.framebufferHeight,re=b.viewportWidth,b.viewportWidth=Ae,Rt=b.viewportHeight,b.viewportHeight=W,m.viewport(0,0,Ae,W),se[0]=0,se[1]=0,se[2]=Ae,se[3]=W,Ve=b.framebufferWidth,Fe=b.framebufferHeight,m.scissor(0,0,Ve,Fe),$[0]=0,$[1]=0,$[2]=Ve,$[3]=Fe,he=_.profile,he&&(L=performance.now(),t.count++),Z=z.frag,ie=z.vert,be=z.program(ie,Z),m.useProgram(be.program),X.setVAO(null),Ge=be.id,N=te[Ge],N?N.call(this,we):(N=te[Ge]=l(be),N.call(this,we)),_.dirty=!0,X.setVAO(null),y.next=Se,b.framebufferWidth=G,b.framebufferHeight=de,b.viewportWidth=re,b.viewportHeight=Rt,he&&(t.cpuTime+=performance.now()-L)},scope:function(we,Se,G){var de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e,He,ne,me,B;de=y.next,y.next=n,Ae=b.framebufferWidth,b.framebufferWidth=n.width,W=b.framebufferHeight,b.framebufferHeight=n.height,re=b.framebufferWidth,Rt=b.framebufferHeight,Ve=b.viewportWidth,b.viewportWidth=re,Fe=b.viewportHeight,b.viewportHeight=Rt,he=q[0],q[0]=s,L=q[1],q[1]=c,Z=q[2],q[2]=re,ie=q[3],q[3]=Rt,be=b.framebufferWidth,Ge=b.framebufferHeight,N=R[0],R[0]=d,$e=R[1],R[1]=u,He=R[2],R[2]=be,ne=R[3],R[3]=Ge,me=_.profile,me&&(B=performance.now(),t.count++),_.dirty=!0,Se(b,we,G),y.next=de,b.framebufferWidth=Ae,b.framebufferHeight=W,b.viewportWidth=Ve,b.viewportHeight=Fe,q[0]=he,q[1]=L,q[2]=Z,q[3]=ie,R[0]=N,R[1]=$e,R[2]=He,R[3]=ne,me&&(t.cpuTime+=performance.now()-B),_.dirty=!0},batch:function(we,Se){var G,de,Ae,W,re,Rt,Ve,Fe,he,L,Z,ie,be,Ge,N,$e;if(E.angle_instanced_arrays,G=y.next,y.next=n,de=b.framebufferWidth,b.framebufferWidth=n.width,Ae=b.framebufferHeight,b.framebufferHeight=n.height,n!==y.cur&&(n?m.bindFramebuffer(36160,n.framebuffer):m.bindFramebuffer(36160,null),y.cur=n),_.dirty){var He,ne,me,B,j,ue,M,le,De,Ee,ft,At,lt,Ke,tt,fe,je,ot,Ne,et,ht,Ue,Me,Be,ke,Te,ze,Xe,ut,at,Je,it,ct,ve,D,oe,xe,ce,Oe,Ye,pe,Ce,Qe,Pe,ye,mt;He=g.dither,He!==_.dither&&(He?m.enable(3024):m.disable(3024),_.dither=He),ne=g.blend_enable,ne!==_.blend_enable&&(ne?m.enable(3042):m.disable(3042),_.blend_enable=ne),me=T[0],B=T[1],j=T[2],ue=T[3],(me!==w[0]||B!==w[1]||j!==w[2]||ue!==w[3])&&(m.blendColor(me,B,j,ue),w[0]=me,w[1]=B,w[2]=j,w[3]=ue),M=I[0],le=I[1],(M!==K[0]||le!==K[1])&&(m.blendEquationSeparate(M,le),K[0]=M,K[1]=le),De=U[0],Ee=U[1],ft=U[2],At=U[3],(De!==Y[0]||Ee!==Y[1]||ft!==Y[2]||At!==Y[3])&&(m.blendFuncSeparate(De,Ee,ft,At),Y[0]=De,Y[1]=Ee,Y[2]=ft,Y[3]=At),lt=g.depth_enable,lt!==_.depth_enable&&(lt?m.enable(2929):m.disable(2929),_.depth_enable=lt),Ke=g.depth_func,Ke!==_.depth_func&&(m.depthFunc(Ke),_.depth_func=Ke),tt=J[0],fe=J[1],(tt!==S[0]||fe!==S[1])&&(m.depthRange(tt,fe),S[0]=tt,S[1]=fe),je=g.depth_mask,je!==_.depth_mask&&(m.depthMask(je),_.depth_mask=je),ot=Q[0],Ne=Q[1],et=Q[2],ht=Q[3],(ot!==ae[0]||Ne!==ae[1]||et!==ae[2]||ht!==ae[3])&&(m.colorMask(ot,Ne,et,ht),ae[0]=ot,ae[1]=Ne,ae[2]=et,ae[3]=ht),Ue=g.cull_enable,Ue!==_.cull_enable&&(Ue?m.enable(2884):m.disable(2884),_.cull_enable=Ue),Me=g.cull_face,Me!==_.cull_face&&(m.cullFace(Me),_.cull_face=Me),Be=g.frontFace,Be!==_.frontFace&&(m.frontFace(Be),_.frontFace=Be),ke=g.lineWidth,ke!==_.lineWidth&&(m.lineWidth(ke),_.lineWidth=ke),Te=g.polygonOffset_enable,Te!==_.polygonOffset_enable&&(Te?m.enable(32823):m.disable(32823),_.polygonOffset_enable=Te),ze=x[0],Xe=x[1],(ze!==A[0]||Xe!==A[1])&&(m.polygonOffset(ze,Xe),A[0]=ze,A[1]=Xe),ut=g.sample_alpha,ut!==_.sample_alpha&&(ut?m.enable(32926):m.disable(32926),_.sample_alpha=ut),at=g.sample_enable,at!==_.sample_enable&&(at?m.enable(32928):m.disable(32928),_.sample_enable=at),Je=O[0],it=O[1],(Je!==k[0]||it!==k[1])&&(m.sampleCoverage(Je,it),k[0]=Je,k[1]=it),ct=g.stencil_enable,ct!==_.stencil_enable&&(ct?m.enable(2960):m.disable(2960),_.stencil_enable=ct),ve=g.stencil_mask,ve!==_.stencil_mask&&(m.stencilMask(ve),_.stencil_mask=ve),D=C[0],oe=C[1],xe=C[2],(D!==ee[0]||oe!==ee[1]||xe!==ee[2])&&(m.stencilFunc(D,oe,xe),ee[0]=D,ee[1]=oe,ee[2]=xe),ce=Re[0],Oe=Re[1],Ye=Re[2],pe=Re[3],(ce!==ge[0]||Oe!==ge[1]||Ye!==ge[2]||pe!==ge[3])&&(m.stencilOpSeparate(ce,Oe,Ye,pe),ge[0]=ce,ge[1]=Oe,ge[2]=Ye,ge[3]=pe),Ce=F[0],Qe=F[1],Pe=F[2],ye=F[3],(Ce!==H[0]||Qe!==H[1]||Pe!==H[2]||ye!==H[3])&&(m.stencilOpSeparate(Ce,Qe,Pe,ye),H[0]=Ce,H[1]=Qe,H[2]=Pe,H[3]=ye),mt=g.scissor_enable,mt!==_.scissor_enable&&(mt?m.enable(3089):m.disable(3089),_.scissor_enable=mt)}W=b.framebufferWidth,re=b.framebufferHeight,Rt=b.viewportWidth,b.viewportWidth=W,Ve=b.viewportHeight,b.viewportHeight=re,m.viewport(0,0,W,re),se[0]=0,se[1]=0,se[2]=W,se[3]=re,Fe=b.framebufferWidth,he=b.framebufferHeight,m.scissor(0,0,Fe,he),$[0]=0,$[1]=0,$[2]=Fe,$[3]=he,L=_.profile,L&&(Z=performance.now(),t.count+=Se),ie=z.frag,be=z.vert,Ge=z.program(be,ie),m.useProgram(Ge.program),X.setVAO(null),N=Ge.id,$e=qe[N],$e?$e.call(this,we,Se):($e=qe[N]=h(Ge),$e.call(this,we,Se)),_.dirty=!0,X.setVAO(null),y.next=G,b.framebufferWidth=de,b.framebufferHeight=Ae,b.viewportWidth=Rt,b.viewportHeight=Ve,L&&(t.cpuTime+=performance.now()-Z)}}}};class kC{constructor(e,t){var n,l;this.config=new $k,this.graph=new iC,this.requestAnimationFrameId=0,this.isRightClickMouse=!1,this.store=new EC,this.zoomInstance=new TC(this.store,this.config),this.hasParticleSystemDestroyed=!1,this._findHoveredPointExecutionCount=0,this._isMouseOnCanvas=!1,this._isFirstDataAfterInit=!0,t&&this.config.init(t);const s=e.clientWidth,c=e.clientHeight;e.width=s*this.config.pixelRatio,e.height=c*this.config.pixelRatio,e.style.width===""&&e.style.height===""&&Ma(e).style("width","100%").style("height","100%"),this.canvas=e,this.canvasD3Selection=Ma(e),this.canvasD3Selection.on("mouseenter.cosmos",()=>{this._isMouseOnCanvas=!0}).on("mouseleave.cosmos",()=>{this._isMouseOnCanvas=!1}),this.zoomInstance.behavior.on("start.detect",d=>{this.currentEvent=d}).on("zoom.detect",d=>{!!d.sourceEvent&&this.updateMousePosition(d.sourceEvent),this.currentEvent=d}).on("end.detect",d=>{this.currentEvent=d}),this.canvasD3Selection.call(this.zoomInstance.behavior).on("click",this.onClick.bind(this)).on("mousemove",this.onMouseMove.bind(this)).on("contextmenu",this.onRightClickMouse.bind(this)),this.config.disableZoom&&this.disableZoom(),this.setZoomLevel((n=this.config.initialZoomLevel)!==null&&n!==void 0?n:1),this.reglInstance=zT({canvas:this.canvas,attributes:{antialias:!1,preserveDrawingBuffer:!0},extensions:["OES_texture_float","ANGLE_instanced_arrays"],cachedCode:OC}),this.store.maxPointSize=((l=this.reglInstance.limits.pointSizeDims[1])!==null&&l!==void 0?l:kg)/this.config.pixelRatio,this.store.adjustSpaceSize(this.config.spaceSize,this.reglInstance.limits.maxTextureSize),this.store.updateScreenSize(s,c),this.points=new AC(this.reglInstance,this.config,this.store,this.graph),this.lines=new lC(this.reglInstance,this.config,this.store,this.graph,this.points),this.config.disableSimulation||(this.forceGravity=new Vk(this.reglInstance,this.config,this.store,this.graph,this.points),this.forceCenter=new Uk(this.reglInstance,this.config,this.store,this.graph,this.points),this.forceManyBody=this.config.useQuadtree?new Zk(this.reglInstance,this.config,this.store,this.graph,this.points):new Yk(this.reglInstance,this.config,this.store,this.graph,this.points),this.forceLinkIncoming=new qy(this.reglInstance,this.config,this.store,this.graph,this.points),this.forceLinkOutgoing=new qy(this.reglInstance,this.config,this.store,this.graph,this.points),this.forceMouse=new Kk(this.reglInstance,this.config,this.store,this.graph,this.points)),this.store.backgroundColor=dh(this.config.backgroundColor),this.config.highlightedNodeRingColor?(this.store.setHoveredNodeRingColor(this.config.highlightedNodeRingColor),this.store.setFocusedNodeRingColor(this.config.highlightedNodeRingColor)):(this.config.hoveredNodeRingColor&&this.store.setHoveredNodeRingColor(this.config.hoveredNodeRingColor),this.config.focusedNodeRingColor&&this.store.setFocusedNodeRingColor(this.config.focusedNodeRingColor)),this.config.showFPSMonitor&&(this.fpsMonitor=new Yy(this.canvas)),this.config.randomSeed!==void 0&&this.store.addRandomSeed(this.config.randomSeed)}get progress(){return this.store.simulationProgress}get isSimulationRunning(){return this.store.isSimulationRunning}get maxPointSize(){return this.store.maxPointSize}setConfig(e){var t,n;const l={...this.config};this.config.init(e),l.linkColor!==this.config.linkColor&&this.lines.updateColor(),l.nodeColor!==this.config.nodeColor&&this.points.updateColor(),l.nodeSize!==this.config.nodeSize&&this.points.updateSize(),l.linkWidth!==this.config.linkWidth&&this.lines.updateWidth(),l.linkArrows!==this.config.linkArrows&&this.lines.updateArrow(),(l.curvedLinkSegments!==this.config.curvedLinkSegments||l.curvedLinks!==this.config.curvedLinks)&&this.lines.updateCurveLineGeometry(),l.backgroundColor!==this.config.backgroundColor&&(this.store.backgroundColor=dh(this.config.backgroundColor)),l.highlightedNodeRingColor!==this.config.highlightedNodeRingColor&&(this.store.setHoveredNodeRingColor(this.config.highlightedNodeRingColor),this.store.setFocusedNodeRingColor(this.config.highlightedNodeRingColor)),l.hoveredNodeRingColor!==this.config.hoveredNodeRingColor&&this.store.setHoveredNodeRingColor(this.config.hoveredNodeRingColor),l.focusedNodeRingColor!==this.config.focusedNodeRingColor&&this.store.setFocusedNodeRingColor(this.config.focusedNodeRingColor),(l.spaceSize!==this.config.spaceSize||l.simulation.repulsionQuadtreeLevels!==this.config.simulation.repulsionQuadtreeLevels)&&(this.store.adjustSpaceSize(this.config.spaceSize,this.reglInstance.limits.maxTextureSize),this.resizeCanvas(!0),this.update(this.store.isSimulationRunning)),l.showFPSMonitor!==this.config.showFPSMonitor&&(this.config.showFPSMonitor?this.fpsMonitor=new Yy(this.canvas):((t=this.fpsMonitor)===null||t===void 0||t.destroy(),this.fpsMonitor=void 0)),l.pixelRatio!==this.config.pixelRatio&&(this.store.maxPointSize=((n=this.reglInstance.limits.pointSizeDims[1])!==null&&n!==void 0?n:kg)/this.config.pixelRatio),l.disableZoom!==this.config.disableZoom&&(this.config.disableZoom?this.disableZoom():this.enableZoom())}setData(e,t,n=!0){const{fitViewOnInit:l,fitViewDelay:s,fitViewByNodesInRect:c,initialZoomLevel:d}=this.config;if(!e.length&&!t.length){this.destroyParticleSystem(),this.reglInstance.clear({color:this.store.backgroundColor,depth:1,stencil:0});return}this.graph.setData(e,t),this._isFirstDataAfterInit&&l&&d===void 0&&(this._fitViewOnInitTimeoutID=window.setTimeout(()=>{c?this.setZoomTransformByNodePositions(c,void 0,void 0,0):this.fitView()},s)),this._isFirstDataAfterInit=!1,this.update(n)}zoomToNodeById(e,t=700,n=Wy,l=!0){const s=this.graph.getNodeById(e);s&&this.zoomToNode(s,t,n,l)}zoomToNodeByIndex(e,t=700,n=Wy,l=!0){const s=this.graph.getNodeByIndex(e);s&&this.zoomToNode(s,t,n,l)}zoom(e,t=0){this.setZoomLevel(e,t)}setZoomLevel(e,t=0){t===0?this.canvasD3Selection.call(this.zoomInstance.behavior.scaleTo,e):this.canvasD3Selection.transition().duration(t).call(this.zoomInstance.behavior.scaleTo,e)}getZoomLevel(){return this.zoomInstance.eventTransform.k}getNodePositions(){if(this.hasParticleSystemDestroyed)return{};const e=gf(this.reglInstance,this.points.currentPositionFbo);return this.graph.nodes.reduce((t,n)=>{const l=this.graph.getSortedIndexById(n.id),s=e[l*4+0],c=e[l*4+1];return s!==void 0&&c!==void 0&&(t[n.id]={x:s,y:c}),t},{})}getNodePositionsMap(){const e=new Map;if(this.hasParticleSystemDestroyed)return e;const t=gf(this.reglInstance,this.points.currentPositionFbo);return this.graph.nodes.reduce((n,l)=>{const s=this.graph.getSortedIndexById(l.id),c=t[s*4+0],d=t[s*4+1];return c!==void 0&&d!==void 0&&n.set(l.id,[c,d]),n},e)}getNodePositionsArray(){const e=[];if(this.hasParticleSystemDestroyed)return[];const t=gf(this.reglInstance,this.points.currentPositionFbo);e.length=this.graph.nodes.length;for(let n=0;n<this.graph.nodes.length;n+=1){const l=this.graph.getSortedIndexByInputIndex(n),s=t[l*4+0],c=t[l*4+1];s!==void 0&&c!==void 0&&(e[n]=[s,c])}return e}fitView(e=250,t=.1){this.setZoomTransformByNodePositions(this.getNodePositionsArray(),e,void 0,t)}fitViewByNodeIds(e,t=250,n=.1){const l=this.getNodePositionsMap(),s=e.map(c=>l.get(c)).filter(c=>c!==void 0);this.setZoomTransformByNodePositions(s,t,void 0,n)}selectNodesInRange(e){if(e){const t=this.store.screenSize[1];this.store.selectedArea=[[e[0][0],t-e[1][1]],[e[1][0],t-e[0][1]]],this.points.findPointsOnAreaSelection();const n=gf(this.reglInstance,this.points.selectedFbo);this.store.selectedIndices=n.map((l,s)=>s%4===0&&l!==0?s/4:-1).filter(l=>l!==-1)}else this.store.selectedIndices=null;this.points.updateGreyoutStatus()}selectNodeById(e,t=!1){var n;if(t){const l=(n=this.graph.getAdjacentNodes(e))!==null&&n!==void 0?n:[];this.selectNodesByIds([e,...l.map(s=>s.id)])}else this.selectNodesByIds([e])}selectNodeByIndex(e,t=!1){const n=this.graph.getNodeByIndex(e);n&&this.selectNodeById(n.id,t)}selectNodesByIds(e){this.selectNodesByIndices(e?.map(t=>this.graph.getSortedIndexById(t)))}selectNodesByIndices(e){e?e.length===0?this.store.selectedIndices=new Float32Array:this.store.selectedIndices=new Float32Array(e.filter(t=>t!==void 0)):this.store.selectedIndices=null,this.points.updateGreyoutStatus()}unselectNodes(){this.store.selectedIndices=null,this.points.updateGreyoutStatus()}getSelectedNodes(){const{selectedIndices:e}=this.store;if(!e)return null;const t=new Array(e.length);for(const[n,l]of e.entries())if(l!==void 0){const s=this.graph.getInputIndexBySortedIndex(l);s!==void 0&&(t[n]=this.graph.nodes[s])}return t}getAdjacentNodes(e){return this.graph.getAdjacentNodes(e)}setFocusedNodeById(e){e===void 0?this.store.setFocusedNode():this.store.setFocusedNode(this.graph.getNodeById(e),this.graph.getSortedIndexById(e))}setFocusedNodeByIndex(e){e===void 0?this.store.setFocusedNode():this.store.setFocusedNode(this.graph.getNodeByIndex(e),e)}spaceToScreenPosition(e){return this.zoomInstance.convertSpaceToScreenPosition(e)}spaceToScreenRadius(e){return this.zoomInstance.convertSpaceToScreenRadius(e)}getNodeRadiusByIndex(e){return this.points.getNodeRadiusByIndex(e)}getNodeRadiusById(e){const t=this.graph.getInputIndexById(e);if(t!==void 0)return this.points.getNodeRadiusByIndex(t)}trackNodePositionsByIds(e){this.points.trackNodesByIds(e)}trackNodePositionsByIndices(e){this.points.trackNodesByIds(e.map(t=>this.graph.getNodeByIndex(t)).filter(t=>t!==void 0).map(t=>t.id))}getTrackedNodePositionsMap(){return this.points.getTrackedPositions()}getSampledNodePositionsMap(){return this.points.getSampledNodePositionsMap()}start(e=1){var t,n;this.graph.nodes.length&&(this.store.isSimulationRunning=!0,this.store.alpha=e,this.store.simulationProgress=0,(n=(t=this.config.simulation).onStart)===null||n===void 0||n.call(t),this.stopFrames(),this.frame())}pause(){var e,t;this.store.isSimulationRunning=!1,(t=(e=this.config.simulation).onPause)===null||t===void 0||t.call(e)}restart(){var e,t;this.store.isSimulationRunning=!0,(t=(e=this.config.simulation).onRestart)===null||t===void 0||t.call(e)}step(){this.store.isSimulationRunning=!1,this.stopFrames(),this.frame()}destroy(){var e,t;window.clearTimeout(this._fitViewOnInitTimeoutID),this.stopFrames(),this.destroyParticleSystem(),(e=this.fpsMonitor)===null||e===void 0||e.destroy(),(t=document.getElementById("gl-bench-style"))===null||t===void 0||t.remove()}create(){var e,t,n,l;this.points.create(),this.lines.create(),(e=this.forceManyBody)===null||e===void 0||e.create(),(t=this.forceLinkIncoming)===null||t===void 0||t.create(Tm.INCOMING),(n=this.forceLinkOutgoing)===null||n===void 0||n.create(Tm.OUTGOING),(l=this.forceCenter)===null||l===void 0||l.create(),this.hasParticleSystemDestroyed=!1}destroyParticleSystem(){var e,t,n,l;this.hasParticleSystemDestroyed||(this.points.destroy(),this.lines.destroy(),(e=this.forceCenter)===null||e===void 0||e.destroy(),(t=this.forceLinkIncoming)===null||t===void 0||t.destroy(),(n=this.forceLinkOutgoing)===null||n===void 0||n.destroy(),(l=this.forceManyBody)===null||l===void 0||l.destroy(),this.reglInstance.destroy(),this.hasParticleSystemDestroyed=!0)}update(e){const{graph:t}=this;this.store.pointsTextureSize=Math.ceil(Math.sqrt(t.nodes.length)),this.store.linksTextureSize=Math.ceil(Math.sqrt(t.linksNumber*2)),this.destroyParticleSystem(),this.create(),this.initPrograms(),this.setFocusedNodeById(),this.store.hoveredNode=void 0,e?this.start():this.step()}initPrograms(){var e,t,n,l,s,c;this.points.initPrograms(),this.lines.initPrograms(),(e=this.forceGravity)===null||e===void 0||e.initPrograms(),(t=this.forceLinkIncoming)===null||t===void 0||t.initPrograms(),(n=this.forceLinkOutgoing)===null||n===void 0||n.initPrograms(),(l=this.forceMouse)===null||l===void 0||l.initPrograms(),(s=this.forceManyBody)===null||s===void 0||s.initPrograms(),(c=this.forceCenter)===null||c===void 0||c.initPrograms()}frame(){const{config:{simulation:e,renderLinks:t,disableSimulation:n},store:{alpha:l,isSimulationRunning:s}}=this;l<Og&&s&&this.end(),this.store.pointsTextureSize&&(this.requestAnimationFrameId=window.requestAnimationFrame(c=>{var d,u,h,m,b,g,_,z,X,y,E,T,w;(d=this.fpsMonitor)===null||d===void 0||d.begin(),this.resizeCanvas(),this.findHoveredPoint(),n||(this.isRightClickMouse&&(s||this.start(.1),(u=this.forceMouse)===null||u===void 0||u.run(),this.points.updatePosition()),s&&!this.zoomInstance.isRunning&&(e.gravity&&((h=this.forceGravity)===null||h===void 0||h.run(),this.points.updatePosition()),e.center&&((m=this.forceCenter)===null||m===void 0||m.run(),this.points.updatePosition()),(b=this.forceManyBody)===null||b===void 0||b.run(),this.points.updatePosition(),this.store.linksTextureSize&&((g=this.forceLinkIncoming)===null||g===void 0||g.run(),this.points.updatePosition(),(_=this.forceLinkOutgoing)===null||_===void 0||_.run(),this.points.updatePosition()),this.store.alpha+=this.store.addAlpha((z=this.config.simulation.decay)!==null&&z!==void 0?z:Tr.simulation.decay),this.isRightClickMouse&&(this.store.alpha=Math.max(this.store.alpha,.1)),this.store.simulationProgress=Math.sqrt(Math.min(1,Og/this.store.alpha)),(y=(X=this.config.simulation).onTick)===null||y===void 0||y.call(X,this.store.alpha,(E=this.store.hoveredNode)===null||E===void 0?void 0:E.node,this.store.hoveredNode?this.graph.getInputIndexBySortedIndex(this.store.hoveredNode.index):void 0,(T=this.store.hoveredNode)===null||T===void 0?void 0:T.position)),this.points.trackPoints()),this.reglInstance.clear({color:this.store.backgroundColor,depth:1,stencil:0}),t&&this.store.linksTextureSize&&this.lines.draw(),this.points.draw(),(w=this.fpsMonitor)===null||w===void 0||w.end(c),this.currentEvent=void 0,this.frame()}))}stopFrames(){this.requestAnimationFrameId&&window.cancelAnimationFrame(this.requestAnimationFrameId)}end(){var e,t;this.store.isSimulationRunning=!1,this.store.simulationProgress=1,(t=(e=this.config.simulation).onEnd)===null||t===void 0||t.call(e)}onClick(e){var t,n,l,s;(n=(t=this.config.events).onClick)===null||n===void 0||n.call(t,(l=this.store.hoveredNode)===null||l===void 0?void 0:l.node,this.store.hoveredNode?this.graph.getInputIndexBySortedIndex(this.store.hoveredNode.index):void 0,(s=this.store.hoveredNode)===null||s===void 0?void 0:s.position,e)}updateMousePosition(e){if(!e||e.offsetX===void 0||e.offsetY===void 0)return;const t=e.offsetX,n=e.offsetY;this.store.mousePosition=this.zoomInstance.convertScreenToSpacePosition([t,n]),this.store.screenMousePosition=[t,this.store.screenSize[1]-n]}onMouseMove(e){var t,n,l,s;this.currentEvent=e,this.updateMousePosition(e),this.isRightClickMouse=e.which===3,(n=(t=this.config.events).onMouseMove)===null||n===void 0||n.call(t,(l=this.store.hoveredNode)===null||l===void 0?void 0:l.node,this.store.hoveredNode?this.graph.getInputIndexBySortedIndex(this.store.hoveredNode.index):void 0,(s=this.store.hoveredNode)===null||s===void 0?void 0:s.position,this.currentEvent)}onRightClickMouse(e){e.preventDefault()}resizeCanvas(e=!1){const t=this.canvas.width,n=this.canvas.height,l=this.canvas.clientWidth,s=this.canvas.clientHeight;if(e||t!==l*this.config.pixelRatio||n!==s*this.config.pixelRatio){const[c,d]=this.store.screenSize,{k:u}=this.zoomInstance.eventTransform,h=this.zoomInstance.convertScreenToSpacePosition([c/2,d/2]);this.store.updateScreenSize(l,s),this.canvas.width=l*this.config.pixelRatio,this.canvas.height=s*this.config.pixelRatio,this.reglInstance.poll(),this.canvasD3Selection.call(this.zoomInstance.behavior.transform,this.zoomInstance.getTransform([h],u)),this.points.updateSampledNodesGrid()}}setZoomTransformByNodePositions(e,t=250,n,l){this.resizeCanvas();const s=this.zoomInstance.getTransform(e,n,l);this.canvasD3Selection.transition().ease(wT).duration(t).call(this.zoomInstance.behavior.transform,s)}zoomToNode(e,t,n,l){const{graph:s,store:{screenSize:c}}=this,d=gf(this.reglInstance,this.points.currentPositionFbo),u=s.getSortedIndexById(e.id);if(u===void 0)return;const h=d[u*4+0],m=d[u*4+1];if(h===void 0||m===void 0)return;const b=this.zoomInstance.getDistanceToPoint([h,m]),g=l?n:Math.max(this.getZoomLevel(),n);if(b<Math.min(c[0],c[1]))this.setZoomTransformByNodePositions([[h,m]],t,g);else{const _=this.zoomInstance.getTransform([[h,m]],g),z=this.zoomInstance.getMiddlePointTransform([h,m]);this.canvasD3Selection.transition().ease(vT).duration(t/2).call(this.zoomInstance.behavior.transform,z).transition().ease(xT).duration(t/2).call(this.zoomInstance.behavior.transform,_)}}disableZoom(){this.canvasD3Selection.call(this.zoomInstance.behavior).on("wheel.zoom",null)}enableZoom(){this.canvasD3Selection.call(this.zoomInstance.behavior)}findHoveredPoint(){var e,t,n,l,s;if(!this._isMouseOnCanvas)return;if(this._findHoveredPointExecutionCount<2){this._findHoveredPointExecutionCount+=1;return}this._findHoveredPointExecutionCount=0,this.points.findHoveredPoint();let c=!1,d=!1;const u=gf(this.reglInstance,this.points.hoveredFbo);if(u[1]){const m=u[0],b=this.graph.getInputIndexBySortedIndex(m),g=b!==void 0?this.graph.getNodeByIndex(b):void 0;((e=this.store.hoveredNode)===null||e===void 0?void 0:e.node)!==g&&(c=!0);const _=u[2],z=u[3];this.store.hoveredNode=g&&{node:g,index:m,position:[_,z]}}else this.store.hoveredNode&&(d=!0),this.store.hoveredNode=void 0;c&&this.store.hoveredNode&&((n=(t=this.config.events).onNodeMouseOver)===null||n===void 0||n.call(t,this.store.hoveredNode.node,this.graph.getInputIndexBySortedIndex(this.graph.getSortedIndexById(this.store.hoveredNode.node.id)),this.store.hoveredNode.position,this.currentEvent)),d&&((s=(l=this.config.events).onNodeMouseOut)===null||s===void 0||s.call(l,this.currentEvent))}}function CC(i,e){const[t,n,l,s]=[i.x,i.y+i.height,i.x+i.width,i.y],[c,d,u,h]=[e.x,e.y+e.height,e.x+e.width,e.y];return!(n<h||d<s||l<c||u<t)}const ku=6,Cu=9,Ep=14,Cg="css-label--label",q3="css-label--hidden";let nm;const zC=()=>{if(nm)return;nm=document.createElement("style"),nm.innerHTML=`
410
+ :root {
411
+ --css-label-background-color: #1e2428;
412
+ --css-label-brightness: brightness(150%);
413
+ }
414
+
415
+ .${Cg} {
416
+ position: absolute;
417
+ top: 0;
418
+ left: 0;
419
+
420
+ font-weight: 500;
421
+ cursor: pointer;
422
+
423
+ -webkit-user-select: none;
424
+ -moz-user-select: none;
425
+ -ms-user-select: none;
426
+ user-select: none;
427
+
428
+ filter: var(--css-label-brightness);
429
+ pointer-events: none;
430
+ background-color: var(--css-label-background-color);
431
+ font-weight: 700;
432
+ border-radius: 6px;
433
+
434
+ transition: opacity 600ms;
435
+ opacity: 1;
436
+ }
437
+
438
+ .${q3} {
439
+ opacity: 0 !important;
440
+ }
441
+ `;const i=document.head.getElementsByTagName("style")[0];i?document.head.insertBefore(nm,i):document.head.appendChild(nm)};class Y3{constructor(e,t){this.element=document.createElement("div"),this.fontWidthHeightRatio=.6,this._x=0,this._y=0,this._estimatedWidth=0,this._estimatedHeight=0,this._visible=!1,this._prevVisible=!1,this._weight=0,this._customFontSize=Ep,this._customColor=void 0,this._customOpacity=void 0,this._shouldBeShown=!1,this._text="",this._customPadding={left:Cu,top:ku,right:Cu,bottom:ku},zC(),this._container=e,this._updateClasses(),t&&this.setText(t),this.resetFontSize(),this.resetPadding()}setText(e){this._text!==e&&(this._text=e,this.element.innerHTML=e,this._measureText())}setPosition(e,t){this._x=e,this._y=t}setStyle(e){if(this._customStyle!==e&&(this._customStyle=e,this.element.style.cssText=this._customStyle,this._customColor&&(this.element.style.color=this._customColor),this._customOpacity&&(this.element.style.opacity=String(this._customOpacity)),this._customPointerEvents&&(this.element.style.pointerEvents=this._customPointerEvents),this._customFontSize&&(this.element.style.fontSize=`${this._customFontSize}px`),this._customPadding)){const{top:t,right:n,bottom:l,left:s}=this._customPadding;this.element.style.padding=`${t}px ${n}px ${l}px ${s}px`}}setClassName(e){this._customClassName!==e&&(this._customClassName=e,this._updateClasses())}setFontSize(e=Ep){this._customFontSize!==e&&(this.element.style.fontSize=`${e}px`,this._customFontSize=e,this._measureText())}resetFontSize(){this.element.style.fontSize=`${Ep}px`,this._customFontSize=Ep,this._measureText()}setColor(e){this._customColor!==e&&(this.element.style.color=e,this._customColor=e)}resetColor(){this.element.style.removeProperty("color"),this._customColor=void 0}setOpacity(e){this._customOpacity!==e&&(this.element.style.opacity=String(e),this._customOpacity=e)}resetOpacity(){this.element.style.removeProperty("opacity"),this._customOpacity=void 0}setPointerEvents(e){this._customPointerEvents!==e&&(this.element.style.pointerEvents=`${e}`,this._customPointerEvents=e)}resetPointerEvents(){this.element.style.removeProperty("pointer-events"),this._customPointerEvents=void 0}setPadding(e={left:Cu,top:ku,right:Cu,bottom:ku}){(this._customPadding.left!==e.left||this._customPadding.top!==e.top||this._customPadding.right!==e.right||this._customPadding.bottom!==e.bottom)&&(this._customPadding=e,this.element.style.padding=`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,this._measureText())}resetPadding(){const e={left:Cu,top:ku,right:Cu,bottom:ku};this.element.style.padding=`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`,this._customPadding=e,this._measureText()}setForceShow(e){this._shouldBeShown=e}getForceShow(){return this._shouldBeShown}draw(){const e=this.getVisibility();e!==this._prevVisible&&(this._prevVisible===!1?this._container.appendChild(this.element):this._container.removeChild(this.element),this._updateClasses(),this._prevVisible=e),e&&(this.element.style.transform=`
442
+ translate(-50%, -100%)
443
+ translate3d(${this._x}px, ${this._y}px, 0)
444
+ `)}overlaps(e){return CC({height:this._estimatedHeight,width:this._estimatedWidth,x:this._x,y:this._y},{height:e._estimatedHeight,width:e._estimatedWidth,x:e._x,y:e._y})}setVisibility(e=!0){this._visible=e}getVisibility(){return this._visible}isOnScreen(){return this._x>0&&this._y>0&&this._x<this._container.offsetWidth&&this._y<this._container.offsetHeight}setWeight(e){this._weight=e}getWeight(){return this._weight}raise(){this._container.appendChild(this.element)}destroy(){this.element.remove()}_updateClasses(){this.getVisibility()?window.requestAnimationFrame(()=>{this.element.className=`${Cg} ${this._customClassName||""}`}):this.element.className=`${Cg} ${this._customClassName||""} ${q3}`}_measureText(){const{left:e,top:t,right:n,bottom:l}=this._customPadding;this._estimatedWidth=this._customFontSize*this.fontWidthHeightRatio*this.element.innerHTML.length+e+n,this._estimatedHeight=this._customFontSize+t+l}}const Zp="css-label--labels-container",X3="css-label--labels-container-hidden";let rm;const IC=()=>{if(rm)return;rm=document.createElement("style"),rm.innerHTML=`
445
+ .${Zp} {
446
+ transition: opacity 100ms;
447
+ position: absolute;
448
+ width: 100%;
449
+ height: 100%;
450
+ overflow: hidden;
451
+ top: 0%;
452
+ pointer-events: none;
453
+ opacity: 1;
454
+ }
455
+ .${X3} {
456
+ opacity: 0;
457
+
458
+ div {
459
+ pointer-events: none;
460
+ }
461
+ }
462
+ `;const i=document.head.getElementsByTagName("style")[0];i?document.head.insertBefore(rm,i):document.head.appendChild(rm)};class LC{constructor(e,t){this._cssLabels=new Map,this._elementToData=new Map,IC(),this._container=e,e.addEventListener("click",this._onClick.bind(this)),this._container.className=Zp,t?.onLabelClick&&(this._onClickCallback=t.onLabelClick),t?.padding&&(this._padding=t.padding),t?.pointerEvents&&(this._pointerEvents=t.pointerEvents),t?.dispatchWheelEventElement&&(this._dispatchWheelEventElement=t.dispatchWheelEventElement,this._container.addEventListener("wheel",this._onWheel.bind(this)))}setLabels(e){const t=new Map(this._cssLabels);e.forEach(n=>{const{x:l,y:s,fontSize:c,color:d,text:u,weight:h,opacity:m,shouldBeShown:b,style:g,className:_}=n;if(this._cssLabels.get(n.id))t.delete(n.id);else{const y=new Y3(this._container,n.text);this._cssLabels.set(n.id,y),this._elementToData.set(y.element,n)}const X=this._cssLabels.get(n.id);X&&(X.setText(u),X.setPosition(l,s),g!==void 0&&X.setStyle(g),h!==void 0&&X.setWeight(h),c!==void 0&&X.setFontSize(c),d!==void 0&&X.setColor(d),this._padding!==void 0&&X.setPadding(this._padding),this._pointerEvents!==void 0&&X.setPointerEvents(this._pointerEvents),m!==void 0&&X.setOpacity(m),b!==void 0&&X.setForceShow(b),_!==void 0&&X.setClassName(_))});for(const[n]of t){const l=this._cssLabels.get(n);l&&(this._elementToData.delete(l.element),l.destroy()),this._cssLabels.delete(n)}}draw(e=!0){e&&this._intersectLabels(),this._cssLabels.forEach(t=>t.draw())}show(){this._container.className=Zp}hide(){this._container.className=`${Zp} ${X3}`}destroy(){this._container.removeEventListener("click",this._onClick.bind(this)),this._container.removeEventListener("wheel",this._onWheel.bind(this)),this._cssLabels.forEach(e=>e.destroy())}_onClick(e){var t;const n=this._elementToData.get(e.target);n&&((t=this._onClickCallback)===null||t===void 0||t.call(this,e,n))}_onWheel(e){var t;e.preventDefault();const n=new WheelEvent("wheel",e);(t=this._dispatchWheelEventElement)===null||t===void 0||t.dispatchEvent(n)}_intersectLabels(){const e=Array.from(this._cssLabels.values());e.forEach(t=>t.setVisibility(t.isOnScreen()));for(let t=0;t<e.length;t+=1){const n=e[t];if(n.getVisibility())for(let l=t+1;l<e.length;l+=1){const s=e[l];if(!s.getVisibility())continue;if(n.overlaps(s)){s.getWeight()>n.getWeight()?n.setVisibility(s.getForceShow()?!1:n.getForceShow()):s.setVisibility(n.getForceShow()?!1:s.getForceShow());continue}}}}}var qf=[],RC=function(){return qf.some(function(i){return i.activeTargets.length>0})},FC=function(){return qf.some(function(i){return i.skippedTargets.length>0})},Xy="ResizeObserver loop completed with undelivered notifications.",MC=function(){var i;typeof ErrorEvent=="function"?i=new ErrorEvent("error",{message:Xy}):(i=document.createEvent("Event"),i.initEvent("error",!1,!1),i.message=Xy),window.dispatchEvent(i)},Om;(function(i){i.BORDER_BOX="border-box",i.CONTENT_BOX="content-box",i.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Om||(Om={}));var Yf=function(i){return Object.freeze(i)},DC=function(){function i(e,t){this.inlineSize=e,this.blockSize=t,Yf(this)}return i}(),Z3=function(){function i(e,t,n,l){return this.x=e,this.y=t,this.width=n,this.height=l,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Yf(this)}return i.prototype.toJSON=function(){var e=this,t=e.x,n=e.y,l=e.top,s=e.right,c=e.bottom,d=e.left,u=e.width,h=e.height;return{x:t,y:n,top:l,right:s,bottom:c,left:d,width:u,height:h}},i.fromRect=function(e){return new i(e.x,e.y,e.width,e.height)},i}(),u_=function(i){return i instanceof SVGElement&&"getBBox"in i},Q3=function(i){if(u_(i)){var e=i.getBBox(),t=e.width,n=e.height;return!t&&!n}var l=i,s=l.offsetWidth,c=l.offsetHeight;return!(s||c||i.getClientRects().length)},Zy=function(i){var e;if(i instanceof Element)return!0;var t=(e=i?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&i instanceof t.Element)},NC=function(i){switch(i.tagName){case"INPUT":if(i.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},bm=typeof window<"u"?window:{},Tp=new WeakMap,Qy=/auto|scroll/,$C=/^tb|vertical/,BC=/msie|trident/i.test(bm.navigator&&bm.navigator.userAgent),ld=function(i){return parseFloat(i||"0")},Ju=function(i,e,t){return i===void 0&&(i=0),e===void 0&&(e=0),t===void 0&&(t=!1),new DC((t?e:i)||0,(t?i:e)||0)},Ky=Yf({devicePixelContentBoxSize:Ju(),borderBoxSize:Ju(),contentBoxSize:Ju(),contentRect:new Z3(0,0,0,0)}),K3=function(i,e){if(e===void 0&&(e=!1),Tp.has(i)&&!e)return Tp.get(i);if(Q3(i))return Tp.set(i,Ky),Ky;var t=getComputedStyle(i),n=u_(i)&&i.ownerSVGElement&&i.getBBox(),l=!BC&&t.boxSizing==="border-box",s=$C.test(t.writingMode||""),c=!n&&Qy.test(t.overflowY||""),d=!n&&Qy.test(t.overflowX||""),u=n?0:ld(t.paddingTop),h=n?0:ld(t.paddingRight),m=n?0:ld(t.paddingBottom),b=n?0:ld(t.paddingLeft),g=n?0:ld(t.borderTopWidth),_=n?0:ld(t.borderRightWidth),z=n?0:ld(t.borderBottomWidth),X=n?0:ld(t.borderLeftWidth),y=b+h,E=u+m,T=X+_,w=g+z,I=d?i.offsetHeight-w-i.clientHeight:0,K=c?i.offsetWidth-T-i.clientWidth:0,U=l?y+T:0,Y=l?E+w:0,J=n?n.width:ld(t.width)-U-K,S=n?n.height:ld(t.height)-Y-I,Q=J+y+K+T,ae=S+E+I+w,x=Yf({devicePixelContentBoxSize:Ju(Math.round(J*devicePixelRatio),Math.round(S*devicePixelRatio),s),borderBoxSize:Ju(Q,ae,s),contentBoxSize:Ju(J,S,s),contentRect:new Z3(b,u,J,S)});return Tp.set(i,x),x},J3=function(i,e,t){var n=K3(i,t),l=n.borderBoxSize,s=n.contentBoxSize,c=n.devicePixelContentBoxSize;switch(e){case Om.DEVICE_PIXEL_CONTENT_BOX:return c;case Om.BORDER_BOX:return l;default:return s}},HC=function(){function i(e){var t=K3(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Yf([t.borderBoxSize]),this.contentBoxSize=Yf([t.contentBoxSize]),this.devicePixelContentBoxSize=Yf([t.devicePixelContentBoxSize])}return i}(),ew=function(i){if(Q3(i))return 1/0;for(var e=0,t=i.parentNode;t;)e+=1,t=t.parentNode;return e},PC=function(){var i=1/0,e=[];qf.forEach(function(c){if(c.activeTargets.length!==0){var d=[];c.activeTargets.forEach(function(h){var m=new HC(h.target),b=ew(h.target);d.push(m),h.lastReportedSize=J3(h.target,h.observedBox),b<i&&(i=b)}),e.push(function(){c.callback.call(c.observer,d,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var t=0,n=e;t<n.length;t++){var l=n[t];l()}return i},Jy=function(i){qf.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(l){l.isActive()&&(ew(l.target)>i?t.activeTargets.push(l):t.skippedTargets.push(l))})})},UC=function(){var i=0;for(Jy(i);RC();)i=PC(),Jy(i);return FC()&&MC(),i>0},jb,tw=[],GC=function(){return tw.splice(0).forEach(function(i){return i()})},VC=function(i){if(!jb){var e=0,t=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return GC()}).observe(t,n),jb=function(){t.textContent="".concat(e?e--:e++)}}tw.push(i),jb()},WC=function(i){VC(function(){requestAnimationFrame(i)})},Qp=0,jC=function(){return!!Qp},qC=250,YC={attributes:!0,characterData:!0,childList:!0,subtree:!0},ev=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],tv=function(i){return i===void 0&&(i=0),Date.now()+i},qb=!1,XC=function(){function i(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return i.prototype.run=function(e){var t=this;if(e===void 0&&(e=qC),!qb){qb=!0;var n=tv(e);WC(function(){var l=!1;try{l=UC()}finally{if(qb=!1,e=n-tv(),!jC())return;l?t.run(1e3):e>0?t.run(e):t.start()}})}},i.prototype.schedule=function(){this.stop(),this.run()},i.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,YC)};document.body?t():bm.addEventListener("DOMContentLoaded",t)},i.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ev.forEach(function(t){return bm.addEventListener(t,e.listener,!0)}))},i.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),ev.forEach(function(t){return bm.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},i}(),zg=new XC,iv=function(i){!Qp&&i>0&&zg.start(),Qp+=i,!Qp&&zg.stop()},ZC=function(i){return!u_(i)&&!NC(i)&&getComputedStyle(i).display==="inline"},QC=function(){function i(e,t){this.target=e,this.observedBox=t||Om.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return i.prototype.isActive=function(){var e=J3(this.target,this.observedBox,!0);return ZC(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},i}(),KC=function(){function i(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return i}(),Op=new WeakMap,nv=function(i,e){for(var t=0;t<i.length;t+=1)if(i[t].target===e)return t;return-1},kp=function(){function i(){}return i.connect=function(e,t){var n=new KC(e,t);Op.set(e,n)},i.observe=function(e,t,n){var l=Op.get(e),s=l.observationTargets.length===0;nv(l.observationTargets,t)<0&&(s&&qf.push(l),l.observationTargets.push(new QC(t,n&&n.box)),iv(1),zg.schedule())},i.unobserve=function(e,t){var n=Op.get(e),l=nv(n.observationTargets,t),s=n.observationTargets.length===1;l>=0&&(s&&qf.splice(qf.indexOf(n),1),n.observationTargets.splice(l,1),iv(-1))},i.disconnect=function(e){var t=this,n=Op.get(e);n.observationTargets.slice().forEach(function(l){return t.unobserve(e,l.target)}),n.activeTargets.splice(0,n.activeTargets.length)},i}(),m0=function(){function i(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");kp.connect(this,e)}return i.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zy(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");kp.observe(this,e,t)},i.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Zy(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");kp.unobserve(this,e)},i.prototype.disconnect=function(){kp.disconnect(this)},i.toString=function(){return"function ResizeObserver () { [polyfill code] }"},i}();function JC(i){return i}var ez=3,rv=1e-6;function tz(i){return"translate("+i+",0)"}function iz(i){return e=>+i(e)}function nz(i,e){return e=Math.max(0,i.bandwidth()-e*2)/2,i.round()&&(e=Math.round(e)),t=>+i(t)+e}function rz(){return!this.__axis}function az(i,e){var t=[],n=null,l=null,s=6,c=6,d=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=1,m="y",b=tz;function g(_){var z=n??(e.ticks?e.ticks.apply(e,t):e.domain()),X=l??(e.tickFormat?e.tickFormat.apply(e,t):JC),y=Math.max(s,0)+d,E=e.range(),T=+E[0]+u,w=+E[E.length-1]+u,I=(e.bandwidth?nz:iz)(e.copy(),u),K=_.selection?_.selection():_,U=K.selectAll(".domain").data([null]),Y=K.selectAll(".tick").data(z,e).order(),J=Y.exit(),S=Y.enter().append("g").attr("class","tick"),Q=Y.select("line"),ae=Y.select("text");U=U.merge(U.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),Y=Y.merge(S),Q=Q.merge(S.append("line").attr("stroke","currentColor").attr(m+"2",h*s)),ae=ae.merge(S.append("text").attr("fill","currentColor").attr(m,h*y).attr("dy","0.71em")),_!==K&&(U=U.transition(_),Y=Y.transition(_),Q=Q.transition(_),ae=ae.transition(_),J=J.transition(_).attr("opacity",rv).attr("transform",function(x){return isFinite(x=I(x))?b(x+u):this.getAttribute("transform")}),S.attr("opacity",rv).attr("transform",function(x){var A=this.parentNode.__axis;return b((A&&isFinite(A=A(x))?A:I(x))+u)})),J.remove(),U.attr("d",c?"M"+T+","+h*c+"V"+u+"H"+w+"V"+h*c:"M"+T+","+u+"H"+w),Y.attr("opacity",1).attr("transform",function(x){return b(I(x)+u)}),Q.attr(m+"2",h*s),ae.attr(m,h*y).text(X),K.filter(rz).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor","middle"),K.each(function(){this.__axis=I})}return g.scale=function(_){return arguments.length?(e=_,g):e},g.ticks=function(){return t=Array.from(arguments),g},g.tickArguments=function(_){return arguments.length?(t=_==null?[]:Array.from(_),g):t.slice()},g.tickValues=function(_){return arguments.length?(n=_==null?null:Array.from(_),g):n&&n.slice()},g.tickFormat=function(_){return arguments.length?(l=_,g):l},g.tickSize=function(_){return arguments.length?(s=c=+_,g):s},g.tickSizeInner=function(_){return arguments.length?(s=+_,g):s},g.tickSizeOuter=function(_){return arguments.length?(c=+_,g):c},g.tickPadding=function(_){return arguments.length?(d=+_,g):d},g.offset=function(_){return arguments.length?(u=+_,g):u},g}function Ig(i){return az(ez,i)}const Yb=i=>()=>i;function lz(i,{sourceEvent:e,target:t,selection:n,mode:l,dispatch:s}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:l,enumerable:!0,configurable:!0},_:{value:s}})}function sz(i){i.stopImmediatePropagation()}function Xb(i){i.preventDefault(),i.stopImmediatePropagation()}var av={name:"drag"},Zb={name:"space"},zu={name:"handle"},Iu={name:"center"};const{abs:lv,max:Ro,min:Fo}=Math;function sv(i){return[+i[0],+i[1]]}function ov(i){return[sv(i[0]),sv(i[1])]}var Kp={name:"x",handles:["w","e"].map(Lg),input:function(i,e){return i==null?null:[[+i[0],e[0][1]],[+i[1],e[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},Qb={},Od={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},cv={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},dv={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},oz={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},cz={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Lg(i){return{type:i}}function dz(i){return!i.ctrlKey&&!i.button}function fz(){var i=this.ownerSVGElement||this;return i.hasAttribute("viewBox")?(i=i.viewBox.baseVal,[[i.x,i.y],[i.x+i.width,i.y+i.height]]):[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]}function uz(){return navigator.maxTouchPoints||"ontouchstart"in this}function Kb(i){for(;!i.__brush;)if(!(i=i.parentNode))return;return i.__brush}function hz(i){return i[0][0]===i[1][0]||i[0][1]===i[1][1]}function iw(){return mz(Kp)}function mz(i){var e=fz,t=dz,n=uz,l=!0,s=O0("start","brush","end"),c=6,d;function u(y){var E=y.property("__brush",X).selectAll(".overlay").data([Lg("overlay")]);E.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Od.overlay).merge(E).each(function(){var w=Kb(this).extent;Ma(this).attr("x",w[0][0]).attr("y",w[0][1]).attr("width",w[1][0]-w[0][0]).attr("height",w[1][1]-w[0][1])}),y.selectAll(".selection").data([Lg("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Od.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var T=y.selectAll(".handle").data(i.handles,function(w){return w.type});T.exit().remove(),T.enter().append("rect").attr("class",function(w){return"handle handle--"+w.type}).attr("cursor",function(w){return Od[w.type]}),y.each(h).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",g).filter(n).on("touchstart.brush",g).on("touchmove.brush",_).on("touchend.brush touchcancel.brush",z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(y,E,T){y.tween?y.on("start.brush",function(w){m(this,arguments).beforestart().start(w)}).on("interrupt.brush end.brush",function(w){m(this,arguments).end(w)}).tween("brush",function(){var w=this,I=w.__brush,K=m(w,arguments),U=I.selection,Y=i.input(typeof E=="function"?E.apply(this,arguments):E,I.extent),J=z0(U,Y);function S(Q){I.selection=Q===1&&Y===null?null:J(Q),h.call(w),K.brush()}return U!==null&&Y!==null?S:S(1)}):y.each(function(){var w=this,I=arguments,K=w.__brush,U=i.input(typeof E=="function"?E.apply(w,I):E,K.extent),Y=m(w,I).beforestart();Zu(w),K.selection=U===null?null:U,h.call(w),Y.start(T).brush(T).end(T)})},u.clear=function(y,E){u.move(y,null,E)};function h(){var y=Ma(this),E=Kb(this).selection;E?(y.selectAll(".selection").style("display",null).attr("x",E[0][0]).attr("y",E[0][1]).attr("width",E[1][0]-E[0][0]).attr("height",E[1][1]-E[0][1]),y.selectAll(".handle").style("display",null).attr("x",function(T){return T.type[T.type.length-1]==="e"?E[1][0]-c/2:E[0][0]-c/2}).attr("y",function(T){return T.type[0]==="s"?E[1][1]-c/2:E[0][1]-c/2}).attr("width",function(T){return T.type==="n"||T.type==="s"?E[1][0]-E[0][0]+c:c}).attr("height",function(T){return T.type==="e"||T.type==="w"?E[1][1]-E[0][1]+c:c})):y.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function m(y,E,T){var w=y.__brush.emitter;return w&&(!T||!w.clean)?w:new b(y,E,T)}function b(y,E,T){this.that=y,this.args=E,this.state=y.__brush,this.active=0,this.clean=T}b.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(y,E){return this.starting?(this.starting=!1,this.emit("start",y,E)):this.emit("brush",y),this},brush:function(y,E){return this.emit("brush",y,E),this},end:function(y,E){return--this.active===0&&(delete this.state.emitter,this.emit("end",y,E)),this},emit:function(y,E,T){var w=Ma(this.that).datum();s.call(y,this.that,new lz(y,{sourceEvent:E,target:u,selection:i.output(this.state.selection),mode:T,dispatch:s}),w)}};function g(y){if(d&&!y.touches||!t.apply(this,arguments))return;var E=this,T=y.target.__data__.type,w=(l&&y.metaKey?T="overlay":T)==="selection"?av:l&&y.altKey?Iu:zu,I=i===Qb?null:oz[T],K=i===Kp?null:cz[T],U=Kb(E),Y=U.extent,J=U.selection,S=Y[0][0],Q,ae,x=Y[0][1],A,O,k=Y[1][0],C,ee,Re=Y[1][1],ge,F,H=0,R=0,$,q=I&&K&&l&&y.shiftKey,se,te,qe=Array.from(y.touches||[y],Fe=>{const he=Fe.identifier;return Fe=Cd(Fe,E),Fe.point0=Fe.slice(),Fe.identifier=he,Fe});Zu(E);var we=m(E,arguments,!0).beforestart();if(T==="overlay"){J&&($=!0);const Fe=[qe[0],qe[1]||qe[0]];U.selection=J=[[Q=i===Qb?S:Fo(Fe[0][0],Fe[1][0]),A=i===Kp?x:Fo(Fe[0][1],Fe[1][1])],[C=i===Qb?k:Ro(Fe[0][0],Fe[1][0]),ge=i===Kp?Re:Ro(Fe[0][1],Fe[1][1])]],qe.length>1&&W(y)}else Q=J[0][0],A=J[0][1],C=J[1][0],ge=J[1][1];ae=Q,O=A,ee=C,F=ge;var Se=Ma(E).attr("pointer-events","none"),G=Se.selectAll(".overlay").attr("cursor",Od[T]);if(y.touches)we.moved=Ae,we.ended=re;else{var de=Ma(y.view).on("mousemove.brush",Ae,!0).on("mouseup.brush",re,!0);l&&de.on("keydown.brush",Rt,!0).on("keyup.brush",Ve,!0),D3(y.view)}h.call(E),we.start(y,w.name);function Ae(Fe){for(const he of Fe.changedTouches||[Fe])for(const L of qe)L.identifier===he.identifier&&(L.cur=Cd(he,E));if(q&&!se&&!te&&qe.length===1){const he=qe[0];lv(he.cur[0]-he[0])>lv(he.cur[1]-he[1])?te=!0:se=!0}for(const he of qe)he.cur&&(he[0]=he.cur[0],he[1]=he.cur[1]);$=!0,Xb(Fe),W(Fe)}function W(Fe){const he=qe[0],L=he.point0;var Z;switch(H=he[0]-L[0],R=he[1]-L[1],w){case Zb:case av:{I&&(H=Ro(S-Q,Fo(k-C,H)),ae=Q+H,ee=C+H),K&&(R=Ro(x-A,Fo(Re-ge,R)),O=A+R,F=ge+R);break}case zu:{qe[1]?(I&&(ae=Ro(S,Fo(k,qe[0][0])),ee=Ro(S,Fo(k,qe[1][0])),I=1),K&&(O=Ro(x,Fo(Re,qe[0][1])),F=Ro(x,Fo(Re,qe[1][1])),K=1)):(I<0?(H=Ro(S-Q,Fo(k-Q,H)),ae=Q+H,ee=C):I>0&&(H=Ro(S-C,Fo(k-C,H)),ae=Q,ee=C+H),K<0?(R=Ro(x-A,Fo(Re-A,R)),O=A+R,F=ge):K>0&&(R=Ro(x-ge,Fo(Re-ge,R)),O=A,F=ge+R));break}case Iu:{I&&(ae=Ro(S,Fo(k,Q-H*I)),ee=Ro(S,Fo(k,C+H*I))),K&&(O=Ro(x,Fo(Re,A-R*K)),F=Ro(x,Fo(Re,ge+R*K)));break}}ee<ae&&(I*=-1,Z=Q,Q=C,C=Z,Z=ae,ae=ee,ee=Z,T in cv&&G.attr("cursor",Od[T=cv[T]])),F<O&&(K*=-1,Z=A,A=ge,ge=Z,Z=O,O=F,F=Z,T in dv&&G.attr("cursor",Od[T=dv[T]])),U.selection&&(J=U.selection),se&&(ae=J[0][0],ee=J[1][0]),te&&(O=J[0][1],F=J[1][1]),(J[0][0]!==ae||J[0][1]!==O||J[1][0]!==ee||J[1][1]!==F)&&(U.selection=[[ae,O],[ee,F]],h.call(E),we.brush(Fe,w.name))}function re(Fe){if(sz(Fe),Fe.touches){if(Fe.touches.length)return;d&&clearTimeout(d),d=setTimeout(function(){d=null},500)}else N3(Fe.view,$),de.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);Se.attr("pointer-events","all"),G.attr("cursor",Od.overlay),U.selection&&(J=U.selection),hz(J)&&(U.selection=null,h.call(E)),we.end(Fe,w.name)}function Rt(Fe){switch(Fe.keyCode){case 16:{q=I&&K;break}case 18:{w===zu&&(I&&(C=ee-H*I,Q=ae+H*I),K&&(ge=F-R*K,A=O+R*K),w=Iu,W(Fe));break}case 32:{(w===zu||w===Iu)&&(I<0?C=ee-H:I>0&&(Q=ae-H),K<0?ge=F-R:K>0&&(A=O-R),w=Zb,G.attr("cursor",Od.selection),W(Fe));break}default:return}Xb(Fe)}function Ve(Fe){switch(Fe.keyCode){case 16:{q&&(se=te=q=!1,W(Fe));break}case 18:{w===Iu&&(I<0?C=ee:I>0&&(Q=ae),K<0?ge=F:K>0&&(A=O),w=zu,W(Fe));break}case 32:{w===Zb&&(Fe.altKey?(I&&(C=ee-H*I,Q=ae+H*I),K&&(ge=F-R*K,A=O+R*K),w=Iu):(I<0?C=ee:I>0&&(Q=ae),K<0?ge=F:K>0&&(A=O),w=zu),G.attr("cursor",Od[T]),W(Fe));break}default:return}Xb(Fe)}}function _(y){m(this,arguments).moved(y)}function z(y){m(this,arguments).ended(y)}function X(){var y=this.__brush||{selection:null};return y.extent=ov(e.apply(this,arguments)),y.dim=i,y}return u.extent=function(y){return arguments.length?(e=typeof y=="function"?y:Yb(ov(y)),u):e},u.filter=function(y){return arguments.length?(t=typeof y=="function"?y:Yb(!!y),u):t},u.touchable=function(y){return arguments.length?(n=typeof y=="function"?y:Yb(!!y),u):n},u.handleSize=function(y){return arguments.length?(c=+y,u):c},u.keyModifiers=function(y){return arguments.length?(l=!!y,u):l},u.on=function(){var y=s.on.apply(s,arguments);return y===s?u:y},u}const pz='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z"/></svg>',bz='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"/></svg>',gz=hd(".%L"),_z=hd(":%S"),yz=hd("%I:%M"),vz=hd("%I %p"),xz=hd("%a %d"),wz=hd("%b %d"),Sz=hd("%b"),Az=hd("%Y"),Ez=i=>{const e=new Date(i);return(Vf(e)<e?gz:R0(e)<e?_z:F0(e)<e?yz:ph(e)<e?vz:M0(e)<e?Fm(e)<e?xz:wz:fd(e)<e?Sz:Az)(e)},Tz=i=>typeof i=="function",Oz=i=>Array.isArray(i),kz=i=>i instanceof Object,p0=i=>i.constructor.name!=="Function"&&i.constructor.name!=="Object",Rg=i=>kz(i)&&!Oz(i)&&!Tz(i)&&!p0(i),b0=(i,e=new Map)=>{if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i.getTime());if(i instanceof Array){const t=[];e.set(i,t);for(const n of i)t.push(e.has(n)?e.get(n):b0(n,e));return i}if(p0(i))return i;if(i instanceof Object){const t={};e.set(i,t);const n=i;return Object.keys(i).reduce((l,s)=>(l[s]=e.has(n[s])?e.get(n[s]):b0(n[s],e),l),t),t}return i},Ic=(i,e,t=new Map)=>{const n=p0(i)?i:b0(i);return i===e?i:t.has(e)?t.get(e):(t.set(e,n),Object.keys(e).forEach(l=>{Rg(i[l])&&Rg(e[l])?n[l]=Ic(i[l],e[l],t):p0(e)?n[l]=e:n[l]=b0(e[l])}),n)},Cz=(i,e,t)=>i>=+e&&+i<=+t,Fg=(i,e)=>{const[t,n]=e,l=Array.from(i.keys());let s=0;return l.forEach(c=>{var d;Cz(+c,+t,+n)&&(s+=(d=i.get(c))!==null&&d!==void 0?d:0)}),s},zz=i=>{const e=getComputedStyle(i);let t=i.clientWidth,n=i.clientHeight;return n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),{height:n,width:t}};let nw=class{init(e){const t=this;return Object.keys(e).forEach(n=>{Rg(t[n])?t[n]=Ic(t[n],e[n]):t[n]=e[n]}),this}};const Iz={top:1,left:0,bottom:1,right:0};let fv=class extends nw{constructor(){super(...arguments),this.allowSelection=!0,this.showAnimationControls=!1,this.animationSpeed=50,this.padding=Iz,this.axisTickHeight=25,this.selectionRadius=3,this.selectionPadding=8,this.barCount=100,this.barRadius=1,this.barPadding=.1,this.barTopMargin=3,this.minBarHeight=1,this.dataStep=void 0,this.tickStep=void 0,this.formatter=Ez,this.events={onBrush:void 0,onBarHover:void 0,onAnimationPlay:void 0,onAnimationPause:void 0}}};var uv=[],am=[];function N0(i,e){if(i&&typeof document<"u"){var t,n=e.prepend===!0?"prepend":"append",l=e.singleTag===!0,s=typeof e.container=="string"?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(l){var c=uv.indexOf(s);c===-1&&(c=uv.push(s)-1,am[c]={}),t=am[c]&&am[c][n]?am[c][n]:am[c][n]=d()}else t=d();i.charCodeAt(0)===65279&&(i=i.substring(1)),t.styleSheet?t.styleSheet.cssText+=i:t.appendChild(document.createTextNode(i))}function d(){var u=document.createElement("style");if(u.setAttribute("type","text/css"),e.attributes)for(var h=Object.keys(e.attributes),m=0;m<h.length;m++)u.setAttribute(h[m],e.attributes[h[m]]);var b=n==="prepend"?"afterbegin":"beforeend";return s.insertAdjacentElement(b,u),u}}var Lz=":root{--cosmograph-timeline-text-color:#fff;--cosmograph-timeline-axis-color:#fff;--cosmograph-timeline-selection-color:#777;--cosmograph-timeline-selection-opacity:0.5;--cosmograph-timeline-bar-color:#7a7a7a;--cosmograph-timeline-font-family:inherit;--cosmograph-timeline-font-size:11px;--cosmograph-timeline-background:#222}.style_module_timeline__f90332e1{background:var(--cosmograph-timeline-background);display:flex;overflow:hidden;position:relative;width:100%}.style_module_timelineSvg__f90332e1{height:100%;position:relative;width:100%}.style_module_selection__f90332e1{fill:var(--cosmograph-timeline-selection-color);fill-opacity:var(--cosmograph-timeline-selection-opacity);stroke:none}.style_module_axisTick__f90332e1{text-anchor:initial;alignment-baseline:text-before-edge;color:var(--cosmograph-timeline-axis-color);font:var(--cosmograph-timeline-font-family);font-size:var(--cosmograph-timeline-font-size);font-weight:400;opacity:.7;user-select:none}.style_module_axisLine__f90332e1{color:var(--cosmograph-timeline-axis-color);opacity:.2}.style_module_bar__f90332e1{fill:var(--cosmograph-timeline-bar-color);opacity:0;transform:scaleY(-1)}.style_module_noData__f90332e1{height:100%;position:absolute;top:0;width:100%}.style_module_noData__f90332e1 div{align-items:center;display:flex;font-size:calc(var(--cosmograph-timeline-font-size) + 5px);font-weight:300;height:100%;justify-content:center;letter-spacing:1;opacity:.25;user-select:none}.style_module_animationControl__f90332e1{align-items:center;color:var(--cosmograph-timeline-axis-color);cursor:pointer;display:flex;height:100%;justify-content:center;max-width:30px;min-width:20px;opacity:.5;position:relative;user-select:none;width:6%}.style_module_animationControl__f90332e1>svg{max-height:20px;padding-right:2px;width:50%}.style_module_hidden__f90332e1{display:none}.style_module_disabled__f90332e1{opacity:.2;pointer-events:none}",sa={timeline:"style_module_timeline__f90332e1",timelineSvg:"style_module_timelineSvg__f90332e1",selection:"style_module_selection__f90332e1",axisTick:"style_module_axisTick__f90332e1",axisLine:"style_module_axisLine__f90332e1",bar:"style_module_bar__f90332e1",noData:"style_module_noData__f90332e1",axis:"style_module_axis__f90332e1",bars:"style_module_bars__f90332e1",brush:"style_module_brush__f90332e1",animationControl:"style_module_animationControl__f90332e1",hidden:"style_module_hidden__f90332e1",disabled:"style_module_disabled__f90332e1",playAnimation:"style_module_playAnimation__f90332e1",pauseAnimation:"style_module_pauseAnimation__f90332e1"};N0(Lz,{});let Rz=class{constructor(e,t){var n;if(this._isAnimationRunning=!1,this._svgParser=new DOMParser,this._height=0,this._width=0,this._timelineWidth=0,this._timelineHeight=0,this._config=new fv,this._barWidth=0,this._maxCount=0,this._barsData=[],this._timeData=void 0,this._bandIntervals=[],this._isNumericTimeline=!1,this._firstRender=!0,this._yScale=o_(),this._timeScale=RO(),this._numScale=Zf(),this._activeAxisScale=this._timeScale,this._timeAxis=Ig(this._timeScale),this._numAxis=Ig(this._numScale),this._toggleAnimation=l=>{l.preventDefault(),this._isAnimationRunning?this.pauseAnimation():this.playAnimation()},this._disableAnimation=()=>{var l,s;this.pauseAnimation(),(l=this._animationControlDiv)===null||l===void 0||l.removeEventListener("click",this._toggleAnimation),(s=this._animationControlDiv)===null||s===void 0||s.remove()},this.playAnimation=()=>{var l,s,c,d;clearInterval(this._animationInterval),this._currentSelectionInPixels&&(this._animationInterval=setInterval(this._animateSelection,this._config.animationSpeed),this._isAnimationRunning=!0,(s=(l=this._config.events).onAnimationPlay)===null||s===void 0||s.call(l,this._isAnimationRunning,this._currentSelection)),(c=this._pauseButtonSvg)===null||c===void 0||c.classList.remove(sa.hidden),(d=this._playButtonSvg)===null||d===void 0||d.classList.add(sa.hidden)},this.pauseAnimation=()=>{var l,s,c,d;clearInterval(this._animationInterval),this._isAnimationRunning=!1,(s=(l=this._config.events).onAnimationPause)===null||s===void 0||s.call(l,this._isAnimationRunning,this._currentSelection),(c=this._pauseButtonSvg)===null||c===void 0||c.classList.add(sa.hidden),(d=this._playButtonSvg)===null||d===void 0||d.classList.remove(sa.hidden)},this.stopAnimation=()=>{var l,s;this.pauseAnimation(),this.setSelection(void 0),(s=(l=this._config.events).onBrush)===null||s===void 0||s.call(l,void 0)},this._animateSelection=()=>{var l,s;const c=this._currentSelectionInPixels;c&&c[0]!==void 0&&c[1]!==void 0&&(this.setSelectionInPixels([c[0]+this._barWidth,c[1]+this._barWidth]),c[1]!==((l=this._currentSelectionInPixels)===null||l===void 0?void 0:l[1])&&((s=this._currentSelectionInPixels)===null||s===void 0?void 0:s[1])!==void 0||this.stopAnimation())},this._checkLastTickPosition=()=>{var l;const s=this._axisGroup.selectAll(".tick:last-of-type").nodes();if(s?.length){const c=s[0],d=c?.getBoundingClientRect().right,u=(l=this._svg)===null||l===void 0?void 0:l.getBoundingClientRect().right;c.style.display=d>=u?"none":"inherit"}},this.destroy=()=>{this._containerNode.innerHTML="",clearInterval(this._animationInterval)},t&&this._config.init(t),this._containerNode=e,this._svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._svg.classList.add(sa.timelineSvg),this._animationControlDiv=document.createElement("div"),this._animationControlDiv.classList.add(sa.animationControl),this._containerNode.classList.add(sa.timeline),this._containerNode.appendChild(this._svg),this._noDataDiv=document.createElement("div"),Ma(this._noDataDiv).style("display","none").attr("class",sa.noData).append("div").text("No timeline data"),this._containerNode.appendChild(this._noDataDiv),(n=this._config)===null||n===void 0?void 0:n.showAnimationControls){const l=setInterval(()=>{this._containerNode!==null&&(this._initAnimationControls(),clearInterval(l))},100)}this._barsGroup=Ma(this._svg).append("g").attr("class",sa.bars),this._axisGroup=Ma(this._svg).append("g").attr("class",sa.axis),this._brushGroup=Ma(this._svg).append("g").attr("class",sa.brush),this._timeAxis.tickFormat(this._config.formatter),this._numAxis.tickFormat(this._config.formatter),this._resizeObserver=new m0(l=>{window.requestAnimationFrame(()=>{Array.isArray(l)&&l.length&&this.resize()})}),this._resizeObserver=new m0(()=>{this.resize()}),this._resizeObserver.observe(this._containerNode)}get _barPadding(){return this._barWidth*this._config.barPadding}getCurrentSelection(){return this._currentSelection}getCurrentSelectionInPixels(){return this._currentSelectionInPixels}getBarWidth(){return this._barWidth-this._barPadding}getConfig(){return this._config}getIsAnimationRunning(){return this._isAnimationRunning}setConfig(e){var t,n,l,s,c,d;const u=JSON.parse(JSON.stringify(this._config));e?this._config.init(e):this._config=new fv,!((t=this._config)===null||t===void 0)&&t.showAnimationControls?!((n=this._animationControlDiv)===null||n===void 0)&&n.isConnected||this._initAnimationControls():this._animationControlDiv&&this._disableAnimation(),this._config.allowSelection||this._disableBrush(),this._config.formatter&&(this._timeAxis.tickFormat(this._config.formatter),this._numAxis.tickFormat(this._config.formatter)),((l=this._config)===null||l===void 0?void 0:l.dataStep)===((s=u.config)===null||s===void 0?void 0:s.dataStep)&&((c=this._config)===null||c===void 0?void 0:c.barCount)===((d=u.config)===null||d===void 0?void 0:d.barCount)||this._updateTimelineData(),this.resize()}setTimeData(e){var t,n,l;this._timeData=e?.filter(s=>!isNaN(+s)&&s!==void 0),this._currentSelection=void 0,(n=(t=this._config.events).onBrush)===null||n===void 0||n.call(t,this._currentSelection),this._updateScales(),Ma(this._noDataDiv).style("display","none"),!((l=this._timeData)===null||l===void 0)&&l.length?(this._dateExtent=lh(this._timeData),this._updateTimelineData()):(this._barsData=[],this._axisGroup.selectAll("*").remove(),this._barsGroup.selectAll("*").remove(),this._brushGroup.selectAll("*").remove(),Ma(this._noDataDiv).style("display","block"),this._firstRender=!0)}_getBarsData(e,t){var n,l;if(!(e[1]<=e[0])&&(!((n=this._timeData)===null||n===void 0)&&n.length)&&this._dateExtent){const s=_g(this._timeData,m=>m.length,m=>m),c=(l=this._config.dataStep)!==null&&l!==void 0?l:(e[1]-e[0])/(this._config.barCount-1);if(c===0)return;this._bandIntervals=wg(+e[0],+e[1],c);const d=this._bandIntervals[this._bandIntervals.length-1];let u=this._config.dataStep?+d+c:e[1];t&&(this._bandIntervals=this._bandIntervals.map(m=>new Date(m)),u=new Date(u)),d<e[1]&&this._bandIntervals.push(u);const h=xg(this._bandIntervals);this._barsData=h.map(m=>({rangeStart:m[0],rangeEnd:m[1],count:Fg(s,m)}))}}_updateTimelineData(){var e;if(!((e=this._timeData)===null||e===void 0)&&e.length&&this._dateExtent){if(this._isNumericTimeline=!(this._timeData[0]instanceof Date),this._isNumericTimeline)this._getBarsData(this._dateExtent);else{this._timeData=this._timeData.map(n=>new Date(n));const t=this._dateExtent.map(n=>{var l;return(l=n.getTime())!==null&&l!==void 0?l:0});this._getBarsData(t)}this._maxCount=Math.max(...this._barsData.map(t=>t.count))}}setSelection(e,t=!1){var n,l,s,c;const d=this._currentSelection;e&&this._dateExtent&&e[0]>=this._dateExtent[0]&&e[1]<=this._dateExtent[1]&&e[0]<e[1]?(this._currentSelection=e,this._currentSelectionInPixels=this._currentSelection.map(this._activeAxisScale),(n=this._animationControlDiv)===null||n===void 0||n.classList.remove(sa.disabled)):(this._currentSelection=void 0,this._currentSelectionInPixels=void 0,(l=this._animationControlDiv)===null||l===void 0||l.classList.add(sa.disabled));const{_currentSelection:u}=this;t||d?.[0]===u?.[0]&&d?.[1]===u?.[1]||(c=(s=this._config.events).onBrush)===null||c===void 0||c.call(s,this._currentSelection,!0),this._brushInstance&&!this._firstRender&&this._brushGroup.call(this._brushInstance.move,this._currentSelectionInPixels)}setSelectionInPixels(e){var t,n,l,s,c;e&&e[0]>0&&e[1]<this._timelineWidth&&e[0]<e[1]?(this._currentSelection=e.map(d=>this._activeAxisScale.invert(d)),this._currentSelectionInPixels=(t=this._currentSelection)===null||t===void 0?void 0:t.map(this._activeAxisScale),(n=this._animationControlDiv)===null||n===void 0||n.classList.remove(sa.disabled)):(this._currentSelection=void 0,this._currentSelectionInPixels=void 0,(l=this._animationControlDiv)===null||l===void 0||l.classList.add(sa.disabled)),this._brushInstance&&!this._firstRender&&this._brushGroup.call(this._brushInstance.move,this._currentSelectionInPixels),(c=(s=this._config.events).onBrush)===null||c===void 0||c.call(s,this._currentSelection)}resize(){const{height:e,width:t}=zz(this._containerNode),{offsetWidth:n}=this._animationControlDiv;this._width=t,this._height=e,this._timelineWidth=this._width-this._config.padding.left-this._config.padding.right-n,this._timelineHeight=this._height-this._config.padding.top-this._config.padding.bottom,this._timelineHeight>this._config.padding.top+this._config.padding.bottom&&(this._updateScales(),this._checkLastTickPosition(),this._currentSelection&&this.setSelection(this._currentSelection,!0),this.render())}render(){this._updateBrush(),this._updateBars(),this._updateAxis(),this._firstRender&&(this._firstRender=!1)}_updateAxis(){this._timeData&&(this._axisGroup.style("transform",`translate(${this._config.padding.left}px, ${this._config.padding.top+this._config.axisTickHeight+1+this._config.selectionPadding/2}px)`).call(this._isNumericTimeline?this._numAxis:this._timeAxis).call(e=>e.select(".domain").remove()),this._axisGroup.selectAll(".tick").select("text").attr("class",sa.axisTick).attr("y",0).attr("dy",-this._config.axisTickHeight).attr("dx","5px"),this._axisGroup.selectAll("line").attr("class",sa.axisLine).attr("y2",-this._config.axisTickHeight))}_updateBrush(){var e;this._config.allowSelection&&(this._brushGroup.style("transform",`translate(${this._config.padding.left}px, ${this._config.padding.top}px)`),this._brushInstance=iw().extent([[0,0],[this._timelineWidth,this._timelineHeight]]),this._brushInstance.on("end",({selection:t,sourceEvent:n})=>{var l,s,c,d,u,h,m;n&&(t?(this._currentSelection=t.map(b=>this._activeAxisScale.invert(b)),this._currentSelectionInPixels=(l=this._currentSelection)===null||l===void 0?void 0:l.map(this._activeAxisScale),(s=this._animationControlDiv)===null||s===void 0||s.classList.remove(sa.disabled),(d=(c=this._config.events).onBrush)===null||d===void 0||d.call(c,this._currentSelection)):(this._currentSelection=void 0,this._currentSelectionInPixels=void 0,(h=(u=this._config.events).onBrush)===null||h===void 0||h.call(u,void 0),(m=this._animationControlDiv)===null||m===void 0||m.classList.add(sa.disabled)))}),this._brushGroup.call(this._brushInstance),this._currentSelection?(this._currentSelectionInPixels=this._currentSelection.map(this._activeAxisScale),this._brushGroup.call(this._brushInstance.move,this._currentSelectionInPixels)):(e=this._brushInstance)===null||e===void 0||e.clear(this._brushGroup),this._brushGroup.select("rect.selection").classed(sa.selection,!0).attr("rx",this._config.selectionRadius).attr("ry",this._config.selectionRadius))}_updateBars(){this._barsGroup.style("transform",`translate(${this._config.padding.left}px, ${this._config.padding.top-this._config.selectionPadding/2}px)`);const e=this._barsGroup.selectAll(`.${sa.bar}`).data(this._barsData).join("rect").attr("class",sa.bar).attr("x",t=>this._activeAxisScale(+t.rangeStart)+this._barPadding/2).attr("width",this.getBarWidth()).attr("rx",this._config.barRadius).attr("ry",this._config.barRadius).attr("y",-this._timelineHeight);this._config.events.onBarHover&&e.on("mouseover",this._config.events.onBarHover),e.transition().duration(300).attr("height",t=>this._yScale(t.count)).style("opacity",t=>this._yScale(t.count)===this._config.minBarHeight?.25:1)}_updateScales(){if(!this._dateExtent||!this._barsData.length)return;const e=this._barsData[this._barsData.length-1];if(this._config.tickStep){const l=wg(+this._dateExtent[0],+this._dateExtent[1],this._config.tickStep);this._isNumericTimeline?this._numAxis.tickValues(l):this._timeAxis.tickValues(l.map(s=>new Date(s)))}this._yScale.range([this._config.minBarHeight,this._timelineHeight-this._config.barTopMargin-this._config.selectionPadding]).domain([0,this._maxCount]).clamp(!0),this._isNumericTimeline?(this._numScale.domain([this._dateExtent[0],e.rangeEnd]).range([0,this._timelineWidth]).clamp(!0),this._activeAxisScale=this._numScale):(this._timeScale.domain([this._dateExtent[0],e.rangeEnd]).range([0,this._timelineWidth]).clamp(!0),this._activeAxisScale=this._timeScale);const t=this._barsData[0],n=this._activeAxisScale(t.rangeEnd)-this._activeAxisScale(t.rangeStart);this._barWidth=n}_disableBrush(){var e,t;(e=this._brushInstance)===null||e===void 0||e.clear(this._brushGroup),this._currentSelectionInPixels=void 0,this._currentSelection=void 0,this.pauseAnimation(),this._brushGroup.selectAll("*").remove(),this._config.showAnimationControls&&((t=this._animationControlDiv)===null||t===void 0||t.classList.add(sa.disabled))}async _initAnimationControls(){this._containerNode.insertBefore(this._animationControlDiv,this._svg),await(async()=>{var e,t;if(!this._animationControlDiv.firstChild){const n=this._svgParser.parseFromString(bz,"image/svg+xml").firstChild,l=this._svgParser.parseFromString(pz,"image/svg+xml").firstChild;this._pauseButtonSvg=(e=this._animationControlDiv)===null||e===void 0?void 0:e.appendChild(l),this._playButtonSvg=(t=this._animationControlDiv)===null||t===void 0?void 0:t.appendChild(n)}})().then(()=>{var e,t,n,l,s;this._isAnimationRunning?((n=this._playButtonSvg)===null||n===void 0||n.classList.add(sa.playAnimation,sa.hidden),(l=this._pauseButtonSvg)===null||l===void 0||l.classList.add(sa.pauseAnimation)):((e=this._playButtonSvg)===null||e===void 0||e.classList.add(sa.playAnimation),(t=this._pauseButtonSvg)===null||t===void 0||t.classList.add(sa.pauseAnimation,sa.hidden)),this._currentSelection||(s=this._animationControlDiv)===null||s===void 0||s.classList.add(sa.disabled),this._animationControlDiv.addEventListener("click",this._toggleAnimation)})}};const Fz={top:5,left:5,bottom:1,right:5};let hv=class extends nw{constructor(){super(...arguments),this.padding=Fz,this.barsCount=50,this.barPadding=.1,this.minBarHeight=2,this.selectionRadius=3,this.selectionPadding=8,this.barCount=30,this.dataStep=void 0,this.barRadius=1,this.barTopMargin=7,this.labelSideMargin=3,this.formatter=void 0,this.allowSelection=!0,this.stickySelection=!0,this.events={onBrush:void 0,onBarHover:void 0}}};var Mz=":root{--cosmograph-histogram-text-color:#fff;--cosmograph-histogram-axis-color:#d7d7d7;--cosmograph-histogram-selection-color:#777;--cosmograph-histogram-selection-opacity:0.5;--cosmograph-histogram-bar-color:#7a7a7a;--cosmograph-histogram-highlighted-bar-color:#fff;--cosmograph-histogram-font-family:inherit;--cosmograph-histogram-font-size:11px;--cosmograph-histogram-background:#222}.style_module_histogram__ee5eb209{background:var(--cosmograph-histogram-background);display:flex;position:relative;width:100%}.style_module_histogramSvg__ee5eb209{height:100%;position:relative;width:100%}.style_module_selection__ee5eb209{fill:var(--cosmograph-histogram-selection-color);fill-opacity:var(--cosmograph-histogram-selection-opacity);stroke:none}.style_module_axisTick__ee5eb209{alignment-baseline:text-before-edge;text-anchor:initial;font-size:var(--cosmograph-histogram-font-size);font-weight:400;opacity:1;user-select:none}.style_module_bar__ee5eb209{fill:var(--cosmograph-histogram-bar-color);transform:scaleY(-1)}.style_module_highlightedBar__ee5eb209{fill:var(--cosmograph-histogram-highlighted-bar-color);pointer-events:none;transform:scaleY(-1)}.style_module_axis__ee5eb209{color:var(--cosmograph-histogram-axis-color)}.style_module_noData__ee5eb209{height:100%;position:absolute;top:0;width:100%}.style_module_noData__ee5eb209 div{align-items:center;display:flex;font-size:calc(var(--cosmograph-histogram-font-size));font-weight:300;height:100%;justify-content:center;letter-spacing:1;opacity:.25;user-select:none}",vc={histogram:"style_module_histogram__ee5eb209",histogramSvg:"style_module_histogramSvg__ee5eb209",selection:"style_module_selection__ee5eb209",axisTick:"style_module_axisTick__ee5eb209",bar:"style_module_bar__ee5eb209",highlightedBar:"style_module_highlightedBar__ee5eb209",axis:"style_module_axis__ee5eb209",bars:"style_module_bars__ee5eb209",brush:"style_module_brush__ee5eb209",noData:"style_module_noData__ee5eb209"};N0(Mz,{});let Dz=class{constructor(e,t){var n;this._config=new hv,this._firstRender=!0,this._barWidth=0,this._maxCount=0,this._barsData=[],this._highlightedBarsData=[],this._histogramData=void 0,this._highlightedData=void 0,this._bandIntervals=[],this._calculatedStep=0,this._yScale=o_(),this._xScale=Zf(),this._axis=Ig(this._xScale),this._getClosestRange=(c,d)=>{var u;return(u=this._barsData)===null||u===void 0?void 0:u.reduce((h,m)=>Math.abs(m[d?"rangeEnd":"rangeStart"]-c)<Math.abs(h[d?"rangeEnd":"rangeStart"]-c)?m:h)};const{offsetWidth:l,offsetHeight:s}=e;t&&this._config.init(t),this._containerNode=e,this._containerNode.classList.add(vc.histogram),this._width=l,this._height=s,this._formatter=(n=t?.formatter)!==null&&n!==void 0?n:void 0,this._histogramWidth=this._width-this._config.padding.left-this._config.padding.right,this._histogramHeight=this._height-this._config.padding.top-this._config.padding.bottom,this._svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._svg.classList.add(vc.histogramSvg),this._containerNode.appendChild(this._svg),this._noDataDiv=document.createElement("div"),Ma(this._noDataDiv).style("display","none").attr("class",vc.noData).append("div").text("No histogram data"),this._containerNode.appendChild(this._noDataDiv),this._axisGroup=Ma(this._svg).append("g").attr("class",vc.axis),this._barsGroup=Ma(this._svg).append("g").attr("class",vc.bars),this._highlightedBarsGroup=Ma(this._svg).append("g").attr("class",vc.bars),this._brushGroup=Ma(this._svg).append("g").attr("class",vc.brush),this._axis.tickFormat(c=>this._formatter?this._formatter(c):c.toFixed(0)),this._resizeObserver=new m0(()=>{this.resize()}),this._resizeObserver.observe(this._containerNode)}get _barPadding(){return this._barWidth*this._config.barPadding}get getCurrentSelection(){return this._currentSelection}get getCurrentSelectionInPixels(){var e;return(e=this._currentSelectionInPixels)!==null&&e!==void 0?e:[]}getBarWidth(){return this._barWidth-this._barPadding}getConfig(){return this._config}setConfig(e){var t,n,l,s;const c=JSON.parse(JSON.stringify(this._config));e?this._config.init(e):this._config=new hv,this._config.allowSelection||this._disableBrush(),((t=this._config)===null||t===void 0?void 0:t.dataStep)===((n=c.config)===null||n===void 0?void 0:n.dataStep)&&((l=this._config)===null||l===void 0?void 0:l.barCount)===((s=c.config)===null||s===void 0?void 0:s.barCount)||(this._updateHistogramData(),this._updateHistogramHighlightedData()),this.resize()}setHistogramData(e,t){var n,l,s;t&&t[1]<=t[0]||(this._histogramData=e?.filter(c=>!isNaN(c)&&c!==void 0),this._highlightedBarsData=[],this._currentSelection=void 0,this._brushCurrentSelection(),(l=(n=this._config.events).onBrush)===null||l===void 0||l.call(n,this._currentSelection),Ma(this._noDataDiv).style("display","none"),!((s=this._histogramData)===null||s===void 0)&&s.length?(this._extent=t||lh(this._histogramData),this._firstRender=!0,this._updateHistogramData(),this._updateScales(),this.render()):Ma(this._noDataDiv).style("display","block"))}setHighlightedData(e){if(this._histogramData)if(e&&e.length!==0)this._highlightedData=e?.filter(t=>!isNaN(t)&&t!==void 0),this._updateHistogramHighlightedData(),this._updateBars(!0);else{const t=JSON.stringify(this._highlightedBarsData);this._highlightedData=[],this._highlightedBarsData=[],t!==JSON.stringify(this._highlightedBarsData)&&this._updateBars(!0)}}setSelection(e,t=!1){var n,l;const s=this._currentSelection;if(e&&this._extent&&e[0]>=this._extent[0]&&e[1]<=this._extent[1]&&e[0]<e[1]){const d=e.map(this._xScale);this._mapSelection(d)}else this._currentSelection=void 0;const{_currentSelection:c}=this;t||s?.[0]===c?.[0]&&s?.[1]===c?.[1]||(l=(n=this._config.events).onBrush)===null||l===void 0||l.call(n,this._currentSelection,!0),this._brushCurrentSelection()}resize(){const{offsetWidth:e,offsetHeight:t}=this._containerNode;this._width=e,this._height=t,this._histogramWidth=this._width-this._config.padding.left-this._config.padding.right,this._histogramHeight=this._height-this._config.padding.top-this._config.padding.bottom,this._histogramHeight>this._config.padding.top+this._config.padding.bottom&&(this._updateScales(),this._currentSelection&&this.setSelection(this._currentSelection,!0),this._firstRender||this.render())}render(){this._updateBrush(),this._updateBars(),this._updateBars(!0),this._updateAxis(),this._firstRender&&(this._firstRender=!1)}destroy(){this._containerNode.innerHTML=""}_updateAxis(){this._histogramData&&(this._axisGroup.style("transform",`translate(${this._config.padding.left}px, ${this._config.padding.top-this._config.selectionPadding/2+1}px)`).call(this._axis).call(e=>e.select(".domain").remove()),this._axisGroup.selectAll(".tick").select("text").attr("class",vc.axisTick).attr("y",0).attr("dy",0).attr("dx",this._config.labelSideMargin),this._axisGroup.selectAll(".tick:last-of-type text").attr("dx",-this._config.labelSideMargin).style("text-anchor","end"),this._axisGroup.selectAll("line").attr("y2",this._histogramHeight).attr("y1",0).attr("opacity",.1))}_updateBrush(){this._config.allowSelection&&(this._brushGroup.style("transform",`translate(${this._config.padding.left}px, ${this._config.padding.top}px)`),this._brushInstance=iw().extent([[0,0],[this._histogramWidth,this._histogramHeight]]),this._brushInstance.on("end",({selection:e,sourceEvent:t})=>{var n,l,s,c;t&&(e?(this._mapSelection(e),(l=(n=this._config.events).onBrush)===null||l===void 0||l.call(n,this._currentSelection)):(this._currentSelection=void 0,(c=(s=this._config.events).onBrush)===null||c===void 0||c.call(s,void 0)),this._brushCurrentSelection())}),this._brushGroup.call(this._brushInstance),this._brushGroup.select("rect.selection").classed(vc.selection,!0).attr("rx",this._config.selectionRadius).attr("ry",this._config.selectionRadius))}_updateBars(e){const t=e?this._highlightedBarsGroup:this._barsGroup;t.style("transform",`translate(${this._config.padding.left}px, ${this._config.padding.top-this._config.selectionPadding/2}px)`);const n=e?.5:1,l=t.selectAll(`.${e?vc.highlightedBar:vc.bar}`).data(e?this._highlightedBarsData:this._barsData).join("rect").attr("class",e?vc.highlightedBar:vc.bar).attr("x",s=>this._xScale(s.rangeStart)+this._barPadding/2).attr("width",this.getBarWidth()).attr("rx",this._config.barRadius).attr("ry",this._config.barRadius).attr("y",-this._histogramHeight);e||this._config.events.onBarHover&&l.on("mouseover",this._config.events.onBarHover),l.transition().duration(300).attr("height",s=>e&&s.count===0?0:this._yScale(s.count)).style("opacity",s=>this._yScale(s.count)===this._config.minBarHeight?.4:n)}_updateScales(){if(!this._extent||!this._barsData.length)return;const e=this._barsData[this._barsData.length-1],t=this._config.dataStep?[this._extent[0],e.rangeEnd]:this._extent;this._xScale.domain(t).range([0,this._histogramWidth]).clamp(!0),this._yScale.range([this._config.minBarHeight,this._histogramHeight-this._config.barTopMargin-this._config.selectionPadding]).domain([0,this._maxCount]).clamp(!0),this._axis.tickValues(t),this._barWidth=this._xScale(e.rangeEnd)-this._xScale(e.rangeStart)}_disableBrush(){this._currentSelection=void 0,this._brushCurrentSelection(),this._brushGroup.selectAll("*").remove()}_updateHistogramData(){var e,t;if(!((e=this._histogramData)===null||e===void 0)&&e.length&&this._extent){const n=_g(this._histogramData,c=>c.length,c=>c),l=(t=this._config.dataStep)!==null&&t!==void 0?t:Math.abs(this._extent[1]-this._extent[0])/(this._config.barCount-1);if(l===0)return;if(this._calculatedStep=l,this._bandIntervals=this._generateSequence(this._extent[0],this._extent[1],this._calculatedStep),this._config.dataStep){const c=this._bandIntervals[this._bandIntervals.length-1];c<this._extent[1]&&this._bandIntervals.push(+c+this._calculatedStep)}const s=xg(this._bandIntervals);this._barsData=s.map(c=>({rangeStart:c[0],rangeEnd:c[1],count:Fg(n,c)})),this._maxCount=Math.max(...this._barsData.map(c=>c.count))}}_updateHistogramHighlightedData(){var e;if(!((e=this._highlightedData)===null||e===void 0)&&e.length&&this._extent){const t=_g(this._highlightedData,l=>l.length,l=>l);this._bandIntervals=this._generateSequence(this._extent[0],this._extent[1],this._calculatedStep);const n=xg(this._bandIntervals);this._highlightedBarsData=n.map((l,s)=>{let c=Fg(t,l);const d=this._barsData[s];return d&&c>this._barsData[s].count&&(c=this._barsData[s].count),{rangeStart:d.rangeStart,rangeEnd:d.rangeEnd,count:c}})}}_mapSelection(e){this._barsData.length&&(this._config.stickySelection?(this._currentSelection=[this._getClosestRange(this._xScale.invert(e[0])).rangeStart,this._getClosestRange(this._xScale.invert(e[1]),!0).rangeEnd],this._currentSelection[0]===this._currentSelection[1]&&(this._currentSelection=void 0)):this._currentSelection=e.map(this._xScale.invert))}_brushCurrentSelection(){var e;this._currentSelection?(this._currentSelectionInPixels=this._currentSelection.map(this._xScale),this._brushInstance&&!this._firstRender&&this._brushGroup.call(this._brushInstance.move,this._currentSelectionInPixels)):(this._currentSelectionInPixels=void 0,(e=this._brushInstance)===null||e===void 0||e.clear(this._brushGroup))}_generateSequence(e,t,n){const l=Math.round((t-e)/n)+1,s=new Array(l);for(let c=0;c<l;c++)s[c]=e+c*n;return s}};const gm={isDisabled:!1,minMatch:1,limitSuggestions:50,truncateValues:100,maxVisibleItems:10,openListUpwards:!1,placeholder:"Search...",activeAccessorIndex:void 0,accessors:[{label:"id",accessor:i=>i.id}],matchPalette:["#fbb4ae80","#b3cde380","#ccebc580","#decbe480","#fed9a680","#ffffcc80","#e5d8bd80","#fddaec80"],ordering:void 0,events:{onSelect:void 0,onSearch:void 0,onEnter:void 0,onAccessorSelect:void 0}};var cd;(function(i){i.Input="input",i.Select="select",i.Enter="enter",i.AccessorSelect="accessorSelect"})(cd||(cd={}));function hl(){}function Xn(i,e){for(const t in e)i[t]=e[t];return i}function rw(i){return i()}function mv(){return Object.create(null)}function us(i){i.forEach(rw)}function Bl(i){return typeof i=="function"}function Rs(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}function Nz(i){return Object.keys(i).length===0}function $z(i,...e){if(i==null)return hl;const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function aw(i,e,t){i.$$.on_destroy.push($z(e,t))}function Wa(i,e,t,n){if(i){const l=lw(i,e,t,n);return i[0](l)}}function lw(i,e,t,n){return i[1]&&n?Xn(t.ctx.slice(),i[1](n(e))):t.ctx}function ja(i,e,t,n){if(i[2]&&n){const l=i[2](n(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const s=[],c=Math.max(e.dirty.length,l.length);for(let d=0;d<c;d+=1)s[d]=e.dirty[d]|l[d];return s}return e.dirty|l}return e.dirty}function qa(i,e,t,n,l,s){if(l){const c=lw(e,t,n,s);i.p(c,l)}}function Ya(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function sc(i){const e={};for(const t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Da(i,e){const t={};e=new Set(e);for(const n in i)e.has(n)||n[0]==="$"||(t[n]=i[n]);return t}function Bz(i){const e={};for(const t in i)e[t]=!0;return e}function Hz(i,e,t){return i.set(t),e}function oa(i){return i&&Bl(i.destroy)?i.destroy:hl}const Pz=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function ds(i,e){i.appendChild(e)}function Un(i,e,t){i.insertBefore(e,t||null)}function Bn(i){i.parentNode&&i.parentNode.removeChild(i)}function _a(i){return document.createElement(i)}function Mg(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function md(i){return document.createTextNode(i)}function zl(){return md(" ")}function $o(){return md("")}function Il(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Fa(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}const Uz=["width","height"];function Hl(i,e){const t=Object.getOwnPropertyDescriptors(i.__proto__);for(const n in e)e[n]==null?i.removeAttribute(n):n==="style"?i.style.cssText=e[n]:n==="__value"?i.value=i[n]=e[n]:t[n]&&t[n].set&&Uz.indexOf(n)===-1?i[n]=e[n]:Fa(i,n,e[n])}function pv(i,e){for(const t in e)Fa(i,t,e[t])}function Gz(i,e){Object.keys(e).forEach(t=>{Vz(i,t,e[t])})}function Vz(i,e,t){e in i?i[e]=typeof i[e]=="boolean"&&t===""||t:Fa(i,e,t)}function g0(i){return/-/.test(i)?Gz:Hl}function Wz(i){return Array.from(i.childNodes)}function eu(i,e){e=""+e,i.data!==e&&(i.data=e)}function bv(i,e){i.value=e??""}function Sf(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function xf(i,e,t){i.classList[t?"add":"remove"](e)}function jz(i,e,{bubbles:t=!1,cancelable:n=!1}={}){const l=document.createEvent("CustomEvent");return l.initCustomEvent(i,t,n,e),l}function uh(i,e){return new i(e)}let km;function _m(i){km=i}function Ys(){if(!km)throw new Error("Function called outside component initialization");return km}function Lc(i){Ys().$$.on_mount.push(i)}function tu(i){Ys().$$.on_destroy.push(i)}function qz(){const i=Ys();return(e,t,{cancelable:n=!1}={})=>{const l=i.$$.callbacks[e];if(l){const s=jz(e,t,{cancelable:n});return l.slice().forEach(c=>{c.call(i,s)}),!s.defaultPrevented}return!0}}function nc(i,e){return Ys().$$.context.set(i,e),e}function rc(i){return Ys().$$.context.get(i)}function _0(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const qu=[],Or=[];let eh=[];const Dg=[],sw=Promise.resolve();let Ng=!1;function ow(){Ng||(Ng=!0,sw.then(cw))}function Yz(){return ow(),sw}function $g(i){eh.push(i)}function Vc(i){Dg.push(i)}const Jb=new Set;let Lu=0;function cw(){if(Lu!==0)return;const i=km;do{try{for(;Lu<qu.length;){const e=qu[Lu];Lu++,_m(e),Xz(e.$$)}}catch(e){throw qu.length=0,Lu=0,e}for(_m(null),qu.length=0,Lu=0;Or.length;)Or.pop()();for(let e=0;e<eh.length;e+=1){const t=eh[e];Jb.has(t)||(Jb.add(t),t())}eh.length=0}while(qu.length);for(;Dg.length;)Dg.pop()();Ng=!1,Jb.clear(),_m(i)}function Xz(i){if(i.fragment!==null){i.update(),us(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach($g)}}function Zz(i){const e=[],t=[];eh.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),eh=e}const Jp=new Set;let Wf;function Ws(){Wf={r:0,c:[],p:Wf}}function js(){Wf.r||us(Wf.c),Wf=Wf.p}function ji(i,e){i&&i.i&&(Jp.delete(i),i.i(e))}function rn(i,e,t,n){if(i&&i.o){if(Jp.has(i))return;Jp.add(i),Wf.c.push(()=>{Jp.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Qz(i,e){i.d(1),e.delete(i.key)}function Kz(i,e){rn(i,1,1,()=>{e.delete(i.key)})}function dw(i,e,t,n,l,s,c,d,u,h,m,b){let g=i.length,_=s.length,z=g;const X={};for(;z--;)X[i[z].key]=z;const y=[],E=new Map,T=new Map,w=[];for(z=_;z--;){const Y=b(l,s,z),J=t(Y);let S=c.get(J);S?w.push(()=>S.p(Y,e)):(S=h(J,Y),S.c()),E.set(J,y[z]=S),J in X&&T.set(J,Math.abs(z-X[J]))}const I=new Set,K=new Set;function U(Y){ji(Y,1),Y.m(d,m),c.set(Y.key,Y),m=Y.first,_--}for(;g&&_;){const Y=y[_-1],J=i[g-1],S=Y.key,Q=J.key;Y===J?(m=Y.first,g--,_--):E.has(Q)?!c.has(S)||I.has(S)?U(Y):K.has(Q)?g--:T.get(S)>T.get(Q)?(K.add(S),U(Y)):(I.add(Q),g--):(u(J,c),g--)}for(;g--;){const Y=i[g];E.has(Y.key)||u(Y,c)}for(;_;)U(y[_-1]);return us(w),y}function ml(i,e){const t={},n={},l={$$scope:1};let s=i.length;for(;s--;){const c=i[s],d=e[s];if(d){for(const u in c)u in d||(n[u]=1);for(const u in d)l[u]||(t[u]=d[u],l[u]=1);i[s]=d}else for(const u in c)l[u]=1}for(const c in n)c in t||(t[c]=void 0);return t}function Vs(i){return typeof i=="object"&&i!==null?i:{}}function Wc(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function la(i){i&&i.c()}function Jr(i,e,t,n){const{fragment:l,after_update:s}=i.$$;l&&l.m(e,t),n||$g(()=>{const c=i.$$.on_mount.map(rw).filter(Bl);i.$$.on_destroy?i.$$.on_destroy.push(...c):us(c),i.$$.on_mount=[]}),s.forEach($g)}function ea(i,e){const t=i.$$;t.fragment!==null&&(Zz(t.after_update),us(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function wo(i,e,t,n,l,s,c,d=[-1]){const u=km;_m(i);const h=i.$$={fragment:null,ctx:[],props:s,update:hl,not_equal:l,bound:mv(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:mv(),dirty:d,skip_bound:!1,root:e.target||u.$$.root};c&&c(h.root);let m=!1;if(h.ctx=t?t(i,e.props||{},(b,g,..._)=>{const z=_.length?_[0]:g;return h.ctx&&l(h.ctx[b],h.ctx[b]=z)&&(!h.skip_bound&&h.bound[b]&&h.bound[b](z),m&&function(X,y){X.$$.dirty[0]===-1&&(qu.push(X),ow(),X.$$.dirty.fill(0)),X.$$.dirty[y/31|0]|=1<<y%31}(i,b)),g}):[],h.update(),m=!0,us(h.before_update),h.fragment=!!n&&n(h.ctx),e.target){if(e.hydrate){const b=Wz(e.target);h.fragment&&h.fragment.l(b),b.forEach(Bn)}else h.fragment&&h.fragment.c();e.intro&&ji(i.$$.fragment),Jr(i,e.target,e.anchor,e.customElement),cw()}_m(u)}class So{$destroy(){ea(this,1),this.$destroy=hl}$on(e,t){if(!Bl(t))return hl;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const l=n.indexOf(t);l!==-1&&n.splice(l,1)}}$set(e){this.$$set&&!Nz(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function gv(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}/**
463
+ * @license
464
+ * Copyright 2018 Google Inc.
465
+ *
466
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
467
+ * of this software and associated documentation files (the "Software"), to deal
468
+ * in the Software without restriction, including without limitation the rights
469
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
470
+ * copies of the Software, and to permit persons to whom the Software is
471
+ * furnished to do so, subject to the following conditions:
472
+ *
473
+ * The above copyright notice and this permission notice shall be included in
474
+ * all copies or substantial portions of the Software.
475
+ *
476
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
477
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
478
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
479
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
480
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
481
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
482
+ * THE SOFTWARE.
483
+ */function Jz(i,e){if(i.closest)return i.closest(e);for(var t=i;t;){if(fw(t,e))return t;t=t.parentElement}return null}function fw(i,e){return(i.matches||i.webkitMatchesSelector||i.msMatchesSelector).call(i,e)}function eI(i){var e=i;if(e.offsetParent!==null)return e.scrollWidth;var t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);var n=t.scrollWidth;return document.documentElement.removeChild(t),n}const h_=Object.freeze(Object.defineProperty({__proto__:null,closest:Jz,estimateScrollWidth:eI,matches:fw},Symbol.toStringTag,{value:"Module"}));function ta(i){return Object.entries(i).filter(([e,t])=>e!==""&&t).map(([e])=>e).join(" ")}function $l(i,e,t,n={bubbles:!0},l=!1){if(typeof Event>"u")throw new Error("Event not defined.");if(!i)throw new Error("Tried to dipatch event without element.");const s=new CustomEvent(e,Object.assign(Object.assign({},n),{detail:t}));if(i?.dispatchEvent(s),l&&e.startsWith("SMUI")){const c=new CustomEvent(e.replace(/^SMUI/g,()=>"MDC"),Object.assign(Object.assign({},n),{detail:t}));i?.dispatchEvent(c),c.defaultPrevented&&s.preventDefault()}return s}const _v=/^[a-z]+(?::(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/,tI=/^[^$]+(?:\$(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/;function oc(i){let e,t=[];function n(l){const s=i.$$.callbacks[l.type];s&&s.slice().forEach(c=>c.call(this,l))}return i.$on=(l,s)=>{let c=l,d=()=>{};return e?d=e(c,s):t.push([c,s]),c.match(_v)&&console&&console.warn('Event modifiers in SMUI now use "$" instead of ":", so that all events can be bound with modifiers. Please update your event binding: ',c),()=>{d()}},l=>{const s=[],c={};e=(d,u)=>{let h=d,m=u,b=!1;const g=h.match(_v),_=h.match(tI),z=g||_;if(h.match(/^SMUI:\w+:/)){const T=h.split(":");let w="";for(let I=0;I<T.length;I++)w+=I===T.length-1?":"+T[I]:T[I].split("-").map(K=>K.slice(0,1).toUpperCase()+K.slice(1)).join("");console.warn(`The event ${h.split("$")[0]} has been renamed to ${w.split("$")[0]}.`),h=w}if(z){const T=h.split(g?":":"$");h=T[0];const w=T.slice(1).reduce((I,K)=>(I[K]=!0,I),{});w.passive&&(b=b||{},b.passive=!0),w.nonpassive&&(b=b||{},b.passive=!1),w.capture&&(b=b||{},b.capture=!0),w.once&&(b=b||{},b.once=!0),w.preventDefault&&(X=m,m=function(I){return I.preventDefault(),X.call(this,I)}),w.stopPropagation&&(m=function(I){return function(K){return K.stopPropagation(),I.call(this,K)}}(m)),w.stopImmediatePropagation&&(m=function(I){return function(K){return K.stopImmediatePropagation(),I.call(this,K)}}(m)),w.self&&(m=function(I,K){return function(U){if(U.target===I)return K.call(this,U)}}(l,m)),w.trusted&&(m=function(I){return function(K){if(K.isTrusted)return I.call(this,K)}}(m))}var X;const y=yv(l,h,m,b),E=()=>{y();const T=s.indexOf(E);T>-1&&s.splice(T,1)};return s.push(E),h in c||(c[h]=yv(l,h,n)),E};for(let d=0;d<t.length;d++)e(t[d][0],t[d][1]);return{destroy:()=>{for(let d=0;d<s.length;d++)s[d]();for(let d of Object.entries(c))d[1]()}}}}function yv(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function cc(i,e){let t=[];if(e)for(let n=0;n<e.length;n++){const l=e[n],s=Array.isArray(l)?l[0]:l;Array.isArray(l)&&l.length>1?t.push(s(i,l[1])):t.push(s(i))}return{update(n){if((n&&n.length||0)!=t.length)throw new Error("You must not change the length of an actions array.");if(n)for(let l=0;l<n.length;l++){const s=t[l];if(s&&s.update){const c=n[l];Array.isArray(c)&&c.length>1?s.update(c[1]):s.update()}}},destroy(){for(let n=0;n<t.length;n++){const l=t[n];l&&l.destroy&&l.destroy()}}}}function iI(i){let e,t,n=i[1],l=i[1]&&eg(i);return{c(){l&&l.c(),e=$o()},m(s,c){l&&l.m(s,c),Un(s,e,c),t=!0},p(s,c){s[1]?n?Rs(n,s[1])?(l.d(1),l=eg(s),n=s[1],l.c(),l.m(e.parentNode,e)):l.p(s,c):(l=eg(s),n=s[1],l.c(),l.m(e.parentNode,e)):n&&(l.d(1),l=null,n=s[1])},i(s){t||(ji(l),t=!0)},o(s){rn(l),t=!1},d(s){s&&Bn(e),l&&l.d(s)}}}function nI(i){let e,t=i[1],n=i[1]&&tg(i);return{c(){n&&n.c(),e=$o()},m(l,s){n&&n.m(l,s),Un(l,e,s)},p(l,s){l[1]?t?Rs(t,l[1])?(n.d(1),n=tg(l),t=l[1],n.c(),n.m(e.parentNode,e)):n.p(l,s):(n=tg(l),t=l[1],n.c(),n.m(e.parentNode,e)):t&&(n.d(1),n=null,t=l[1])},i:hl,o:hl,d(l){l&&Bn(e),n&&n.d(l)}}}function rI(i){let e,t,n,l,s;const c=i[8].default,d=Wa(c,i,i[7],null);let u=[i[5]],h={};for(let m=0;m<u.length;m+=1)h=Xn(h,u[m]);return{c(){e=Mg("svg"),d&&d.c(),pv(e,h)},m(m,b){Un(m,e,b),d&&d.m(e,null),i[9](e),n=!0,l||(s=[oa(t=cc.call(null,e,i[0])),oa(i[4].call(null,e))],l=!0)},p(m,b){d&&d.p&&(!n||128&b)&&qa(d,c,m,m[7],n?ja(c,m[7],b,null):Ya(m[7]),null),pv(e,h=ml(u,[32&b&&m[5]])),t&&Bl(t.update)&&1&b&&t.update.call(null,m[0])},i(m){n||(ji(d,m),n=!0)},o(m){rn(d,m),n=!1},d(m){m&&Bn(e),d&&d.d(m),i[9](null),l=!1,us(s)}}}function eg(i){let e,t,n,l,s;const c=i[8].default,d=Wa(c,i,i[7],null);let u=[i[5]],h={};for(let m=0;m<u.length;m+=1)h=Xn(h,u[m]);return{c(){e=_a(i[1]),d&&d.c(),g0(i[1])(e,h)},m(m,b){Un(m,e,b),d&&d.m(e,null),i[11](e),n=!0,l||(s=[oa(t=cc.call(null,e,i[0])),oa(i[4].call(null,e))],l=!0)},p(m,b){d&&d.p&&(!n||128&b)&&qa(d,c,m,m[7],n?ja(c,m[7],b,null):Ya(m[7]),null),g0(m[1])(e,h=ml(u,[32&b&&m[5]])),t&&Bl(t.update)&&1&b&&t.update.call(null,m[0])},i(m){n||(ji(d,m),n=!0)},o(m){rn(d,m),n=!1},d(m){m&&Bn(e),d&&d.d(m),i[11](null),l=!1,us(s)}}}function tg(i){let e,t,n,l,s=[i[5]],c={};for(let d=0;d<s.length;d+=1)c=Xn(c,s[d]);return{c(){e=_a(i[1]),g0(i[1])(e,c)},m(d,u){Un(d,e,u),i[10](e),n||(l=[oa(t=cc.call(null,e,i[0])),oa(i[4].call(null,e))],n=!0)},p(d,u){g0(d[1])(e,c=ml(s,[32&u&&d[5]])),t&&Bl(t.update)&&1&u&&t.update.call(null,d[0])},d(d){d&&Bn(e),i[10](null),n=!1,us(l)}}}function aI(i){let e,t,n,l;const s=[rI,nI,iI],c=[];function d(u,h){return u[1]==="svg"?0:u[3]?1:2}return e=d(i),t=c[e]=s[e](i),{c(){t.c(),n=$o()},m(u,h){c[e].m(u,h),Un(u,n,h),l=!0},p(u,[h]){let m=e;e=d(u),e===m?c[e].p(u,h):(Ws(),rn(c[m],1,1,()=>{c[m]=null}),js(),t=c[e],t?t.p(u,h):(t=c[e]=s[e](u),t.c()),ji(t,1),t.m(n.parentNode,n))},i(u){l||(ji(t),l=!0)},o(u){rn(t),l=!1},d(u){c[e].d(u),u&&Bn(n)}}}function lI(i,e,t){let n;const l=["use","tag","getElement"];let s=Da(e,l),{$$slots:c={},$$scope:d}=e,{use:u=[]}=e,{tag:h}=e;const m=oc(Ys());let b;return i.$$set=g=>{e=Xn(Xn({},e),sc(g)),t(5,s=Da(e,l)),"use"in g&&t(0,u=g.use),"tag"in g&&t(1,h=g.tag),"$$scope"in g&&t(7,d=g.$$scope)},i.$$.update=()=>{2&i.$$.dirty&&t(3,n=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(h)>-1)},[u,h,b,n,m,s,function(){return b},d,c,function(g){Or[g?"unshift":"push"](()=>{b=g,t(2,b)})},function(g){Or[g?"unshift":"push"](()=>{b=g,t(2,b)})},function(g){Or[g?"unshift":"push"](()=>{b=g,t(2,b)})}]}let hh=class extends So{constructor(e){super(),wo(this,e,lI,aI,Rs,{use:0,tag:1,getElement:6})}get getElement(){return this.$$.ctx[6]}};var Bg=function(i,e){return Bg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])},Bg(i,e)};function Bd(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=i}Bg(i,e),i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var fs=function(){return fs=Object.assign||function(i){for(var e,t=1,n=arguments.length;t<n;t++)for(var l in e=arguments[t])Object.prototype.hasOwnProperty.call(e,l)&&(i[l]=e[l]);return i},fs.apply(this,arguments)};function jc(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],n=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function vv(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var n,l,s=t.call(i),c=[];try{for(;(e===void 0||e-- >0)&&!(n=s.next()).done;)c.push(n.value)}catch(d){l={error:d}}finally{try{n&&!n.done&&(t=s.return)&&t.call(s)}finally{if(l)throw l.error}}return c}function sI(i,e,t){if(arguments.length===2)for(var n,l=0,s=e.length;l<s;l++)!n&&l in e||(n||(n=Array.prototype.slice.call(e,0,l)),n[l]=e[l]);return i.concat(n||Array.prototype.slice.call(e))}/**
484
+ * @license
485
+ * Copyright 2016 Google Inc.
486
+ *
487
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
488
+ * of this software and associated documentation files (the "Software"), to deal
489
+ * in the Software without restriction, including without limitation the rights
490
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
491
+ * copies of the Software, and to permit persons to whom the Software is
492
+ * furnished to do so, subject to the following conditions:
493
+ *
494
+ * The above copyright notice and this permission notice shall be included in
495
+ * all copies or substantial portions of the Software.
496
+ *
497
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
498
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
499
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
500
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
501
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
502
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
503
+ * THE SOFTWARE.
504
+ */var Hd=function(){function i(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(i,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(i,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),i.prototype.init=function(){},i.prototype.destroy=function(){},i}();/**
505
+ * @license
506
+ * Copyright 2020 Google Inc.
507
+ *
508
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
509
+ * of this software and associated documentation files (the "Software"), to deal
510
+ * in the Software without restriction, including without limitation the rights
511
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
512
+ * copies of the Software, and to permit persons to whom the Software is
513
+ * furnished to do so, subject to the following conditions:
514
+ *
515
+ * The above copyright notice and this permission notice shall be included in
516
+ * all copies or substantial portions of the Software.
517
+ *
518
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
519
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
520
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
521
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
522
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
523
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
524
+ * THE SOFTWARE.
525
+ */var Mr={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},Go=new Set;Go.add(Mr.BACKSPACE),Go.add(Mr.ENTER),Go.add(Mr.SPACEBAR),Go.add(Mr.PAGE_UP),Go.add(Mr.PAGE_DOWN),Go.add(Mr.END),Go.add(Mr.HOME),Go.add(Mr.ARROW_LEFT),Go.add(Mr.ARROW_UP),Go.add(Mr.ARROW_RIGHT),Go.add(Mr.ARROW_DOWN),Go.add(Mr.DELETE),Go.add(Mr.ESCAPE),Go.add(Mr.TAB);var oI=8,cI=13,dI=32,fI=33,uI=34,hI=35,mI=36,pI=37,bI=38,gI=39,_I=40,yI=46,vI=27,xI=9,Vo=new Map;Vo.set(oI,Mr.BACKSPACE),Vo.set(cI,Mr.ENTER),Vo.set(dI,Mr.SPACEBAR),Vo.set(fI,Mr.PAGE_UP),Vo.set(uI,Mr.PAGE_DOWN),Vo.set(hI,Mr.END),Vo.set(mI,Mr.HOME),Vo.set(pI,Mr.ARROW_LEFT),Vo.set(bI,Mr.ARROW_UP),Vo.set(gI,Mr.ARROW_RIGHT),Vo.set(_I,Mr.ARROW_DOWN),Vo.set(yI,Mr.DELETE),Vo.set(vI,Mr.ESCAPE),Vo.set(xI,Mr.TAB);var ff=new Set;function Do(i){var e=i.key;if(Go.has(e))return e;var t=Vo.get(i.keyCode);return t||Mr.UNKNOWN}ff.add(Mr.PAGE_UP),ff.add(Mr.PAGE_DOWN),ff.add(Mr.END),ff.add(Mr.HOME),ff.add(Mr.ARROW_LEFT),ff.add(Mr.ARROW_UP),ff.add(Mr.ARROW_RIGHT),ff.add(Mr.ARROW_DOWN);/**
526
+ * @license
527
+ * Copyright 2018 Google Inc.
528
+ *
529
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
530
+ * of this software and associated documentation files (the "Software"), to deal
531
+ * in the Software without restriction, including without limitation the rights
532
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
533
+ * copies of the Software, and to permit persons to whom the Software is
534
+ * furnished to do so, subject to the following conditions:
535
+ *
536
+ * The above copyright notice and this permission notice shall be included in
537
+ * all copies or substantial portions of the Software.
538
+ *
539
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
540
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
541
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
542
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
543
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
544
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
545
+ * THE SOFTWARE.
546
+ */var Ru,uf,Dr={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"};(Ru={})[""+Dr.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",Ru[""+Dr.LIST_ITEM_CLASS]="mdc-list-item",Ru[""+Dr.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",Ru[""+Dr.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",Ru[""+Dr.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",Ru[""+Dr.ROOT]="mdc-list";var Fu=((uf={})[""+Dr.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",uf[""+Dr.LIST_ITEM_CLASS]="mdc-deprecated-list-item",uf[""+Dr.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",uf[""+Dr.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",uf[""+Dr.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",uf[""+Dr.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",uf[""+Dr.ROOT]="mdc-deprecated-list",uf),hf={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:`
547
+ .`+Dr.LIST_ITEM_CLASS+` button:not(:disabled),
548
+ .`+Dr.LIST_ITEM_CLASS+` a,
549
+ .`+Fu[Dr.LIST_ITEM_CLASS]+` button:not(:disabled),
550
+ .`+Fu[Dr.LIST_ITEM_CLASS]+` a
551
+ `,DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:`
552
+ .`+Dr.LIST_ITEM_CLASS+` button:not(:disabled),
553
+ .`+Dr.LIST_ITEM_CLASS+` a,
554
+ .`+Dr.LIST_ITEM_CLASS+` input[type="radio"]:not(:disabled),
555
+ .`+Dr.LIST_ITEM_CLASS+` input[type="checkbox"]:not(:disabled),
556
+ .`+Fu[Dr.LIST_ITEM_CLASS]+` button:not(:disabled),
557
+ .`+Fu[Dr.LIST_ITEM_CLASS]+` a,
558
+ .`+Fu[Dr.LIST_ITEM_CLASS]+` input[type="radio"]:not(:disabled),
559
+ .`+Fu[Dr.LIST_ITEM_CLASS]+` input[type="checkbox"]:not(:disabled)
560
+ `,RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},os={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};/**
561
+ * @license
562
+ * Copyright 2020 Google Inc.
563
+ *
564
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
565
+ * of this software and associated documentation files (the "Software"), to deal
566
+ * in the Software without restriction, including without limitation the rights
567
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
568
+ * copies of the Software, and to permit persons to whom the Software is
569
+ * furnished to do so, subject to the following conditions:
570
+ *
571
+ * The above copyright notice and this permission notice shall be included in
572
+ * all copies or substantial portions of the Software.
573
+ *
574
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
575
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
576
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
577
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
578
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
579
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
580
+ * THE SOFTWARE.
581
+ */var wI=["input","button","textarea","select"],Cc=function(i){var e=i.target;if(e){var t=(""+e.tagName).toLowerCase();wI.indexOf(t)===-1&&i.preventDefault()}};/**
582
+ * @license
583
+ * Copyright 2020 Google Inc.
584
+ *
585
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
586
+ * of this software and associated documentation files (the "Software"), to deal
587
+ * in the Software without restriction, including without limitation the rights
588
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
589
+ * copies of the Software, and to permit persons to whom the Software is
590
+ * furnished to do so, subject to the following conditions:
591
+ *
592
+ * The above copyright notice and this permission notice shall be included in
593
+ * all copies or substantial portions of the Software.
594
+ *
595
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
596
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
597
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
598
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
599
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
600
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
601
+ * THE SOFTWARE.
602
+ */function SI(){return{bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""}}function AI(i,e){for(var t=new Map,n=0;n<i;n++){var l=e(n).trim();if(l){var s=l[0].toLowerCase();t.has(s)||t.set(s,[]),t.get(s).push({text:l.toLowerCase(),index:n})}}return t.forEach(function(c){c.sort(function(d,u){return d.index-u.index})}),t}function Hg(i,e){var t,n=i.nextChar,l=i.focusItemAtIndex,s=i.sortedIndexByFirstChar,c=i.focusedItemIndex,d=i.skipFocus,u=i.isItemAtIndexDisabled;return clearTimeout(e.bufferClearTimeout),e.bufferClearTimeout=setTimeout(function(){hw(e)},os.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),e.typeaheadBuffer=e.typeaheadBuffer+n,t=e.typeaheadBuffer.length===1?function(h,m,b,g){var _=g.typeaheadBuffer[0],z=h.get(_);if(!z)return-1;if(_===g.currentFirstChar&&z[g.sortedIndexCursor].index===m){g.sortedIndexCursor=(g.sortedIndexCursor+1)%z.length;var X=z[g.sortedIndexCursor].index;if(!b(X))return X}g.currentFirstChar=_;var y,E=-1;for(y=0;y<z.length;y++)if(!b(z[y].index)){E=y;break}for(;y<z.length;y++)if(z[y].index>m&&!b(z[y].index)){E=y;break}return E!==-1?(g.sortedIndexCursor=E,z[g.sortedIndexCursor].index):-1}(s,c,u,e):function(h,m,b){var g=b.typeaheadBuffer[0],_=h.get(g);if(!_)return-1;var z=_[b.sortedIndexCursor];if(z.text.lastIndexOf(b.typeaheadBuffer,0)===0&&!m(z.index))return z.index;for(var X=(b.sortedIndexCursor+1)%_.length,y=-1;X!==b.sortedIndexCursor;){var E=_[X],T=E.text.lastIndexOf(b.typeaheadBuffer,0)===0,w=!m(E.index);if(T&&w){y=X;break}X=(X+1)%_.length}return y!==-1?(b.sortedIndexCursor=y,_[b.sortedIndexCursor].index):-1}(s,u,e),t===-1||d||l(t),t}function uw(i){return i.typeaheadBuffer.length>0}function hw(i){i.typeaheadBuffer=""}function xv(i,e){var t=i.event,n=i.isTargetListItem,l=i.focusedItemIndex,s=i.focusItemAtIndex,c=i.sortedIndexByFirstChar,d=i.isItemAtIndexDisabled,u=Do(t)==="ArrowLeft",h=Do(t)==="ArrowUp",m=Do(t)==="ArrowRight",b=Do(t)==="ArrowDown",g=Do(t)==="Home",_=Do(t)==="End",z=Do(t)==="Enter",X=Do(t)==="Spacebar";return t.altKey||t.ctrlKey||t.metaKey||u||h||m||b||g||_||z?-1:X||t.key.length!==1?X?(n&&Cc(t),n&&uw(e)?Hg({focusItemAtIndex:s,focusedItemIndex:l,nextChar:" ",sortedIndexByFirstChar:c,skipFocus:!1,isItemAtIndexDisabled:d},e):-1):-1:(Cc(t),Hg({focusItemAtIndex:s,focusedItemIndex:l,nextChar:t.key.toLowerCase(),sortedIndexByFirstChar:c,skipFocus:!1,isItemAtIndexDisabled:d},e))}/**
603
+ * @license
604
+ * Copyright 2018 Google Inc.
605
+ *
606
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
607
+ * of this software and associated documentation files (the "Software"), to deal
608
+ * in the Software without restriction, including without limitation the rights
609
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
610
+ * copies of the Software, and to permit persons to whom the Software is
611
+ * furnished to do so, subject to the following conditions:
612
+ *
613
+ * The above copyright notice and this permission notice shall be included in
614
+ * all copies or substantial portions of the Software.
615
+ *
616
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
617
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
618
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
619
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
620
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
621
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
622
+ * THE SOFTWARE.
623
+ */var EI=["Alt","Control","Meta","Shift"];function wv(i){var e=new Set(i?EI.filter(function(t){return i.getModifierState(t)}):[]);return function(t){return t.every(function(n){return e.has(n)})&&t.length===e.size}}var TI=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.wrapFocus=!1,n.isVertical=!0,n.isSingleSelectionList=!1,n.areDisabledItemsFocusable=!0,n.selectedIndex=os.UNSET_INDEX,n.focusedItemIndex=os.UNSET_INDEX,n.useActivatedClass=!1,n.useSelectedAttr=!1,n.ariaCurrentAttrValue=null,n.isCheckboxList=!1,n.isRadioList=!1,n.lastSelectedIndex=null,n.hasTypeahead=!1,n.typeaheadState=SI(),n.sortedIndexByFirstChar=new Map,n}return Bd(e,i),Object.defineProperty(e,"strings",{get:function(){return hf},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return Dr},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return os},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),e.prototype.layout=function(){this.adapter.getListItemCount()!==0&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},e.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},e.prototype.setWrapFocus=function(t){this.wrapFocus=t},e.prototype.setVerticalOrientation=function(t){this.isVertical=t},e.prototype.setSingleSelection=function(t){this.isSingleSelectionList=t,t&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},e.prototype.setDisabledItemsFocusable=function(t){this.areDisabledItemsFocusable=t},e.prototype.maybeInitializeSingleSelection=function(){var t=this.getSelectedIndexFromDOM();t!==os.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(t,Dr.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=t)},e.prototype.getSelectedIndexFromDOM=function(){for(var t=os.UNSET_INDEX,n=this.adapter.getListItemCount(),l=0;l<n;l++){var s=this.adapter.listItemAtIndexHasClass(l,Dr.LIST_ITEM_SELECTED_CLASS),c=this.adapter.listItemAtIndexHasClass(l,Dr.LIST_ITEM_ACTIVATED_CLASS);if(s||c){t=l;break}}return t},e.prototype.setHasTypeahead=function(t){this.hasTypeahead=t,t&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},e.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&uw(this.typeaheadState)},e.prototype.setUseActivatedClass=function(t){this.useActivatedClass=t},e.prototype.setUseSelectedAttribute=function(t){this.useSelectedAttr=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t,n){n===void 0&&(n={}),this.isIndexValid(t)&&(this.isCheckboxList?this.setCheckboxAtIndex(t,n):this.isRadioList?this.setRadioAtIndex(t,n):this.setSingleSelectionAtIndex(t,n))},e.prototype.handleFocusIn=function(t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},e.prototype.handleFocusOut=function(t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()},0)},e.prototype.isIndexDisabled=function(t){return this.adapter.listItemAtIndexHasClass(t,Dr.LIST_ITEM_DISABLED_CLASS)},e.prototype.handleKeydown=function(t,n,l){var s,c=this,d=Do(t)==="ArrowLeft",u=Do(t)==="ArrowUp",h=Do(t)==="ArrowRight",m=Do(t)==="ArrowDown",b=Do(t)==="Home",g=Do(t)==="End",_=Do(t)==="Enter",z=Do(t)==="Spacebar",X=this.isVertical&&m||!this.isVertical&&h,y=this.isVertical&&u||!this.isVertical&&d,E=t.key==="A"||t.key==="a",T=wv(t);if(this.adapter.isRootFocused()){if((y||g)&&T([])?(t.preventDefault(),this.focusLastElement()):(X||b)&&T([])?(t.preventDefault(),this.focusFirstElement()):y&&T(["Shift"])&&this.isCheckboxList?(t.preventDefault(),(K=this.focusLastElement())!==-1&&this.setSelectedIndexOnAction(K,!1)):X&&T(["Shift"])&&this.isCheckboxList&&(t.preventDefault(),(K=this.focusFirstElement())!==-1&&this.setSelectedIndexOnAction(K,!1)),this.hasTypeahead){var w={event:t,focusItemAtIndex:function(Y){c.focusItemAtIndex(Y)},focusedItemIndex:-1,isTargetListItem:n,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(Y){return c.isIndexDisabled(Y)}};xv(w,this.typeaheadState)}}else{var I=this.adapter.getFocusedElementIndex();if(!(I===-1&&(I=l)<0)){if(X&&T([]))Cc(t),this.focusNextElement(I);else if(y&&T([]))Cc(t),this.focusPrevElement(I);else if(X&&T(["Shift"])&&this.isCheckboxList)Cc(t),(K=this.focusNextElement(I))!==-1&&this.setSelectedIndexOnAction(K,!1);else if(y&&T(["Shift"])&&this.isCheckboxList){var K;Cc(t),(K=this.focusPrevElement(I))!==-1&&this.setSelectedIndexOnAction(K,!1)}else if(b&&T([]))Cc(t),this.focusFirstElement();else if(g&&T([]))Cc(t),this.focusLastElement();else if(b&&T(["Control","Shift"])&&this.isCheckboxList){if(Cc(t),this.isIndexDisabled(I))return;this.focusFirstElement(),this.toggleCheckboxRange(0,I,I)}else if(g&&T(["Control","Shift"])&&this.isCheckboxList){if(Cc(t),this.isIndexDisabled(I))return;this.focusLastElement(),this.toggleCheckboxRange(I,this.adapter.getListItemCount()-1,I)}else if(E&&T(["Control"])&&this.isCheckboxList)t.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===os.UNSET_INDEX?[]:this.selectedIndex,!0);else if((_||z)&&T([])){if(n){if((U=t.target)&&U.tagName==="A"&&_||(Cc(t),this.isIndexDisabled(I)))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(I,!1),this.adapter.notifyAction(I))}}else if((_||z)&&T(["Shift"])&&this.isCheckboxList){var U;if((U=t.target)&&U.tagName==="A"&&_||(Cc(t),this.isIndexDisabled(I)))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange((s=this.lastSelectedIndex)!==null&&s!==void 0?s:I,I,I),this.adapter.notifyAction(I))}this.hasTypeahead&&(w={event:t,focusItemAtIndex:function(Y){c.focusItemAtIndex(Y)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:n,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(Y){return c.isIndexDisabled(Y)}},xv(w,this.typeaheadState))}}},e.prototype.handleClick=function(t,n,l){var s,c=wv(l);t!==os.UNSET_INDEX&&(this.isIndexDisabled(t)||(c([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(t,n),this.adapter.notifyAction(t)):this.isCheckboxList&&c(["Shift"])&&(this.toggleCheckboxRange((s=this.lastSelectedIndex)!==null&&s!==void 0?s:t,t,t),this.adapter.notifyAction(t))))},e.prototype.focusNextElement=function(t){var n=this.adapter.getListItemCount(),l=t,s=null;do{if(++l>=n){if(!this.wrapFocus)return t;l=0}if(l===s)return-1;s=s??l}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(l));return this.focusItemAtIndex(l),l},e.prototype.focusPrevElement=function(t){var n=this.adapter.getListItemCount(),l=t,s=null;do{if(--l<0){if(!this.wrapFocus)return t;l=n-1}if(l===s)return-1;s=s??l}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(l));return this.focusItemAtIndex(l),l},e.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},e.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},e.prototype.focusInitialElement=function(){var t=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(t),t},e.prototype.setEnabled=function(t,n){this.isIndexValid(t,!1)&&(n?(this.adapter.removeClassForElementIndex(t,Dr.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,hf.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(t,Dr.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(t,hf.ARIA_DISABLED,"true")))},e.prototype.setSingleSelectionAtIndex=function(t,n){if(n===void 0&&(n={}),this.selectedIndex!==t||n.forceUpdate){var l=Dr.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(l=Dr.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==os.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,l),this.setAriaForSingleSelectionAtIndex(t),this.setTabindexAtIndex(t),t!==os.UNSET_INDEX&&this.adapter.addClassForElementIndex(t,l),this.selectedIndex=t,n.isUserInteraction&&!n.forceUpdate&&this.adapter.notifySelectionChange([t])}},e.prototype.setAriaForSingleSelectionAtIndex=function(t){this.selectedIndex===os.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(t,hf.ARIA_CURRENT));var n=this.ariaCurrentAttrValue!==null,l=n?hf.ARIA_CURRENT:hf.ARIA_SELECTED;if(this.selectedIndex!==os.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,l,"false"),t!==os.UNSET_INDEX){var s=n?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(t,l,s)}},e.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?hf.ARIA_SELECTED:hf.ARIA_CHECKED},e.prototype.setRadioAtIndex=function(t,n){n===void 0&&(n={});var l=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(t,!0),(this.selectedIndex!==t||n.forceUpdate)&&(this.selectedIndex!==os.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,l,"false"),this.adapter.setAttributeForElementIndex(t,l,"true"),this.selectedIndex=t,n.isUserInteraction&&!n.forceUpdate&&this.adapter.notifySelectionChange([t]))},e.prototype.setCheckboxAtIndex=function(t,n){n===void 0&&(n={});for(var l=this.selectedIndex,s=n.isUserInteraction?new Set(l===os.UNSET_INDEX?[]:l):null,c=this.getSelectionAttribute(),d=[],u=0;u<this.adapter.getListItemCount();u++){var h=s?.has(u),m=t.indexOf(u)>=0;m!==h&&d.push(u),this.adapter.setCheckedCheckboxOrRadioAtIndex(u,m),this.adapter.setAttributeForElementIndex(u,c,m?"true":"false")}this.selectedIndex=t,n.isUserInteraction&&d.length&&this.adapter.notifySelectionChange(d)},e.prototype.toggleCheckboxRange=function(t,n,l){this.lastSelectedIndex=l;for(var s=new Set(this.selectedIndex===os.UNSET_INDEX?[]:this.selectedIndex),c=!s?.has(l),d=vv([t,n].sort(),2),u=d[0],h=d[1],m=this.getSelectionAttribute(),b=[],g=u;g<=h;g++)this.isIndexDisabled(g)||c!==s.has(g)&&(b.push(g),this.adapter.setCheckedCheckboxOrRadioAtIndex(g,c),this.adapter.setAttributeForElementIndex(g,m,""+c),c?s.add(g):s.delete(g));b.length&&(this.selectedIndex=sI([],vv(s)),this.adapter.notifySelectionChange(b))},e.prototype.setTabindexAtIndex=function(t){this.focusedItemIndex===os.UNSET_INDEX&&t!==0?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==t&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===t||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),t!==os.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(t,"tabindex","0")},e.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},e.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var t=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(t)},e.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?typeof this.selectedIndex=="number"&&this.selectedIndex!==os.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce(function(t,n){return Math.min(t,n)}):0:Math.max(this.focusedItemIndex,0)},e.prototype.isIndexValid=function(t,n){var l=this;if(n===void 0&&(n=!0),t instanceof Array){if(!this.isCheckboxList&&n)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return t.length===0||t.some(function(s){return l.isIndexInRange(s)})}if(typeof t=="number"){if(this.isCheckboxList&&n)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+t);return this.isIndexInRange(t)||this.isSingleSelectionList&&t===os.UNSET_INDEX}return!1},e.prototype.isIndexInRange=function(t){var n=this.adapter.getListItemCount();return t>=0&&t<n},e.prototype.setSelectedIndexOnAction=function(t,n){this.lastSelectedIndex=t,this.isCheckboxList?(this.toggleCheckboxAtIndex(t,n),this.adapter.notifySelectionChange([t])):this.setSelectedIndex(t,{isUserInteraction:!0})},e.prototype.toggleCheckboxAtIndex=function(t,n){var l,s=this.getSelectionAttribute(),c=this.adapter.isCheckboxCheckedAtIndex(t);n?l=c:(l=!c,this.adapter.setCheckedCheckboxOrRadioAtIndex(t,l)),this.adapter.setAttributeForElementIndex(t,s,l?"true":"false");var d=this.selectedIndex===os.UNSET_INDEX?[]:this.selectedIndex.slice();l?d.push(t):d=d.filter(function(u){return u!==t}),this.selectedIndex=d},e.prototype.focusItemAtIndex=function(t){this.adapter.focusItemAtIndex(t),this.focusedItemIndex=t},e.prototype.checkboxListToggleAll=function(t,n){var l=this.adapter.getListItemCount();if(t.length===l)this.setCheckboxAtIndex([],{isUserInteraction:n});else{for(var s=[],c=0;c<l;c++)(!this.isIndexDisabled(c)||t.indexOf(c)>-1)&&s.push(c);this.setCheckboxAtIndex(s,{isUserInteraction:n})}},e.prototype.typeaheadMatchItem=function(t,n,l){var s=this;l===void 0&&(l=!1);var c={focusItemAtIndex:function(d){s.focusItemAtIndex(d)},focusedItemIndex:n||this.focusedItemIndex,nextChar:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:l,isItemAtIndexDisabled:function(d){return s.isIndexDisabled(d)}};return Hg(c,this.typeaheadState)},e.prototype.typeaheadInitSortedIndex=function(){return AI(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},e.prototype.clearTypeaheadBuffer=function(){hw(this.typeaheadState)},e}(Hd);function OI(i){let e;const t=i[42].default,n=Wa(t,i,i[44],null);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||8192&s[1])&&qa(n,t,l,l[44],e?ja(t,l[44],s,null):Ya(l[44]),null)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function kI(i){let e,t,n;const l=[{tag:i[13]},{use:[i[16],...i[0]]},{class:ta({[i[1]]:!0,"mdc-deprecated-list":!0,"mdc-deprecated-list--non-interactive":i[2],"mdc-deprecated-list--dense":i[3],"mdc-deprecated-list--textual-list":i[4],"mdc-deprecated-list--avatar-list":i[5]||i[17],"mdc-deprecated-list--icon-list":i[6],"mdc-deprecated-list--image-list":i[7],"mdc-deprecated-list--thumbnail-list":i[8],"mdc-deprecated-list--video-list":i[9],"mdc-deprecated-list--two-line":i[10],"smui-list--three-line":i[11]&&!i[10]})},{role:i[15]},i[25]];var s=i[12];function c(d){let u={$$slots:{default:[OI]},$$scope:{ctx:d}};for(let h=0;h<l.length;h+=1)u=Xn(u,l[h]);return{props:u}}return s&&(e=uh(s,c(i)),i[43](e),e.$on("keydown",i[20]),e.$on("focusin",i[21]),e.$on("focusout",i[22]),e.$on("click",i[23]),e.$on("SMUIListItem:mount",i[18]),e.$on("SMUIListItem:unmount",i[19]),e.$on("SMUI:action",i[24])),{c(){e&&la(e.$$.fragment),t=$o()},m(d,u){e&&Jr(e,d,u),Un(d,t,u),n=!0},p(d,u){const h=33796095&u[0]?ml(l,[8192&u[0]&&{tag:d[13]},65537&u[0]&&{use:[d[16],...d[0]]},135166&u[0]&&{class:ta({[d[1]]:!0,"mdc-deprecated-list":!0,"mdc-deprecated-list--non-interactive":d[2],"mdc-deprecated-list--dense":d[3],"mdc-deprecated-list--textual-list":d[4],"mdc-deprecated-list--avatar-list":d[5]||d[17],"mdc-deprecated-list--icon-list":d[6],"mdc-deprecated-list--image-list":d[7],"mdc-deprecated-list--thumbnail-list":d[8],"mdc-deprecated-list--video-list":d[9],"mdc-deprecated-list--two-line":d[10],"smui-list--three-line":d[11]&&!d[10]})},32768&u[0]&&{role:d[15]},33554432&u[0]&&Vs(d[25])]):{};if(8192&u[1]&&(h.$$scope={dirty:u,ctx:d}),4096&u[0]&&s!==(s=d[12])){if(e){Ws();const m=e;rn(m.$$.fragment,1,0,()=>{ea(m,1)}),js()}s?(e=uh(s,c(d)),d[43](e),e.$on("keydown",d[20]),e.$on("focusin",d[21]),e.$on("focusout",d[22]),e.$on("click",d[23]),e.$on("SMUIListItem:mount",d[18]),e.$on("SMUIListItem:unmount",d[19]),e.$on("SMUI:action",d[24]),la(e.$$.fragment),ji(e.$$.fragment,1),Jr(e,t.parentNode,t)):e=null}else s&&e.$set(h)},i(d){n||(e&&ji(e.$$.fragment,d),n=!0)},o(d){e&&rn(e.$$.fragment,d),n=!1},d(d){i[43](null),d&&Bn(t),e&&ea(e,d)}}}function CI(i,e,t){const n=["use","class","nonInteractive","dense","textualList","avatarList","iconList","imageList","thumbnailList","videoList","twoLine","threeLine","vertical","wrapFocus","singleSelection","disabledItemsFocusable","selectedIndex","radioList","checkList","hasTypeahead","component","tag","layout","setEnabled","getTypeaheadInProgress","getSelectedIndex","getFocusedItemIndex","focusItemAtIndex","getElement"];let l=Da(e,n),{$$slots:s={},$$scope:c}=e;var d;const{closest:u,matches:h}=h_,m=oc(Ys());let b,g,{use:_=[]}=e,{class:z=""}=e,{nonInteractive:X=!1}=e,{dense:y=!1}=e,{textualList:E=!1}=e,{avatarList:T=!1}=e,{iconList:w=!1}=e,{imageList:I=!1}=e,{thumbnailList:K=!1}=e,{videoList:U=!1}=e,{twoLine:Y=!1}=e,{threeLine:J=!1}=e,{vertical:S=!0}=e,{wrapFocus:Q=(d=rc("SMUI:list:wrapFocus"))!==null&&d!==void 0&&d}=e,{singleSelection:ae=!1}=e,{disabledItemsFocusable:x=!1}=e,{selectedIndex:A=-1}=e,{radioList:O=!1}=e,{checkList:k=!1}=e,{hasTypeahead:C=!1}=e,ee=[],Re=rc("SMUI:list:role"),ge=rc("SMUI:list:nav");const F=new WeakMap;let H,R=rc("SMUI:dialog:selection"),$=rc("SMUI:addLayoutListener"),{component:q=hh}=e,{tag:se=q===hh?ge?"nav":"ul":void 0}=e;function te(){return b==null?[]:[...he().children].map(L=>F.get(L)).filter(L=>L&&L._smui_list_item_accessor)}function qe(L,Z){var ie;const be=te()[L];return(ie=be&&be.hasClass(Z))!==null&&ie!==void 0&&ie}function we(L,Z){const ie=te()[L];ie&&ie.addClass(Z)}function Se(L,Z){const ie=te()[L];ie&&ie.removeClass(Z)}function G(L,Z,ie){const be=te()[L];be&&be.addAttr(Z,ie)}function de(L,Z){const ie=te()[L];ie&&ie.removeAttr(Z)}function Ae(L,Z){const ie=te()[L];return ie?ie.getAttr(Z):null}function W(L){var Z;const ie=te()[L];return(Z=ie&&ie.getPrimaryText())!==null&&Z!==void 0?Z:""}function re(L){const Z=u(L,".mdc-deprecated-list-item, .mdc-deprecated-list");return Z&&h(Z,".mdc-deprecated-list-item")?te().map(ie=>ie?.element).indexOf(Z):-1}function Rt(){return g.layout()}function Ve(){return g.getSelectedIndex()}function Fe(L){const Z=te()[L];Z&&"focus"in Z.element&&Z.element.focus()}function he(){return b.getElement()}return nc("SMUI:list:nonInteractive",X),nc("SMUI:separator:context","list"),Re||(ae?(Re="listbox",nc("SMUI:list:item:role","option")):O?(Re="radiogroup",nc("SMUI:list:item:role","radio")):k?(Re="group",nc("SMUI:list:item:role","checkbox")):(Re="list",nc("SMUI:list:item:role",void 0))),$&&(H=$(Rt)),Lc(()=>{t(41,g=new TI({addClassForElementIndex:we,focusItemAtIndex:Fe,getAttributeForElementIndex:(Z,ie)=>{var be,Ge;return(Ge=(be=te()[Z])===null||be===void 0?void 0:be.getAttr(ie))!==null&&Ge!==void 0?Ge:null},getFocusedElementIndex:()=>document.activeElement?te().map(Z=>Z.element).indexOf(document.activeElement):-1,getListItemCount:()=>ee.length,getPrimaryTextAtIndex:W,hasCheckboxAtIndex:Z=>{var ie,be;return(be=(ie=te()[Z])===null||ie===void 0?void 0:ie.hasCheckbox)!==null&&be!==void 0&&be},hasRadioAtIndex:Z=>{var ie,be;return(be=(ie=te()[Z])===null||ie===void 0?void 0:ie.hasRadio)!==null&&be!==void 0&&be},isCheckboxCheckedAtIndex:Z=>{var ie;const be=te()[Z];return(ie=be?.hasCheckbox&&be.checked)!==null&&ie!==void 0&&ie},isFocusInsideList:()=>b!=null&&he()!==document.activeElement&&he().contains(document.activeElement),isRootFocused:()=>b!=null&&document.activeElement===he(),listItemAtIndexHasClass:qe,notifyAction:Z=>{t(26,A=Z),b!=null&&$l(he(),"SMUIList:action",{index:Z},void 0,!0)},notifySelectionChange:Z=>{b!=null&&$l(he(),"SMUIList:selectionChange",{changedIndices:Z})},removeClassForElementIndex:Se,setAttributeForElementIndex:G,setCheckedCheckboxOrRadioAtIndex:(Z,ie)=>{te()[Z].checked=ie},setTabIndexForListItemChildren:(Z,ie)=>{const be=te()[Z];Array.prototype.forEach.call(be.element.querySelectorAll("button:not(:disabled), a"),Ge=>{Ge.setAttribute("tabindex",ie)})}}));const L={get element(){return he()},get items(){return ee},get typeaheadInProgress(){return g.isTypeaheadInProgress()},typeaheadMatchItem:(Z,ie)=>g.typeaheadMatchItem(Z,ie,!0),getOrderedList:te,focusItemAtIndex:Fe,addClassForElementIndex:we,removeClassForElementIndex:Se,setAttributeForElementIndex:G,removeAttributeForElementIndex:de,getAttributeFromElementIndex:Ae,getPrimaryTextAtIndex:W};return $l(he(),"SMUIList:mount",L),g.init(),g.layout(),()=>{g.destroy()}}),tu(()=>{H&&H()}),i.$$set=L=>{e=Xn(Xn({},e),sc(L)),t(25,l=Da(e,n)),"use"in L&&t(0,_=L.use),"class"in L&&t(1,z=L.class),"nonInteractive"in L&&t(2,X=L.nonInteractive),"dense"in L&&t(3,y=L.dense),"textualList"in L&&t(4,E=L.textualList),"avatarList"in L&&t(5,T=L.avatarList),"iconList"in L&&t(6,w=L.iconList),"imageList"in L&&t(7,I=L.imageList),"thumbnailList"in L&&t(8,K=L.thumbnailList),"videoList"in L&&t(9,U=L.videoList),"twoLine"in L&&t(10,Y=L.twoLine),"threeLine"in L&&t(11,J=L.threeLine),"vertical"in L&&t(27,S=L.vertical),"wrapFocus"in L&&t(28,Q=L.wrapFocus),"singleSelection"in L&&t(29,ae=L.singleSelection),"disabledItemsFocusable"in L&&t(30,x=L.disabledItemsFocusable),"selectedIndex"in L&&t(26,A=L.selectedIndex),"radioList"in L&&t(31,O=L.radioList),"checkList"in L&&t(32,k=L.checkList),"hasTypeahead"in L&&t(33,C=L.hasTypeahead),"component"in L&&t(12,q=L.component),"tag"in L&&t(13,se=L.tag),"$$scope"in L&&t(44,c=L.$$scope)},i.$$.update=()=>{134217728&i.$$.dirty[0]|1024&i.$$.dirty[1]&&g&&g.setVerticalOrientation(S),268435456&i.$$.dirty[0]|1024&i.$$.dirty[1]&&g&&g.setWrapFocus(Q),1028&i.$$.dirty[1]&&g&&g.setHasTypeahead(C),536870912&i.$$.dirty[0]|1024&i.$$.dirty[1]&&g&&g.setSingleSelection(ae),1073741824&i.$$.dirty[0]|1024&i.$$.dirty[1]&&g&&g.setDisabledItemsFocusable(x),603979776&i.$$.dirty[0]|1024&i.$$.dirty[1]&&g&&ae&&Ve()!==A&&g.setSelectedIndex(A)},[_,z,X,y,E,T,w,I,K,U,Y,J,q,se,b,Re,m,R,function(L){ee.push(L.detail),F.set(L.detail.element,L.detail),ae&&L.detail.selected&&t(26,A=re(L.detail.element)),L.stopPropagation()},function(L){var Z;const ie=(Z=L.detail&&ee.indexOf(L.detail))!==null&&Z!==void 0?Z:-1;ie!==-1&&(ee.splice(ie,1),F.delete(L.detail.element)),L.stopPropagation()},function(L){g&&L.target&&g.handleKeydown(L,L.target.classList.contains("mdc-deprecated-list-item"),re(L.target))},function(L){g&&L.target&&g.handleFocusIn(re(L.target))},function(L){g&&L.target&&g.handleFocusOut(re(L.target))},function(L){g&&L.target&&g.handleClick(re(L.target),!h(L.target,'input[type="checkbox"], input[type="radio"]'),L)},function(L){if(O||k){const Z=re(L.target);if(Z!==-1){const ie=te()[Z];ie&&(O&&!ie.checked||k)&&(h(L.detail.target,'input[type="checkbox"], input[type="radio"]')||(ie.checked=!ie.checked),ie.activateRipple(),window.requestAnimationFrame(()=>{ie.deactivateRipple()}))}}},l,A,S,Q,ae,x,O,k,C,Rt,function(L,Z){return g.setEnabled(L,Z)},function(){return g.isTypeaheadInProgress()},Ve,function(){return g.getFocusedItemIndex()},Fe,he,g,s,function(L){Or[L?"unshift":"push"](()=>{b=L,t(14,b)})},c]}let zI=class extends So{constructor(e){super(),wo(this,e,CI,kI,Rs,{use:0,class:1,nonInteractive:2,dense:3,textualList:4,avatarList:5,iconList:6,imageList:7,thumbnailList:8,videoList:9,twoLine:10,threeLine:11,vertical:27,wrapFocus:28,singleSelection:29,disabledItemsFocusable:30,selectedIndex:26,radioList:31,checkList:32,hasTypeahead:33,component:12,tag:13,layout:34,setEnabled:35,getTypeaheadInProgress:36,getSelectedIndex:37,getFocusedItemIndex:38,focusItemAtIndex:39,getElement:40},null,[-1,-1])}get layout(){return this.$$.ctx[34]}get setEnabled(){return this.$$.ctx[35]}get getTypeaheadInProgress(){return this.$$.ctx[36]}get getSelectedIndex(){return this.$$.ctx[37]}get getFocusedItemIndex(){return this.$$.ctx[38]}get focusItemAtIndex(){return this.$$.ctx[39]}get getElement(){return this.$$.ctx[40]}};/**
624
+ * @license
625
+ * Copyright 2019 Google Inc.
626
+ *
627
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
628
+ * of this software and associated documentation files (the "Software"), to deal
629
+ * in the Software without restriction, including without limitation the rights
630
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
631
+ * copies of the Software, and to permit persons to whom the Software is
632
+ * furnished to do so, subject to the following conditions:
633
+ *
634
+ * The above copyright notice and this permission notice shall be included in
635
+ * all copies or substantial portions of the Software.
636
+ *
637
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
638
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
639
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
640
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
641
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
642
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
643
+ * THE SOFTWARE.
644
+ */function II(i){return i===void 0&&(i=window),!!function(e){e===void 0&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},l=function(){};e.document.addEventListener("test",l,n),e.document.removeEventListener("test",l,n)}catch{t=!1}return t}(i)&&{passive:!0}}const mw=Object.freeze(Object.defineProperty({__proto__:null,applyPassive:II},Symbol.toStringTag,{value:"Module"}));/**
645
+ * @license
646
+ * Copyright 2016 Google Inc.
647
+ *
648
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
649
+ * of this software and associated documentation files (the "Software"), to deal
650
+ * in the Software without restriction, including without limitation the rights
651
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
652
+ * copies of the Software, and to permit persons to whom the Software is
653
+ * furnished to do so, subject to the following conditions:
654
+ *
655
+ * The above copyright notice and this permission notice shall be included in
656
+ * all copies or substantial portions of the Software.
657
+ *
658
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
659
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
660
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
661
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
662
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
663
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
664
+ * THE SOFTWARE.
665
+ */var LI={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},RI={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Sv={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ig;function FI(i,e){e===void 0&&(e=!1);var t,n=i.CSS;if(typeof ig=="boolean"&&!e)return ig;if(!(n&&typeof n.supports=="function"))return!1;var l=n.supports("--css-vars","yes"),s=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return t=l||s,e||(ig=t),t}function MI(i,e,t){if(!i)return{x:0,y:0};var n,l,s=e.x,c=e.y,d=s+t.left,u=c+t.top;if(i.type==="touchstart"){var h=i;n=h.changedTouches[0].pageX-d,l=h.changedTouches[0].pageY-u}else{var m=i;n=m.pageX-d,l=m.pageY-u}return{x:n,y:l}}/**
666
+ * @license
667
+ * Copyright 2016 Google Inc.
668
+ *
669
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
670
+ * of this software and associated documentation files (the "Software"), to deal
671
+ * in the Software without restriction, including without limitation the rights
672
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
673
+ * copies of the Software, and to permit persons to whom the Software is
674
+ * furnished to do so, subject to the following conditions:
675
+ *
676
+ * The above copyright notice and this permission notice shall be included in
677
+ * all copies or substantial portions of the Software.
678
+ *
679
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
680
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
681
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
682
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
683
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
684
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
685
+ * THE SOFTWARE.
686
+ */var Av=["touchstart","pointerdown","mousedown","keydown"],Ev=["touchend","pointerup","mouseup","contextmenu"],Cp=[],DI=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.activationAnimationHasEnded=!1,n.activationTimer=0,n.fgDeactivationRemovalTimer=0,n.fgScale="0",n.frame={width:0,height:0},n.initialSize=0,n.layoutFrame=0,n.maxRadius=0,n.unboundedCoords={left:0,top:0},n.activationState=n.defaultActivationState(),n.activationTimerCallback=function(){n.activationAnimationHasEnded=!0,n.runDeactivationUXLogicIfReady()},n.activateHandler=function(l){n.activateImpl(l)},n.deactivateHandler=function(){n.deactivateImpl()},n.focusHandler=function(){n.handleFocus()},n.blurHandler=function(){n.handleBlur()},n.resizeHandler=function(){n.layout()},n}return Bd(e,i),Object.defineProperty(e,"cssClasses",{get:function(){return LI},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return RI},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Sv},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var l=e.cssClasses,s=l.ROOT,c=l.UNBOUNDED;requestAnimationFrame(function(){t.adapter.addClass(s),t.adapter.isUnbounded()&&(t.adapter.addClass(c),t.layoutInternal())})}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var n=e.cssClasses,l=n.ROOT,s=n.UNBOUNDED;requestAnimationFrame(function(){t.adapter.removeClass(l),t.adapter.removeClass(s),t.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){t.layoutInternal(),t.layoutFrame=0})},e.prototype.setUnbounded=function(t){var n=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame(function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame(function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var n,l;if(t){try{for(var s=jc(Av),c=s.next();!c.done;c=s.next()){var d=c.value;this.adapter.registerInteractionHandler(d,this.activateHandler)}}catch(u){n={error:u}}finally{try{c&&!c.done&&(l=s.return)&&l.call(s)}finally{if(n)throw n.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var n,l;if(t.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var s=jc(Ev),c=s.next();!c.done;c=s.next()){var d=c.value;this.adapter.registerDocumentInteractionHandler(d,this.deactivateHandler)}}catch(u){n={error:u}}finally{try{c&&!c.done&&(l=s.return)&&l.call(s)}finally{if(n)throw n.error}}},e.prototype.deregisterRootHandlers=function(){var t,n;try{for(var l=jc(Av),s=l.next();!s.done;s=l.next()){var c=s.value;this.adapter.deregisterInteractionHandler(c,this.activateHandler)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,n;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var l=jc(Ev),s=l.next();!s.done;s=l.next()){var c=s.value;this.adapter.deregisterDocumentInteractionHandler(c,this.deactivateHandler)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,n=e.strings;Object.keys(n).forEach(function(l){l.indexOf("VAR_")===0&&t.adapter.updateCssVariable(n[l],null)})},e.prototype.activateImpl=function(t){var n=this;if(!this.adapter.isSurfaceDisabled()){var l=this.activationState;if(!l.isActivated){var s=this.previousActivationEvent;s&&t!==void 0&&s.type!==t.type||(l.isActivated=!0,l.isProgrammatic=t===void 0,l.activationEvent=t,l.wasActivatedByPointer=!l.isProgrammatic&&t!==void 0&&(t.type==="mousedown"||t.type==="touchstart"||t.type==="pointerdown"),t!==void 0&&Cp.length>0&&Cp.some(function(c){return n.adapter.containsEventTarget(c)})?this.resetActivationState():(t!==void 0&&(Cp.push(t.target),this.registerDeactivationHandlers(t)),l.wasElementMadeActive=this.checkElementMadeActive(t),l.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){Cp=[],l.wasElementMadeActive||t===void 0||t.key!==" "&&t.keyCode!==32||(l.wasElementMadeActive=n.checkElementMadeActive(t),l.wasElementMadeActive&&n.animateActivation()),l.wasElementMadeActive||(n.activationState=n.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return t===void 0||t.type!=="keydown"||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,n=e.strings,l=n.VAR_FG_TRANSLATE_START,s=n.VAR_FG_TRANSLATE_END,c=e.cssClasses,d=c.FG_DEACTIVATION,u=c.FG_ACTIVATION,h=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var m="",b="";if(!this.adapter.isUnbounded()){var g=this.getFgTranslationCoordinates(),_=g.startPoint,z=g.endPoint;m=_.x+"px, "+_.y+"px",b=z.x+"px, "+z.y+"px"}this.adapter.updateCssVariable(l,m),this.adapter.updateCssVariable(s,b),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(d),this.adapter.computeBoundingRect(),this.adapter.addClass(u),this.activationTimer=setTimeout(function(){t.activationTimerCallback()},h)},e.prototype.getFgTranslationCoordinates=function(){var t,n=this.activationState,l=n.activationEvent;return{startPoint:t={x:(t=n.wasActivatedByPointer?MI(l,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,n=e.cssClasses.FG_DEACTIVATION,l=this.activationState,s=l.hasDeactivationUXRun,c=l.isActivated;(s||!c)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout(function(){t.adapter.removeClass(n)},Sv.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return t.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,n=this.activationState;if(n.isActivated){var l=fs({},n);n.isProgrammatic?(requestAnimationFrame(function(){t.animateDeactivation(l)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(l),t.resetActivationState()}))}},e.prototype.animateDeactivation=function(t){var n=t.wasActivatedByPointer,l=t.wasElementMadeActive;(n||l)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var l=Math.floor(n*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&l%2!=0?this.initialSize=l-1:this.initialSize=l,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,n=t.VAR_FG_SIZE,l=t.VAR_LEFT,s=t.VAR_TOP,c=t.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(c,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(l,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(s,this.unboundedCoords.top+"px"))},e}(Hd);const{applyPassive:zp}=mw,{matches:NI}=h_;function y0(i,{ripple:e=!0,surface:t=!1,unbounded:n=!1,disabled:l=!1,color:s,active:c,rippleElement:d,eventTarget:u,activeTarget:h,addClass:m=z=>i.classList.add(z),removeClass:b=z=>i.classList.remove(z),addStyle:g=(z,X)=>i.style.setProperty(z,X),initPromise:_=Promise.resolve()}={}){let z,X,y=rc("SMUI:addLayoutListener"),E=c,T=u,w=h;function I(){t?(m("mdc-ripple-surface"),s==="primary"?(m("smui-ripple-surface--primary"),b("smui-ripple-surface--secondary")):s==="secondary"?(b("smui-ripple-surface--primary"),m("smui-ripple-surface--secondary")):(b("smui-ripple-surface--primary"),b("smui-ripple-surface--secondary"))):(b("mdc-ripple-surface"),b("smui-ripple-surface--primary"),b("smui-ripple-surface--secondary")),z&&E!==c&&(E=c,c?z.activate():c===!1&&z.deactivate()),e&&!z?(z=new DI({addClass:m,browserSupportsCssVars:()=>FI(window),computeBoundingRect:()=>(d||i).getBoundingClientRect(),containsEventTarget:K=>i.contains(K),deregisterDocumentInteractionHandler:(K,U)=>document.documentElement.removeEventListener(K,U,zp()),deregisterInteractionHandler:(K,U)=>(u||i).removeEventListener(K,U,zp()),deregisterResizeHandler:K=>window.removeEventListener("resize",K),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>c??NI(h||i,":active"),isSurfaceDisabled:()=>!!l,isUnbounded:()=>!!n,registerDocumentInteractionHandler:(K,U)=>document.documentElement.addEventListener(K,U,zp()),registerInteractionHandler:(K,U)=>(u||i).addEventListener(K,U,zp()),registerResizeHandler:K=>window.addEventListener("resize",K),removeClass:b,updateCssVariable:g}),_.then(()=>{z&&(z.init(),z.setUnbounded(n))})):z&&!e&&_.then(()=>{z&&(z.destroy(),z=void 0)}),!z||T===u&&w===h||(T=u,w=h,z.destroy(),requestAnimationFrame(()=>{z&&(z.init(),z.setUnbounded(n))})),!e&&n&&m("mdc-ripple-upgraded--unbounded")}return I(),y&&(X=y(function(){z&&z.layout()})),{update(K){({ripple:e,surface:t,unbounded:n,disabled:l,color:s,active:c,rippleElement:d,eventTarget:u,activeTarget:h,addClass:m,removeClass:b,addStyle:g,initPromise:_}=Object.assign({ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:void 0,active:void 0,rippleElement:void 0,eventTarget:void 0,activeTarget:void 0,addClass:U=>i.classList.add(U),removeClass:U=>i.classList.remove(U),addStyle:(U,Y)=>i.style.setProperty(U,Y),initPromise:Promise.resolve()},K)),I()},destroy(){z&&(z.destroy(),z=void 0,b("mdc-ripple-surface"),b("smui-ripple-surface--primary"),b("smui-ripple-surface--secondary")),X&&X()}}}function Tv(i){let e;return{c(){e=_a("span"),Fa(e,"class","mdc-deprecated-list-item__ripple")},m(t,n){Un(t,e,n)},d(t){t&&Bn(e)}}}function $I(i){let e,t,n=i[7]&&Tv();const l=i[34].default,s=Wa(l,i,i[37],null);return{c(){n&&n.c(),e=$o(),s&&s.c()},m(c,d){n&&n.m(c,d),Un(c,e,d),s&&s.m(c,d),t=!0},p(c,d){c[7]?n||(n=Tv(),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),s&&s.p&&(!t||64&d[1])&&qa(s,l,c,c[37],t?ja(l,c[37],d,null):Ya(c[37]),null)},i(c){t||(ji(s,c),t=!0)},o(c){rn(s,c),t=!1},d(c){n&&n.d(c),c&&Bn(e),s&&s.d(c)}}}function BI(i){let e,t,n;const l=[{tag:i[14]},{use:[...i[6]?[]:[[y0,{ripple:!i[16],unbounded:!1,color:(i[1]||i[0])&&i[5]==null?"primary":i[5],disabled:i[10],addClass:i[24],removeClass:i[25],addStyle:i[26]}]],i[22],...i[2]]},{class:ta({[i[3]]:!0,"mdc-deprecated-list-item":!i[8],"mdc-deprecated-list-item__wrapper":i[8],"mdc-deprecated-list-item--activated":i[1],"mdc-deprecated-list-item--selected":i[0],"mdc-deprecated-list-item--disabled":i[10],"mdc-menu-item--selected":!i[23]&&i[9]==="menuitem"&&i[0],"smui-menu-item--non-interactive":i[6],...i[18]})},{style:Object.entries(i[19]).map(Ov).concat([i[4]]).join(" ")},i[23]&&i[1]?{"aria-current":"page"}:{},!i[23]||i[8]?{role:i[9]}:{},i[23]||i[9]!=="option"?{}:{"aria-selected":i[0]?"true":"false"},i[23]||i[9]!=="radio"&&i[9]!=="checkbox"?{}:{"aria-checked":i[16]&&i[16].checked?"true":"false"},i[23]?{}:{"aria-disabled":i[10]?"true":"false"},{"data-menu-item-skip-restore-focus":i[11]||void 0},{tabindex:i[21]},{href:i[12]},i[20],i[29]];var s=i[13];function c(d){let u={$$slots:{default:[$I]},$$scope:{ctx:d}};for(let h=0;h<l.length;h+=1)u=Xn(u,l[h]);return{props:u}}return s&&(e=uh(s,c(i)),i[35](e),e.$on("click",i[15]),e.$on("keydown",i[27]),e.$on("SMUIGenericInput:mount",i[28]),e.$on("SMUIGenericInput:unmount",i[36])),{c(){e&&la(e.$$.fragment),t=$o()},m(d,u){e&&Jr(e,d,u),Un(d,t,u),n=!0},p(d,u){const h=670916479&u[0]?ml(l,[16384&u[0]&&{tag:d[14]},121701479&u[0]&&{use:[...d[6]?[]:[[y0,{ripple:!d[16],unbounded:!1,color:(d[1]||d[0])&&d[5]==null?"primary":d[5],disabled:d[10],addClass:d[24],removeClass:d[25],addStyle:d[26]}]],d[22],...d[2]]},8652619&u[0]&&{class:ta({[d[3]]:!0,"mdc-deprecated-list-item":!d[8],"mdc-deprecated-list-item__wrapper":d[8],"mdc-deprecated-list-item--activated":d[1],"mdc-deprecated-list-item--selected":d[0],"mdc-deprecated-list-item--disabled":d[10],"mdc-menu-item--selected":!d[23]&&d[9]==="menuitem"&&d[0],"smui-menu-item--non-interactive":d[6],...d[18]})},524304&u[0]&&{style:Object.entries(d[19]).map(Ov).concat([d[4]]).join(" ")},8388610&u[0]&&Vs(d[23]&&d[1]?{"aria-current":"page"}:{}),8389376&u[0]&&Vs(!d[23]||d[8]?{role:d[9]}:{}),8389121&u[0]&&Vs(d[23]||d[9]!=="option"?{}:{"aria-selected":d[0]?"true":"false"}),8454656&u[0]&&Vs(d[23]||d[9]!=="radio"&&d[9]!=="checkbox"?{}:{"aria-checked":d[16]&&d[16].checked?"true":"false"}),8389632&u[0]&&Vs(d[23]?{}:{"aria-disabled":d[10]?"true":"false"}),2048&u[0]&&{"data-menu-item-skip-restore-focus":d[11]||void 0},2097152&u[0]&&{tabindex:d[21]},4096&u[0]&&{href:d[12]},1048576&u[0]&&Vs(d[20]),536870912&u[0]&&Vs(d[29])]):{};if(128&u[0]|64&u[1]&&(h.$$scope={dirty:u,ctx:d}),8192&u[0]&&s!==(s=d[13])){if(e){Ws();const m=e;rn(m.$$.fragment,1,0,()=>{ea(m,1)}),js()}s?(e=uh(s,c(d)),d[35](e),e.$on("click",d[15]),e.$on("keydown",d[27]),e.$on("SMUIGenericInput:mount",d[28]),e.$on("SMUIGenericInput:unmount",d[36]),la(e.$$.fragment),ji(e.$$.fragment,1),Jr(e,t.parentNode,t)):e=null}else s&&e.$set(h)},i(d){n||(e&&ji(e.$$.fragment,d),n=!0)},o(d){e&&rn(e.$$.fragment,d),n=!1},d(d){i[35](null),d&&Bn(t),e&&ea(e,d)}}}let HI=0;const Ov=([i,e])=>`${i}: ${e};`;function PI(i,e,t){let n;const l=["use","class","style","color","nonInteractive","ripple","wrapper","activated","role","selected","disabled","skipRestoreFocus","tabindex","inputId","href","component","tag","action","getPrimaryText","getElement"];let s=Da(e,l),{$$slots:c={},$$scope:d}=e;var u;const h=oc(Ys());let m=()=>{},{use:b=[]}=e,{class:g=""}=e,{style:_=""}=e,{color:z}=e,{nonInteractive:X=(u=rc("SMUI:list:nonInteractive"))!==null&&u!==void 0&&u}=e;nc("SMUI:list:nonInteractive",void 0);let{ripple:y=!X}=e,{wrapper:E=!1}=e,{activated:T=!1}=e,{role:w=E?"presentation":rc("SMUI:list:item:role")}=e;nc("SMUI:list:item:role",void 0);let I,K,U,{selected:Y=!1}=e,{disabled:J=!1}=e,{skipRestoreFocus:S=!1}=e,{tabindex:Q=m}=e,{inputId:ae="SMUI-form-field-list-"+HI++}=e,{href:x}=e,A={},O={},k={},C=rc("SMUI:list:item:nav"),{component:ee=hh}=e,{tag:Re=ee===hh?C?x?"a":"span":"li":void 0}=e;function ge(we){return we in A?A[we]:qe().classList.contains(we)}function F(we){A[we]||t(18,A[we]=!0,A)}function H(we){we in A&&!A[we]||t(18,A[we]=!1,A)}function R(we){var Se;return we in k?(Se=k[we])!==null&&Se!==void 0?Se:null:qe().getAttribute(we)}function $(we,Se){k[we]!==Se&&t(20,k[we]=Se,k)}function q(we){we in k&&k[we]==null||t(20,k[we]=void 0,k)}function se(we){J||$l(qe(),"SMUI:action",we)}function te(){var we,Se,G;const de=qe(),Ae=de.querySelector(".mdc-deprecated-list-item__primary-text");if(Ae)return(we=Ae.textContent)!==null&&we!==void 0?we:"";const W=de.querySelector(".mdc-deprecated-list-item__text");return W?(Se=W.textContent)!==null&&Se!==void 0?Se:"":(G=de.textContent)!==null&&G!==void 0?G:""}function qe(){return I.getElement()}return nc("SMUI:generic:input:props",{id:ae}),nc("SMUI:separator:context",void 0),Lc(()=>{if(!Y&&!X){let Se=!0,G=I.getElement();for(;G.previousSibling;)if(G=G.previousSibling,G.nodeType===1&&G.classList.contains("mdc-deprecated-list-item")&&!G.classList.contains("mdc-deprecated-list-item--disabled")){Se=!1;break}Se&&(U=window.requestAnimationFrame(()=>function(de){let Ae=!0;for(;de.nextElementSibling;)if((de=de.nextElementSibling).nodeType===1&&de.classList.contains("mdc-deprecated-list-item")){const W=de.attributes.getNamedItem("tabindex");if(W&&W.value==="0"){Ae=!1;break}}Ae&&t(21,n=0)}(G)))}const we={_smui_list_item_accessor:!0,get element(){return qe()},get selected(){return Y},set selected(Se){t(0,Y=Se)},hasClass:ge,addClass:F,removeClass:H,getAttr:R,addAttr:$,removeAttr:q,getPrimaryText:te,get checked(){var Se;return(Se=K&&K.checked)!==null&&Se!==void 0&&Se},set checked(Se){K&&t(16,K.checked=!!Se,K)},get hasCheckbox(){return!(!K||!("_smui_checkbox_accessor"in K))},get hasRadio(){return!(!K||!("_smui_radio_accessor"in K))},activateRipple(){K&&K.activateRipple()},deactivateRipple(){K&&K.deactivateRipple()},getValue:()=>s.value,action:se,get tabindex(){return n},set tabindex(Se){t(30,Q=Se)},get disabled(){return J},get activated(){return T},set activated(Se){t(1,T=Se)}};return $l(qe(),"SMUIListItem:mount",we),()=>{$l(qe(),"SMUIListItem:unmount",we)}}),tu(()=>{U&&window.cancelAnimationFrame(U)}),i.$$set=we=>{e=Xn(Xn({},e),sc(we)),t(29,s=Da(e,l)),"use"in we&&t(2,b=we.use),"class"in we&&t(3,g=we.class),"style"in we&&t(4,_=we.style),"color"in we&&t(5,z=we.color),"nonInteractive"in we&&t(6,X=we.nonInteractive),"ripple"in we&&t(7,y=we.ripple),"wrapper"in we&&t(8,E=we.wrapper),"activated"in we&&t(1,T=we.activated),"role"in we&&t(9,w=we.role),"selected"in we&&t(0,Y=we.selected),"disabled"in we&&t(10,J=we.disabled),"skipRestoreFocus"in we&&t(11,S=we.skipRestoreFocus),"tabindex"in we&&t(30,Q=we.tabindex),"inputId"in we&&t(31,ae=we.inputId),"href"in we&&t(12,x=we.href),"component"in we&&t(13,ee=we.component),"tag"in we&&t(14,Re=we.tag),"$$scope"in we&&t(37,d=we.$$scope)},i.$$.update=()=>{1073808449&i.$$.dirty[0]&&t(21,n=Q===m?X||J||!(Y||K&&K.checked)?-1:0:Q)},[Y,T,b,g,_,z,X,y,E,w,J,S,x,ee,Re,se,K,I,A,O,k,n,h,C,F,H,function(we,Se){O[we]!=Se&&(Se===""||Se==null?(delete O[we],t(19,O)):t(19,O[we]=Se,O))},function(we){const Se=we.key==="Enter",G=we.key==="Space";(Se||G)&&se(we)},function(we){("_smui_checkbox_accessor"in we.detail||"_smui_radio_accessor"in we.detail)&&t(16,K=we.detail)},s,Q,ae,te,qe,c,function(we){Or[we?"unshift":"push"](()=>{I=we,t(17,I)})},()=>t(16,K=void 0),d]}let m_=class extends So{constructor(e){super(),wo(this,e,PI,BI,Rs,{use:2,class:3,style:4,color:5,nonInteractive:6,ripple:7,wrapper:8,activated:1,role:9,selected:0,disabled:10,skipRestoreFocus:11,tabindex:30,inputId:31,href:12,component:13,tag:14,action:15,getPrimaryText:32,getElement:33},null,[-1,-1])}get action(){return this.$$.ctx[15]}get getPrimaryText(){return this.$$.ctx[32]}get getElement(){return this.$$.ctx[33]}};function UI(i){let e;const t=i[11].default,n=Wa(t,i,i[13],null);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||8192&s)&&qa(n,t,l,l[13],e?ja(t,l[13],s,null):Ya(l[13]),null)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function GI(i){let e,t,n;const l=[{tag:i[3]},{use:[i[8],...i[0]]},{class:ta({[i[1]]:!0,[i[6]]:!0,...i[5]})},i[7],i[9]];var s=i[2];function c(d){let u={$$slots:{default:[UI]},$$scope:{ctx:d}};for(let h=0;h<l.length;h+=1)u=Xn(u,l[h]);return{props:u}}return s&&(e=uh(s,c(i)),i[12](e)),{c(){e&&la(e.$$.fragment),t=$o()},m(d,u){e&&Jr(e,d,u),Un(d,t,u),n=!0},p(d,[u]){const h=1003&u?ml(l,[8&u&&{tag:d[3]},257&u&&{use:[d[8],...d[0]]},98&u&&{class:ta({[d[1]]:!0,[d[6]]:!0,...d[5]})},128&u&&Vs(d[7]),512&u&&Vs(d[9])]):{};if(8192&u&&(h.$$scope={dirty:u,ctx:d}),4&u&&s!==(s=d[2])){if(e){Ws();const m=e;rn(m.$$.fragment,1,0,()=>{ea(m,1)}),js()}s?(e=uh(s,c(d)),d[12](e),la(e.$$.fragment),ji(e.$$.fragment,1),Jr(e,t.parentNode,t)):e=null}else s&&e.$set(h)},i(d){n||(e&&ji(e.$$.fragment,d),n=!0)},o(d){e&&rn(e.$$.fragment,d),n=!1},d(d){i[12](null),d&&Bn(t),e&&ea(e,d)}}}const Id={component:hh,tag:"div",class:"",classMap:{},contexts:{},props:{}};function VI(i,e,t){const n=["use","class","component","tag","getElement"];let l,s=Da(e,n),{$$slots:c={},$$scope:d}=e,{use:u=[]}=e,{class:h=""}=e;const m=Id.class,b={},g=[],_=Id.contexts,z=Id.props;let{component:X=Id.component}=e,{tag:y=X===hh?Id.tag:void 0}=e;Object.entries(Id.classMap).forEach(([T,w])=>{const I=rc(w);I&&"subscribe"in I&&g.push(I.subscribe(K=>{t(5,b[T]=K,b)}))});const E=oc(Ys());for(let T in _)_.hasOwnProperty(T)&&nc(T,_[T]);return tu(()=>{for(const T of g)T()}),i.$$set=T=>{e=Xn(Xn({},e),sc(T)),t(9,s=Da(e,n)),"use"in T&&t(0,u=T.use),"class"in T&&t(1,h=T.class),"component"in T&&t(2,X=T.component),"tag"in T&&t(3,y=T.tag),"$$scope"in T&&t(13,d=T.$$scope)},[u,h,X,y,l,b,m,z,E,s,function(){return l.getElement()},c,function(T){Or[T?"unshift":"push"](()=>{l=T,t(4,l)})},d]}let WI=class extends So{constructor(e){super(),wo(this,e,VI,GI,Rs,{use:0,class:1,component:2,tag:3,getElement:10})}get getElement(){return this.$$.ctx[10]}};const kv=Object.assign({},Id);function pd(i){return new Proxy(WI,{construct:function(e,t){return Object.assign(Id,kv,i),new e(...t)},get:function(e,t){return Object.assign(Id,kv,i),e[t]}})}var pw=pd({class:"mdc-deprecated-list-item__text",tag:"span"});pd({class:"mdc-deprecated-list-item__primary-text",tag:"span"});pd({class:"mdc-deprecated-list-item__secondary-text",tag:"span"});pd({class:"mdc-deprecated-list-item__meta",tag:"span"});pd({class:"mdc-deprecated-list-group",tag:"div"});pd({class:"mdc-deprecated-list-group__subheader",tag:"h3"});function v0(i,e){let t=Object.getOwnPropertyNames(i);const n={};for(let l=0;l<t.length;l++){const s=t[l],c=s.indexOf("$");c!==-1&&e.indexOf(s.substring(0,c+1))!==-1||e.indexOf(s)===-1&&(n[s]=i[s])}return n}function lc(i,e){let t=Object.getOwnPropertyNames(i);const n={};for(let l=0;l<t.length;l++){const s=t[l];s.substring(0,e.length)===e&&(n[s.substring(e.length)]=i[s])}return n}const Mu=[];function jI(i,e=hl){let t;const n=new Set;function l(s){if(Rs(i,s)&&(i=s,t)){const c=!Mu.length;for(const d of n)d[1](),Mu.push(d,i);if(c){for(let d=0;d<Mu.length;d+=2)Mu[d][0](Mu[d+1]);Mu.length=0}}}return{set:l,update:function(s){l(s(i))},subscribe:function(s,c=hl){const d=[s,c];return n.add(d),n.size===1&&(t=e(l)||hl),s(i),()=>{n.delete(d),n.size===0&&t&&(t(),t=null)}}}}function qI(i){let e;const t=i[4].default,n=Wa(t,i,i[3],null);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,[s]){n&&n.p&&(!e||8&s)&&qa(n,t,l,l[3],e?ja(t,l[3],s,null):Ya(l[3]),null)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function YI(i,e,t){let n,{$$slots:l={},$$scope:s}=e,{key:c}=e,{value:d}=e;const u=jI(d);return aw(i,u,h=>t(5,n=h)),nc(c,u),tu(()=>{u.set(void 0)}),i.$$set=h=>{"key"in h&&t(1,c=h.key),"value"in h&&t(2,d=h.value),"$$scope"in h&&t(3,s=h.$$scope)},i.$$.update=()=>{4&i.$$.dirty&&Hz(u,n=d,n)},[u,c,d,s,l]}let x0=class extends So{constructor(e){super(),wo(this,e,YI,qI,Rs,{key:1,value:2})}};/**
687
+ * @license
688
+ * Copyright 2016 Google Inc.
689
+ *
690
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
691
+ * of this software and associated documentation files (the "Software"), to deal
692
+ * in the Software without restriction, including without limitation the rights
693
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
694
+ * copies of the Software, and to permit persons to whom the Software is
695
+ * furnished to do so, subject to the following conditions:
696
+ *
697
+ * The above copyright notice and this permission notice shall be included in
698
+ * all copies or substantial portions of the Software.
699
+ *
700
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
701
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
702
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
703
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
704
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
705
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
706
+ * THE SOFTWARE.
707
+ */var XI={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"};/**
708
+ * @license
709
+ * Copyright 2016 Google Inc.
710
+ *
711
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
712
+ * of this software and associated documentation files (the "Software"), to deal
713
+ * in the Software without restriction, including without limitation the rights
714
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
715
+ * copies of the Software, and to permit persons to whom the Software is
716
+ * furnished to do so, subject to the following conditions:
717
+ *
718
+ * The above copyright notice and this permission notice shall be included in
719
+ * all copies or substantial portions of the Software.
720
+ *
721
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
722
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
723
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
724
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
725
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
726
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
727
+ * THE SOFTWARE.
728
+ */var ZI=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.shakeAnimationEndHandler=function(){n.handleShakeAnimationEnd()},n}return Bd(e,i),Object.defineProperty(e,"cssClasses",{get:function(){return XI},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var n=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.float=function(t){var n=e.cssClasses,l=n.LABEL_FLOAT_ABOVE,s=n.LABEL_SHAKE;t?this.adapter.addClass(l):(this.adapter.removeClass(l),this.adapter.removeClass(s))},e.prototype.setRequired=function(t){var n=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.handleShakeAnimationEnd=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},e}(Hd);function QI(i){let e,t,n,l,s,c,d,u;const h=i[22].default,m=Wa(h,i,i[21],null);let b=[{class:t=ta({[i[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":i[0],"mdc-floating-label--required":i[1],...i[8]})},{style:n=Object.entries(i[9]).map(zv).concat([i[4]]).join(" ")},{for:l=i[5]||(i[11]?i[11].id:void 0)},i[12]],g={};for(let _=0;_<b.length;_+=1)g=Xn(g,b[_]);return{c(){e=_a("label"),m&&m.c(),Hl(e,g)},m(_,z){Un(_,e,z),m&&m.m(e,null),i[24](e),c=!0,d||(u=[oa(s=cc.call(null,e,i[2])),oa(i[10].call(null,e))],d=!0)},p(_,z){m&&m.p&&(!c||2097152&z)&&qa(m,h,_,_[21],c?ja(h,_[21],z,null):Ya(_[21]),null),Hl(e,g=ml(b,[(!c||267&z&&t!==(t=ta({[_[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":_[0],"mdc-floating-label--required":_[1],..._[8]})))&&{class:t},(!c||528&z&&n!==(n=Object.entries(_[9]).map(zv).concat([_[4]]).join(" ")))&&{style:n},(!c||32&z&&l!==(l=_[5]||(_[11]?_[11].id:void 0)))&&{for:l},4096&z&&_[12]])),s&&Bl(s.update)&&4&z&&s.update.call(null,_[2])},i(_){c||(ji(m,_),c=!0)},o(_){rn(m,_),c=!1},d(_){_&&Bn(e),m&&m.d(_),i[24](null),d=!1,us(u)}}}function KI(i){let e,t,n,l,s,c,d;const u=i[22].default,h=Wa(u,i,i[21],null);let m=[{class:t=ta({[i[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":i[0],"mdc-floating-label--required":i[1],...i[8]})},{style:n=Object.entries(i[9]).map(Cv).concat([i[4]]).join(" ")},i[12]],b={};for(let g=0;g<m.length;g+=1)b=Xn(b,m[g]);return{c(){e=_a("span"),h&&h.c(),Hl(e,b)},m(g,_){Un(g,e,_),h&&h.m(e,null),i[23](e),s=!0,c||(d=[oa(l=cc.call(null,e,i[2])),oa(i[10].call(null,e))],c=!0)},p(g,_){h&&h.p&&(!s||2097152&_)&&qa(h,u,g,g[21],s?ja(u,g[21],_,null):Ya(g[21]),null),Hl(e,b=ml(m,[(!s||267&_&&t!==(t=ta({[g[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":g[0],"mdc-floating-label--required":g[1],...g[8]})))&&{class:t},(!s||528&_&&n!==(n=Object.entries(g[9]).map(Cv).concat([g[4]]).join(" ")))&&{style:n},4096&_&&g[12]])),l&&Bl(l.update)&&4&_&&l.update.call(null,g[2])},i(g){s||(ji(h,g),s=!0)},o(g){rn(h,g),s=!1},d(g){g&&Bn(e),h&&h.d(g),i[23](null),c=!1,us(d)}}}function JI(i){let e,t,n,l;const s=[KI,QI],c=[];function d(u,h){return u[6]?0:1}return e=d(i),t=c[e]=s[e](i),{c(){t.c(),n=$o()},m(u,h){c[e].m(u,h),Un(u,n,h),l=!0},p(u,[h]){let m=e;e=d(u),e===m?c[e].p(u,h):(Ws(),rn(c[m],1,1,()=>{c[m]=null}),js(),t=c[e],t?t.p(u,h):(t=c[e]=s[e](u),t.c()),ji(t,1),t.m(n.parentNode,n))},i(u){l||(ji(t),l=!0)},o(u){rn(t),l=!1},d(u){c[e].d(u),u&&Bn(n)}}}const Cv=([i,e])=>`${i}: ${e};`,zv=([i,e])=>`${i}: ${e};`;function e6(i,e,t){const n=["use","class","style","for","floatAbove","required","wrapped","shake","float","setRequired","getWidth","getElement"];let l=Da(e,n),{$$slots:s={},$$scope:c}=e;var d;const u=oc(Ys());let h,m,{use:b=[]}=e,{class:g=""}=e,{style:_=""}=e,{for:z}=e,{floatAbove:X=!1}=e,{required:y=!1}=e,{wrapped:E=!1}=e,T={},w={},I=(d=rc("SMUI:generic:input:props"))!==null&&d!==void 0?d:{},K=X,U=y;function Y(x){T[x]||t(8,T[x]=!0,T)}function J(x){x in T&&!T[x]||t(8,T[x]=!1,T)}function S(x,A){w[x]!=A&&(A===""||A==null?(delete w[x],t(9,w)):t(9,w[x]=A,w))}function Q(x){x in w&&(delete w[x],t(9,w))}function ae(){return h}return Lc(()=>{t(18,m=new ZI({addClass:Y,removeClass:J,getWidth:()=>{var A,O;const k=ae(),C=k.cloneNode(!0);(A=k.parentNode)===null||A===void 0||A.appendChild(C),C.classList.add("smui-floating-label--remove-transition"),C.classList.add("smui-floating-label--force-size"),C.classList.remove("mdc-floating-label--float-above");const ee=C.scrollWidth;return(O=k.parentNode)===null||O===void 0||O.removeChild(C),ee},registerInteractionHandler:(A,O)=>ae().addEventListener(A,O),deregisterInteractionHandler:(A,O)=>ae().removeEventListener(A,O)}));const x={get element(){return ae()},addStyle:S,removeStyle:Q};return $l(h,"SMUIFloatingLabel:mount",x),m.init(),()=>{$l(h,"SMUIFloatingLabel:unmount",x),m.destroy()}}),i.$$set=x=>{e=Xn(Xn({},e),sc(x)),t(12,l=Da(e,n)),"use"in x&&t(2,b=x.use),"class"in x&&t(3,g=x.class),"style"in x&&t(4,_=x.style),"for"in x&&t(5,z=x.for),"floatAbove"in x&&t(0,X=x.floatAbove),"required"in x&&t(1,y=x.required),"wrapped"in x&&t(6,E=x.wrapped),"$$scope"in x&&t(21,c=x.$$scope)},i.$$.update=()=>{786433&i.$$.dirty&&m&&K!==X&&(t(19,K=X),m.float(X)),1310722&i.$$.dirty&&m&&U!==y&&(t(20,U=y),m.setRequired(y))},[X,y,b,g,_,z,E,h,T,w,u,I,l,function(x){m.shake(x)},function(x){t(0,X=x)},function(x){t(1,y=x)},function(){return m.getWidth()},ae,m,K,U,c,s,function(x){Or[x?"unshift":"push"](()=>{h=x,t(7,h)})},function(x){Or[x?"unshift":"push"](()=>{h=x,t(7,h)})}]}let bw=class extends So{constructor(e){super(),wo(this,e,e6,JI,Rs,{use:2,class:3,style:4,for:5,floatAbove:0,required:1,wrapped:6,shake:13,float:14,setRequired:15,getWidth:16,getElement:17})}get shake(){return this.$$.ctx[13]}get float(){return this.$$.ctx[14]}get setRequired(){return this.$$.ctx[15]}get getWidth(){return this.$$.ctx[16]}get getElement(){return this.$$.ctx[17]}};/**
729
+ * @license
730
+ * Copyright 2018 Google Inc.
731
+ *
732
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
733
+ * of this software and associated documentation files (the "Software"), to deal
734
+ * in the Software without restriction, including without limitation the rights
735
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
736
+ * copies of the Software, and to permit persons to whom the Software is
737
+ * furnished to do so, subject to the following conditions:
738
+ *
739
+ * The above copyright notice and this permission notice shall be included in
740
+ * all copies or substantial portions of the Software.
741
+ *
742
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
743
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
744
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
745
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
746
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
747
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
748
+ * THE SOFTWARE.
749
+ */var Nf={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"};/**
750
+ * @license
751
+ * Copyright 2018 Google Inc.
752
+ *
753
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
754
+ * of this software and associated documentation files (the "Software"), to deal
755
+ * in the Software without restriction, including without limitation the rights
756
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
757
+ * copies of the Software, and to permit persons to whom the Software is
758
+ * furnished to do so, subject to the following conditions:
759
+ *
760
+ * The above copyright notice and this permission notice shall be included in
761
+ * all copies or substantial portions of the Software.
762
+ *
763
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
764
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
765
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
766
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
767
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
768
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
769
+ * THE SOFTWARE.
770
+ */var t6=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.transitionEndHandler=function(l){n.handleTransitionEnd(l)},n}return Bd(e,i),Object.defineProperty(e,"cssClasses",{get:function(){return Nf},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(Nf.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Nf.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(Nf.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var n=this.adapter.hasClass(Nf.LINE_RIPPLE_DEACTIVATING);t.propertyName==="opacity"&&n&&(this.adapter.removeClass(Nf.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Nf.LINE_RIPPLE_DEACTIVATING))},e}(Hd);function i6(i){let e,t,n,l,s,c,d=[{class:t=ta({[i[1]]:!0,"mdc-line-ripple":!0,"mdc-line-ripple--active":i[3],...i[5]})},{style:n=Object.entries(i[6]).map(Iv).concat([i[2]]).join(" ")},i[8]],u={};for(let h=0;h<d.length;h+=1)u=Xn(u,d[h]);return{c(){e=_a("div"),Hl(e,u)},m(h,m){Un(h,e,m),i[13](e),s||(c=[oa(l=cc.call(null,e,i[0])),oa(i[7].call(null,e))],s=!0)},p(h,[m]){Hl(e,u=ml(d,[42&m&&t!==(t=ta({[h[1]]:!0,"mdc-line-ripple":!0,"mdc-line-ripple--active":h[3],...h[5]}))&&{class:t},68&m&&n!==(n=Object.entries(h[6]).map(Iv).concat([h[2]]).join(" "))&&{style:n},256&m&&h[8]])),l&&Bl(l.update)&&1&m&&l.update.call(null,h[0])},i:hl,o:hl,d(h){h&&Bn(e),i[13](null),s=!1,us(c)}}}const Iv=([i,e])=>`${i}: ${e};`;function n6(i,e,t){const n=["use","class","style","active","activate","deactivate","setRippleCenter","getElement"];let l=Da(e,n);const s=oc(Ys());let c,d,{use:u=[]}=e,{class:h=""}=e,{style:m=""}=e,{active:b=!1}=e,g={},_={};function z(w){return w in g?g[w]:T().classList.contains(w)}function X(w){g[w]||t(5,g[w]=!0,g)}function y(w){w in g&&!g[w]||t(5,g[w]=!1,g)}function E(w,I){_[w]!=I&&(I===""||I==null?(delete _[w],t(6,_)):t(6,_[w]=I,_))}function T(){return c}return Lc(()=>(d=new t6({addClass:X,removeClass:y,hasClass:z,setStyle:E,registerEventHandler:(w,I)=>T().addEventListener(w,I),deregisterEventHandler:(w,I)=>T().removeEventListener(w,I)}),d.init(),()=>{d.destroy()})),i.$$set=w=>{e=Xn(Xn({},e),sc(w)),t(8,l=Da(e,n)),"use"in w&&t(0,u=w.use),"class"in w&&t(1,h=w.class),"style"in w&&t(2,m=w.style),"active"in w&&t(3,b=w.active)},[u,h,m,b,c,g,_,s,l,function(){d.activate()},function(){d.deactivate()},function(w){d.setRippleCenter(w)},T,function(w){Or[w?"unshift":"push"](()=>{c=w,t(4,c)})}]}class r6 extends So{constructor(e){super(),wo(this,e,n6,i6,Rs,{use:0,class:1,style:2,active:3,activate:9,deactivate:10,setRippleCenter:11,getElement:12})}get activate(){return this.$$.ctx[9]}get deactivate(){return this.$$.ctx[10]}get setRippleCenter(){return this.$$.ctx[11]}get getElement(){return this.$$.ctx[12]}}/**
771
+ * @license
772
+ * Copyright 2018 Google Inc.
773
+ *
774
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
775
+ * of this software and associated documentation files (the "Software"), to deal
776
+ * in the Software without restriction, including without limitation the rights
777
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
778
+ * copies of the Software, and to permit persons to whom the Software is
779
+ * furnished to do so, subject to the following conditions:
780
+ *
781
+ * The above copyright notice and this permission notice shall be included in
782
+ * all copies or substantial portions of the Software.
783
+ *
784
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
785
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
786
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
787
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
788
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
789
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
790
+ * THE SOFTWARE.
791
+ */var a6={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},Lv={NOTCH_ELEMENT_PADDING:8},l6={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"};/**
792
+ * @license
793
+ * Copyright 2017 Google Inc.
794
+ *
795
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
796
+ * of this software and associated documentation files (the "Software"), to deal
797
+ * in the Software without restriction, including without limitation the rights
798
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
799
+ * copies of the Software, and to permit persons to whom the Software is
800
+ * furnished to do so, subject to the following conditions:
801
+ *
802
+ * The above copyright notice and this permission notice shall be included in
803
+ * all copies or substantial portions of the Software.
804
+ *
805
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
806
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
807
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
808
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
809
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
810
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
811
+ * THE SOFTWARE.
812
+ */var s6=function(i){function e(t){return i.call(this,fs(fs({},e.defaultAdapter),t))||this}return Bd(e,i),Object.defineProperty(e,"strings",{get:function(){return a6},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return l6},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Lv},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(t){var n=e.cssClasses.OUTLINE_NOTCHED;t>0&&(t+=Lv.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(t),this.adapter.addClass(n)},e.prototype.closeNotch=function(){var t=e.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(t),this.adapter.removeNotchWidthProperty()},e}(Hd);function Rv(i){let e,t,n;const l=i[15].default,s=Wa(l,i,i[14],null);return{c(){e=_a("div"),s&&s.c(),Fa(e,"class","mdc-notched-outline__notch"),Fa(e,"style",t=Object.entries(i[7]).map(Fv).join(" "))},m(c,d){Un(c,e,d),s&&s.m(e,null),n=!0},p(c,d){s&&s.p&&(!n||16384&d)&&qa(s,l,c,c[14],n?ja(l,c[14],d,null):Ya(c[14]),null),(!n||128&d&&t!==(t=Object.entries(c[7]).map(Fv).join(" ")))&&Fa(e,"style",t)},i(c){n||(ji(s,c),n=!0)},o(c){rn(s,c),n=!1},d(c){c&&Bn(e),s&&s.d(c)}}}function o6(i){let e,t,n,l,s,c,d,u,h,m,b=!i[3]&&Rv(i),g=[{class:c=ta({[i[1]]:!0,"mdc-notched-outline":!0,"mdc-notched-outline--notched":i[2],"mdc-notched-outline--no-label":i[3],...i[6]})},i[10]],_={};for(let z=0;z<g.length;z+=1)_=Xn(_,g[z]);return{c(){e=_a("div"),t=_a("div"),n=zl(),b&&b.c(),l=zl(),s=_a("div"),Fa(t,"class","mdc-notched-outline__leading"),Fa(s,"class","mdc-notched-outline__trailing"),Hl(e,_)},m(z,X){Un(z,e,X),ds(e,t),ds(e,n),b&&b.m(e,null),ds(e,l),ds(e,s),i[16](e),u=!0,h||(m=[oa(d=cc.call(null,e,i[0])),oa(i[8].call(null,e)),Il(e,"SMUIFloatingLabel:mount",i[9]),Il(e,"SMUIFloatingLabel:unmount",i[17])],h=!0)},p(z,[X]){z[3]?b&&(Ws(),rn(b,1,1,()=>{b=null}),js()):b?(b.p(z,X),8&X&&ji(b,1)):(b=Rv(z),b.c(),ji(b,1),b.m(e,l)),Hl(e,_=ml(g,[(!u||78&X&&c!==(c=ta({[z[1]]:!0,"mdc-notched-outline":!0,"mdc-notched-outline--notched":z[2],"mdc-notched-outline--no-label":z[3],...z[6]})))&&{class:c},1024&X&&z[10]])),d&&Bl(d.update)&&1&X&&d.update.call(null,z[0])},i(z){u||(ji(b),u=!0)},o(z){rn(b),u=!1},d(z){z&&Bn(e),b&&b.d(),i[16](null),h=!1,us(m)}}}const Fv=([i,e])=>`${i}: ${e};`;function c6(i,e,t){const n=["use","class","notched","noLabel","notch","closeNotch","getElement"];let l=Da(e,n),{$$slots:s={},$$scope:c}=e;const d=oc(Ys());let u,h,m,{use:b=[]}=e,{class:g=""}=e,{notched:_=!1}=e,{noLabel:z=!1}=e,X={},y={};function E(w){X[w]||t(6,X[w]=!0,X)}function T(w){w in X&&!X[w]||t(6,X[w]=!1,X)}return Lc(()=>(h=new s6({addClass:E,removeClass:T,setNotchWidthProperty:w=>{return K=w+"px",void(y[I="width"]!=K&&(K===""||K==null?(delete y[I],t(7,y)):t(7,y[I]=K,y)));var I,K},removeNotchWidthProperty:()=>{var w;(w="width")in y&&(delete y[w],t(7,y))}}),h.init(),()=>{h.destroy()})),i.$$set=w=>{e=Xn(Xn({},e),sc(w)),t(10,l=Da(e,n)),"use"in w&&t(0,b=w.use),"class"in w&&t(1,g=w.class),"notched"in w&&t(2,_=w.notched),"noLabel"in w&&t(3,z=w.noLabel),"$$scope"in w&&t(14,c=w.$$scope)},i.$$.update=()=>{16&i.$$.dirty&&(m?(m.addStyle("transition-duration","0s"),E("mdc-notched-outline--upgraded"),requestAnimationFrame(()=>{m&&m.removeStyle("transition-duration")})):T("mdc-notched-outline--upgraded"))},[b,g,_,z,m,u,X,y,d,function(w){t(4,m=w.detail)},l,function(w){h.notch(w)},function(){h.closeNotch()},function(){return u},c,s,function(w){Or[w?"unshift":"push"](()=>{u=w,t(5,u)})},()=>t(4,m=void 0)]}let d6=class extends So{constructor(e){super(),wo(this,e,c6,o6,Rs,{use:0,class:1,notched:2,noLabel:3,notch:11,closeNotch:12,getElement:13})}get notch(){return this.$$.ctx[11]}get closeNotch(){return this.$$.ctx[12]}get getElement(){return this.$$.ctx[13]}};var f6=pd({class:"mdc-text-field-helper-line",tag:"div"}),u6=pd({class:"mdc-text-field__affix mdc-text-field__affix--prefix",tag:"span"}),h6=pd({class:"mdc-text-field__affix mdc-text-field__affix--suffix",tag:"span"});function m6(i){let e,t,n,l,s,c=[{class:t=ta({[i[1]]:!0,"mdc-text-field__input":!0})},{type:i[2]},{placeholder:i[3]},i[4],i[6],i[10]],d={};for(let u=0;u<c.length;u+=1)d=Xn(d,c[u]);return{c(){e=_a("input"),Hl(e,d)},m(u,h){Un(u,e,h),e.autofocus&&e.focus(),i[26](e),l||(s=[oa(n=cc.call(null,e,i[0])),oa(i[7].call(null,e)),Il(e,"input",i[27]),Il(e,"change",i[9]),Il(e,"blur",i[24]),Il(e,"focus",i[25])],l=!0)},p(u,[h]){Hl(e,d=ml(c,[2&h&&t!==(t=ta({[u[1]]:!0,"mdc-text-field__input":!0}))&&{class:t},4&h&&{type:u[2]},8&h&&{placeholder:u[3]},16&h&&u[4],64&h&&u[6],1024&h&&u[10]])),n&&Bl(n.update)&&1&h&&n.update.call(null,u[0])},i:hl,o:hl,d(u){u&&Bn(e),i[26](null),l=!1,us(s)}}}function p6(i,e,t){const n=["use","class","type","placeholder","value","files","dirty","invalid","updateInvalid","emptyValueNull","emptyValueUndefined","getAttr","addAttr","removeAttr","focus","blur","getElement"];let l=Da(e,n);const s=oc(Ys());let c=()=>{},{use:d=[]}=e,{class:u=""}=e,{type:h="text"}=e,{placeholder:m=" "}=e,{value:b=c}=e;const g=function(J){return J===c}(b);g&&(b="");let{files:_=null}=e,{dirty:z=!1}=e,{invalid:X=!1}=e,{updateInvalid:y=!0}=e,{emptyValueNull:E=b===null}=e;g&&E&&(b=null);let T,{emptyValueUndefined:w=b===void 0}=e;g&&w&&(b=void 0);let I={},K={};function U(J){if(h!=="file")if(J.currentTarget.value===""&&E)t(11,b=null);else if(J.currentTarget.value===""&&w)t(11,b=void 0);else switch(h){case"number":case"range":t(11,b=function(S){return S===""?Number.NaN:+S}(J.currentTarget.value));break;default:t(11,b=J.currentTarget.value)}else t(12,_=J.currentTarget.files)}function Y(){return T}return Lc(()=>{y&&t(14,X=T.matches(":invalid"))}),i.$$set=J=>{e=Xn(Xn({},e),sc(J)),t(10,l=Da(e,n)),"use"in J&&t(0,d=J.use),"class"in J&&t(1,u=J.class),"type"in J&&t(2,h=J.type),"placeholder"in J&&t(3,m=J.placeholder),"value"in J&&t(11,b=J.value),"files"in J&&t(12,_=J.files),"dirty"in J&&t(13,z=J.dirty),"invalid"in J&&t(14,X=J.invalid),"updateInvalid"in J&&t(15,y=J.updateInvalid),"emptyValueNull"in J&&t(16,E=J.emptyValueNull),"emptyValueUndefined"in J&&t(17,w=J.emptyValueUndefined)},i.$$.update=()=>{2068&i.$$.dirty&&(h==="file"?(delete K.value,t(4,K),t(2,h),t(11,b)):t(4,K.value=b??"",K))},[d,u,h,m,K,T,I,s,U,function(J){h!=="file"&&h!=="range"||U(J),t(13,z=!0),y&&t(14,X=T.matches(":invalid"))},l,b,_,z,X,y,E,w,function(J){var S;return J in I?(S=I[J])!==null&&S!==void 0?S:null:Y().getAttribute(J)},function(J,S){I[J]!==S&&t(6,I[J]=S,I)},function(J){J in I&&I[J]==null||t(6,I[J]=void 0,I)},function(){Y().focus()},function(){Y().blur()},Y,function(J){_0.call(this,i,J)},function(J){_0.call(this,i,J)},function(J){Or[J?"unshift":"push"](()=>{T=J,t(5,T)})},J=>h!=="file"&&U(J)]}let b6=class extends So{constructor(e){super(),wo(this,e,p6,m6,Rs,{use:0,class:1,type:2,placeholder:3,value:11,files:12,dirty:13,invalid:14,updateInvalid:15,emptyValueNull:16,emptyValueUndefined:17,getAttr:18,addAttr:19,removeAttr:20,focus:21,blur:22,getElement:23})}get getAttr(){return this.$$.ctx[18]}get addAttr(){return this.$$.ctx[19]}get removeAttr(){return this.$$.ctx[20]}get focus(){return this.$$.ctx[21]}get blur(){return this.$$.ctx[22]}get getElement(){return this.$$.ctx[23]}};function g6(i){let e,t,n,l,s,c,d=[{class:t=ta({[i[2]]:!0,"mdc-text-field__input":!0})},{style:n=`${i[4]?"":"resize: none; "}${i[3]}`},i[6],i[9]],u={};for(let h=0;h<d.length;h+=1)u=Xn(u,d[h]);return{c(){e=_a("textarea"),Hl(e,u)},m(h,m){Un(h,e,m),e.autofocus&&e.focus(),i[21](e),bv(e,i[0]),s||(c=[oa(l=cc.call(null,e,i[1])),oa(i[7].call(null,e)),Il(e,"change",i[8]),Il(e,"blur",i[19]),Il(e,"focus",i[20]),Il(e,"input",i[22])],s=!0)},p(h,[m]){Hl(e,u=ml(d,[4&m&&t!==(t=ta({[h[2]]:!0,"mdc-text-field__input":!0}))&&{class:t},24&m&&n!==(n=`${h[4]?"":"resize: none; "}${h[3]}`)&&{style:n},64&m&&h[6],512&m&&h[9]])),l&&Bl(l.update)&&2&m&&l.update.call(null,h[1]),1&m&&bv(e,h[0])},i:hl,o:hl,d(h){h&&Bn(e),i[21](null),s=!1,us(c)}}}function _6(i,e,t){const n=["use","class","style","value","dirty","invalid","updateInvalid","resizable","getAttr","addAttr","removeAttr","focus","blur","getElement"];let l=Da(e,n);const s=oc(Ys());let c,{use:d=[]}=e,{class:u=""}=e,{style:h=""}=e,{value:m=""}=e,{dirty:b=!1}=e,{invalid:g=!1}=e,{updateInvalid:_=!0}=e,{resizable:z=!0}=e,X={};function y(){return c}return Lc(()=>{_&&t(11,g=c.matches(":invalid"))}),i.$$set=E=>{e=Xn(Xn({},e),sc(E)),t(9,l=Da(e,n)),"use"in E&&t(1,d=E.use),"class"in E&&t(2,u=E.class),"style"in E&&t(3,h=E.style),"value"in E&&t(0,m=E.value),"dirty"in E&&t(10,b=E.dirty),"invalid"in E&&t(11,g=E.invalid),"updateInvalid"in E&&t(12,_=E.updateInvalid),"resizable"in E&&t(4,z=E.resizable)},[m,d,u,h,z,c,X,s,function(){t(10,b=!0),_&&t(11,g=c.matches(":invalid"))},l,b,g,_,function(E){var T;return E in X?(T=X[E])!==null&&T!==void 0?T:null:y().getAttribute(E)},function(E,T){X[E]!==T&&t(6,X[E]=T,X)},function(E){E in X&&X[E]==null||t(6,X[E]=void 0,X)},function(){y().focus()},function(){y().blur()},y,function(E){_0.call(this,i,E)},function(E){_0.call(this,i,E)},function(E){Or[E?"unshift":"push"](()=>{c=E,t(5,c)})},function(){m=this.value,t(0,m)}]}let y6=class extends So{constructor(e){super(),wo(this,e,_6,g6,Rs,{use:1,class:2,style:3,value:0,dirty:10,invalid:11,updateInvalid:12,resizable:4,getAttr:13,addAttr:14,removeAttr:15,focus:16,blur:17,getElement:18})}get getAttr(){return this.$$.ctx[13]}get addAttr(){return this.$$.ctx[14]}get removeAttr(){return this.$$.ctx[15]}get focus(){return this.$$.ctx[16]}get blur(){return this.$$.ctx[17]}get getElement(){return this.$$.ctx[18]}};/**
813
+ * @license
814
+ * Copyright 2016 Google Inc.
815
+ *
816
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
817
+ * of this software and associated documentation files (the "Software"), to deal
818
+ * in the Software without restriction, including without limitation the rights
819
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
820
+ * copies of the Software, and to permit persons to whom the Software is
821
+ * furnished to do so, subject to the following conditions:
822
+ *
823
+ * The above copyright notice and this permission notice shall be included in
824
+ * all copies or substantial portions of the Software.
825
+ *
826
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
827
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
828
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
829
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
830
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
831
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
832
+ * THE SOFTWARE.
833
+ */var ng={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},v6={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},Mv={LABEL_SCALE:.75},x6=["pattern","min","max","required","step","minlength","maxlength"],w6=["color","date","datetime-local","month","range","time","week"];/**
834
+ * @license
835
+ * Copyright 2016 Google Inc.
836
+ *
837
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
838
+ * of this software and associated documentation files (the "Software"), to deal
839
+ * in the Software without restriction, including without limitation the rights
840
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
841
+ * copies of the Software, and to permit persons to whom the Software is
842
+ * furnished to do so, subject to the following conditions:
843
+ *
844
+ * The above copyright notice and this permission notice shall be included in
845
+ * all copies or substantial portions of the Software.
846
+ *
847
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
848
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
849
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
850
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
851
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
852
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
853
+ * THE SOFTWARE.
854
+ */var Dv=["mousedown","touchstart"],Nv=["click","keydown"],S6=function(i){function e(t,n){n===void 0&&(n={});var l=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return l.isFocused=!1,l.receivedUserInput=!1,l.valid=!0,l.useNativeValidation=!0,l.validateOnValueChange=!0,l.helperText=n.helperText,l.characterCounter=n.characterCounter,l.leadingIcon=n.leadingIcon,l.trailingIcon=n.trailingIcon,l.inputFocusHandler=function(){l.activateFocus()},l.inputBlurHandler=function(){l.deactivateFocus()},l.inputInputHandler=function(){l.handleInput()},l.setPointerXOffset=function(s){l.setTransformOrigin(s)},l.textFieldInteractionHandler=function(){l.handleTextFieldInteraction()},l.validationAttributeChangeHandler=function(s){l.handleValidationAttributeChange(s)},l}return Bd(e,i),Object.defineProperty(e,"cssClasses",{get:function(){return v6},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ng},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Mv},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldAlwaysFloat",{get:function(){var t=this.getNativeInput().type;return w6.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat||this.isFocused||!!this.getValue()||this.isBadInput()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldShake",{get:function(){return!this.isFocused&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,n,l,s;this.adapter.hasLabel()&&this.getNativeInput().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var c=jc(Dv),d=c.next();!d.done;d=c.next()){var u=d.value;this.adapter.registerInputInteractionHandler(u,this.setPointerXOffset)}}catch(b){t={error:b}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}try{for(var h=jc(Nv),m=h.next();!m.done;m=h.next())u=m.value,this.adapter.registerTextFieldInteractionHandler(u,this.textFieldInteractionHandler)}catch(b){l={error:b}}finally{try{m&&!m.done&&(s=h.return)&&s.call(h)}finally{if(l)throw l.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue().length)},e.prototype.destroy=function(){var t,n,l,s;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var c=jc(Dv),d=c.next();!d.done;d=c.next()){var u=d.value;this.adapter.deregisterInputInteractionHandler(u,this.setPointerXOffset)}}catch(b){t={error:b}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}try{for(var h=jc(Nv),m=h.next();!m.done;m=h.next())u=m.value,this.adapter.deregisterTextFieldInteractionHandler(u,this.textFieldInteractionHandler)}catch(b){l={error:b}}finally{try{m&&!m.done&&(s=h.return)&&s.call(h)}finally{if(l)throw l.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},e.prototype.handleTextFieldInteraction=function(){var t=this.adapter.getNativeInput();t&&t.disabled||(this.receivedUserInput=!0)},e.prototype.handleValidationAttributeChange=function(t){var n=this;t.some(function(l){return x6.indexOf(l)>-1&&(n.styleValidity(!0),n.adapter.setLabelRequired(n.getNativeInput().required),!0)}),t.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue().length)},e.prototype.notchOutline=function(t){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(t){var n=this.adapter.getLabelWidth()*Mv.LABEL_SCALE;this.adapter.notchOutline(n)}else this.adapter.closeOutline()},e.prototype.activateFocus=function(){this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent()&&this.helperText.isValidation()&&this.valid||this.helperText.showToScreenReader()},e.prototype.setTransformOrigin=function(t){if(!this.isDisabled()&&!this.adapter.hasOutline()){var n=t.touches,l=n?n[0]:t,s=l.target.getBoundingClientRect(),c=l.clientX-s.left;this.adapter.setLineRippleTransformOrigin(c)}},e.prototype.handleInput=function(){this.autoCompleteFocus(),this.setcharacterCounter(this.getValue().length)},e.prototype.autoCompleteFocus=function(){this.receivedUserInput||this.activateFocus()},e.prototype.deactivateFocus=function(){this.isFocused=!1,this.adapter.deactivateLineRipple();var t=this.isValid();this.styleValidity(t),this.styleFocused(this.isFocused),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},e.prototype.getValue=function(){return this.getNativeInput().value},e.prototype.setValue=function(t){if(this.getValue()!==t&&(this.getNativeInput().value=t),this.setcharacterCounter(t.length),this.validateOnValueChange){var n=this.isValid();this.styleValidity(n)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},e.prototype.isValid=function(){return this.useNativeValidation?this.isNativeInputValid():this.valid},e.prototype.setValid=function(t){this.valid=t,this.styleValidity(t);var n=!t&&!this.isFocused&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(n)},e.prototype.setValidateOnValueChange=function(t){this.validateOnValueChange=t},e.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange},e.prototype.setUseNativeValidation=function(t){this.useNativeValidation=t},e.prototype.isDisabled=function(){return this.getNativeInput().disabled},e.prototype.setDisabled=function(t){this.getNativeInput().disabled=t,this.styleDisabled(t)},e.prototype.setHelperTextContent=function(t){this.helperText&&this.helperText.setContent(t)},e.prototype.setLeadingIconAriaLabel=function(t){this.leadingIcon&&this.leadingIcon.setAriaLabel(t)},e.prototype.setLeadingIconContent=function(t){this.leadingIcon&&this.leadingIcon.setContent(t)},e.prototype.setTrailingIconAriaLabel=function(t){this.trailingIcon&&this.trailingIcon.setAriaLabel(t)},e.prototype.setTrailingIconContent=function(t){this.trailingIcon&&this.trailingIcon.setContent(t)},e.prototype.setcharacterCounter=function(t){if(this.characterCounter){var n=this.getNativeInput().maxLength;if(n===-1)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(t,n)}},e.prototype.isBadInput=function(){return this.getNativeInput().validity.badInput||!1},e.prototype.isNativeInputValid=function(){return this.getNativeInput().validity.valid},e.prototype.styleValidity=function(t){var n=e.cssClasses.INVALID;if(t?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText){if(this.helperText.setValidity(t),!this.helperText.isValidation())return;var l=this.helperText.isVisible(),s=this.helperText.getId();l&&s?this.adapter.setInputAttr(ng.ARIA_DESCRIBEDBY,s):this.adapter.removeInputAttr(ng.ARIA_DESCRIBEDBY)}},e.prototype.styleFocused=function(t){var n=e.cssClasses.FOCUSED;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.styleDisabled=function(t){var n=e.cssClasses,l=n.DISABLED,s=n.INVALID;t?(this.adapter.addClass(l),this.adapter.removeClass(s)):this.adapter.removeClass(l),this.leadingIcon&&this.leadingIcon.setDisabled(t),this.trailingIcon&&this.trailingIcon.setDisabled(t)},e.prototype.styleFloating=function(t){var n=e.cssClasses.LABEL_FLOATING;t?this.adapter.addClass(n):this.adapter.removeClass(n)},e.prototype.getNativeInput=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},e}(Hd);const A6=i=>({}),$v=i=>({}),E6=i=>({}),Bv=i=>({}),T6=i=>({}),Hv=i=>({}),O6=i=>({}),Pv=i=>({}),k6=i=>({}),Uv=i=>({}),C6=i=>({}),Gv=i=>({}),z6=i=>({}),Vv=i=>({}),I6=i=>({}),Wv=i=>({}),L6=i=>({}),jv=i=>({}),R6=i=>({}),qv=i=>({}),F6=i=>({}),Yv=i=>({}),M6=i=>({}),Xv=i=>({});function D6(i){let e,t,n,l,s,c,d,u,h,m,b,g,_,z;const X=i[56].label,y=Wa(X,i,i[87],Uv);n=new x0({props:{key:"SMUI:textfield:icon:leading",value:!0,$$slots:{default:[$6]},$$scope:{ctx:i}}});const E=i[56].default,T=Wa(E,i,i[87],null);c=new x0({props:{key:"SMUI:textfield:icon:leading",value:!1,$$slots:{default:[B6]},$$scope:{ctx:i}}});const w=i[56].ripple,I=Wa(w,i,i[87],Bv);let K=[{class:u=ta({[i[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":i[12],"mdc-text-field--textarea":i[14],"mdc-text-field--filled":i[15]==="filled","mdc-text-field--outlined":i[15]==="outlined","smui-text-field--standard":i[15]==="standard"&&!i[14],"mdc-text-field--no-label":i[16]||!i[47].label,"mdc-text-field--with-leading-icon":i[47].leadingIcon,"mdc-text-field--with-trailing-icon":i[47].trailingIcon,"mdc-text-field--invalid":i[1],...i[25]})},{style:h=Object.entries(i[26]).map(lx).concat([i[10]]).join(" ")},v0(i[46],["input$","label$","ripple$","outline$","helperLine$"])],U={};for(let Y=0;Y<K.length;Y+=1)U=Xn(U,K[Y]);return{c(){e=_a("div"),y&&y.c(),t=zl(),la(n.$$.fragment),l=zl(),T&&T.c(),s=zl(),la(c.$$.fragment),d=zl(),I&&I.c(),Hl(e,U)},m(Y,J){Un(Y,e,J),y&&y.m(e,null),ds(e,t),Jr(n,e,null),ds(e,l),T&&T.m(e,null),ds(e,s),Jr(c,e,null),ds(e,d),I&&I.m(e,null),i[82](e),g=!0,_||(z=[oa(m=y0.call(null,e,{ripple:i[11],unbounded:!1,addClass:i[43],removeClass:i[44],addStyle:i[45]})),oa(b=cc.call(null,e,i[8])),oa(i[34].call(null,e)),Il(e,"SMUITextfieldLeadingIcon:mount",i[38]),Il(e,"SMUITextfieldLeadingIcon:unmount",i[83]),Il(e,"SMUITextfieldTrailingIcon:mount",i[39]),Il(e,"SMUITextfieldTrailingIcon:unmount",i[84])],_=!0)},p(Y,J){y&&y.p&&(!g||33554432&J[2])&&qa(y,X,Y,Y[87],g?ja(X,Y[87],J,k6):Ya(Y[87]),Uv);const S={};33554432&J[2]&&(S.$$scope={dirty:J,ctx:Y}),n.$set(S),T&&T.p&&(!g||33554432&J[2])&&qa(T,E,Y,Y[87],g?ja(E,Y[87],J,null):Ya(Y[87]),null);const Q={};33554432&J[2]&&(Q.$$scope={dirty:J,ctx:Y}),c.$set(Q),I&&I.p&&(!g||33554432&J[2])&&qa(I,w,Y,Y[87],g?ja(w,Y[87],J,E6):Ya(Y[87]),Bv),Hl(e,U=ml(K,[(!g||33673730&J[0]|65536&J[1]&&u!==(u=ta({[Y[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":Y[12],"mdc-text-field--textarea":Y[14],"mdc-text-field--filled":Y[15]==="filled","mdc-text-field--outlined":Y[15]==="outlined","smui-text-field--standard":Y[15]==="standard"&&!Y[14],"mdc-text-field--no-label":Y[16]||!Y[47].label,"mdc-text-field--with-leading-icon":Y[47].leadingIcon,"mdc-text-field--with-trailing-icon":Y[47].trailingIcon,"mdc-text-field--invalid":Y[1],...Y[25]})))&&{class:u},(!g||67109888&J[0]&&h!==(h=Object.entries(Y[26]).map(lx).concat([Y[10]]).join(" ")))&&{style:h},32768&J[1]&&v0(Y[46],["input$","label$","ripple$","outline$","helperLine$"])])),m&&Bl(m.update)&&2048&J[0]&&m.update.call(null,{ripple:Y[11],unbounded:!1,addClass:Y[43],removeClass:Y[44],addStyle:Y[45]}),b&&Bl(b.update)&&256&J[0]&&b.update.call(null,Y[8])},i(Y){g||(ji(y,Y),ji(n.$$.fragment,Y),ji(T,Y),ji(c.$$.fragment,Y),ji(I,Y),g=!0)},o(Y){rn(y,Y),rn(n.$$.fragment,Y),rn(T,Y),rn(c.$$.fragment,Y),rn(I,Y),g=!1},d(Y){Y&&Bn(e),y&&y.d(Y),ea(n),T&&T.d(Y),ea(c),I&&I.d(Y),i[82](null),_=!1,us(z)}}}function N6(i){let e,t,n,l,s,c,d,u,h,m,b,g,_,z,X,y,E,T,w=!i[14]&&i[15]!=="outlined"&&Zv(i),I=(i[14]||i[15]==="outlined")&&Jv(i);l=new x0({props:{key:"SMUI:textfield:icon:leading",value:!0,$$slots:{default:[G6]},$$scope:{ctx:i}}});const K=i[56].default,U=Wa(K,i,i[87],null),Y=[W6,V6],J=[];function S(A,O){return A[14]&&typeof A[0]=="string"?0:1}d=S(i),u=J[d]=Y[d](i),m=new x0({props:{key:"SMUI:textfield:icon:leading",value:!1,$$slots:{default:[Y6]},$$scope:{ctx:i}}});let Q=!i[14]&&i[15]!=="outlined"&&i[11]&&nx(i),ae=[{class:g=ta({[i[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":i[12],"mdc-text-field--textarea":i[14],"mdc-text-field--filled":i[15]==="filled","mdc-text-field--outlined":i[15]==="outlined","smui-text-field--standard":i[15]==="standard"&&!i[14],"mdc-text-field--no-label":i[16]||i[17]==null&&!i[47].label,"mdc-text-field--label-floating":i[28]||i[0]!=null&&i[0]!=="","mdc-text-field--with-leading-icon":i[35](i[22])?i[47].leadingIcon:i[22],"mdc-text-field--with-trailing-icon":i[35](i[23])?i[47].trailingIcon:i[23],"mdc-text-field--with-internal-counter":i[14]&&i[47].internalCounter,"mdc-text-field--invalid":i[1],...i[25]})},{style:_=Object.entries(i[26]).map(ax).concat([i[10]]).join(" ")},{for:void 0},v0(i[46],["input$","label$","ripple$","outline$","helperLine$"])],x={};for(let A=0;A<ae.length;A+=1)x=Xn(x,ae[A]);return{c(){e=_a("label"),w&&w.c(),t=zl(),I&&I.c(),n=zl(),la(l.$$.fragment),s=zl(),U&&U.c(),c=zl(),u.c(),h=zl(),la(m.$$.fragment),b=zl(),Q&&Q.c(),Hl(e,x)},m(A,O){Un(A,e,O),w&&w.m(e,null),ds(e,t),I&&I.m(e,null),ds(e,n),Jr(l,e,null),ds(e,s),U&&U.m(e,null),ds(e,c),J[d].m(e,null),ds(e,h),Jr(m,e,null),ds(e,b),Q&&Q.m(e,null),i[78](e),y=!0,E||(T=[oa(z=y0.call(null,e,{ripple:!i[14]&&i[15]==="filled",unbounded:!1,addClass:i[43],removeClass:i[44],addStyle:i[45],eventTarget:i[33],activeTarget:i[33],initPromise:i[37]})),oa(X=cc.call(null,e,i[8])),oa(i[34].call(null,e)),Il(e,"SMUITextfieldLeadingIcon:mount",i[38]),Il(e,"SMUITextfieldLeadingIcon:unmount",i[79]),Il(e,"SMUITextfieldTrailingIcon:mount",i[39]),Il(e,"SMUITextfieldTrailingIcon:unmount",i[80]),Il(e,"SMUITextfieldCharacterCounter:mount",i[40]),Il(e,"SMUITextfieldCharacterCounter:unmount",i[81])],E=!0)},p(A,O){A[14]||A[15]==="outlined"?w&&(Ws(),rn(w,1,1,()=>{w=null}),js()):w?(w.p(A,O),49152&O[0]&&ji(w,1)):(w=Zv(A),w.c(),ji(w,1),w.m(e,t)),A[14]||A[15]==="outlined"?I?(I.p(A,O),49152&O[0]&&ji(I,1)):(I=Jv(A),I.c(),ji(I,1),I.m(e,n)):I&&(Ws(),rn(I,1,1,()=>{I=null}),js());const k={};33554432&O[2]&&(k.$$scope={dirty:O,ctx:A}),l.$set(k),U&&U.p&&(!y||33554432&O[2])&&qa(U,K,A,A[87],y?ja(K,A[87],O,null):Ya(A[87]),null);let C=d;d=S(A),d===C?J[d].p(A,O):(Ws(),rn(J[C],1,1,()=>{J[C]=null}),js(),u=J[d],u?u.p(A,O):(u=J[d]=Y[d](A),u.c()),ji(u,1),u.m(e,h));const ee={};33554432&O[2]&&(ee.$$scope={dirty:O,ctx:A}),m.$set(ee),!A[14]&&A[15]!=="outlined"&&A[11]?Q?(Q.p(A,O),51200&O[0]&&ji(Q,1)):(Q=nx(A),Q.c(),ji(Q,1),Q.m(e,null)):Q&&(Ws(),rn(Q,1,1,()=>{Q=null}),js()),Hl(e,x=ml(ae,[(!y||314823171&O[0]|65536&O[1]&&g!==(g=ta({[A[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":A[12],"mdc-text-field--textarea":A[14],"mdc-text-field--filled":A[15]==="filled","mdc-text-field--outlined":A[15]==="outlined","smui-text-field--standard":A[15]==="standard"&&!A[14],"mdc-text-field--no-label":A[16]||A[17]==null&&!A[47].label,"mdc-text-field--label-floating":A[28]||A[0]!=null&&A[0]!=="","mdc-text-field--with-leading-icon":A[35](A[22])?A[47].leadingIcon:A[22],"mdc-text-field--with-trailing-icon":A[35](A[23])?A[47].trailingIcon:A[23],"mdc-text-field--with-internal-counter":A[14]&&A[47].internalCounter,"mdc-text-field--invalid":A[1],...A[25]})))&&{class:g},(!y||67109888&O[0]&&_!==(_=Object.entries(A[26]).map(ax).concat([A[10]]).join(" ")))&&{style:_},{for:void 0},32768&O[1]&&v0(A[46],["input$","label$","ripple$","outline$","helperLine$"])])),z&&Bl(z.update)&&49152&O[0]|4&O[1]&&z.update.call(null,{ripple:!A[14]&&A[15]==="filled",unbounded:!1,addClass:A[43],removeClass:A[44],addStyle:A[45],eventTarget:A[33],activeTarget:A[33],initPromise:A[37]}),X&&Bl(X.update)&&256&O[0]&&X.update.call(null,A[8])},i(A){y||(ji(w),ji(I),ji(l.$$.fragment,A),ji(U,A),ji(u),ji(m.$$.fragment,A),ji(Q),y=!0)},o(A){rn(w),rn(I),rn(l.$$.fragment,A),rn(U,A),rn(u),rn(m.$$.fragment,A),rn(Q),y=!1},d(A){A&&Bn(e),w&&w.d(),I&&I.d(),ea(l),U&&U.d(A),J[d].d(),ea(m),Q&&Q.d(),i[78](null),E=!1,us(T)}}}function $6(i){let e;const t=i[56].leadingIcon,n=Wa(t,i,i[87],Pv);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||33554432&s[2])&&qa(n,t,l,l[87],e?ja(t,l[87],s,O6):Ya(l[87]),Pv)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function B6(i){let e;const t=i[56].trailingIcon,n=Wa(t,i,i[87],Hv);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||33554432&s[2])&&qa(n,t,l,l[87],e?ja(t,l[87],s,T6):Ya(l[87]),Hv)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function Zv(i){let e,t,n,l=i[15]==="filled"&&Qv(),s=!i[16]&&(i[17]!=null||i[47].label)&&Kv(i);return{c(){l&&l.c(),e=zl(),s&&s.c(),t=$o()},m(c,d){l&&l.m(c,d),Un(c,e,d),s&&s.m(c,d),Un(c,t,d),n=!0},p(c,d){c[15]==="filled"?l||(l=Qv(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),c[16]||c[17]==null&&!c[47].label?s&&(Ws(),rn(s,1,1,()=>{s=null}),js()):s?(s.p(c,d),196608&d[0]|65536&d[1]&&ji(s,1)):(s=Kv(c),s.c(),ji(s,1),s.m(t.parentNode,t))},i(c){n||(ji(s),n=!0)},o(c){rn(s),n=!1},d(c){l&&l.d(c),c&&Bn(e),s&&s.d(c),c&&Bn(t)}}}function Qv(i){let e;return{c(){e=_a("span"),Fa(e,"class","mdc-text-field__ripple")},m(t,n){Un(t,e,n)},d(t){t&&Bn(e)}}}function Kv(i){let e,t;const n=[{floatAbove:i[28]||i[0]!=null&&i[0]!==""&&(typeof i[0]!="number"||!isNaN(i[0]))},{required:i[13]},{wrapped:!0},lc(i[46],"label$")];let l={$$slots:{default:[H6]},$$scope:{ctx:i}};for(let s=0;s<n.length;s+=1)l=Xn(l,n[s]);return e=new bw({props:l}),i[57](e),{c(){la(e.$$.fragment)},m(s,c){Jr(e,s,c),t=!0},p(s,c){const d=268443649&c[0]|32768&c[1]?ml(n,[268435457&c[0]&&{floatAbove:s[28]||s[0]!=null&&s[0]!==""&&(typeof s[0]!="number"||!isNaN(s[0]))},8192&c[0]&&{required:s[13]},n[2],32768&c[1]&&Vs(lc(s[46],"label$"))]):{};131072&c[0]|33554432&c[2]&&(d.$$scope={dirty:c,ctx:s}),e.$set(d)},i(s){t||(ji(e.$$.fragment,s),t=!0)},o(s){rn(e.$$.fragment,s),t=!1},d(s){i[57](null),ea(e,s)}}}function H6(i){let e,t,n=(i[17]==null?"":i[17])+"";const l=i[56].label,s=Wa(l,i,i[87],Xv);return{c(){e=md(n),s&&s.c()},m(c,d){Un(c,e,d),s&&s.m(c,d),t=!0},p(c,d){(!t||131072&d[0])&&n!==(n=(c[17]==null?"":c[17])+"")&&eu(e,n),s&&s.p&&(!t||33554432&d[2])&&qa(s,l,c,c[87],t?ja(l,c[87],d,M6):Ya(c[87]),Xv)},i(c){t||(ji(s,c),t=!0)},o(c){rn(s,c),t=!1},d(c){c&&Bn(e),s&&s.d(c)}}}function Jv(i){let e,t;const n=[{noLabel:i[16]||i[17]==null&&!i[47].label},lc(i[46],"outline$")];let l={$$slots:{default:[U6]},$$scope:{ctx:i}};for(let s=0;s<n.length;s+=1)l=Xn(l,n[s]);return e=new d6({props:l}),i[59](e),{c(){la(e.$$.fragment)},m(s,c){Jr(e,s,c),t=!0},p(s,c){const d=196608&c[0]|98304&c[1]?ml(n,[196608&c[0]|65536&c[1]&&{noLabel:s[16]||s[17]==null&&!s[47].label},32768&c[1]&&Vs(lc(s[46],"outline$"))]):{};268640289&c[0]|98304&c[1]|33554432&c[2]&&(d.$$scope={dirty:c,ctx:s}),e.$set(d)},i(s){t||(ji(e.$$.fragment,s),t=!0)},o(s){rn(e.$$.fragment,s),t=!1},d(s){i[59](null),ea(e,s)}}}function ex(i){let e,t;const n=[{floatAbove:i[28]||i[0]!=null&&i[0]!==""&&(typeof i[0]!="number"||!isNaN(i[0]))},{required:i[13]},{wrapped:!0},lc(i[46],"label$")];let l={$$slots:{default:[P6]},$$scope:{ctx:i}};for(let s=0;s<n.length;s+=1)l=Xn(l,n[s]);return e=new bw({props:l}),i[58](e),{c(){la(e.$$.fragment)},m(s,c){Jr(e,s,c),t=!0},p(s,c){const d=268443649&c[0]|32768&c[1]?ml(n,[268435457&c[0]&&{floatAbove:s[28]||s[0]!=null&&s[0]!==""&&(typeof s[0]!="number"||!isNaN(s[0]))},8192&c[0]&&{required:s[13]},n[2],32768&c[1]&&Vs(lc(s[46],"label$"))]):{};131072&c[0]|33554432&c[2]&&(d.$$scope={dirty:c,ctx:s}),e.$set(d)},i(s){t||(ji(e.$$.fragment,s),t=!0)},o(s){rn(e.$$.fragment,s),t=!1},d(s){i[58](null),ea(e,s)}}}function P6(i){let e,t,n=(i[17]==null?"":i[17])+"";const l=i[56].label,s=Wa(l,i,i[87],Yv);return{c(){e=md(n),s&&s.c()},m(c,d){Un(c,e,d),s&&s.m(c,d),t=!0},p(c,d){(!t||131072&d[0])&&n!==(n=(c[17]==null?"":c[17])+"")&&eu(e,n),s&&s.p&&(!t||33554432&d[2])&&qa(s,l,c,c[87],t?ja(l,c[87],d,F6):Ya(c[87]),Yv)},i(c){t||(ji(s,c),t=!0)},o(c){rn(s,c),t=!1},d(c){c&&Bn(e),s&&s.d(c)}}}function U6(i){let e,t,n=!i[16]&&(i[17]!=null||i[47].label)&&ex(i);return{c(){n&&n.c(),e=$o()},m(l,s){n&&n.m(l,s),Un(l,e,s),t=!0},p(l,s){l[16]||l[17]==null&&!l[47].label?n&&(Ws(),rn(n,1,1,()=>{n=null}),js()):n?(n.p(l,s),196608&s[0]|65536&s[1]&&ji(n,1)):(n=ex(l),n.c(),ji(n,1),n.m(e.parentNode,e))},i(l){t||(ji(n),t=!0)},o(l){rn(n),t=!1},d(l){n&&n.d(l),l&&Bn(e)}}}function G6(i){let e;const t=i[56].leadingIcon,n=Wa(t,i,i[87],qv);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||33554432&s[2])&&qa(n,t,l,l[87],e?ja(t,l[87],s,R6):Ya(l[87]),qv)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function V6(i){let e,t,n,l,s,c,d,u,h,m;const b=i[56].prefix,g=Wa(b,i,i[87],Wv);let _=i[20]!=null&&tx(i);const z=[{type:i[18]},{disabled:i[12]},{required:i[13]},{updateInvalid:i[19]},{"aria-controls":i[27]},{"aria-describedby":i[27]},i[16]&&i[17]!=null?{placeholder:i[17]}:{},lc(i[46],"input$")];function X(Y){i[69](Y)}function y(Y){i[70](Y)}function E(Y){i[71](Y)}function T(Y){i[72](Y)}let w={};for(let Y=0;Y<z.length;Y+=1)w=Xn(w,z[Y]);i[0]!==void 0&&(w.value=i[0]),i[3]!==void 0&&(w.files=i[3]),i[4]!==void 0&&(w.dirty=i[4]),i[1]!==void 0&&(w.invalid=i[1]),n=new b6({props:w}),i[68](n),Or.push(()=>Wc(n,"value",X)),Or.push(()=>Wc(n,"files",y)),Or.push(()=>Wc(n,"dirty",E)),Or.push(()=>Wc(n,"invalid",T)),n.$on("blur",i[73]),n.$on("focus",i[74]),n.$on("blur",i[75]),n.$on("focus",i[76]);let I=i[21]!=null&&ix(i);const K=i[56].suffix,U=Wa(K,i,i[87],Vv);return{c(){g&&g.c(),e=zl(),_&&_.c(),t=zl(),la(n.$$.fragment),u=zl(),I&&I.c(),h=zl(),U&&U.c()},m(Y,J){g&&g.m(Y,J),Un(Y,e,J),_&&_.m(Y,J),Un(Y,t,J),Jr(n,Y,J),Un(Y,u,J),I&&I.m(Y,J),Un(Y,h,J),U&&U.m(Y,J),m=!0},p(Y,J){g&&g.p&&(!m||33554432&J[2])&&qa(g,b,Y,Y[87],m?ja(b,Y[87],J,I6):Ya(Y[87]),Wv),Y[20]!=null?_?(_.p(Y,J),1048576&J[0]&&ji(_,1)):(_=tx(Y),_.c(),ji(_,1),_.m(t.parentNode,t)):_&&(Ws(),rn(_,1,1,()=>{_=null}),js());const S=135213056&J[0]|32768&J[1]?ml(z,[262144&J[0]&&{type:Y[18]},4096&J[0]&&{disabled:Y[12]},8192&J[0]&&{required:Y[13]},524288&J[0]&&{updateInvalid:Y[19]},134217728&J[0]&&{"aria-controls":Y[27]},134217728&J[0]&&{"aria-describedby":Y[27]},196608&J[0]&&Vs(Y[16]&&Y[17]!=null?{placeholder:Y[17]}:{}),32768&J[1]&&Vs(lc(Y[46],"input$"))]):{};!l&&1&J[0]&&(l=!0,S.value=Y[0],Vc(()=>l=!1)),!s&&8&J[0]&&(s=!0,S.files=Y[3],Vc(()=>s=!1)),!c&&16&J[0]&&(c=!0,S.dirty=Y[4],Vc(()=>c=!1)),!d&&2&J[0]&&(d=!0,S.invalid=Y[1],Vc(()=>d=!1)),n.$set(S),Y[21]!=null?I?(I.p(Y,J),2097152&J[0]&&ji(I,1)):(I=ix(Y),I.c(),ji(I,1),I.m(h.parentNode,h)):I&&(Ws(),rn(I,1,1,()=>{I=null}),js()),U&&U.p&&(!m||33554432&J[2])&&qa(U,K,Y,Y[87],m?ja(K,Y[87],J,z6):Ya(Y[87]),Vv)},i(Y){m||(ji(g,Y),ji(_),ji(n.$$.fragment,Y),ji(I),ji(U,Y),m=!0)},o(Y){rn(g,Y),rn(_),rn(n.$$.fragment,Y),rn(I),rn(U,Y),m=!1},d(Y){g&&g.d(Y),Y&&Bn(e),_&&_.d(Y),Y&&Bn(t),i[68](null),ea(n,Y),Y&&Bn(u),I&&I.d(Y),Y&&Bn(h),U&&U.d(Y)}}}function W6(i){let e,t,n,l,s,c,d,u;const h=[{disabled:i[12]},{required:i[13]},{updateInvalid:i[19]},{"aria-controls":i[27]},{"aria-describedby":i[27]},lc(i[46],"input$")];function m(y){i[61](y)}function b(y){i[62](y)}function g(y){i[63](y)}let _={};for(let y=0;y<h.length;y+=1)_=Xn(_,h[y]);i[0]!==void 0&&(_.value=i[0]),i[4]!==void 0&&(_.dirty=i[4]),i[1]!==void 0&&(_.invalid=i[1]),t=new y6({props:_}),i[60](t),Or.push(()=>Wc(t,"value",m)),Or.push(()=>Wc(t,"dirty",b)),Or.push(()=>Wc(t,"invalid",g)),t.$on("blur",i[64]),t.$on("focus",i[65]),t.$on("blur",i[66]),t.$on("focus",i[67]);const z=i[56].internalCounter,X=Wa(z,i,i[87],jv);return{c(){e=_a("span"),la(t.$$.fragment),c=zl(),X&&X.c(),Fa(e,"class",d=ta({"mdc-text-field__resizer":!("input$resizable"in i[46])||i[46].input$resizable}))},m(y,E){Un(y,e,E),Jr(t,e,null),ds(e,c),X&&X.m(e,null),u=!0},p(y,E){const T=134754304&E[0]|32768&E[1]?ml(h,[4096&E[0]&&{disabled:y[12]},8192&E[0]&&{required:y[13]},524288&E[0]&&{updateInvalid:y[19]},134217728&E[0]&&{"aria-controls":y[27]},134217728&E[0]&&{"aria-describedby":y[27]},32768&E[1]&&Vs(lc(y[46],"input$"))]):{};!n&&1&E[0]&&(n=!0,T.value=y[0],Vc(()=>n=!1)),!l&&16&E[0]&&(l=!0,T.dirty=y[4],Vc(()=>l=!1)),!s&&2&E[0]&&(s=!0,T.invalid=y[1],Vc(()=>s=!1)),t.$set(T),X&&X.p&&(!u||33554432&E[2])&&qa(X,z,y,y[87],u?ja(z,y[87],E,L6):Ya(y[87]),jv),(!u||32768&E[1]&&d!==(d=ta({"mdc-text-field__resizer":!("input$resizable"in y[46])||y[46].input$resizable})))&&Fa(e,"class",d)},i(y){u||(ji(t.$$.fragment,y),ji(X,y),u=!0)},o(y){rn(t.$$.fragment,y),rn(X,y),u=!1},d(y){y&&Bn(e),i[60](null),ea(t),X&&X.d(y)}}}function tx(i){let e,t;return e=new u6({props:{$$slots:{default:[j6]},$$scope:{ctx:i}}}),{c(){la(e.$$.fragment)},m(n,l){Jr(e,n,l),t=!0},p(n,l){const s={};1048576&l[0]|33554432&l[2]&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||(ji(e.$$.fragment,n),t=!0)},o(n){rn(e.$$.fragment,n),t=!1},d(n){ea(e,n)}}}function j6(i){let e;return{c(){e=md(i[20])},m(t,n){Un(t,e,n)},p(t,n){1048576&n[0]&&eu(e,t[20])},d(t){t&&Bn(e)}}}function ix(i){let e,t;return e=new h6({props:{$$slots:{default:[q6]},$$scope:{ctx:i}}}),{c(){la(e.$$.fragment)},m(n,l){Jr(e,n,l),t=!0},p(n,l){const s={};2097152&l[0]|33554432&l[2]&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||(ji(e.$$.fragment,n),t=!0)},o(n){rn(e.$$.fragment,n),t=!1},d(n){ea(e,n)}}}function q6(i){let e;return{c(){e=md(i[21])},m(t,n){Un(t,e,n)},p(t,n){2097152&n[0]&&eu(e,t[21])},d(t){t&&Bn(e)}}}function Y6(i){let e;const t=i[56].trailingIcon,n=Wa(t,i,i[87],Gv);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||33554432&s[2])&&qa(n,t,l,l[87],e?ja(t,l[87],s,C6):Ya(l[87]),Gv)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function nx(i){let e,t;const n=[lc(i[46],"ripple$")];let l={};for(let s=0;s<n.length;s+=1)l=Xn(l,n[s]);return e=new r6({props:l}),i[77](e),{c(){la(e.$$.fragment)},m(s,c){Jr(e,s,c),t=!0},p(s,c){const d=32768&c[1]?ml(n,[Vs(lc(s[46],"ripple$"))]):{};e.$set(d)},i(s){t||(ji(e.$$.fragment,s),t=!0)},o(s){rn(e.$$.fragment,s),t=!1},d(s){i[77](null),ea(e,s)}}}function rx(i){let e,t;const n=[lc(i[46],"helperLine$")];let l={$$slots:{default:[X6]},$$scope:{ctx:i}};for(let s=0;s<n.length;s+=1)l=Xn(l,n[s]);return e=new f6({props:l}),e.$on("SMUITextfieldHelperText:id",i[41]),e.$on("SMUITextfieldHelperText:mount",i[42]),e.$on("SMUITextfieldHelperText:unmount",i[85]),e.$on("SMUITextfieldCharacterCounter:mount",i[40]),e.$on("SMUITextfieldCharacterCounter:unmount",i[86]),{c(){la(e.$$.fragment)},m(s,c){Jr(e,s,c),t=!0},p(s,c){const d=32768&c[1]?ml(n,[Vs(lc(s[46],"helperLine$"))]):{};33554432&c[2]&&(d.$$scope={dirty:c,ctx:s}),e.$set(d)},i(s){t||(ji(e.$$.fragment,s),t=!0)},o(s){rn(e.$$.fragment,s),t=!1},d(s){ea(e,s)}}}function X6(i){let e;const t=i[56].helper,n=Wa(t,i,i[87],$v);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||33554432&s[2])&&qa(n,t,l,l[87],e?ja(t,l[87],s,A6):Ya(l[87]),$v)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function Z6(i){let e,t,n,l,s;const c=[N6,D6],d=[];e=function(h,m){return h[36]?0:1}(i),t=d[e]=c[e](i);let u=i[47].helper&&rx(i);return{c(){t.c(),n=zl(),u&&u.c(),l=$o()},m(h,m){d[e].m(h,m),Un(h,n,m),u&&u.m(h,m),Un(h,l,m),s=!0},p(h,m){t.p(h,m),h[47].helper?u?(u.p(h,m),65536&m[1]&&ji(u,1)):(u=rx(h),u.c(),ji(u,1),u.m(l.parentNode,l)):u&&(Ws(),rn(u,1,1,()=>{u=null}),js())},i(h){s||(ji(t),ji(u),s=!0)},o(h){rn(t),rn(u),s=!1},d(h){d[e].d(h),h&&Bn(n),u&&u.d(h),h&&Bn(l)}}}const ax=([i,e])=>`${i}: ${e};`,lx=([i,e])=>`${i}: ${e};`;function Q6(i,e,t){let n;const l=["use","class","style","ripple","disabled","required","textarea","variant","noLabel","label","type","value","files","invalid","updateInvalid","dirty","prefix","suffix","validateOnValueChange","useNativeValidation","withLeadingIcon","withTrailingIcon","input","floatingLabel","lineRipple","notchedOutline","focus","blur","layout","getElement"];let s=Da(e,l),{$$slots:c={},$$scope:d}=e;const u=Bz(c),{applyPassive:h}=mw,m=oc(Ys());let b=()=>{};function g(N){return N===b}let{use:_=[]}=e,{class:z=""}=e,{style:X=""}=e,{ripple:y=!0}=e,{disabled:E=!1}=e,{required:T=!1}=e,{textarea:w=!1}=e,{variant:I=w?"outlined":"standard"}=e,{noLabel:K=!1}=e,{label:U}=e,{type:Y="text"}=e,{value:J=s.input$emptyValueUndefined?void 0:b}=e,{files:S=b}=e;const Q=!g(J)||!g(S);g(J)&&(J=void 0),g(S)&&(S=null);let{invalid:ae=b}=e,{updateInvalid:x=g(ae)}=e;g(ae)&&(ae=!1);let A,O,k,C,ee,Re,ge,F,H,{dirty:R=!1}=e,{prefix:$}=e,{suffix:q}=e,{validateOnValueChange:se=x}=e,{useNativeValidation:te=x}=e,{withLeadingIcon:qe=b}=e,{withTrailingIcon:we=b}=e,{input:Se}=e,{floatingLabel:G}=e,{lineRipple:de}=e,{notchedOutline:Ae}=e,W={},re={},Rt=!1,Ve=rc("SMUI:addLayoutListener"),Fe=new Promise(N=>ee=N),he=J;function L(N){var $e;return N in W?($e=W[N])!==null&&$e!==void 0?$e:null:Ge().classList.contains(N)}function Z(N){W[N]||t(25,W[N]=!0,W)}function ie(N){N in W&&!W[N]||t(25,W[N]=!1,W)}function be(){if(O){const N=O.shouldFloat;O.notchOutline(N)}}function Ge(){return A}return Ve&&(C=Ve(be)),Lc(()=>{if(t(54,O=new S6({addClass:Z,removeClass:ie,hasClass:L,registerTextFieldInteractionHandler:(N,$e)=>Ge().addEventListener(N,$e),deregisterTextFieldInteractionHandler:(N,$e)=>Ge().removeEventListener(N,$e),registerValidationAttributeChangeHandler:N=>{const $e=new MutationObserver(ne=>{te&&N((me=>me.map(B=>B.attributeName).filter(B=>B))(ne))}),He={attributes:!0};return Se&&$e.observe(Se.getElement(),He),$e},deregisterValidationAttributeChangeHandler:N=>{N.disconnect()},getNativeInput:()=>{var N;return(N=Se?.getElement())!==null&&N!==void 0?N:null},setInputAttr:(N,$e)=>{Se?.addAttr(N,$e)},removeInputAttr:N=>{Se?.removeAttr(N)},isFocused:()=>document.activeElement===Se?.getElement(),registerInputInteractionHandler:(N,$e)=>{Se?.getElement().addEventListener(N,$e,h())},deregisterInputInteractionHandler:(N,$e)=>{Se?.getElement().removeEventListener(N,$e,h())},floatLabel:N=>G&&G.float(N),getLabelWidth:()=>G?G.getWidth():0,hasLabel:()=>!!G,shakeLabel:N=>G&&G.shake(N),setLabelRequired:N=>G&&G.setRequired(N),activateLineRipple:()=>de&&de.activate(),deactivateLineRipple:()=>de&&de.deactivate(),setLineRippleTransformOrigin:N=>de&&de.setRippleCenter(N),closeOutline:()=>Ae&&Ae.closeNotch(),hasOutline:()=>!!Ae,notchOutline:N=>Ae&&Ae.notch(N)},{get helperText(){return F},get characterCounter(){return H},get leadingIcon(){return Re},get trailingIcon(){return ge}})),Q){if(Se==null)throw new Error("SMUI Textfield initialized without Input component.");O.init()}else Yz().then(()=>{if(Se==null)throw new Error("SMUI Textfield initialized without Input component.");O.init()});return ee(),()=>{O.destroy()}}),tu(()=>{C&&C()}),i.$$set=N=>{e=Xn(Xn({},e),sc(N)),t(46,s=Da(e,l)),"use"in N&&t(8,_=N.use),"class"in N&&t(9,z=N.class),"style"in N&&t(10,X=N.style),"ripple"in N&&t(11,y=N.ripple),"disabled"in N&&t(12,E=N.disabled),"required"in N&&t(13,T=N.required),"textarea"in N&&t(14,w=N.textarea),"variant"in N&&t(15,I=N.variant),"noLabel"in N&&t(16,K=N.noLabel),"label"in N&&t(17,U=N.label),"type"in N&&t(18,Y=N.type),"value"in N&&t(0,J=N.value),"files"in N&&t(3,S=N.files),"invalid"in N&&t(1,ae=N.invalid),"updateInvalid"in N&&t(19,x=N.updateInvalid),"dirty"in N&&t(4,R=N.dirty),"prefix"in N&&t(20,$=N.prefix),"suffix"in N&&t(21,q=N.suffix),"validateOnValueChange"in N&&t(48,se=N.validateOnValueChange),"useNativeValidation"in N&&t(49,te=N.useNativeValidation),"withLeadingIcon"in N&&t(22,qe=N.withLeadingIcon),"withTrailingIcon"in N&&t(23,we=N.withTrailingIcon),"input"in N&&t(2,Se=N.input),"floatingLabel"in N&&t(5,G=N.floatingLabel),"lineRipple"in N&&t(6,de=N.lineRipple),"notchedOutline"in N&&t(7,Ae=N.notchedOutline),"$$scope"in N&&t(87,d=N.$$scope)},i.$$.update=()=>{if(4&i.$$.dirty[0]&&t(33,n=Se&&Se.getElement()),524290&i.$$.dirty[0]|8388608&i.$$.dirty[1]&&O&&O.isValid()!==!ae&&(x?t(1,ae=!O.isValid()):O.setValid(!ae)),8519680&i.$$.dirty[1]&&O&&O.getValidateOnValueChange()!==se&&O.setValidateOnValueChange(!g(se)&&se),8650752&i.$$.dirty[1]&&O&&O.setUseNativeValidation(!!g(te)||te),4096&i.$$.dirty[0]|8388608&i.$$.dirty[1]&&O&&O.setDisabled(E),1&i.$$.dirty[0]|25165824&i.$$.dirty[1]&&O&&Q&&he!==J){t(55,he=J);const N=`${J}`;O.getValue()!==N&&O.setValue(N)}},[J,ae,Se,S,R,G,de,Ae,_,z,X,y,E,T,w,I,K,U,Y,x,$,q,qe,we,A,W,re,k,Rt,Re,ge,F,H,n,m,g,Q,Fe,function(N){t(29,Re=N.detail)},function(N){t(30,ge=N.detail)},function(N){t(32,H=N.detail)},function(N){t(27,k=N.detail)},function(N){t(31,F=N.detail)},Z,ie,function(N,$e){re[N]!=$e&&($e===""||$e==null?(delete re[N],t(26,re)):t(26,re[N]=$e,re))},s,u,se,te,function(){Se?.focus()},function(){Se?.blur()},be,Ge,O,he,c,function(N){Or[N?"unshift":"push"](()=>{G=N,t(5,G)})},function(N){Or[N?"unshift":"push"](()=>{G=N,t(5,G)})},function(N){Or[N?"unshift":"push"](()=>{Ae=N,t(7,Ae)})},function(N){Or[N?"unshift":"push"](()=>{Se=N,t(2,Se)})},function(N){J=N,t(0,J)},function(N){R=N,t(4,R)},function(N){ae=N,t(1,ae),t(54,O),t(19,x)},()=>t(28,Rt=!1),()=>t(28,Rt=!0),N=>$l(A,"blur",N),N=>$l(A,"focus",N),function(N){Or[N?"unshift":"push"](()=>{Se=N,t(2,Se)})},function(N){J=N,t(0,J)},function(N){S=N,t(3,S)},function(N){R=N,t(4,R)},function(N){ae=N,t(1,ae),t(54,O),t(19,x)},()=>t(28,Rt=!1),()=>t(28,Rt=!0),N=>$l(A,"blur",N),N=>$l(A,"focus",N),function(N){Or[N?"unshift":"push"](()=>{de=N,t(6,de)})},function(N){Or[N?"unshift":"push"](()=>{A=N,t(24,A)})},()=>t(29,Re=void 0),()=>t(30,ge=void 0),()=>t(32,H=void 0),function(N){Or[N?"unshift":"push"](()=>{A=N,t(24,A)})},()=>t(29,Re=void 0),()=>t(30,ge=void 0),()=>{t(27,k=void 0),t(31,F=void 0)},()=>t(32,H=void 0),d]}let K6=class extends So{constructor(e){super(),wo(this,e,Q6,Z6,Rs,{use:8,class:9,style:10,ripple:11,disabled:12,required:13,textarea:14,variant:15,noLabel:16,label:17,type:18,value:0,files:3,invalid:1,updateInvalid:19,dirty:4,prefix:20,suffix:21,validateOnValueChange:48,useNativeValidation:49,withLeadingIcon:22,withTrailingIcon:23,input:2,floatingLabel:5,lineRipple:6,notchedOutline:7,focus:50,blur:51,layout:52,getElement:53},null,[-1,-1,-1,-1])}get focus(){return this.$$.ctx[50]}get blur(){return this.$$.ctx[51]}get layout(){return this.$$.ctx[52]}get getElement(){return this.$$.ctx[53]}};/**
855
+ * @license
856
+ * Copyright 2016 Google Inc.
857
+ *
858
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
859
+ * of this software and associated documentation files (the "Software"), to deal
860
+ * in the Software without restriction, including without limitation the rights
861
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
862
+ * copies of the Software, and to permit persons to whom the Software is
863
+ * furnished to do so, subject to the following conditions:
864
+ *
865
+ * The above copyright notice and this permission notice shall be included in
866
+ * all copies or substantial portions of the Software.
867
+ *
868
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
869
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
870
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
871
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
872
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
873
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
874
+ * THE SOFTWARE.
875
+ */var sx={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},J6={ROOT:"mdc-text-field__icon"};/**
876
+ * @license
877
+ * Copyright 2017 Google Inc.
878
+ *
879
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
880
+ * of this software and associated documentation files (the "Software"), to deal
881
+ * in the Software without restriction, including without limitation the rights
882
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
883
+ * copies of the Software, and to permit persons to whom the Software is
884
+ * furnished to do so, subject to the following conditions:
885
+ *
886
+ * The above copyright notice and this permission notice shall be included in
887
+ * all copies or substantial portions of the Software.
888
+ *
889
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
890
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
891
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
892
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
893
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
894
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
895
+ * THE SOFTWARE.
896
+ */var ox=["click","keydown"],e5=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.savedTabIndex=null,n.interactionHandler=function(l){n.handleInteraction(l)},n}return Bd(e,i),Object.defineProperty(e,"strings",{get:function(){return sx},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return J6},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t,n;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var l=jc(ox),s=l.next();!s.done;s=l.next()){var c=s.value;this.adapter.registerInteractionHandler(c,this.interactionHandler)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}},e.prototype.destroy=function(){var t,n;try{for(var l=jc(ox),s=l.next();!s.done;s=l.next()){var c=s.value;this.adapter.deregisterInteractionHandler(c,this.interactionHandler)}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}},e.prototype.setDisabled=function(t){this.savedTabIndex&&(t?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",sx.ICON_ROLE)))},e.prototype.setAriaLabel=function(t){this.adapter.setAttr("aria-label",t)},e.prototype.setContent=function(t){this.adapter.setContent(t)},e.prototype.handleInteraction=function(t){var n=t.key==="Enter"||t.keyCode===13;(t.type==="click"||n)&&(t.preventDefault(),this.adapter.notifyIconAction())},e}(Hd);function t5(i){let e;return{c(){e=md(i[7])},m(t,n){Un(t,e,n)},p(t,n){128&n&&eu(e,t[7])},i:hl,o:hl,d(t){t&&Bn(e)}}}function i5(i){let e;const t=i[15].default,n=Wa(t,i,i[14],null);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||16384&s)&&qa(n,t,l,l[14],e?ja(t,l[14],s,null):Ya(l[14]),null)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function n5(i){let e,t,n,l,s,c,d,u,h,m;const b=[i5,t5],g=[];function _(y,E){return y[7]==null?0:1}t=_(i),n=g[t]=b[t](i);let z=[{class:l=ta({[i[1]]:!0,"mdc-text-field__icon":!0,"mdc-text-field__icon--leading":i[11],"mdc-text-field__icon--trailing":!i[11]})},{"aria-hidden":s=i[3]===-1?"true":"false"},{"aria-disabled":c=i[2]==="button"?i[4]?"true":"false":void 0},i[8],i[6],i[12]],X={};for(let y=0;y<z.length;y+=1)X=Xn(X,z[y]);return{c(){e=_a("i"),n.c(),Hl(e,X)},m(y,E){Un(y,e,E),g[t].m(e,null),i[16](e),u=!0,h||(m=[oa(d=cc.call(null,e,i[0])),oa(i[9].call(null,e))],h=!0)},p(y,[E]){let T=t;t=_(y),t===T?g[t].p(y,E):(Ws(),rn(g[T],1,1,()=>{g[T]=null}),js(),n=g[t],n?n.p(y,E):(n=g[t]=b[t](y),n.c()),ji(n,1),n.m(e,null)),Hl(e,X=ml(z,[(!u||2&E&&l!==(l=ta({[y[1]]:!0,"mdc-text-field__icon":!0,"mdc-text-field__icon--leading":y[11],"mdc-text-field__icon--trailing":!y[11]})))&&{class:l},(!u||8&E&&s!==(s=y[3]===-1?"true":"false"))&&{"aria-hidden":s},(!u||20&E&&c!==(c=y[2]==="button"?y[4]?"true":"false":void 0))&&{"aria-disabled":c},256&E&&y[8],64&E&&y[6],4096&E&&y[12]])),d&&Bl(d.update)&&1&E&&d.update.call(null,y[0])},i(y){u||(ji(n),u=!0)},o(y){rn(n),u=!1},d(y){y&&Bn(e),g[t].d(),i[16](null),h=!1,us(m)}}}function r5(i,e,t){let n;const l=["use","class","role","tabindex","disabled","getElement"];let s,c=Da(e,l),{$$slots:d={},$$scope:u}=e;const h=oc(Ys());let m,b,{use:g=[]}=e,{class:_=""}=e,{role:z}=e,{tabindex:X=z==="button"?0:-1}=e,{disabled:y=!1}=e,E={};const T=rc("SMUI:textfield:icon:leading");aw(i,T,S=>t(18,s=S));const w=s;let I;function K(S){var Q;return S in E?(Q=E[S])!==null&&Q!==void 0?Q:null:J().getAttribute(S)}function U(S,Q){E[S]!==Q&&t(6,E[S]=Q,E)}function Y(S){S in E&&E[S]==null||t(6,E[S]=void 0,E)}function J(){return m}return Lc(()=>(b=new e5({getAttr:K,setAttr:U,removeAttr:Y,setContent:S=>{t(7,I=S)},registerInteractionHandler:(S,Q)=>J().addEventListener(S,Q),deregisterInteractionHandler:(S,Q)=>J().removeEventListener(S,Q),notifyIconAction:()=>$l(J(),"SMUITextField:icon",void 0,void 0,!0)}),$l(J(),w?"SMUITextfieldLeadingIcon:mount":"SMUITextfieldTrailingIcon:mount",b),b.init(),()=>{$l(J(),w?"SMUITextfieldLeadingIcon:unmount":"SMUITextfieldTrailingIcon:unmount",b),b.destroy()})),i.$$set=S=>{e=Xn(Xn({},e),sc(S)),t(12,c=Da(e,l)),"use"in S&&t(0,g=S.use),"class"in S&&t(1,_=S.class),"role"in S&&t(2,z=S.role),"tabindex"in S&&t(3,X=S.tabindex),"disabled"in S&&t(4,y=S.disabled),"$$scope"in S&&t(14,u=S.$$scope)},i.$$.update=()=>{12&i.$$.dirty&&t(8,n={role:z,tabindex:X})},[g,_,z,X,y,m,E,I,n,h,T,w,c,J,u,d,function(S){Or[S?"unshift":"push"](()=>{m=S,t(5,m)})}]}class gw extends So{constructor(e){super(),wo(this,e,r5,n5,Rs,{use:0,class:1,role:2,tabindex:3,disabled:4,getElement:13})}get getElement(){return this.$$.ctx[13]}}/**
897
+ * @license
898
+ * Copyright 2018 Google Inc.
899
+ *
900
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
901
+ * of this software and associated documentation files (the "Software"), to deal
902
+ * in the Software without restriction, including without limitation the rights
903
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
904
+ * copies of the Software, and to permit persons to whom the Software is
905
+ * furnished to do so, subject to the following conditions:
906
+ *
907
+ * The above copyright notice and this permission notice shall be included in
908
+ * all copies or substantial portions of the Software.
909
+ *
910
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
911
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
912
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
913
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
914
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
915
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
916
+ * THE SOFTWARE.
917
+ */var cs,th,a5={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},l5={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},lm={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};(function(i){i[i.BOTTOM=1]="BOTTOM",i[i.CENTER=2]="CENTER",i[i.RIGHT=4]="RIGHT",i[i.FLIP_RTL=8]="FLIP_RTL"})(cs||(cs={})),function(i){i[i.TOP_LEFT=0]="TOP_LEFT",i[i.TOP_RIGHT=4]="TOP_RIGHT",i[i.BOTTOM_LEFT=1]="BOTTOM_LEFT",i[i.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",i[i.TOP_START=8]="TOP_START",i[i.TOP_END=12]="TOP_END",i[i.BOTTOM_START=9]="BOTTOM_START",i[i.BOTTOM_END=13]="BOTTOM_END"}(th||(th={}));/**
918
+ * @license
919
+ * Copyright 2018 Google Inc.
920
+ *
921
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
922
+ * of this software and associated documentation files (the "Software"), to deal
923
+ * in the Software without restriction, including without limitation the rights
924
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
925
+ * copies of the Software, and to permit persons to whom the Software is
926
+ * furnished to do so, subject to the following conditions:
927
+ *
928
+ * The above copyright notice and this permission notice shall be included in
929
+ * all copies or substantial portions of the Software.
930
+ *
931
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
932
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
933
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
934
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
935
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
936
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
937
+ * THE SOFTWARE.
938
+ */var _w=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.isSurfaceOpen=!1,n.isQuickOpen=!1,n.isHoistedElement=!1,n.isFixedPosition=!1,n.isHorizontallyCenteredOnViewport=!1,n.maxHeight=0,n.openBottomBias=0,n.openAnimationEndTimerId=0,n.closeAnimationEndTimerId=0,n.animationRequestId=0,n.anchorCorner=th.TOP_START,n.originCorner=th.TOP_START,n.anchorMargin={top:0,right:0,bottom:0,left:0},n.position={x:0,y:0},n}return Bd(e,i),Object.defineProperty(e,"cssClasses",{get:function(){return a5},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return l5},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return lm},enumerable:!1,configurable:!0}),Object.defineProperty(e,"Corner",{get:function(){return th},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=e.cssClasses,n=t.ROOT,l=t.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(l)&&(this.isSurfaceOpen=!0)},e.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},e.prototype.setAnchorCorner=function(t){this.anchorCorner=t},e.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^cs.RIGHT},e.prototype.setAnchorMargin=function(t){this.anchorMargin.top=t.top||0,this.anchorMargin.right=t.right||0,this.anchorMargin.bottom=t.bottom||0,this.anchorMargin.left=t.left||0},e.prototype.setIsHoisted=function(t){this.isHoistedElement=t},e.prototype.setFixedPosition=function(t){this.isFixedPosition=t},e.prototype.isFixed=function(){return this.isFixedPosition},e.prototype.setAbsolutePosition=function(t,n){this.position.x=this.isFinite(t)?t:0,this.position.y=this.isFinite(n)?n:0},e.prototype.setIsHorizontallyCenteredOnViewport=function(t){this.isHorizontallyCenteredOnViewport=t},e.prototype.setQuickOpen=function(t){this.isQuickOpen=t},e.prototype.setMaxHeight=function(t){this.maxHeight=t},e.prototype.setOpenBottomBias=function(t){this.openBottomBias=t},e.prototype.isOpen=function(){return this.isSurfaceOpen},e.prototype.open=function(){var t=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(e.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(e.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){t.dimensions=t.adapter.getInnerDimensions(),t.autoposition(),t.adapter.addClass(e.cssClasses.OPEN),t.openAnimationEndTimerId=setTimeout(function(){t.openAnimationEndTimerId=0,t.adapter.removeClass(e.cssClasses.ANIMATING_OPEN),t.adapter.notifyOpen()},lm.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},e.prototype.close=function(t){var n=this;if(t===void 0&&(t=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,t||this.maybeRestoreFocus(),this.adapter.removeClass(e.cssClasses.OPEN),this.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(e.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(e.cssClasses.OPEN),n.adapter.removeClass(e.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(e.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},lm.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,t||this.maybeRestoreFocus()}},e.prototype.handleBodyClick=function(t){var n=t.target;this.adapter.isElementInContainer(n)||this.close()},e.prototype.handleKeydown=function(t){var n=t.keyCode;(t.key==="Escape"||n===27)&&this.close()},e.prototype.autoposition=function(){var t;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),l=this.getMenuSurfaceMaxHeight(n),s=this.hasBit(n,cs.BOTTOM)?"bottom":"top",c=this.hasBit(n,cs.RIGHT)?"right":"left",d=this.getHorizontalOriginOffset(n),u=this.getVerticalOriginOffset(n),h=this.measurements,m=h.anchorSize,b=h.surfaceSize,g=((t={})[c]=d,t[s]=u,t);m.width/b.width>lm.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(c="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(g),this.adapter.setTransformOrigin(c+" "+s),this.adapter.setPosition(g),this.adapter.setMaxHeight(l?l+"px":""),this.hasBit(n,cs.BOTTOM)||this.adapter.addClass(e.cssClasses.IS_OPEN_BELOW)},e.prototype.getAutoLayoutmeasurements=function(){var t=this.adapter.getAnchorDimensions(),n=this.adapter.getBodyDimensions(),l=this.adapter.getWindowDimensions(),s=this.adapter.getWindowScroll();return t||(t={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:t,bodySize:n,surfaceSize:this.dimensions,viewportDistance:{top:t.top,right:l.width-t.right,bottom:l.height-t.bottom,left:t.left},viewportSize:l,windowScroll:s}},e.prototype.getoriginCorner=function(){var t,n,l=this.originCorner,s=this.measurements,c=s.viewportDistance,d=s.anchorSize,u=s.surfaceSize,h=e.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,cs.BOTTOM)?(t=c.top-h+this.anchorMargin.bottom,n=c.bottom-h-this.anchorMargin.bottom):(t=c.top-h+this.anchorMargin.top,n=c.bottom-h+d.height-this.anchorMargin.top),!(n-u.height>0)&&t>n+this.openBottomBias&&(l=this.setBit(l,cs.BOTTOM));var m,b,g=this.adapter.isRtl(),_=this.hasBit(this.anchorCorner,cs.FLIP_RTL),z=this.hasBit(this.anchorCorner,cs.RIGHT)||this.hasBit(l,cs.RIGHT),X=!1;(X=g&&_?!z:z)?(m=c.left+d.width+this.anchorMargin.right,b=c.right-this.anchorMargin.right):(m=c.left+this.anchorMargin.left,b=c.right+d.width-this.anchorMargin.left);var y=m-u.width>0,E=b-u.width>0,T=this.hasBit(l,cs.FLIP_RTL)&&this.hasBit(l,cs.RIGHT);return E&&T&&g||!y&&T?l=this.unsetBit(l,cs.RIGHT):(y&&X&&g||y&&!X&&z||!E&&m>=b)&&(l=this.setBit(l,cs.RIGHT)),l},e.prototype.getMenuSurfaceMaxHeight=function(t){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,l=0,s=this.hasBit(t,cs.BOTTOM),c=this.hasBit(this.anchorCorner,cs.BOTTOM),d=e.numbers.MARGIN_TO_EDGE;return s?(l=n.top+this.anchorMargin.top-d,c||(l+=this.measurements.anchorSize.height)):(l=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-d,c&&(l-=this.measurements.anchorSize.height)),l},e.prototype.getHorizontalOriginOffset=function(t){var n=this.measurements.anchorSize,l=this.hasBit(t,cs.RIGHT),s=this.hasBit(this.anchorCorner,cs.RIGHT);if(l){var c=s?n.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?c-(this.measurements.viewportSize.width-this.measurements.bodySize.width):c}return s?n.width-this.anchorMargin.right:this.anchorMargin.left},e.prototype.getVerticalOriginOffset=function(t){var n=this.measurements.anchorSize,l=this.hasBit(t,cs.BOTTOM),s=this.hasBit(this.anchorCorner,cs.BOTTOM);return l?s?n.height-this.anchorMargin.top:-this.anchorMargin.bottom:s?n.height+this.anchorMargin.bottom:this.anchorMargin.top},e.prototype.adjustPositionForHoistedElement=function(t){var n,l,s=this.measurements,c=s.windowScroll,d=s.viewportDistance,u=s.surfaceSize,h=s.viewportSize,m=Object.keys(t);try{for(var b=jc(m),g=b.next();!g.done;g=b.next()){var _=g.value,z=t[_]||0;!this.isHorizontallyCenteredOnViewport||_!=="left"&&_!=="right"?(z+=d[_],this.isFixedPosition||(_==="top"?z+=c.y:_==="bottom"?z-=c.y:_==="left"?z+=c.x:z-=c.x),t[_]=z):t[_]=(h.width-u.width)/2}}catch(X){n={error:X}}finally{try{g&&!g.done&&(l=b.return)&&l.call(b)}finally{if(n)throw n.error}}},e.prototype.maybeRestoreFocus=function(){var t=this,n=this.adapter.isFocused(),l=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,s=l.activeElement&&this.adapter.isElementInContainer(l.activeElement);(n||s)&&setTimeout(function(){t.adapter.restoreFocus()},lm.TOUCH_EVENT_WAIT_MS)},e.prototype.hasBit=function(t,n){return!!(t&n)},e.prototype.setBit=function(t,n){return t|n},e.prototype.unsetBit=function(t,n){return t^n},e.prototype.isFinite=function(t){return typeof t=="number"&&isFinite(t)},e}(Hd);const{document:s5}=Pz;function o5(i){let e,t,n,l,s,c,d,u;const h=i[34].default,m=Wa(h,i,i[33],null);let b=[{class:n=ta({[i[1]]:!0,"mdc-menu-surface":!0,"mdc-menu-surface--fixed":i[4],"mdc-menu-surface--open":i[3],"smui-menu-surface--static":i[3],"mdc-menu-surface--fullwidth":i[5],...i[8]})},{style:l=Object.entries(i[9]).map(cx).concat([i[2]]).join(" ")},i[12]],g={};for(let _=0;_<b.length;_+=1)g=Xn(g,b[_]);return{c(){e=zl(),t=_a("div"),m&&m.c(),Hl(t,g)},m(_,z){Un(_,e,z),Un(_,t,z),m&&m.m(t,null),i[35](t),c=!0,d||(u=[Il(s5.body,"click",i[11],!0),oa(s=cc.call(null,t,i[0])),oa(i[10].call(null,t)),Il(t,"keydown",function(){Bl(i[7]&&i[7].handleKeydown.bind(i[7]))&&(i[7]&&i[7].handleKeydown.bind(i[7])).apply(this,arguments)})],d=!0)},p(_,z){i=_,m&&m.p&&(!c||4&z[1])&&qa(m,h,i,i[33],c?ja(h,i[33],z,null):Ya(i[33]),null),Hl(t,g=ml(b,[(!c||314&z[0]&&n!==(n=ta({[i[1]]:!0,"mdc-menu-surface":!0,"mdc-menu-surface--fixed":i[4],"mdc-menu-surface--open":i[3],"smui-menu-surface--static":i[3],"mdc-menu-surface--fullwidth":i[5],...i[8]})))&&{class:n},(!c||516&z[0]&&l!==(l=Object.entries(i[9]).map(cx).concat([i[2]]).join(" ")))&&{style:l},4096&z[0]&&i[12]])),s&&Bl(s.update)&&1&z[0]&&s.update.call(null,i[0])},i(_){c||(ji(m,_),c=!0)},o(_){rn(m,_),c=!1},d(_){_&&Bn(e),_&&Bn(t),m&&m.d(_),i[35](null),d=!1,us(u)}}}const cx=([i,e])=>`${i}: ${e};`;function c5(i,e,t){const n=["use","class","style","static","anchor","fixed","open","managed","fullWidth","quickOpen","anchorElement","anchorCorner","anchorMargin","maxHeight","horizontallyCenteredOnViewport","openBottomBias","neverRestoreFocus","isOpen","setOpen","setAbsolutePosition","setIsHoisted","isFixed","getElement"];let l=Da(e,n),{$$slots:s={},$$scope:c}=e;var d,u,h;const m=oc(Ys());let b,g,_,{use:z=[]}=e,{class:X=""}=e,{style:y=""}=e,{static:E=!1}=e,{anchor:T=!0}=e,{fixed:w=!1}=e,{open:I=E}=e,{managed:K=!1}=e,{fullWidth:U=!1}=e,{quickOpen:Y=!1}=e,{anchorElement:J}=e,{anchorCorner:S}=e,{anchorMargin:Q={top:0,right:0,bottom:0,left:0}}=e,{maxHeight:ae=0}=e,{horizontallyCenteredOnViewport:x=!1}=e,{openBottomBias:A=0}=e,{neverRestoreFocus:O=!1}=e,k={},C={};nc("SMUI:list:role","menu"),nc("SMUI:list:item:role","menuitem");const ee=th;function Re($){return $ in k?k[$]:R().classList.contains($)}function ge($){k[$]||t(8,k[$]=!0,k)}function F($){$ in k&&!k[$]||t(8,k[$]=!1,k)}function H($){g.close($),t(13,I=!1)}function R(){return b}return Lc(()=>(t(7,g=new _w({addClass:ge,removeClass:F,hasClass:Re,hasAnchor:()=>!!J,notifyClose:()=>{K||t(13,I=E),I||$l(b,"SMUIMenuSurface:closed",void 0,void 0,!0)},notifyClosing:()=>{K||t(13,I=E),I||$l(b,"SMUIMenuSurface:closing",void 0,void 0,!0)},notifyOpen:()=>{K||t(13,I=!0),I&&$l(b,"SMUIMenuSurface:opened",void 0,void 0,!0)},notifyOpening:()=>{I||$l(b,"SMUIMenuSurface:opening",void 0,void 0,!0)},isElementInContainer:$=>b.contains($),isRtl:()=>getComputedStyle(b).getPropertyValue("direction")==="rtl",setTransformOrigin:$=>{t(9,C["transform-origin"]=$,C)},isFocused:()=>document.activeElement===b,saveFocus:()=>{var $;_=($=document.activeElement)!==null&&$!==void 0?$:void 0},restoreFocus:()=>{!O&&(!b||b.contains(document.activeElement))&&_&&document.contains(_)&&"focus"in _&&_.focus()},getInnerDimensions:()=>({width:b.offsetWidth,height:b.offsetHeight}),getAnchorDimensions:()=>J?J.getBoundingClientRect():null,getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:$=>{t(9,C.left="left"in $?`${$.left}px`:"",C),t(9,C.right="right"in $?`${$.right}px`:"",C),t(9,C.top="top"in $?`${$.top}px`:"",C),t(9,C.bottom="bottom"in $?`${$.bottom}px`:"",C)},setMaxHeight:$=>{t(9,C["max-height"]=$,C)}})),$l(b,"SMUIMenuSurface:mount",{get open(){return I},set open($){t(13,I=$)},closeProgrammatic:H}),g.init(),()=>{var $;const q=g.isHoistedElement;g.destroy(),q&&(($=b.parentNode)===null||$===void 0||$.removeChild(b))})),tu(()=>{var $;T&&b&&(($=b.parentElement)===null||$===void 0||$.classList.remove("mdc-menu-surface--anchor"))}),i.$$set=$=>{e=Xn(Xn({},e),sc($)),t(12,l=Da(e,n)),"use"in $&&t(0,z=$.use),"class"in $&&t(1,X=$.class),"style"in $&&t(2,y=$.style),"static"in $&&t(3,E=$.static),"anchor"in $&&t(15,T=$.anchor),"fixed"in $&&t(4,w=$.fixed),"open"in $&&t(13,I=$.open),"managed"in $&&t(16,K=$.managed),"fullWidth"in $&&t(5,U=$.fullWidth),"quickOpen"in $&&t(17,Y=$.quickOpen),"anchorElement"in $&&t(14,J=$.anchorElement),"anchorCorner"in $&&t(18,S=$.anchorCorner),"anchorMargin"in $&&t(19,Q=$.anchorMargin),"maxHeight"in $&&t(20,ae=$.maxHeight),"horizontallyCenteredOnViewport"in $&&t(21,x=$.horizontallyCenteredOnViewport),"openBottomBias"in $&&t(22,A=$.openBottomBias),"neverRestoreFocus"in $&&t(23,O=$.neverRestoreFocus),"$$scope"in $&&t(33,c=$.$$scope)},i.$$.update=()=>{1073774656&i.$$.dirty[0]|3&i.$$.dirty[1]&&b&&T&&!(!(t(30,d=b.parentElement)===null||d===void 0)&&d.classList.contains("mdc-menu-surface--anchor"))&&(t(31,u=b.parentElement)===null||u===void 0||u.classList.add("mdc-menu-surface--anchor"),t(14,J=t(32,h=b.parentElement)!==null&&h!==void 0?h:void 0)),8320&i.$$.dirty[0]&&g&&g.isOpen()!==I&&(I?g.open():g.close()),131200&i.$$.dirty[0]&&g&&g.setQuickOpen(Y),144&i.$$.dirty[0]&&g&&g.setFixedPosition(w),1048704&i.$$.dirty[0]&&g&&g.setMaxHeight(ae),2097280&i.$$.dirty[0]&&g&&g.setIsHorizontallyCenteredOnViewport(x),262272&i.$$.dirty[0]&&g&&S!=null&&(typeof S=="string"?g.setAnchorCorner(ee[S]):g.setAnchorCorner(S)),524416&i.$$.dirty[0]&&g&&g.setAnchorMargin(Q),4194432&i.$$.dirty[0]&&g&&g.setOpenBottomBias(A)},[z,X,y,E,w,U,b,g,k,C,m,function($){g&&I&&!K&&g.handleBodyClick($)},l,I,J,T,K,Y,S,Q,ae,x,A,O,function(){return I},function($){t(13,I=$)},function($,q){return g.setAbsolutePosition($,q)},function($){return g.setIsHoisted($)},function(){return g.isFixed()},R,d,u,h,c,s,function($){Or[$?"unshift":"push"](()=>{b=$,t(6,b)})}]}class d5 extends So{constructor(e){super(),wo(this,e,c5,o5,Rs,{use:0,class:1,style:2,static:3,anchor:15,fixed:4,open:13,managed:16,fullWidth:5,quickOpen:17,anchorElement:14,anchorCorner:18,anchorMargin:19,maxHeight:20,horizontallyCenteredOnViewport:21,openBottomBias:22,neverRestoreFocus:23,isOpen:24,setOpen:25,setAbsolutePosition:26,setIsHoisted:27,isFixed:28,getElement:29},null,[-1,-1])}get isOpen(){return this.$$.ctx[24]}get setOpen(){return this.$$.ctx[25]}get setAbsolutePosition(){return this.$$.ctx[26]}get setIsHoisted(){return this.$$.ctx[27]}get isFixed(){return this.$$.ctx[28]}get getElement(){return this.$$.ctx[29]}}/**
939
+ * @license
940
+ * Copyright 2018 Google Inc.
941
+ *
942
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
943
+ * of this software and associated documentation files (the "Software"), to deal
944
+ * in the Software without restriction, including without limitation the rights
945
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
946
+ * copies of the Software, and to permit persons to whom the Software is
947
+ * furnished to do so, subject to the following conditions:
948
+ *
949
+ * The above copyright notice and this permission notice shall be included in
950
+ * all copies or substantial portions of the Software.
951
+ *
952
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
953
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
954
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
955
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
956
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
957
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
958
+ * THE SOFTWARE.
959
+ */var Xu,ih={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},Du={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},f5={FOCUS_ROOT_INDEX:-1};(function(i){i[i.NONE=0]="NONE",i[i.LIST_ROOT=1]="LIST_ROOT",i[i.FIRST_ITEM=2]="FIRST_ITEM",i[i.LAST_ITEM=3]="LAST_ITEM"})(Xu||(Xu={}));/**
960
+ * @license
961
+ * Copyright 2018 Google Inc.
962
+ *
963
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
964
+ * of this software and associated documentation files (the "Software"), to deal
965
+ * in the Software without restriction, including without limitation the rights
966
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
967
+ * copies of the Software, and to permit persons to whom the Software is
968
+ * furnished to do so, subject to the following conditions:
969
+ *
970
+ * The above copyright notice and this permission notice shall be included in
971
+ * all copies or substantial portions of the Software.
972
+ *
973
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
974
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
975
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
976
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
977
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
978
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
979
+ * THE SOFTWARE.
980
+ */var u5=function(i){function e(t){var n=i.call(this,fs(fs({},e.defaultAdapter),t))||this;return n.closeAnimationEndTimerId=0,n.defaultFocusState=Xu.LIST_ROOT,n.selectedIndex=-1,n}return Bd(e,i),Object.defineProperty(e,"cssClasses",{get:function(){return ih},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Du},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return f5},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},e.prototype.handleKeydown=function(t){var n=t.key,l=t.keyCode;(n==="Tab"||l===9)&&this.adapter.closeSurface(!0)},e.prototype.handleItemAction=function(t){var n=this,l=this.adapter.getElementIndex(t);if(!(l<0)){this.adapter.notifySelected({index:l});var s=this.adapter.getAttributeFromElementAtIndex(l,Du.SKIP_RESTORE_FOCUS)==="true";this.adapter.closeSurface(s),this.closeAnimationEndTimerId=setTimeout(function(){var c=n.adapter.getElementIndex(t);c>=0&&n.adapter.isSelectableItemAtIndex(c)&&n.setSelectedIndex(c)},_w.numbers.TRANSITION_CLOSE_DURATION)}},e.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case Xu.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case Xu.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case Xu.NONE:break;default:this.adapter.focusListRoot()}},e.prototype.setDefaultFocusState=function(t){this.defaultFocusState=t},e.prototype.getSelectedIndex=function(){return this.selectedIndex},e.prototype.setSelectedIndex=function(t){if(this.validatedIndex(t),!this.adapter.isSelectableItemAtIndex(t))throw new Error("MDCMenuFoundation: No selection group at specified index.");var n=this.adapter.getSelectedSiblingOfItemAtIndex(t);n>=0&&(this.adapter.removeAttributeFromElementAtIndex(n,Du.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(n,ih.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(t,ih.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(t,Du.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=t},e.prototype.setEnabled=function(t,n){this.validatedIndex(t),n?(this.adapter.removeClassFromElementAtIndex(t,Dr.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,Du.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(t,Dr.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(t,Du.ARIA_DISABLED_ATTR,"true"))},e.prototype.validatedIndex=function(t){var n=this.adapter.getMenuItemCount();if(!(t>=0&&t<n))throw new Error("MDCMenuFoundation: No list item at specified index.")},e}(Hd);function h5(i){let e;const t=i[17].default,n=Wa(t,i,i[22],null);return{c(){n&&n.c()},m(l,s){n&&n.m(l,s),e=!0},p(l,s){n&&n.p&&(!e||4194304&s)&&qa(n,t,l,l[22],e?ja(t,l[22],s,null):Ya(l[22]),null)},i(l){e||(ji(n,l),e=!0)},o(l){rn(n,l),e=!1},d(l){n&&n.d(l)}}}function m5(i){let e,t,n;const l=[{use:i[5]},{class:ta({[i[1]]:!0,"mdc-menu":!0})},i[9]];function s(d){i[19](d)}let c={$$slots:{default:[h5]},$$scope:{ctx:i}};for(let d=0;d<l.length;d+=1)c=Xn(c,l[d]);return i[0]!==void 0&&(c.open=i[0]),e=new d5({props:c}),i[18](e),Or.push(()=>Wc(e,"open",s)),e.$on("SMUIMenuSurface:mount",i[7]),e.$on("SMUIList:mount",i[8]),e.$on("SMUIMenuSurface:opened",i[20]),e.$on("keydown",i[6]),e.$on("SMUIList:action",i[21]),{c(){la(e.$$.fragment)},m(d,u){Jr(e,d,u),n=!0},p(d,[u]){const h=546&u?ml(l,[32&u&&{use:d[5]},2&u&&{class:ta({[d[1]]:!0,"mdc-menu":!0})},512&u&&Vs(d[9])]):{};4194304&u&&(h.$$scope={dirty:u,ctx:d}),!t&&1&u&&(t=!0,h.open=d[0],Vc(()=>t=!1)),e.$set(h)},i(d){n||(ji(e.$$.fragment,d),n=!0)},o(d){rn(e.$$.fragment,d),n=!1},d(d){i[18](null),ea(e,d)}}}function p5(i,e,t){let n;const l=["use","class","open","isOpen","setOpen","setDefaultFocusState","getSelectedIndex","getMenuSurface","getElement"];let s=Da(e,l),{$$slots:c={},$$scope:d}=e;const{closest:u}=h_,h=oc(Ys());let m,b,g,_,{use:z=[]}=e,{class:X=""}=e,{open:y=!1}=e;function E(){return m.getElement()}return Lc(()=>(t(3,b=new u5({addClassToElementAtIndex:(T,w)=>{_.addClassForElementIndex(T,w)},removeClassFromElementAtIndex:(T,w)=>{_.removeClassForElementIndex(T,w)},addAttributeToElementAtIndex:(T,w,I)=>{_.setAttributeForElementIndex(T,w,I)},removeAttributeFromElementAtIndex:(T,w)=>{_.removeAttributeForElementIndex(T,w)},getAttributeFromElementAtIndex:(T,w)=>_.getAttributeFromElementIndex(T,w),elementContainsClass:(T,w)=>T.classList.contains(w),closeSurface:T=>{g.closeProgrammatic(T),$l(E(),"SMUIMenu:closedProgrammatically")},getElementIndex:T=>_.getOrderedList().map(w=>w.element).indexOf(T),notifySelected:T=>$l(E(),"SMUIMenu:selected",{index:T.index,item:_.getOrderedList()[T.index].element},void 0,!0),getMenuItemCount:()=>_.items.length,focusItemAtIndex:T=>_.focusItemAtIndex(T),focusListRoot:()=>"focus"in _.element&&_.element.focus(),isSelectableItemAtIndex:T=>!!u(_.getOrderedList()[T].element,`.${ih.MENU_SELECTION_GROUP}`),getSelectedSiblingOfItemAtIndex:T=>{const w=_.getOrderedList(),I=u(w[T].element,`.${ih.MENU_SELECTION_GROUP}`),K=I?.querySelector(`.${ih.MENU_SELECTED_LIST_ITEM}`);return K?w.map(U=>U.element).indexOf(K):-1}})),$l(E(),"SMUIMenu:mount",b),b.init(),()=>{b.destroy()})),i.$$set=T=>{e=Xn(Xn({},e),sc(T)),t(9,s=Da(e,l)),"use"in T&&t(10,z=T.use),"class"in T&&t(1,X=T.class),"open"in T&&t(0,y=T.open),"$$scope"in T&&t(22,d=T.$$scope)},i.$$.update=()=>{1024&i.$$.dirty&&t(5,n=[h,...z])},[y,X,m,b,_,n,function(T){b&&b.handleKeydown(T)},function(T){g||(g=T.detail)},function(T){_||t(4,_=T.detail)},s,z,function(){return y},function(T){t(0,y=T)},function(T){b.setDefaultFocusState(T)},function(){return b.getSelectedIndex()},function(){return m},E,c,function(T){Or[T?"unshift":"push"](()=>{m=T,t(2,m)})},function(T){y=T,t(0,y)},()=>b&&b.handleMenuSurfaceOpened(),T=>b&&b.handleItemAction(_.getOrderedList()[T.detail.index].element),d]}class b5 extends So{constructor(e){super(),wo(this,e,p5,m5,Rs,{use:10,class:1,open:0,isOpen:11,setOpen:12,setDefaultFocusState:13,getSelectedIndex:14,getMenuSurface:15,getElement:16})}get isOpen(){return this.$$.ctx[11]}get setOpen(){return this.$$.ctx[12]}get setDefaultFocusState(){return this.$$.ctx[13]}get getSelectedIndex(){return this.$$.ctx[14]}get getMenuSurface(){return this.$$.ctx[15]}get getElement(){return this.$$.ctx[16]}}function g5(i){let e,t,n,l,s,c;const d=i[8].default,u=Wa(d,i,i[7],null);let h=[{class:t=ta({[i[1]]:!0,"mdc-deprecated-list-item__graphic":!0,"mdc-menu__selection-group-icon":i[4]})},i[5]],m={};for(let b=0;b<h.length;b+=1)m=Xn(m,h[b]);return{c(){e=_a("span"),u&&u.c(),Hl(e,m)},m(b,g){Un(b,e,g),u&&u.m(e,null),i[9](e),l=!0,s||(c=[oa(n=cc.call(null,e,i[0])),oa(i[3].call(null,e))],s=!0)},p(b,[g]){u&&u.p&&(!l||128&g)&&qa(u,d,b,b[7],l?ja(d,b[7],g,null):Ya(b[7]),null),Hl(e,m=ml(h,[(!l||2&g&&t!==(t=ta({[b[1]]:!0,"mdc-deprecated-list-item__graphic":!0,"mdc-menu__selection-group-icon":b[4]})))&&{class:t},32&g&&b[5]])),n&&Bl(n.update)&&1&g&&n.update.call(null,b[0])},i(b){l||(ji(u,b),l=!0)},o(b){rn(u,b),l=!1},d(b){b&&Bn(e),u&&u.d(b),i[9](null),s=!1,us(c)}}}function _5(i,e,t){const n=["use","class","getElement"];let l=Da(e,n),{$$slots:s={},$$scope:c}=e;const d=oc(Ys());let u,{use:h=[]}=e,{class:m=""}=e,b=rc("SMUI:list:graphic:menu-selection-group");return i.$$set=g=>{e=Xn(Xn({},e),sc(g)),t(5,l=Da(e,n)),"use"in g&&t(0,h=g.use),"class"in g&&t(1,m=g.class),"$$scope"in g&&t(7,c=g.$$scope)},[h,m,u,d,b,l,function(){return u},c,s,function(g){Or[g?"unshift":"push"](()=>{u=g,t(2,u)})}]}class y5 extends So{constructor(e){super(),wo(this,e,_5,g5,Rs,{use:0,class:1,getElement:6})}get getElement(){return this.$$.ctx[6]}}pd({class:"mdc-menu__selection-group-icon",component:y5});function v5(i){let e,t;return{c(){e=Mg("svg"),t=Mg("path"),Fa(t,"fill","currentColor"),Fa(t,"d","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"),Fa(e,"aria-hidden","true"),Fa(e,"focusable","false"),Fa(e,"data-prefix","fas"),Fa(e,"data-icon","search"),Fa(e,"class","svg-inline--fa fa-search fa-w-16"),Fa(e,"role","img"),Fa(e,"xmlns","http://www.w3.org/2000/svg"),Sf(e,"width","16px"),Sf(e,"height","16px"),Fa(e,"viewBox","0 0 512 512")},m(n,l){Un(n,e,l),ds(e,t)},p:hl,i:hl,o:hl,d(n){n&&Bn(e)}}}class x5 extends So{constructor(e){super(),wo(this,e,null,v5,Rs,{})}}var w5='.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:text;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);left:0;letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);line-height:1.15rem;overflow:hidden;position:absolute;text-align:left;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-overflow:ellipsis;text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);-webkit-transform-origin:left top;transform-origin:left top;transition:transform .15s cubic-bezier(.4,0,.2,1),color .15s cubic-bezier(.4,0,.2,1);white-space:nowrap;will-change:transform}.mdc-floating-label[dir=rtl],[dir=rtl] .mdc-floating-label{left:auto;right:0;text-align:right;-webkit-transform-origin:right top;transform-origin:right top}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:after{content:"*";margin-left:1px;margin-right:0}.mdc-floating-label--required[dir=rtl]:after,[dir=rtl] .mdc-floating-label--required:after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard .25s 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(0) translateY(-106%) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(4%) translateY(-106%) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(-4%) translateY(-106%) scale(.75)}to{transform:translateX(0) translateY(-106%) scale(.75)}}.smui-floating-label--remove-transition{transition:unset!important}.smui-floating-label--force-size{position:absolute!important;transform:unset!important}.mdc-line-ripple:after,.mdc-line-ripple:before{border-bottom-style:solid;bottom:0;content:"";left:0;position:absolute;width:100%}.mdc-line-ripple:before{border-bottom-width:1px;z-index:1}.mdc-line-ripple:after{border-bottom-width:2px;opacity:0;transform:scaleX(0);transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);z-index:2}.mdc-line-ripple--active:after{opacity:1;transform:scaleX(1)}.mdc-line-ripple--deactivating:after{opacity:0}.mdc-deprecated-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87));font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);line-height:1.5rem;list-style-type:none;margin:0;padding:8px 0;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit)}.mdc-deprecated-list:focus{outline:none}.mdc-deprecated-list-item__secondary-text{color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.mdc-deprecated-list-item__graphic{background-color:transparent;color:rgba(0,0,0,.38);color:var(--mdc-theme-text-icon-on-background,rgba(0,0,0,.38))}.mdc-deprecated-list-item__meta{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-hint-on-background,rgba(0,0,0,.38))}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__text{opacity:.38}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__secondary-text,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__text{color:#000;color:var(--mdc-theme-on-surface,#000)}.mdc-deprecated-list-item--activated,.mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-deprecated-list-item--selected,.mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic{color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}.mdc-deprecated-list--dense{font-size:.812rem;padding-bottom:4px;padding-top:4px}.mdc-deprecated-list-item__wrapper{display:block}.mdc-deprecated-list-item{align-items:center;display:flex;height:48px;justify-content:flex-start;overflow:hidden;padding:0 16px;position:relative}.mdc-deprecated-list-item:focus{outline:none}.mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused:before,.mdc-deprecated-list-item:not(.mdc-deprecated-list-item--selected):focus:before{border:1px solid transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}@media screen and (forced-colors:active){.mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused:before,.mdc-deprecated-list-item:not(.mdc-deprecated-list-item--selected):focus:before{border-color:CanvasText}}.mdc-deprecated-list-item.mdc-deprecated-list-item--selected:before{border:3px double transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}@media screen and (forced-colors:active){.mdc-deprecated-list-item.mdc-deprecated-list-item--selected:before{border-color:CanvasText}}.mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-item{height:56px;padding-left:16px;padding-right:16px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item{height:56px;padding-left:16px;padding-right:16px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item{height:56px;padding-left:16px;padding-right:16px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}.mdc-deprecated-list--image-list .mdc-deprecated-list-item{height:72px;padding-left:16px;padding-right:16px}.mdc-deprecated-list--image-list .mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}.mdc-deprecated-list--video-list .mdc-deprecated-list-item{height:72px;padding-left:0;padding-right:16px}.mdc-deprecated-list--video-list .mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-item{padding-left:16px;padding-right:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic{height:20px;margin-left:0;margin-right:16px;width:20px}.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic{margin-left:16px;margin-right:0}.mdc-deprecated-list-item__graphic{fill:currentColor;align-items:center;flex-shrink:0;height:24px;justify-content:center;margin-left:0;margin-right:32px;object-fit:cover;width:24px}.mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list-item__graphic{margin-left:32px;margin-right:0}.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic{height:24px;margin-left:0;margin-right:32px;width:24px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic{margin-left:32px;margin-right:0}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__graphic{border-radius:50%;height:40px;margin-left:0;margin-right:16px;width:40px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__graphic{margin-left:16px;margin-right:0}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__graphic{height:40px;margin-left:0;margin-right:16px;width:40px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__graphic{margin-left:16px;margin-right:0}.mdc-deprecated-list--image-list .mdc-deprecated-list-item__graphic{height:56px;margin-left:0;margin-right:16px;width:56px}.mdc-deprecated-list--image-list .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-item__graphic{margin-left:16px;margin-right:0}.mdc-deprecated-list--video-list .mdc-deprecated-list-item__graphic{height:56px;margin-left:0;margin-right:16px;width:100px}.mdc-deprecated-list--video-list .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-item__graphic{margin-left:16px;margin-right:0}.mdc-deprecated-list .mdc-deprecated-list-item__graphic{display:inline-flex}.mdc-deprecated-list-item__meta{margin-left:auto;margin-right:0}.mdc-deprecated-list-item__meta:not(.material-icons){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size,.75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing,.0333333333em);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height,1.25rem);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit)}.mdc-deprecated-list-item[dir=rtl] .mdc-deprecated-list-item__meta,[dir=rtl] .mdc-deprecated-list-item .mdc-deprecated-list-item__meta{margin-left:0;margin-right:auto}.mdc-deprecated-list-item__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mdc-deprecated-list-item__text[for]{pointer-events:none}.mdc-deprecated-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mdc-deprecated-list-item__primary-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-deprecated-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__primary-text,.mdc-deprecated-list--video-list .mdc-deprecated-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__primary-text:before,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__primary-text:before,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__primary-text:before,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__primary-text:before,.mdc-deprecated-list--video-list .mdc-deprecated-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item__primary-text:after,.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__primary-text:after,.mdc-deprecated-list--image-list .mdc-deprecated-list-item__primary-text:after,.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item__primary-text:after,.mdc-deprecated-list--video-list .mdc-deprecated-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__primary-text:before{content:"";display:inline-block;height:24px;vertical-align:0;width:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-deprecated-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size,.875rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.0178571429em);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height,1.25rem);line-height:normal;margin-top:0;overflow:hidden;text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-overflow:ellipsis;text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);white-space:nowrap}.mdc-deprecated-list-item__secondary-text:before{content:"";display:inline-block;height:20px;vertical-align:0;width:0}.mdc-deprecated-list--dense .mdc-deprecated-list-item__secondary-text{font-size:inherit}.mdc-deprecated-list--dense .mdc-deprecated-list-item{height:40px}.mdc-deprecated-list--two-line .mdc-deprecated-list-item__text{align-self:flex-start}.mdc-deprecated-list--two-line .mdc-deprecated-list-item{height:64px}.mdc-deprecated-list--two-line.mdc-deprecated-list--avatar-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--icon-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--image-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--video-list .mdc-deprecated-list-item{height:72px}.mdc-deprecated-list--two-line.mdc-deprecated-list--icon-list .mdc-deprecated-list-item__graphic{align-self:flex-start;margin-top:16px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item,.mdc-deprecated-list--two-line.mdc-deprecated-list--dense .mdc-deprecated-list-item{height:60px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic{height:36px;margin-left:0;margin-right:16px;width:36px}.mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list.mdc-deprecated-list--dense .mdc-deprecated-list-item__graphic{margin-left:16px;margin-right:0}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item{cursor:pointer}a.mdc-deprecated-list-item{color:inherit;text-decoration:none}.mdc-deprecated-list-divider{border:none;border-bottom:1px solid;border-bottom-color:rgba(0,0,0,.12);height:0;margin:0}.mdc-deprecated-list-divider--padded{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list-divider--padded[dir=rtl],[dir=rtl] .mdc-deprecated-list-divider--padded{margin-left:0;margin-right:16px}.mdc-deprecated-list-divider--inset{margin-left:72px;margin-right:0;width:calc(100% - 72px)}.mdc-deprecated-list-divider--inset[dir=rtl],[dir=rtl] .mdc-deprecated-list-divider--inset{margin-left:0;margin-right:72px}.mdc-deprecated-list-divider--inset.mdc-deprecated-list-divider--padded{margin-left:72px;margin-right:0;width:calc(100% - 88px)}.mdc-deprecated-list-divider--inset.mdc-deprecated-list-divider--padded[dir=rtl],[dir=rtl] .mdc-deprecated-list-divider--inset.mdc-deprecated-list-divider--padded{margin-left:0;margin-right:72px}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading{margin-left:16px;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading[dir=rtl],[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading{margin-left:0;margin-right:16px}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl],[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:0;margin-right:16px}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl],[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:16px}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl],[dir=rtl] .mdc-deprecated-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading{margin-left:72px;margin-right:0;width:calc(100% - 72px)}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading[dir=rtl],[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading{margin-left:0;margin-right:72px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:72px;margin-right:0;width:calc(100% - 88px)}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl],[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:0;margin-right:72px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--icon-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading{margin-left:72px;margin-right:0;width:calc(100% - 72px)}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading{margin-left:0;margin-right:72px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:72px;margin-right:0;width:calc(100% - 88px)}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:0;margin-right:72px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--avatar-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading{margin-left:72px;margin-right:0;width:calc(100% - 72px)}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading[dir=rtl],[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading{margin-left:0;margin-right:72px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:72px;margin-right:0;width:calc(100% - 88px)}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl],[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:0;margin-right:72px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--thumbnail-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading{margin-left:88px;margin-right:0;width:calc(100% - 88px)}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading[dir=rtl],[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading{margin-left:0;margin-right:88px}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:88px;margin-right:0;width:calc(100% - 104px)}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl],[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:0;margin-right:88px}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:16px;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:16px;margin-right:0;width:calc(100% - 32px)}.mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--image-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:16px}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading{margin-left:116px;margin-right:0;width:calc(100% - 116px)}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading[dir=rtl],[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading{margin-left:0;margin-right:116px}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-trailing{width:calc(100% - 16px)}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:116px;margin-right:0;width:calc(100% - 132px)}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing[dir=rtl],[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing{margin-left:0;margin-right:116px}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:0;width:100%}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--padding{margin-left:0;margin-right:0}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:0;width:calc(100% - 16px)}.mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding[dir=rtl],[dir=rtl] .mdc-deprecated-list--video-list .mdc-deprecated-list-divider--inset-leading.mdc-deprecated-list-divider--inset-trailing.mdc-deprecated-list-divider--inset-padding{margin-left:0;margin-right:0}.mdc-deprecated-list-group .mdc-deprecated-list{padding:0}.mdc-deprecated-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);margin:.75rem 16px;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit)}.mdc-list-item__primary-text{color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}.mdc-list-item__secondary-text{color:rgba(0,0,0,.54);color:var(--mdc-theme-text-secondary-on-background,rgba(0,0,0,.54))}.mdc-list-item__overline-text{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-hint-on-background,rgba(0,0,0,.38))}.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-trailing-icon .mdc-list-item__end{background-color:transparent;color:rgba(0,0,0,.38);color:var(--mdc-theme-text-icon-on-background,rgba(0,0,0,.38))}.mdc-list-item__end{color:rgba(0,0,0,.38);color:var(--mdc-theme-text-hint-on-background,rgba(0,0,0,.38))}.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end,.mdc-list-item--disabled .mdc-list-item__start{opacity:.38}.mdc-list-item--disabled .mdc-list-item__overline-text,.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--disabled.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:#000;color:var(--mdc-theme-on-surface,#000)}.mdc-list-item--activated .mdc-list-item__primary-text,.mdc-list-item--activated.mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--selected .mdc-list-item__primary-text,.mdc-list-item--selected.mdc-list-item--with-leading-icon .mdc-list-item__start{color:#6200ee;color:var(--mdc-theme-primary,#6200ee)}.mdc-deprecated-list-group__subheader{color:rgba(0,0,0,.87);color:var(--mdc-theme-text-primary-on-background,rgba(0,0,0,.87))}@media (-ms-high-contrast:active),screen and (forced-colors:active){.mdc-list-divider:after{border-bottom:1px solid #fff;content:"";display:block}}.mdc-list{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);line-height:1.5rem;list-style-type:none;margin:0;padding:8px 0;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit)}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{align-items:center;align-items:stretch;cursor:pointer;display:flex;justify-content:flex-start;overflow:hidden;padding:0;position:relative}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start,.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end,.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item.mdc-ripple-upgraded--background-focused:before,.mdc-list-item:not(.mdc-list-item--selected):focus:before{border:1px solid transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}@media screen and (forced-colors:active){.mdc-list-item.mdc-ripple-upgraded--background-focused:before,.mdc-list-item:not(.mdc-list-item--selected):focus:before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:before{border:3px double transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}@media screen and (forced-colors:active){.mdc-list-item.mdc-list-item--selected:before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus:before{border:3px solid transparent;border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}@media screen and (forced-colors:active){.mdc-list-item.mdc-list-item--selected:focus:before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor}.mdc-list-item__end,.mdc-list-item__start{flex-shrink:0;pointer-events:none}.mdc-list-item__content{align-self:center;flex:1;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}.mdc-list-item--with-three-lines .mdc-list-item__content,.mdc-list-item--with-two-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);overflow:hidden;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-overflow:ellipsis;text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);white-space:nowrap}.mdc-list-item--with-three-lines .mdc-list-item__primary-text,.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-three-lines .mdc-list-item__primary-text:before,.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-three-lines .mdc-list-item__primary-text:after,.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item__secondary-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size,.875rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing,.0178571429em);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height,1.25rem);line-height:normal;margin-top:0;overflow:hidden;text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-overflow:ellipsis;text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform,inherit);white-space:nowrap}.mdc-list-item__secondary-text:before{content:"";display:inline-block;height:20px;vertical-align:0;width:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{line-height:20px;white-space:normal}.mdc-list-item--with-overline .mdc-list-item__secondary-text{line-height:auto;white-space:nowrap}.mdc-list-item__overline-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-overline-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-overline-font-size,.75rem);font-weight:500;font-weight:var(--mdc-typography-overline-font-weight,500);letter-spacing:.1666666667em;letter-spacing:var(--mdc-typography-overline-letter-spacing,.1666666667em);line-height:2rem;line-height:var(--mdc-typography-overline-line-height,2rem);overflow:hidden;text-decoration:none;text-decoration:var(--mdc-typography-overline-text-decoration,none);text-overflow:ellipsis;text-transform:uppercase;text-transform:var(--mdc-typography-overline-text-transform,uppercase);white-space:nowrap}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:24px;vertical-align:0;width:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{height:40px;width:40px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon .mdc-list-item__start{height:24px;width:24px}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{height:40px;width:40px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image .mdc-list-item__start{height:56px;width:56px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line,.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{height:56px;width:100px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line,.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{height:40px;width:40px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio .mdc-list-item__start{height:40px;width:40px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl],[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch .mdc-list-item__start{height:20px;width:36px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;line-height:normal;margin-bottom:-20px;margin-top:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text:after{content:"";display:inline-block;height:20px;vertical-align:-20px;width:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end:before{content:"";display:inline-block;height:32px;vertical-align:0;width:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-icon .mdc-list-item__end{height:24px;width:24px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end:before{content:"";display:inline-block;height:28px;vertical-align:0;width:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size,.75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing,.0333333333em);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height,1.25rem);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{height:40px;width:40px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio .mdc-list-item__end{height:40px;width:40px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl],[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch .mdc-list-item__end{height:20px;width:36px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:20px;vertical-align:0;width:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;line-height:normal;margin-top:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text:before{content:"";display:inline-block;height:20px;vertical-align:0;width:0}.mdc-list-item,.mdc-list-item[dir=rtl],[dir=rtl] .mdc-list-item{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);line-height:1.75rem;line-height:var(--mdc-typography-subtitle1-line-height,1.75rem);margin:.75rem 16px;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit)}.mdc-list-divider{background-clip:content-box;background-color:rgba(0,0,0,.12);height:1px;padding:0}.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset{padding-left:auto;padding-right:16px}.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl],[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:auto;padding-right:0}.mdc-list-divider[dir=rtl],[dir=rtl] .mdc-list-divider{padding:0}@keyframes mdc-ripple-fg-radius-in{0%{animation-timing-function:cubic-bezier(.4,0,.2,1);transform:translate(var(--mdc-ripple-fg-translate-start,0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}}@keyframes mdc-ripple-fg-opacity-in{0%{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity,0)}}@keyframes mdc-ripple-fg-opacity-out{0%{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity,0)}to{opacity:0}}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--unbounded .mdc-deprecated-list-item__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-activation .mdc-deprecated-list-item__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-deprecated-list-item__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-list-item__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-list-item__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:before{height:200%;left:-50%;top:-50%;width:200%}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:before{height:200%;left:-50%;top:-50%;width:200%}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded .mdc-list-item__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple:before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:hover .mdc-deprecated-list-item__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple:after{opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple:before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-surface--hover .mdc-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:hover .mdc-list-item__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded) .mdc-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple:after{opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-deprecated-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-deprecated-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-deprecated-list-item__ripple:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:hover .mdc-deprecated-list-item__ripple:before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple:before{opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple:after{opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated .mdc-list-item__ripple:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-surface--hover .mdc-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:hover .mdc-list-item__ripple:before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded) .mdc-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple:after{opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.24)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple:before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple:before{opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple:after{opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-list-item__ripple:before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-list-item__ripple:after,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected .mdc-list-item__ripple:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple:after{opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2);transition-duration:75ms}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.2)}:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-deprecated-list-item__ripple,:not(.mdc-deprecated-list-item--disabled).mdc-deprecated-list-item .mdc-list-item__ripple{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-deprecated-list-item--disabled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:after,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-deprecated-list-item__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-deprecated-list-item__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-deprecated-list-item__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:after,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:after,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:before{height:200%;left:-50%;top:-50%;width:200%}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-deprecated-list-item__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:after,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:before{height:200%;left:-50%;top:-50%;width:200%}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:after,.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple:before,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:after,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple:before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple:before,.mdc-deprecated-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,.mdc-deprecated-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple:before,.mdc-deprecated-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}.mdc-deprecated-list-item--disabled .mdc-deprecated-list-item__ripple,.mdc-deprecated-list-item--disabled .mdc-list-item__ripple{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}:not(.mdc-list-item--disabled).mdc-list-item{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:after,:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:after,:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:before{height:200%;left:-50%;top:-50%;width:200%}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded .mdc-list-item__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:after,:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple:before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-surface--hover .mdc-list-item__ripple:before,:not(.mdc-list-item--disabled).mdc-list-item:hover .mdc-list-item__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded) .mdc-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-list-item--disabled).mdc-list-item:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple:after{opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12);transition-duration:75ms}:not(.mdc-list-item--disabled).mdc-list-item.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.12)}:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-activated-opacity,.12)}:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple:after,:not(.mdc-list-item--disabled).mdc-list-item--activated .mdc-list-item__ripple:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-surface--hover .mdc-list-item__ripple:before,:not(.mdc-list-item--disabled).mdc-list-item--activated:hover .mdc-list-item__ripple:before{opacity:.16;opacity:var(--mdc-ripple-hover-opacity,.16)}:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.24;opacity:var(--mdc-ripple-focus-opacity,.24);transition-duration:75ms}:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded) .mdc-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-list-item--disabled).mdc-list-item--activated:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple:after{opacity:.24;opacity:var(--mdc-ripple-press-opacity,.24);transition-duration:75ms}:not(.mdc-list-item--disabled).mdc-list-item--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.24)}:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple:before{opacity:.08;opacity:var(--mdc-ripple-selected-opacity,.08)}:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple:after,:not(.mdc-list-item--disabled).mdc-list-item--selected .mdc-list-item__ripple:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple:before,:not(.mdc-list-item--disabled).mdc-list-item--selected:hover .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-hover-opacity,.12)}:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.2;opacity:var(--mdc-ripple-focus-opacity,.2);transition-duration:75ms}:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple:after{transition:opacity .15s linear}:not(.mdc-list-item--disabled).mdc-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple:after{opacity:.2;opacity:var(--mdc-ripple-press-opacity,.2);transition-duration:75ms}:not(.mdc-list-item--disabled).mdc-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.2)}:not(.mdc-list-item--disabled).mdc-list-item .mdc-list-item__ripple{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-list-item--disabled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-list-item--disabled .mdc-list-item__ripple:after,.mdc-list-item--disabled .mdc-list-item__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}.mdc-list-item--disabled .mdc-list-item__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-list-item--disabled .mdc-list-item__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}.mdc-list-item--disabled.mdc-ripple-upgraded--unbounded .mdc-list-item__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}.mdc-list-item--disabled.mdc-ripple-upgraded--foreground-activation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-list-item--disabled.mdc-ripple-upgraded--foreground-deactivation .mdc-list-item__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-list-item--disabled .mdc-list-item__ripple:after,.mdc-list-item--disabled .mdc-list-item__ripple:before{height:200%;left:-50%;top:-50%;width:200%}.mdc-list-item--disabled.mdc-ripple-upgraded .mdc-list-item__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}.mdc-list-item--disabled .mdc-list-item__ripple:after,.mdc-list-item--disabled .mdc-list-item__ripple:before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-list-item--disabled.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple:before,.mdc-list-item--disabled:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}.mdc-list-item--disabled .mdc-list-item__ripple{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-ripple-surface{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:none;overflow:hidden;position:relative;will-change:transform,opacity}.mdc-ripple-surface:after,.mdc-ripple-surface:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}.mdc-ripple-surface:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-ripple-surface:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-ripple-surface.mdc-ripple-upgraded:before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface.mdc-ripple-upgraded:after{left:0;top:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-ripple-surface:after,.mdc-ripple-surface:before{height:200%;left:-50%;top:-50%;width:200%}.mdc-ripple-surface.mdc-ripple-upgraded:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]:after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]:before,.mdc-ripple-upgraded--unbounded:after,.mdc-ripple-upgraded--unbounded:before{height:100%;left:0;top:0;width:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded:after,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded:before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded:after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded:before{height:var(--mdc-ripple-fg-size,100%);left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0);width:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded:after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}.mdc-ripple-surface:after,.mdc-ripple-surface:before{background-color:#000;background-color:var(--mdc-ripple-color,#000)}.mdc-ripple-surface.mdc-ripple-surface--hover:before,.mdc-ripple-surface:hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused:before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}.mdc-ripple-surface:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active:after{opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12);transition-duration:75ms}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.12)}.smui-ripple-surface--primary:after,.smui-ripple-surface--primary:before{background-color:#6200ee;background-color:var(--mdc-ripple-color,var(--mdc-theme-primary,#6200ee))}.smui-ripple-surface--primary.mdc-ripple-surface--hover:before,.smui-ripple-surface--primary:hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.smui-ripple-surface--primary.mdc-ripple-upgraded--background-focused:before,.smui-ripple-surface--primary:not(.mdc-ripple-upgraded):focus:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}.smui-ripple-surface--primary:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.smui-ripple-surface--primary:not(.mdc-ripple-upgraded):active:after{opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12);transition-duration:75ms}.smui-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.12)}.smui-ripple-surface--secondary:after,.smui-ripple-surface--secondary:before{background-color:#018786;background-color:var(--mdc-ripple-color,var(--mdc-theme-secondary,#018786))}.smui-ripple-surface--secondary.mdc-ripple-surface--hover:before,.smui-ripple-surface--secondary:hover:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.smui-ripple-surface--secondary.mdc-ripple-upgraded--background-focused:before,.smui-ripple-surface--secondary:not(.mdc-ripple-upgraded):focus:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}.smui-ripple-surface--secondary:not(.mdc-ripple-upgraded):after{transition:opacity .15s linear}.smui-ripple-surface--secondary:not(.mdc-ripple-upgraded):active:after{opacity:.12;opacity:var(--mdc-ripple-press-opacity,.12);transition-duration:75ms}.smui-ripple-surface--secondary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity,0.12)}.smui-list--three-line .mdc-deprecated-list-item__text{align-self:flex-start}.smui-list--three-line .mdc-deprecated-list-item{height:88px}.smui-list--three-line.mdc-deprecated-list--dense .mdc-deprecated-list-item{height:76px}.mdc-deprecated-list-item.smui-menu-item--non-interactive{cursor:auto}.mdc-elevation-overlay{background-color:#fff;background-color:var(--mdc-elevation-overlay-color,#fff);border-radius:inherit;opacity:0;opacity:var(--mdc-elevation-overlay-opacity,0);pointer-events:none;position:absolute;transition:opacity .28s cubic-bezier(.4,0,.2,1)}.mdc-menu{min-width:112px;min-width:var(--mdc-menu-min-width,112px)}.mdc-menu .mdc-deprecated-list-item__graphic,.mdc-menu .mdc-deprecated-list-item__meta{color:rgba(0,0,0,.87)}.mdc-menu .mdc-menu-item--submenu-open .mdc-deprecated-list-item__ripple:before,.mdc-menu .mdc-menu-item--submenu-open .mdc-list-item__ripple:before{opacity:.04}.mdc-menu .mdc-deprecated-list{color:rgba(0,0,0,.87)}.mdc-menu .mdc-deprecated-list,.mdc-menu .mdc-list{position:relative}.mdc-menu .mdc-deprecated-list .mdc-elevation-overlay,.mdc-menu .mdc-list .mdc-elevation-overlay{height:100%;left:0;top:0;width:100%}.mdc-menu .mdc-deprecated-list-divider{margin:8px 0}.mdc-menu .mdc-deprecated-list-item{user-select:none}.mdc-menu .mdc-deprecated-list-item--disabled{cursor:auto}.mdc-menu a.mdc-deprecated-list-item .mdc-deprecated-list-item__graphic,.mdc-menu a.mdc-deprecated-list-item .mdc-deprecated-list-item__text{pointer-events:none}.mdc-menu__selection-group{fill:currentColor;padding:0}.mdc-menu__selection-group .mdc-deprecated-list-item{padding-left:56px;padding-right:16px}.mdc-menu__selection-group .mdc-deprecated-list-item[dir=rtl],[dir=rtl] .mdc-menu__selection-group .mdc-deprecated-list-item{padding-left:16px;padding-right:56px}.mdc-menu__selection-group .mdc-menu__selection-group-icon{display:none;left:16px;position:absolute;right:auto;top:50%;transform:translateY(-50%)}.mdc-menu__selection-group .mdc-menu__selection-group-icon[dir=rtl],[dir=rtl] .mdc-menu__selection-group .mdc-menu__selection-group-icon{left:auto;right:16px}.mdc-menu-item--selected .mdc-menu__selection-group-icon{display:inline}.mdc-menu-surface{transform-origin-left:top left;transform-origin-right:top right;background-color:#fff;background-color:var(--mdc-theme-surface,#fff);border-radius:4px;border-radius:var(--mdc-shape-medium,4px);box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);box-sizing:border-box;color:#000;color:var(--mdc-theme-on-surface,#000);display:none;margin:0;max-height:calc(100vh - 32px);max-height:var(--mdc-menu-max-height,calc(100vh - 32px));max-width:calc(100vw - 32px);max-width:var(--mdc-menu-max-width,calc(100vw - 32px));opacity:0;overflow:auto;padding:0;position:absolute;transform:scale(1);transform-origin:top left;transition:opacity .03s linear,transform .12s cubic-bezier(0,0,.2,1),height .25s cubic-bezier(0,0,.2,1);will-change:transform,opacity;z-index:8}.mdc-menu-surface:focus{outline:none}.mdc-menu-surface--animating-open{display:inline-block;opacity:0;transform:scale(.8)}.mdc-menu-surface--open{display:inline-block;opacity:1;transform:scale(1)}.mdc-menu-surface--animating-closed{display:inline-block;opacity:0;transition:opacity 75ms linear}.mdc-menu-surface[dir=rtl],[dir=rtl] .mdc-menu-surface{transform-origin-left:top right;transform-origin-right:top left}.mdc-menu-surface--anchor{overflow:visible;position:relative}.mdc-menu-surface--fixed{position:fixed}.mdc-menu-surface--fullwidth{width:100%}.smui-menu-surface--static{display:inline-block;opacity:1;position:static;transform:scale(1);z-index:0}.mdc-menu__selection-group .mdc-list-item__graphic.mdc-menu__selection-group-icon{display:none}.mdc-menu-item--selected .mdc-list-item__graphic.mdc-menu__selection-group-icon{display:inline}.mdc-notched-outline{box-sizing:border-box;display:flex;height:100%;left:0;max-width:100%;pointer-events:none;position:absolute;right:0;text-align:left;top:0;width:100%}.mdc-notched-outline[dir=rtl],[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-bottom:1px solid;border-top:1px solid;box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}.mdc-notched-outline__leading[dir=rtl],.mdc-notched-outline__trailing,[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__trailing[dir=rtl],[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;max-width:calc(100% - 24px);width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;max-width:100%;position:relative}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{border-top:none;padding-left:0;padding-right:8px}.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl],[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-text-field--filled{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity}.mdc-text-field--filled .mdc-text-field__ripple:after,.mdc-text-field--filled .mdc-text-field__ripple:before{border-radius:50%;content:"";opacity:0;pointer-events:none;position:absolute}.mdc-text-field--filled .mdc-text-field__ripple:before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index,1)}.mdc-text-field--filled .mdc-text-field__ripple:after{z-index:0;z-index:var(--mdc-ripple-z-index,0)}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple:before{transform:scale(var(--mdc-ripple-fg-scale,1))}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple:after{left:0;top:0;transform:scale(0);transform-origin:center center}.mdc-text-field--filled.mdc-ripple-upgraded--unbounded .mdc-text-field__ripple:after{left:var(--mdc-ripple-left,0);top:var(--mdc-ripple-top,0)}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-activation .mdc-text-field__ripple:after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-text-field--filled.mdc-ripple-upgraded--foreground-deactivation .mdc-text-field__ripple:after{animation:mdc-ripple-fg-opacity-out .15s;transform:translate(var(--mdc-ripple-fg-translate-end,0)) scale(var(--mdc-ripple-fg-scale,1))}.mdc-text-field--filled .mdc-text-field__ripple:after,.mdc-text-field--filled .mdc-text-field__ripple:before{height:200%;left:-50%;top:-50%;width:200%}.mdc-text-field--filled.mdc-ripple-upgraded .mdc-text-field__ripple:after{height:var(--mdc-ripple-fg-size,100%);width:var(--mdc-ripple-fg-size,100%)}.mdc-text-field__ripple{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.mdc-text-field{align-items:baseline;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small,4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small,4px);box-sizing:border-box;display:inline-flex;overflow:hidden;padding:0 16px;position:relative;will-change:opacity,transform,color}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(0,0,0,.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input{color:rgba(0,0,0,.87)}@media{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:rgba(0,0,0,.54)}}@media{.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:rgba(0,0,0,.54)}}.mdc-text-field .mdc-text-field__input{caret-color:#6200ee;caret-color:var(--mdc-theme-primary,#6200ee)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-character-counter,.mdc-text-field:not(.mdc-text-field--disabled)+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0,0,0,.6)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--leading,.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:rgba(0,0,0,.54)}.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--prefix,.mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__affix--suffix{color:rgba(0,0,0,.6)}.mdc-text-field .mdc-floating-label{pointer-events:none;top:50%;transform:translateY(-50%)}.mdc-text-field__input{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;appearance:none;background:none;border:none;border-radius:0;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);height:28px;letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);min-width:0;padding:0;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);transition:opacity .15s cubic-bezier(.4,0,.2,1) 0ms;width:100%}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media{.mdc-text-field__input::placeholder{opacity:0;transition:opacity 67ms cubic-bezier(.4,0,.2,1) 0ms}}@media{.mdc-text-field__input:-ms-input-placeholder{opacity:0;transition:opacity 67ms cubic-bezier(.4,0,.2,1) 0ms}}@media{.mdc-text-field--focused .mdc-text-field__input::placeholder,.mdc-text-field--no-label .mdc-text-field__input::placeholder{opacity:1;transition-delay:40ms;transition-duration:.11s}}@media{.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder{opacity:1;transition-delay:40ms;transition-duration:.11s}}.mdc-text-field__affix{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-subtitle1-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:1rem;font-size:var(--mdc-typography-subtitle1-font-size,1rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight,400);height:28px;letter-spacing:.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing,.009375em);opacity:0;text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform,inherit);transition:opacity .15s cubic-bezier(.4,0,.2,1) 0ms;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens:none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}.mdc-text-field__affix--prefix[dir=rtl],[dir=rtl] .mdc-text-field__affix--prefix{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl],.mdc-text-field__affix--suffix,[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix[dir=rtl],[dir=rtl] .mdc-text-field__affix--suffix{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl],[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled .mdc-text-field__ripple:after,.mdc-text-field--filled .mdc-text-field__ripple:before{background-color:rgba(0,0,0,.87);background-color:var(--mdc-ripple-color,rgba(0,0,0,.87))}.mdc-text-field--filled.mdc-ripple-surface--hover .mdc-text-field__ripple:before,.mdc-text-field--filled:hover .mdc-text-field__ripple:before{opacity:.04;opacity:var(--mdc-ripple-hover-opacity,.04)}.mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple:before,.mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple:before{opacity:.12;opacity:var(--mdc-ripple-focus-opacity,.12);transition-duration:75ms}.mdc-text-field--filled:before{content:"";display:inline-block;height:40px;vertical-align:0;width:0}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#f5f5f5}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border-bottom-color:rgba(0,0,0,.42)}.mdc-text-field--filled:not(.mdc-text-field--disabled):hover .mdc-line-ripple:before{border-bottom-color:rgba(0,0,0,.87)}.mdc-text-field--filled .mdc-line-ripple:after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary,#6200ee)}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}.mdc-text-field--filled .mdc-floating-label[dir=rtl],[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--no-label:before{display:none}@supports(-webkit-hyphens:none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem;transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem;transform:translateY(-34.75px) scale(.75)}.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined .25s 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(0) translateY(-34.75px) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(4%) translateY(-34.75px) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(-4%) translateY(-34.75px) scale(.75)}to{transform:translateX(0) translateY(-34.75px) scale(.75)}}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:rgba(0,0,0,.38)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0,0,0,.87)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:#6200ee;border-color:var(--mdc-theme-primary,#6200ee)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small,4px);border-bottom-right-radius:0;border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small,4px);border-top-right-radius:0}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl],[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-bottom-left-radius:0;border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small,4px);border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small,4px)}@supports(top:max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small,4px))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-bottom-left-radius:0;border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small,4px);border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small,4px)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl],[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small,4px);border-bottom-right-radius:0;border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small,4px);border-top-right-radius:0}@supports(top:max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small,4px))}.mdc-text-field--outlined,.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small,4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top:max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small,4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl],[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:0}@supports(top:max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl],[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:max(16px,var(--mdc-shape-small,4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top:max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl],[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:0}@supports(top:max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl],[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-text-field__ripple:after,.mdc-text-field--outlined .mdc-text-field__ripple:before{background-color:transparent;background-color:var(--mdc-ripple-color,transparent)}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}.mdc-text-field--outlined .mdc-floating-label[dir=rtl],[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--outlined .mdc-text-field__input{background-color:transparent;border:none!important;display:flex}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{align-items:center;flex-direction:column;height:auto;padding:0;transition:none;width:auto}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{box-sizing:border-box;flex-grow:1;height:auto;line-height:1.5rem;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;padding:0 16px;resize:none}.mdc-text-field--textarea.mdc-text-field--filled:before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled .25s 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(0) translateY(-10.25px) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(4%) translateY(-10.25px) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(-4%) translateY(-10.25px) scale(.75)}to{transform:translateX(0) translateY(-10.25px) scale(.75)}}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-bottom:9px;margin-top:23px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-bottom:16px;margin-top:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem;transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem;transform:translateY(-24.75px) scale(.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined .25s 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(0) translateY(-24.75px) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(4%) translateY(-24.75px) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(-4%) translateY(-24.75px) scale(.75)}to{transform:translateX(0) translateY(-24.75px) scale(.75)}}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-bottom:16px;margin-top:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter:after{content:"";display:inline-block;height:16px;vertical-align:-16px;width:0}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter:before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl],[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input{transform:translateX(1px) translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}.mdc-text-field--with-leading-icon[dir=rtl],[dir=rtl] .mdc-text-field--with-leading-icon{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{left:48px;max-width:calc(100% - 48px);right:auto}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl],[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{left:auto;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(133.33333% - 85.33333px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:auto}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl],[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:auto;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl],[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(32px) scale(.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon .25s 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(-32px) translateY(-34.75px) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(.75)}to{transform:translateX(-32px) translateY(-34.75px) scale(.75)}}.mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon .25s 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(32px) translateY(-34.75px) scale(.75)}33%{animation-timing-function:cubic-bezier(.5,0,.701732,.495819);transform:translateX(calc(4% + 32px)) translateY(-34.75px) scale(.75)}66%{animation-timing-function:cubic-bezier(.302435,.381352,.55,.956352);transform:translateX(calc(-4% + 32px)) translateY(-34.75px) scale(.75)}to{transform:translateX(32px) translateY(-34.75px) scale(.75)}}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}.mdc-text-field--with-trailing-icon[dir=rtl],[dir=rtl] .mdc-text-field--with-trailing-icon{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(133.33333% - 85.33333px)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(133.33333% - 128px)}.mdc-text-field-helper-line{box-sizing:border-box;display:flex;justify-content:space-between}.mdc-text-field+.mdc-text-field-helper-line{padding-left:16px;padding-right:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label{color:rgba(98,0,238,.87)}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple:after,.mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-line-ripple:before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error,#b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error,#b00020)}.mdc-text-field--invalid .mdc-text-field__input{caret-color:#b00020;caret-color:var(--mdc-theme-error,#b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__icon--trailing{color:#b00020;color:var(--mdc-theme-error,#b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error,#b00020)}.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error,#b00020)}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}.mdc-text-field--disabled .mdc-text-field__input{color:rgba(0,0,0,.38)}@media{.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:rgba(0,0,0,.38)}}@media{.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:rgba(0,0,0,.38)}}.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:rgba(0,0,0,.38)}.mdc-text-field--disabled .mdc-text-field__icon--leading,.mdc-text-field--disabled .mdc-text-field__icon--trailing{color:rgba(0,0,0,.3)}.mdc-text-field--disabled .mdc-text-field__affix--prefix,.mdc-text-field--disabled .mdc-text-field__affix--suffix{color:rgba(0,0,0,.38)}.mdc-text-field--disabled .mdc-line-ripple:before{border-bottom-color:rgba(0,0,0,.06)}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:rgba(0,0,0,.06)}@media (-ms-high-contrast:active),screen and (forced-colors:active){.mdc-text-field--disabled .mdc-text-field__input::placeholder{color:GrayText}}@media (-ms-high-contrast:active),screen and (forced-colors:active){.mdc-text-field--disabled .mdc-text-field__input:-ms-input-placeholder{color:GrayText}}@media (-ms-high-contrast:active),screen and (forced-colors:active){.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--disabled .mdc-text-field-character-counter,.mdc-text-field--disabled .mdc-text-field__affix--prefix,.mdc-text-field--disabled .mdc-text-field__affix--suffix,.mdc-text-field--disabled .mdc-text-field__icon--leading,.mdc-text-field--disabled .mdc-text-field__icon--trailing,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-character-counter,.mdc-text-field--disabled+.mdc-text-field-helper-line .mdc-text-field-helper-text{color:GrayText}.mdc-text-field--disabled .mdc-line-ripple:before{border-bottom-color:GrayText}.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:GrayText}}@media screen and (forced-colors:active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled{background-color:#fafafa}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl],[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input{text-align:left}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input{direction:ltr}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading{order:1}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix{order:2}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input{order:3}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix{order:4}.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing{order:5}.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix,[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-right:12px}.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix,[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px}.smui-text-field--standard{height:56px;padding:0}.smui-text-field--standard:before{content:"";display:inline-block;height:40px;vertical-align:0;width:0}.smui-text-field--standard:not(.mdc-text-field--disabled){background-color:transparent}.smui-text-field--standard:not(.mdc-text-field--disabled) .mdc-line-ripple:before{border-bottom-color:rgba(0,0,0,.42)}.smui-text-field--standard:not(.mdc-text-field--disabled):hover .mdc-line-ripple:before{border-bottom-color:rgba(0,0,0,.87)}.smui-text-field--standard .mdc-line-ripple:after{border-bottom-color:#6200ee;border-bottom-color:var(--mdc-theme-primary,#6200ee)}.smui-text-field--standard .mdc-floating-label{left:0;right:auto}.smui-text-field--standard .mdc-floating-label[dir=rtl],[dir=rtl] .smui-text-field--standard .mdc-floating-label{left:auto;right:0}.smui-text-field--standard .mdc-floating-label--float-above{transform:translateY(-106%) scale(.75)}.smui-text-field--standard.mdc-text-field--no-label .mdc-text-field__input{height:100%}.smui-text-field--standard.mdc-text-field--no-label .mdc-floating-label,.smui-text-field--standard.mdc-text-field--no-label:before{display:none}@supports(-webkit-hyphens:none){.smui-text-field--standard.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--with-leading-icon.smui-text-field--standard .mdc-floating-label{left:32px;max-width:calc(100% - 32px);right:auto}.mdc-text-field--with-leading-icon.smui-text-field--standard .mdc-floating-label[dir=rtl],[dir=rtl] .mdc-text-field--with-leading-icon.smui-text-field--standard .mdc-floating-label{left:auto;right:32px}.mdc-text-field--with-leading-icon.smui-text-field--standard .mdc-floating-label--float-above{max-width:calc(133.33333% - 64px)}.mdc-text-field--with-trailing-icon.smui-text-field--standard .mdc-floating-label{max-width:calc(100% - 36px)}.mdc-text-field--with-trailing-icon.smui-text-field--standard .mdc-floating-label--float-above{max-width:calc(133.33333% - 48px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.smui-text-field--standard .mdc-floating-label{max-width:calc(100% - 68px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.smui-text-field--standard .mdc-floating-label--float-above{max-width:calc(133.33333% - 90.66667px)}.mdc-text-field+.mdc-text-field-helper-line{padding-left:0;padding-right:0}.mdc-text-field-character-counter{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size,.75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing,.0333333333em);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height,1.25rem);line-height:normal;margin-left:auto;margin-right:0;margin-top:0;padding-left:16px;padding-right:0;text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);white-space:nowrap}.mdc-text-field-character-counter:before{content:"";display:inline-block;height:16px;vertical-align:0;width:0}.mdc-text-field-character-counter[dir=rtl],[dir=rtl] .mdc-text-field-character-counter{margin-left:0;margin-right:auto;padding-left:0;padding-right:16px}.mdc-text-field-helper-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-caption-font-family,var(--mdc-typography-font-family,Roboto,sans-serif));font-size:.75rem;font-size:var(--mdc-typography-caption-font-size,.75rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight,400);letter-spacing:.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing,.0333333333em);line-height:1.25rem;line-height:var(--mdc-typography-caption-line-height,1.25rem);line-height:normal;margin:0;opacity:0;text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration,inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform,inherit);transition:opacity .15s cubic-bezier(.4,0,.2,1) 0ms;will-change:opacity}.mdc-text-field-helper-text:before{content:"";display:inline-block;height:16px;vertical-align:0;width:0}.mdc-text-field-helper-text--persistent{opacity:1;transition:none;will-change:auto}.mdc-text-field__icon{align-self:center;cursor:pointer}.mdc-text-field__icon:not([tabindex]),.mdc-text-field__icon[tabindex="-1"]{cursor:default;pointer-events:none}.mdc-text-field__icon svg{display:block}.mdc-text-field__icon--leading{margin-left:16px;margin-right:8px}.mdc-text-field__icon--leading[dir=rtl],[dir=rtl] .mdc-text-field__icon--leading{margin-left:8px;margin-right:16px}.mdc-text-field__icon--trailing{margin-left:0;margin-right:0;padding:12px}.mdc-text-field__icon--trailing[dir=rtl],[dir=rtl] .mdc-text-field__icon--trailing{margin-left:0;margin-right:0}.smui-text-field--standard .mdc-text-field__icon--leading{margin-left:0;margin-right:8px}.smui-text-field--standard .mdc-text-field__icon--leading[dir=rtl],[dir=rtl] .smui-text-field--standard .mdc-text-field__icon--leading{margin-left:8px;margin-right:0}.smui-text-field--standard .mdc-text-field__icon--trailing{margin-left:0;margin-right:0;padding:12px 0 12px 12px}.smui-text-field--standard .mdc-text-field__icon--trailing[dir=rtl],[dir=rtl] .smui-text-field--standard .mdc-text-field__icon--trailing{margin-left:0;margin-right:0;padding-left:0;padding-right:12px}';N0(w5,{});var S5=":root{--cosmograph-search-text-color:#fff;--cosmograph-search-list-background:#222;--cosmograph-search-font-family:inherit;--cosmograph-search-input-background:#222;--cosmograph-search-mark-background:hsla(0,0%,100%,.2);--cosmograph-search-accessor-background:hsla(0,0%,100%,.2);--cosmograph-search-interactive-background:hsla(0,0%,100%,.4);--cosmograph-search-hover-color:hsla(0,0%,100%,.05)}.search-icon.svelte-1xknafk.svelte-1xknafk{color:var(--cosmograph-search-text-color)!important;opacity:.6}.search.svelte-1xknafk .cosmograph-search-accessor{align-content:center;background-color:var(--cosmograph-search-accessor-background);border-radius:10px;color:var(--cosmograph-search-text-color);cursor:pointer;display:flex;display:block;font-size:12px;font-style:normal;justify-content:center;line-height:1;margin-right:.5rem;overflow:hidden;padding:5px 8px;text-overflow:ellipsis;transition:background .15s linear;white-space:nowrap;z-index:1}.search.svelte-1xknafk .cosmograph-search-accessor.active,.search.svelte-1xknafk .cosmograph-search-accessor:hover{background-color:var(--cosmograph-search-interactive-background)}.search.svelte-1xknafk .disabled{cursor:default;pointer-events:none}.search.svelte-1xknafk.svelte-1xknafk{background:var(--cosmograph-search-input-background);display:flex;flex-direction:column;font-family:var(--cosmograph-search-font-family),sans-serif;text-align:left;width:100%}.search.svelte-1xknafk mark{background:var(--cosmograph-search-mark-background);border-radius:2px;color:var(--cosmograph-search-text-color);padding:1px 0}.search.svelte-1xknafk .cosmograph-search-match{-webkit-box-orient:vertical;cursor:pointer;display:-webkit-box;line-height:1.35;overflow:hidden;padding:calc(var(--margin-v)*1px) calc(var(--margin-h)*1px);text-overflow:ellipsis;white-space:normal}.search.svelte-1xknafk .cosmograph-search-match:hover{background:var(--cosmograph-search-hover-color)}.search.svelte-1xknafk .cosmograph-search-result{display:inline;font-size:12px;font-weight:600;text-transform:uppercase}.search.svelte-1xknafk .cosmograph-search-result>span{font-weight:400;letter-spacing:1;margin-left:4px}.search.svelte-1xknafk .cosmograph-search-result>span>t{margin-right:4px}.search.svelte-1xknafk .mdc-menu-surface{background-color:var(--cosmograph-search-list-background)!important;max-height:none!important}.search.svelte-1xknafk .openListUpwards.svelte-1xknafk .mdc-menu-surface{bottom:55px!important;top:unset!important}.search.svelte-1xknafk .mdc-text-field__input{caret-color:var(--cosmograph-search-text-color)!important;height:100%;letter-spacing:-.01em;line-height:2;line-height:2!important;padding-top:15px!important}.search.svelte-1xknafk .mdc-floating-label,.search.svelte-1xknafk .mdc-text-field__input{color:var(--cosmograph-search-text-color)!important;font-family:var(--cosmograph-search-font-family),sans-serif!important}.search.svelte-1xknafk .mdc-floating-label{opacity:.65;pointer-events:none!important}.search.svelte-1xknafk .mdc-line-ripple:after,.search.svelte-1xknafk .mdc-line-ripple:before{border-bottom-color:var(--cosmograph-search-text-color)!important;opacity:.1}.search.svelte-1xknafk .mdc-deprecated-list{background:var(--cosmograph-search-list-background);color:var(--cosmograph-search-text-color)!important;font-size:14px!important;padding-top:4px!important}.search.svelte-1xknafk .mdc-deprecated-list-item{height:28px!important}.search.svelte-1xknafk .mdc-text-field__icon--leading{margin-right:10px!important}.search.svelte-1xknafk .mdc-floating-label--float-above{left:26px!important;pointer-events:none!important}.search.svelte-1xknafk .mdc-text-field__icon--trailing{cursor:default!important;max-width:35%}.search.svelte-1xknafk .cosmograph-search-first-field{font-size:12.5px;font-weight:400;opacity:.8;text-transform:uppercase}";N0(S5,{});function dx(i,e,t){const n=i.slice();return n[53]=e[t],n[52]=t,n}function fx(i,e,t){const n=i.slice();return n[50]=e[t],n[52]=t,n}function A5(i){let e,t,n;return t=new x5({}),{c(){e=_a("div"),la(t.$$.fragment),Fa(e,"class","search-icon svelte-1xknafk")},m(l,s){Un(l,e,s),Jr(t,e,null),n=!0},p:hl,i(l){n||(ji(t.$$.fragment,l),n=!0)},o(l){rn(t.$$.fragment,l),n=!1},d(l){l&&Bn(e),ea(t)}}}function E5(i){let e,t;return e=new gw({props:{slot:"leadingIcon",$$slots:{default:[A5]},$$scope:{ctx:i}}}),{c(){la(e.$$.fragment)},m(n,l){Jr(e,n,l),t=!0},p(n,l){const s={};16777216&l[1]&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||(ji(e.$$.fragment,n),t=!0)},o(n){rn(e.$$.fragment,n),t=!1},d(n){ea(e,n)}}}function ux(i){let e,t,n=i[11].label+"";return{c(){e=_a("div"),t=md(n),Fa(e,"class","cosmograph-search-accessor"),xf(e,"active",i[2]),xf(e,"disabled",!i[9])},m(l,s){Un(l,e,s),ds(e,t)},p(l,s){2048&s[0]&&n!==(n=l[11].label+"")&&eu(t,n),4&s[0]&&xf(e,"active",l[2]),512&s[0]&&xf(e,"disabled",!l[9])},d(l){l&&Bn(e)}}}function T5(i){let e,t=i[11]&&ux(i);return{c(){t&&t.c(),e=$o()},m(n,l){t&&t.m(n,l),Un(n,e,l)},p(n,l){n[11]?t?t.p(n,l):(t=ux(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&Bn(e)}}}function O5(i){let e,t;return e=new gw({props:{role:"button",style:"display: flex;",slot:"trailingIcon",$$slots:{default:[T5]},$$scope:{ctx:i}}}),e.$on("SMUITextField:icon",i[14]),{c(){la(e.$$.fragment)},m(n,l){Jr(e,n,l),t=!0},p(n,l){const s={};2564&l[0]|16777216&l[1]&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||(ji(e.$$.fragment,n),t=!0)},o(n){rn(e.$$.fragment,n),t=!1},d(n){ea(e,n)}}}function k5(i){let e,t,n;return t=new m_({props:{$$slots:{default:[L5]},$$scope:{ctx:i}}}),{c(){e=_a("div"),la(t.$$.fragment),Sf(e,"pointer-events","none")},m(l,s){Un(l,e,s),Jr(t,e,null),n=!0},p(l,s){const c={};16777216&s[1]&&(c.$$scope={dirty:s,ctx:l}),t.$set(c)},i(l){n||(ji(t.$$.fragment,l),n=!0)},o(l){rn(t.$$.fragment,l),n=!1},d(l){l&&Bn(e),ea(t)}}}function C5(i){let e,t=[],n=new Map,l=i[4];const s=c=>c[52];for(let c=0;c<l.length;c+=1){let d=dx(i,l,c),u=s(d);n.set(u,t[c]=hx(u,d))}return{c(){for(let c=0;c<t.length;c+=1)t[c].c();e=$o()},m(c,d){for(let u=0;u<t.length;u+=1)t[u]&&t[u].m(c,d);Un(c,e,d)},p(c,d){655376&d[0]&&(l=c[4],t=dw(t,d,s,1,c,l,n,e.parentNode,Qz,hx,e,dx))},i:hl,o:hl,d(c){for(let d=0;d<t.length;d+=1)t[d].d(c);c&&Bn(e)}}}function z5(i){let e,t,n=i[1]?.accessors?.length&&mx(i);return{c(){n&&n.c(),e=$o()},m(l,s){n&&n.m(l,s),Un(l,e,s),t=!0},p(l,s){l[1]?.accessors?.length?n?(n.p(l,s),2&s[0]&&ji(n,1)):(n=mx(l),n.c(),ji(n,1),n.m(e.parentNode,e)):n&&(Ws(),rn(n,1,1,()=>{n=null}),js())},i(l){t||(ji(n),t=!0)},o(l){rn(n),t=!1},d(l){n&&n.d(l),l&&Bn(e)}}}function I5(i){let e;return{c(){e=md("No matches found")},m(t,n){Un(t,e,n)},d(t){t&&Bn(e)}}}function L5(i){let e,t;return e=new pw({props:{$$slots:{default:[I5]},$$scope:{ctx:i}}}),{c(){la(e.$$.fragment)},m(n,l){Jr(e,n,l),t=!0},p(n,l){const s={};16777216&l[1]&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||(ji(e.$$.fragment,n),t=!0)},o(n){rn(e.$$.fragment,n),t=!1},d(n){ea(e,n)}}}function hx(i,e){let t,n,l,s,c,d=e[19](e[53])+"";return{key:i,first:null,c(){t=_a("div"),n=_a("div"),l=zl(),Fa(t,"class","cosmograph-search-match"),Sf(t,"--margin-v",B5),Sf(t,"--margin-h",H5),this.first=t},m(u,h){Un(u,t,h),ds(t,n),n.innerHTML=d,ds(t,l),s||(c=[Il(t,"click",function(){Bl(e[17](e[53]))&&e[17](e[53]).apply(this,arguments)}),Il(t,"keydown",function(){Bl(e[17](e[53]))&&e[17](e[53]).apply(this,arguments)})],s=!0)},p(u,h){e=u,16&h[0]&&d!==(d=e[19](e[53])+"")&&(n.innerHTML=d)},d(u){u&&Bn(t),s=!1,us(c)}}}function mx(i){let e,t,n,l,s,c=[],d=new Map;t=new m_({props:{$$slots:{default:[R5]},$$scope:{ctx:i}}});let u=i[1]?.accessors;const h=m=>m[52];for(let m=0;m<u.length;m+=1){let b=fx(i,u,m),g=h(b);d.set(g,c[m]=px(g,b))}return{c(){e=_a("div"),la(t.$$.fragment),n=zl();for(let m=0;m<c.length;m+=1)c[m].c();l=$o(),Sf(e,"pointer-events","none"),Sf(e,"font-size","10px",1)},m(m,b){Un(m,e,b),Jr(t,e,null),Un(m,n,b);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(m,b);Un(m,l,b),s=!0},p(m,b){const g={};16777216&b[1]&&(g.$$scope={dirty:b,ctx:m}),t.$set(g),8194&b[0]&&(u=m[1]?.accessors,Ws(),c=dw(c,b,h,1,m,u,d,l.parentNode,Kz,px,l,fx),js())},i(m){if(!s){ji(t.$$.fragment,m);for(let b=0;b<u.length;b+=1)ji(c[b]);s=!0}},o(m){rn(t.$$.fragment,m);for(let b=0;b<c.length;b+=1)rn(c[b]);s=!1},d(m){m&&Bn(e),ea(t),m&&Bn(n);for(let b=0;b<c.length;b+=1)c[b].d(m);m&&Bn(l)}}}function R5(i){let e;return{c(){e=_a("div"),e.textContent="select accessor to search",Fa(e,"class","cosmograph-search-result")},m(t,n){Un(t,e,n)},p:hl,d(t){t&&Bn(e)}}}function F5(i){let e,t=i[50].label+"";return{c(){e=md(t)},m(n,l){Un(n,e,l)},p(n,l){2&l[0]&&t!==(t=n[50].label+"")&&eu(e,t)},d(n){n&&Bn(e)}}}function M5(i){let e,t,n;return e=new pw({props:{$$slots:{default:[F5]},$$scope:{ctx:i}}}),{c(){la(e.$$.fragment),t=zl()},m(l,s){Jr(e,l,s),Un(l,t,s),n=!0},p(l,s){const c={};2&s[0]|16777216&s[1]&&(c.$$scope={dirty:s,ctx:l}),e.$set(c)},i(l){n||(ji(e.$$.fragment,l),n=!0)},o(l){rn(e.$$.fragment,l),n=!1},d(l){ea(e,l),l&&Bn(t)}}}function px(i,e){let t,n,l;return n=new m_({props:{$$slots:{default:[M5]},$$scope:{ctx:e}}}),n.$on("click",function(){Bl(e[13](e[50],e[52]))&&e[13](e[50],e[52]).apply(this,arguments)}),{key:i,first:null,c(){t=$o(),la(n.$$.fragment),this.first=t},m(s,c){Un(s,t,c),Jr(n,s,c),l=!0},p(s,c){e=s;const d={};2&c[0]|16777216&c[1]&&(d.$$scope={dirty:c,ctx:e}),n.$set(d)},i(s){l||(ji(n.$$.fragment,s),l=!0)},o(s){rn(n.$$.fragment,s),l=!1},d(s){s&&Bn(t),ea(n,s)}}}function D5(i){let e,t,n,l;const s=[z5,C5,k5],c=[];function d(u,h){return u[2]?0:u[4].length?1:2}return t=d(i),n=c[t]=s[t](i),{c(){e=_a("div"),n.c()},m(u,h){Un(u,e,h),c[t].m(e,null),i[28](e),l=!0},p(u,h){let m=t;t=d(u),t===m?c[t].p(u,h):(Ws(),rn(c[m],1,1,()=>{c[m]=null}),js(),n=c[t],n?n.p(u,h):(n=c[t]=s[t](u),n.c()),ji(n,1),n.m(e,null))},i(u){l||(ji(n),l=!0)},o(u){rn(n),l=!1},d(u){u&&Bn(e),c[t].d(),i[28](null)}}}function N5(i){let e,t;return e=new zI({props:{style:"max-height: "+i[8]+"px; transition: max-height 0.1s linear;",$$slots:{default:[D5]},$$scope:{ctx:i}}}),{c(){la(e.$$.fragment)},m(n,l){Jr(e,n,l),t=!0},p(n,l){const s={};256&l[0]&&(s.style="max-height: "+n[8]+"px; transition: max-height 0.1s linear;"),86&l[0]|16777216&l[1]&&(s.$$scope={dirty:l,ctx:n}),e.$set(s)},i(n){t||(ji(e.$$.fragment,n),t=!0)},o(n){rn(e.$$.fragment,n),t=!1},d(n){ea(e,n)}}}function $5(i){let e,t,n,l,s,c,d,u,h;function m(X){i[26](X)}function b(X){i[27](X)}let g={style:"opacity: "+(i[1].isDisabled?.5:1),label:i[1].placeholder,$$slots:{trailingIcon:[O5],leadingIcon:[E5]},$$scope:{ctx:i}};function _(X){i[29](X)}i[0]!==void 0&&(g.value=i[0]),i[12]!==void 0&&(g.disabled=i[12]),t=new K6({props:g}),i[25](t),Or.push(()=>Wc(t,"value",m)),Or.push(()=>Wc(t,"disabled",b)),t.$on("click",i[18]),t.$on("focus",i[20]),t.$on("input",i[16]),t.$on("keydown",i[15]);let z={style:"width: 100%; bottom: initial;",$$slots:{default:[N5]},$$scope:{ctx:i}};return i[3]!==void 0&&(z.open=i[3]),d=new b5({props:z}),Or.push(()=>Wc(d,"open",_)),i[30](d),{c(){e=_a("div"),la(t.$$.fragment),s=zl(),c=_a("div"),la(d.$$.fragment),Sf(c,"position","relative"),Fa(c,"class","svelte-1xknafk"),xf(c,"openListUpwards",i[1].openListUpwards),xf(c,"accessors",i[2]),Fa(e,"class","search svelte-1xknafk")},m(X,y){Un(X,e,y),Jr(t,e,null),ds(e,s),ds(e,c),Jr(d,c,null),i[31](e),h=!0},p(X,y){const E={};2&y[0]&&(E.style="opacity: "+(X[1].isDisabled?.5:1)),2&y[0]&&(E.label=X[1].placeholder),2564&y[0]|16777216&y[1]&&(E.$$scope={dirty:y,ctx:X}),!n&&1&y[0]&&(n=!0,E.value=X[0],Vc(()=>n=!1)),!l&&4096&y[0]&&(l=!0,E.disabled=X[12],Vc(()=>l=!1)),t.$set(E);const T={};342&y[0]|16777216&y[1]&&(T.$$scope={dirty:y,ctx:X}),!u&&8&y[0]&&(u=!0,T.open=X[3],Vc(()=>u=!1)),d.$set(T),(!h||2&y[0])&&xf(c,"openListUpwards",X[1].openListUpwards),(!h||4&y[0])&&xf(c,"accessors",X[2])},i(X){h||(ji(t.$$.fragment,X),ji(d.$$.fragment,X),h=!0)},o(X){rn(t.$$.fragment,X),rn(d.$$.fragment,X),h=!1},d(X){X&&Bn(e),i[25](null),ea(t),i[30](null),ea(d),i[31](null)}}}const B5=4,H5=12;function P5(i,e,t){let n;var l,s;const c=qz();let d,u,h,m,b,g,{config:_}=e,{data:z=[]}=e,{textInput:X=""}=e,y=!0,E=!1,T=!1,w=[];const I=new Set,K=new DOMParser;let U;const Y=A=>{if(!z)return;if(!A.trim())return void t(4,w=[]);let O=0;const k=new RegExp(gv(A),"i"),C=ee=>String(U.accessor(ee));t(4,w=z.filter(ee=>{if(_.limitSuggestions&&O>=_.limitSuggestions)return!1;const Re=C(ee).match(k);return Re&&(O+=1),Re})),w.length>0&&w.sort((ee,Re)=>{const ge=C(ee).toLowerCase(),F=C(Re).toLowerCase(),H=A.toLowerCase();if(ge===H&&F!==H)return-1;if(F===H&&ge!==H)return 1;const R=ge.indexOf(H),$=F.indexOf(H);return R!==$?R-$:ge.localeCompare(F)}),c(cd.Input,w)},J=A=>{return RegExp.prototype.test.bind(/(<([^>]+)>)/i)(A)?(O=A,K.parseFromString(O,"text/html").documentElement.textContent||""):A;var O},S=A=>A.replace(/[&<>]/g,O=>({"&":"&amp;","<":"&lt;",">":"&gt;"})[O]||O),Q=(A,O)=>{const k=J(A),C=_&&_.truncateValues?_.truncateValues:k.length,ee=(q=>new RegExp(gv(q),"i"))(X),Re=O?((q,se)=>q.search(se))(k,ee):-1;if(Re===-1)return k.substring(0,+C)+(k.length>C?"...":"");const{startPosition:ge,endPosition:F}=((q,se,te)=>{let qe=Math.max(0,q-Math.floor(se/2));const we=Math.min(te,qe+se);return we-q<se/2&&(qe=Math.max(0,we-se)),{startPosition:qe,endPosition:we}})(Re,+C,k.length),H=k.substring(ge,F),R=ge>0?"...":"",$=F<k.length?"...":"";return`${R}${O?H.replace(ee,q=>`<mark>${q}</mark>`):H}${$}`},ae=()=>{setTimeout(()=>{var A;let O,k=0;const C=(A=_.maxVisibleItems)!==null&&A!==void 0?A:gm.maxVisibleItems;u.querySelectorAll(`.cosmograph-search-match:nth-child(-n+${C})`).forEach(ee=>{k+=ee.offsetHeight}),k=w.length?k+6:46,O=_.openListUpwards?h.getBoundingClientRect().top-window.scrollY-60:window.innerHeight-h.getBoundingClientRect().bottom-60,k>O&&(k=O),t(8,b=k)},0)},x=()=>{setTimeout(()=>{var A;let O=0;const k=(A=_.maxVisibleItems)!==null&&A!==void 0?A:gm.maxVisibleItems;u.querySelectorAll(`li:nth-child(-n+${k})`).forEach(C=>{O+=C.offsetHeight}),t(8,b=O+24)},0)};return Lc(()=>{m=new m0(()=>{m&&u&&(w&&ae(),E&&x())}),m.observe(h)}),tu(()=>{m.disconnect()}),i.$$set=A=>{"config"in A&&t(1,_=A.config),"data"in A&&t(21,z=A.data),"textInput"in A&&t(0,X=A.textInput)},i.$$.update=()=>{if(25165826&i.$$.dirty[0]){t(11,U=(()=>{var O,k,C;return _.activeAccessorIndex!=null&&(!((O=_.accessors)===null||O===void 0)&&O[_.activeAccessorIndex])?_.accessors[_.activeAccessorIndex]:U&&_.accessors?_.accessors.find(ee=>ee===U)||((k=_.accessors)===null||k===void 0?void 0:k[0]):(C=_.accessors)===null||C===void 0?void 0:C[0]})());const A=t(24,s=t(23,l=_.accessors)===null||l===void 0?void 0:l.length)!==null&&s!==void 0?s:0;t(9,y=A>1)}12&i.$$.dirty[0]&&E&&!T&&setTimeout(()=>{t(2,E=!1)},100),2097158&i.$$.dirty[0]&&t(12,n=!z.length||E||!!_.isDisabled),16&i.$$.dirty[0]&&w&&ae(),4&i.$$.dirty[0]&&E&&x()},[X,_,E,T,w,d,u,h,b,y,g,U,n,(A,O)=>{_.activeAccessorIndex===void 0&&t(11,U=A),g?.setOpen(!1),setTimeout(()=>{t(2,E=!1)},100),c(cd.AccessorSelect,{index:O,accessor:U})},()=>{y&&(t(0,X=""),g?.setOpen(!1),setTimeout(()=>{g?.setOpen(!0),t(2,E=!0)},100))},A=>{A.key==="Enter"&&_.minMatch!==void 0&&X.length>=_.minMatch&&c(cd.Enter,{textInput:X,accessor:U})},A=>{const O=A?.target;E||(_.minMatch!==void 0&&O.value.length<_.minMatch?g?.setOpen(!1):(g?.setOpen(!0),Y(O.value)))},A=>O=>{document.activeElement!==null&&document.activeElement.blur(),g.setOpen(!1),I.size>=5&&I.delete(I.values().next().value),I.add(A),c(cd.Select,A)},()=>{setTimeout(()=>{E||T||X.length!==0||(I.size?t(4,w=Array.from(I)):z.length&&t(4,w=z.slice(0,_.maxVisibleItems)),g.setOpen(!0))},110)},A=>(O=>{var k;const{[U.label]:C,...ee}=O;if(Object.keys(ee).length>0){const Re=(k=_.matchPalette)!==null&&k!==void 0?k:gm.matchPalette,ge=H=>`color: ${Re[H%Re.length]}`,F=Object.entries(ee).map(([H,R],$)=>{const q=Q(typeof R=="object"?JSON.stringify(R):String(R));return`<span style="${ge($)}"><t>·</t><b>${S(H)}</b>: ${q}</span>`});return`
981
+ <span class="cosmograph-search-first-field"><b>${S(U.label)}</b>:</span>
982
+ ${Q(String(C),!0)}
983
+ <div class='cosmograph-search-result'>
984
+ ${F.join("")}
985
+ </div>
986
+ `}return Q(String(C),!0)})((O=>{const k={},C=Object.keys(O),ee=U.accessor(O);if(ee&&(k[U.label]=ee),!_.ordering||!_.ordering.order&&!_.ordering.include){const F=Object.entries(O).findIndex(([H,R])=>U.accessor({[H]:R}));F!==-1&&C.splice(F,1);for(const H of C)k[H]=O[H];return k}const Re=_.ordering.order||[];let ge=_.ordering.include?new Set(_.ordering.include):null;if(ge||(ge=new Set(C)),Re.length>0)for(const F of Re)F in O&&(k[F]=O[F]);for(const F in O)!Object.prototype.hasOwnProperty.call(k,F)&&ge.has(F)&&(k[F]=O[F]);return k})(A)),A=>{A.preventDefault()},z,A=>{g?.setOpen(A)},l,s,function(A){Or[A?"unshift":"push"](()=>{d=A,t(5,d)})},function(A){X=A,t(0,X)},function(A){n=A,t(12,n),t(21,z),t(2,E),t(1,_),t(3,T)},function(A){Or[A?"unshift":"push"](()=>{u=A,t(6,u)})},function(A){T=A,t(3,T)},function(A){Or[A?"unshift":"push"](()=>{g=A,t(10,g)})},function(A){Or[A?"unshift":"push"](()=>{h=A,t(7,h)})}]}class U5 extends So{constructor(e){super(),wo(this,e,P5,$5,Rs,{config:1,data:21,textInput:0,setListState:22},null,[-1,-1])}get setListState(){return this.$$.ctx[22]}}let G5=class{constructor(e,t){this._config={},this._containerNode=e,this._config=Ic(gm,t??{}),this._search=new U5({target:e,props:{config:this._config}}),this._search.$on(cd.Input,({detail:n})=>{var l,s;return(s=(l=this._config.events)===null||l===void 0?void 0:l.onSearch)===null||s===void 0?void 0:s.call(l,n)}),this._search.$on(cd.Select,({detail:n})=>{var l,s;return(s=(l=this._config.events)===null||l===void 0?void 0:l.onSelect)===null||s===void 0?void 0:s.call(l,n)}),this._search.$on(cd.Enter,({detail:n})=>{var l,s;return(s=(l=this._config.events)===null||l===void 0?void 0:l.onEnter)===null||s===void 0?void 0:s.call(l,n)}),this._search.$on(cd.AccessorSelect,({detail:n})=>{var l,s;return(s=(l=this._config.events)===null||l===void 0?void 0:l.onAccessorSelect)===null||s===void 0?void 0:s.call(l,n)})}setData(e){this._search.$set({data:e,textInput:""})}setConfig(e){this._config=Ic(gm,e??{}),this._search.$set({config:this._config,textInput:""})}setListState(e){this._search.setListState(e)}clearInput(){this._search.$set({textInput:""})}getConfig(){return this._config}destroy(){this._containerNode.innerHTML=""}};const V5='<svg fill="currentColor" height="11" viewBox="0 0 163 11" width="163" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor"><path d="m2.45674 8-1.925002-5.379h.924002l1.617 4.73h.154l1.617-4.73h.924l-1.925 5.379z"/><path d="m7.02243 8v-5.379h.869v5.379zm.44-6.215c-.19067 0-.352-.06233-.484-.187-.12467-.12467-.187-.28233-.187-.473 0-.198.06233-.359333.187-.484.132-.124667.29333-.187.484-.187.19066 0 .34833.062333.473.187.12466.124667.187.286.187.484 0 .19067-.06234.34833-.187.473-.12467.12467-.28234.187-.473.187z"/><path d="m11.8857 8.154c-.6673 0-1.232-.154-1.694-.462-.45465-.308-.72965-.79567-.82499-1.463l.82499-.187c.0587.352.1687.63067.33.836.1613.198.3593.341.594.429.242.08067.4987.121.77.121.4033 0 .7223-.08067.957-.242s.352-.37767.352-.649c0-.27867-.1137-.473-.341-.583-.22-.11733-.5243-.21267-.913-.286l-.451-.077c-.3447-.05867-.66-.15033-.946-.275s-.5133-.29333-.68199-.506c-.16866-.21267-.25299-.48033-.25299-.803 0-.484.18699-.86167.56098-1.133.374-.27133.869-.407 1.485-.407.6087 0 1.1.13933 1.474.418.3813.27133.627.65633.737 1.155l-.814.209c-.066-.38867-.2237-.66-.473-.814-.2493-.16133-.5573-.242-.924-.242s-.6563.06967-.869.209c-.2127.132-.319.33-.319.594 0 .25667.099.44733.297.572.2053.11733.4767.20533.814.264l.451.077c.3813.066.7223.15767 1.023.275.308.11.55.27133.726.484.1833.21267.275.49133.275.836 0 .528-.198.935-.594 1.221-.3887.286-.913.429-1.573.429z"/><path d="m17.5765 8.099c-.3887 0-.748-.08433-1.078-.253-.3227-.16867-.5793-.418-.77-.748-.1833-.33733-.275-.74433-.275-1.221v-3.256h.869v3.19c0 .53533.132.924.396 1.166.2713.242.6343.363 1.089.363.5133 0 .935-.16867 1.265-.506s.495-.83967.495-1.507v-2.706h.869v5.379h-.847v-.913h-.154c-.1173.25667-.319.49133-.605.704-.286.20533-.704.308-1.254.308z"/><path d="m23.9048 8.154c-.374 0-.715-.066-1.023-.198s-.55-.32267-.726-.572-.264-.55367-.264-.913c0-.36667.088-.66733.264-.902.176-.242.418-.42167.726-.539.308-.12467.6527-.187 1.034-.187h1.815v-.396c0-.38133-.1136-.682-.341-.902-.22-.22-.55-.33-.99-.33-.4326 0-.77.10633-1.012.319-.242.20533-.407.484-.495.836l-.814-.264c.088-.30067.2274-.572.418-.814.1907-.24933.4437-.44733.759-.594.3227-.154.7077-.231 1.155-.231.6894 0 1.2247.17967 1.606.539.3814.352.572.85067.572 1.496v2.431c0 .22.1027.33.308.33h.495v.737h-.759c-.242 0-.4363-.066-.583-.198-.1466-.13933-.22-.32267-.22-.55v-.055h-.132c-.0806.13933-.1906.286-.33.44-.132.14667-.3153.26767-.55.363-.2346.10267-.539.154-.913.154zm.099-.748c.5134 0 .9277-.15033 1.243-.451.3227-.308.484-.737.484-1.287v-.121h-1.782c-.3446 0-.6306.077-.858.231-.22.14667-.33.37033-.33.671s.1137.53533.341.704c.2347.16867.5354.253.902.253z"/><path d="m28.582 8v-7.7h.869v7.7z"/><path d="m31.2783 8v-5.379h.869v5.379zm.44-6.215c-.1907 0-.352-.06233-.484-.187-.1247-.12467-.187-.28233-.187-.473 0-.198.0623-.359333.187-.484.132-.124667.2933-.187.484-.187s.3483.062333.473.187.187.286.187.484c0 .19067-.0623.34833-.187.473s-.2823.187-.473.187z"/><path d="m33.7326 8v-1.122l3.421-3.377v-.121h-3.311v-.759h4.224v1.122l-3.432 3.377v.132h3.52v.748z"/><path d="m41.9601 8.154c-.5427 0-1.0194-.11367-1.43-.341-.4107-.23467-.7297-.561-.957-.979-.2274-.418-.341-.902-.341-1.452v-.132c0-.55733.1136-1.045.341-1.463.2273-.418.5426-.74067.946-.968.4033-.23467.8653-.352 1.386-.352.506 0 .9533.11 1.342.33.3886.21267.693.52067.913.924s.33.87633.33 1.419v.396h-4.389c.022.57933.209 1.034.561 1.364.352.32267.792.484 1.32.484.462 0 .8176-.10633 1.067-.319.2493-.21267.44-.46567.572-.759l.748.363c-.11.22733-.264.45467-.462.682-.1907.22733-.4437.418-.759.572-.308.154-.704.231-1.188.231zm-1.848-3.333h3.498c-.0294-.49867-.2017-.88733-.517-1.166-.308-.27867-.704-.418-1.188-.418-.4914 0-.8947.13933-1.21.418-.3154.27867-.5097.66733-.583 1.166z"/><path d="m48.2828 8.154c-.462 0-.8873-.11-1.276-.33-.3886-.22-.6966-.539-.924-.957-.2273-.418-.341-.913-.341-1.485v-.143c0-.572.1137-1.06333.341-1.474.2274-.418.5317-.737.913-.957.3887-.22733.8177-.341 1.287-.341.374 0 .6894.05133.946.154.264.09533.4767.22.638.374.1614.14667.286.30433.374.473h.154v-3.168h.869v7.7h-.847v-.891h-.154c-.1466.27133-.374.51333-.682.726s-.7406.319-1.298.319zm.231-.77c.5574 0 1.0084-.176 1.353-.528.352-.35933.528-.858.528-1.496v-.099c0-.638-.176-1.133-.528-1.485-.3446-.35933-.7956-.539-1.353-.539-.55 0-1.0046.17967-1.364.539-.352.352-.528.847-.528 1.485v.099c0 .638.176 1.13667.528 1.496.3594.352.814.528 1.364.528z"/><path d="m58.8911 8.154c-.5573 0-.9936-.10633-1.309-.319-.308-.21267-.5316-.45467-.671-.726h-.154v.891h-.847v-7.7h.869v3.168h.154c.088-.16867.2127-.32633.374-.473.1614-.154.3704-.27867.627-.374.264-.10267.583-.154.957-.154.4694 0 .8947.11367 1.276.341.3887.22.6967.539.924.957.2274.41067.341.902.341 1.474v.143c0 .572-.1173 1.067-.352 1.485-.2273.418-.5353.737-.924.957-.3813.22-.803.33-1.265.33zm-.231-.77c.5574 0 1.0084-.176 1.353-.528.352-.35933.528-.858.528-1.496v-.099c0-.638-.176-1.133-.528-1.485-.3446-.35933-.7956-.539-1.353-.539-.55 0-1.0046.17967-1.364.539-.352.352-.528.847-.528 1.485v.099c0 .638.176 1.13667.528 1.496.3594.352.814.528 1.364.528z"/><path d="m63.6382 10.2v-.77h3.08c.2127 0 .319-.11.319-.33v-1.958h-.154c-.0733.154-.187.308-.341.462-.1466.14667-.341.26767-.583.363-.242.088-.5463.132-.913.132-.3886 0-.748-.08433-1.078-.253-.3226-.16867-.5793-.418-.77-.748-.1833-.33-.275-.73333-.275-1.21v-3.267h.869v3.201c0 .528.132.913.396 1.155.2714.242.6344.363 1.089.363.5134 0 .935-.16867 1.265-.506s.495-.83967.495-1.507v-2.706h.869v6.633c0 .29333-.0843.52433-.253.693-.1613.1687-.3996.253-.715.253z"/><path d="m75.2998 8.154c-.9167 0-1.6464-.264-2.189-.792-.5427-.53533-.814-1.31267-.814-2.332v-1.76c0-1.01933.2713-1.793.814-2.321.5426-.535333 1.2723-.803 2.189-.803.9093 0 1.606.253 2.09.759.4913.506.737 1.199.737 2.079v.055h-.913v-.088c0-.57933-.1577-1.05233-.473-1.419-.308-.374-.7884-.561-1.441-.561-.6527 0-1.1624.20167-1.529.605-.3667.396-.55.95333-.55 1.672v1.804c0 .71867.1833 1.27967.55 1.683.3666.396.8763.594 1.529.594.6526 0 1.133-.18333 1.441-.55.3153-.374.473-.85067.473-1.43v-.176h.913v.143c0 .88-.2457 1.573-.737 2.079-.484.506-1.1807.759-2.09.759z"/><path d="m82.0934 8.154c-.5427 0-1.023-.11367-1.441-.341-.4107-.22733-.7333-.54633-.968-.957-.2273-.418-.341-.90933-.341-1.474v-.143c0-.55733.1137-1.045.341-1.463.2347-.418.5573-.74067.968-.968.418-.22733.8983-.341 1.441-.341s1.0193.11367 1.43.341c.418.22733.7407.55.968.968.2347.418.352.90567.352 1.463v.143c0 .56467-.1173 1.056-.352 1.474-.2273.41067-.55.72967-.968.957-.4107.22733-.8873.341-1.43.341zm0-.781c.572 0 1.0267-.17967 1.364-.539.3447-.36667.517-.858.517-1.474v-.099c0-.616-.1723-1.10367-.517-1.463-.3373-.36667-.792-.55-1.364-.55-.5647 0-1.0193.18333-1.364.55-.3447.35933-.517.847-.517 1.463v.099c0 .616.1723 1.10733.517 1.474.3447.35933.7993.539 1.364.539z"/><path d="m88.5742 8.154c-.6673 0-1.232-.154-1.694-.462-.4547-.308-.7297-.79567-.825-1.463l.825-.187c.0587.352.1687.63067.33.836.1613.198.3593.341.594.429.242.08067.4987.121.77.121.4033 0 .7223-.08067.957-.242s.352-.37767.352-.649c0-.27867-.1137-.473-.341-.583-.22-.11733-.5243-.21267-.913-.286l-.451-.077c-.3447-.05867-.66-.15033-.946-.275s-.5133-.29333-.682-.506-.253-.48033-.253-.803c0-.484.187-.86167.561-1.133s.869-.407 1.485-.407c.6087 0 1.1.13933 1.474.418.3813.27133.627.65633.737 1.155l-.814.209c-.066-.38867-.2237-.66-.473-.814-.2493-.16133-.5573-.242-.924-.242s-.6563.06967-.869.209c-.2127.132-.319.33-.319.594 0 .25667.099.44733.297.572.2053.11733.4767.20533.814.264l.451.077c.3813.066.7223.15767 1.023.275.308.11.55.27133.726.484.1833.21267.275.49133.275.836 0 .528-.198.935-.594 1.221-.3887.286-.913.429-1.573.429z"/><path d="m92.208 8v-5.379h.847v.671h.154c.1026-.19067.2713-.36667.506-.528.2346-.16133.5646-.242.99-.242.418 0 .7553.09167 1.012.275.264.18333.4546.407.572.671h.154c.1246-.264.3116-.48767.561-.671.2566-.18333.6123-.275 1.067-.275.3593 0 .6746.07333.946.22.2713.14667.484.35933.638.638.1613.27133.242.59767.242.979v3.641h-.869v-3.564c0-.35933-.1064-.64167-.319-.847-.2054-.21267-.495-.319-.869-.319-.396 0-.7224.12833-.979.385-.2494.25667-.374.627-.374 1.111v3.234h-.869v-3.564c0-.35933-.1064-.64167-.319-.847-.2054-.21267-.495-.319-.869-.319-.396 0-.7224.12833-.979.385-.2494.25667-.374.627-.374 1.111v3.234z"/><path d="m104.158 8.154c-.543 0-1.023-.11367-1.441-.341-.411-.22733-.733-.54633-.968-.957-.227-.418-.341-.90933-.341-1.474v-.143c0-.55733.114-1.045.341-1.463.235-.418.557-.74067.968-.968.418-.22733.898-.341 1.441-.341s1.019.11367 1.43.341c.418.22733.741.55.968.968.235.418.352.90567.352 1.463v.143c0 .56467-.117 1.056-.352 1.474-.227.41067-.55.72967-.968.957-.411.22733-.887.341-1.43.341zm0-.781c.572 0 1.027-.17967 1.364-.539.345-.36667.517-.858.517-1.474v-.099c0-.616-.172-1.10367-.517-1.463-.337-.36667-.792-.55-1.364-.55-.565 0-1.019.18333-1.364.55-.345.35933-.517.847-.517 1.463v.099c0 .616.172 1.10733.517 1.474.345.35933.799.539 1.364.539z"/><path d="m108.208 5.338v-.154c0-.56467.113-1.04867.341-1.452.227-.40333.535-.715.924-.935.388-.22.814-.33 1.276-.33.564 0 .997.11 1.298.33.308.21267.535.451.682.715h.154v-.891h.825v6.633c0 .29333-.081.52433-.242.693-.162.1687-.396.253-.704.253h-3.652v-.77h3.421c.22 0 .33-.11.33-.33v-2.046h-.154c-.088.16133-.213.319-.374.473-.162.154-.371.28233-.627.385-.257.09533-.576.143-.957.143-.462 0-.888-.11-1.276-.33-.389-.22-.697-.53167-.924-.935-.228-.41067-.341-.89467-.341-1.452zm2.772 1.947c.557 0 1.008-.176 1.353-.528.352-.352.528-.836.528-1.452v-.088c0-.62333-.176-1.10733-.528-1.452-.345-.352-.796-.528-1.353-.528-.55 0-1.005.176-1.364.528-.352.34467-.528.82867-.528 1.452v.088c0 .616.176 1.1.528 1.452.359.352.814.528 1.364.528z"/><path d="m115.529 8v-5.379h.847v.66h.154c.096-.23467.242-.407.44-.517s.459-.165.781-.165h.638v.792h-.693c-.388 0-.704.11-.946.33-.234.21267-.352.54633-.352 1.001v3.278z"/><path d="m121.143 8.154c-.374 0-.715-.066-1.023-.198s-.55-.32267-.726-.572-.264-.55367-.264-.913c0-.36667.088-.66733.264-.902.176-.242.418-.42167.726-.539.308-.12467.653-.187 1.034-.187h1.815v-.396c0-.38133-.114-.682-.341-.902-.22-.22-.55-.33-.99-.33-.433 0-.77.10633-1.012.319-.242.20533-.407.484-.495.836l-.814-.264c.088-.30067.227-.572.418-.814.191-.24933.444-.44733.759-.594.323-.154.708-.231 1.155-.231.689 0 1.225.17967 1.606.539.381.352.572.85067.572 1.496v2.431c0 .22.103.33.308.33h.495v.737h-.759c-.242 0-.436-.066-.583-.198-.147-.13933-.22-.32267-.22-.55v-.055h-.132c-.081.13933-.191.286-.33.44-.132.14667-.315.26767-.55.363-.235.10267-.539.154-.913.154zm.099-.748c.513 0 .928-.15033 1.243-.451.323-.308.484-.737.484-1.287v-.121h-1.782c-.345 0-.631.077-.858.231-.22.14667-.33.37033-.33.671s.114.53533.341.704c.235.16867.535.253.902.253z"/><path d="m125.82 10.2v-7.579h.847v.891h.154c.14-.27133.363-.51333.671-.726.316-.21267.752-.319 1.309-.319.462 0 .884.11367 1.265.341.389.22.697.53533.924.946.235.41067.352.90567.352 1.485v.143c0 .572-.113 1.067-.341 1.485-.227.418-.535.737-.924.957-.381.22-.806.33-1.276.33-.374 0-.693-.05133-.957-.154-.256-.09533-.465-.22-.627-.374-.161-.154-.286-.31167-.374-.473h-.154v3.047zm2.75-2.816c.558 0 1.009-.176 1.353-.528.352-.35933.528-.858.528-1.496v-.099c0-.638-.176-1.133-.528-1.485-.344-.35933-.795-.539-1.353-.539-.55 0-1.004.17967-1.364.539-.352.352-.528.847-.528 1.485v.099c0 .638.176 1.13667.528 1.496.36.352.814.528 1.364.528z"/><path d="m132.899 8v-7.7h.869v3.179h.154c.074-.16133.184-.31167.33-.451.154-.14667.349-.26767.583-.363.242-.09533.547-.143.913-.143.404 0 .763.088 1.078.264.323.16867.58.418.77.748.191.32267.286.726.286 1.21v3.256h-.869v-3.19c0-.53533-.135-.924-.407-1.166-.264-.242-.623-.363-1.078-.363-.52 0-.946.16867-1.276.506-.322.33733-.484.83967-.484 1.507v2.706z"/><path d="m140.118 8.154c-.212 0-.392-.06967-.539-.209-.139-.13933-.209-.319-.209-.539s.07-.39967.209-.539c.147-.13933.327-.209.539-.209.22 0 .4.06967.539.209.14.13933.209.319.209.539s-.069.39967-.209.539c-.139.13933-.319.209-.539.209z"/><path d="m144.078 8.154c-.374 0-.715-.066-1.023-.198s-.55-.32267-.726-.572-.264-.55367-.264-.913c0-.36667.088-.66733.264-.902.176-.242.418-.42167.726-.539.308-.12467.652-.187 1.034-.187h1.815v-.396c0-.38133-.114-.682-.341-.902-.22-.22-.55-.33-.99-.33-.433 0-.77.10633-1.012.319-.242.20533-.407.484-.495.836l-.814-.264c.088-.30067.227-.572.418-.814.19-.24933.443-.44733.759-.594.322-.154.707-.231 1.155-.231.689 0 1.224.17967 1.606.539.381.352.572.85067.572 1.496v2.431c0 .22.102.33.308.33h.495v.737h-.759c-.242 0-.437-.066-.583-.198-.147-.13933-.22-.32267-.22-.55v-.055h-.132c-.081.13933-.191.286-.33.44-.132.14667-.316.26767-.55.363-.235.10267-.539.154-.913.154zm.099-.748c.513 0 .927-.15033 1.243-.451.322-.308.484-.737.484-1.287v-.121h-1.782c-.345 0-.631.077-.858.231-.22.14667-.33.37033-.33.671s.113.53533.341.704c.234.16867.535.253.902.253z"/><path d="m148.755 10.2v-7.579h.847v.891h.154c.139-.27133.363-.51333.671-.726.315-.21267.752-.319 1.309-.319.462 0 .884.11367 1.265.341.389.22.697.53533.924.946.235.41067.352.90567.352 1.485v.143c0 .572-.114 1.067-.341 1.485s-.535.737-.924.957c-.381.22-.807.33-1.276.33-.374 0-.693-.05133-.957-.154-.257-.09533-.466-.22-.627-.374s-.286-.31167-.374-.473h-.154v3.047zm2.75-2.816c.557 0 1.008-.176 1.353-.528.352-.35933.528-.858.528-1.496v-.099c0-.638-.176-1.133-.528-1.485-.345-.35933-.796-.539-1.353-.539-.55 0-1.005.17967-1.364.539-.352.352-.528.847-.528 1.485v.099c0 .638.176 1.13667.528 1.496.359.352.814.528 1.364.528z"/><path d="m155.834 10.2v-7.579h.847v.891h.154c.139-.27133.363-.51333.671-.726.315-.21267.752-.319 1.309-.319.462 0 .884.11367 1.265.341.389.22.697.53533.924.946.235.41067.352.90567.352 1.485v.143c0 .572-.114 1.067-.341 1.485s-.535.737-.924.957c-.381.22-.807.33-1.276.33-.374 0-.693-.05133-.957-.154-.257-.09533-.466-.22-.627-.374s-.286-.31167-.374-.473h-.154v3.047zm2.75-2.816c.557 0 1.008-.176 1.353-.528.352-.35933.528-.858.528-1.496v-.099c0-.638-.176-1.133-.528-1.485-.345-.35933-.796-.539-1.353-.539-.55 0-1.005.17967-1.364.539-.352.352-.528.847-.528 1.485v.099c0 .638.176 1.13667.528 1.496.359.352.814.528 1.364.528z"/><path d="m71.6368 9.375h90.3682v.55h-90.3682z"/></g></svg>',W5="modulepreload",j5=function(i){return"/"+i},bx={},Mm=function(e,t,n){let l=Promise.resolve();if(t&&t.length>0){let h=function(m){return Promise.all(m.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};var c=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),u=d?.nonce||d?.getAttribute("nonce");l=h(t.map(m=>{if(m=j5(m),m in bx)return;bx[m]=!0;const b=m.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const _=document.createElement("link");if(_.rel=b?"stylesheet":W5,b||(_.as="script"),_.crossOrigin="",_.href=m,u&&_.setAttribute("nonce",u),document.head.appendChild(_),b)return new Promise((z,X)=>{_.addEventListener("load",z),_.addEventListener("error",()=>X(new Error(`Unable to preload CSS for ${m}`)))})}))}function s(d){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=d,window.dispatchEvent(u),!u.defaultPrevented)throw d}return l.then(d=>{for(const u of d||[])u.status==="rejected"&&s(u.reason);return e().catch(s)})},q5=i=>{let e;return i?e=i:typeof fetch>"u"?e=(...t)=>Mm(async()=>{const{default:n}=await Promise.resolve().then(()=>bh);return{default:n}},void 0).then(({default:n})=>n(...t)):e=fetch,(...t)=>e(...t)};class p_ extends Error{constructor(e,t="FunctionsError",n){super(e),this.name=t,this.context=n}}class Y5 extends p_{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class X5 extends p_{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class Z5 extends p_{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var Pg;(function(i){i.Any="any",i.ApNortheast1="ap-northeast-1",i.ApNortheast2="ap-northeast-2",i.ApSouth1="ap-south-1",i.ApSoutheast1="ap-southeast-1",i.ApSoutheast2="ap-southeast-2",i.CaCentral1="ca-central-1",i.EuCentral1="eu-central-1",i.EuWest1="eu-west-1",i.EuWest2="eu-west-2",i.EuWest3="eu-west-3",i.SaEast1="sa-east-1",i.UsEast1="us-east-1",i.UsWest1="us-west-1",i.UsWest2="us-west-2"})(Pg||(Pg={}));var Q5=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};class K5{constructor(e,{headers:t={},customFetch:n,region:l=Pg.Any}={}){this.url=e,this.headers=t,this.region=l,this.fetch=q5(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,t={}){var n;return Q5(this,void 0,void 0,function*(){try{const{headers:l,method:s,body:c}=t;let d={},{region:u}=t;u||(u=this.region),u&&u!=="any"&&(d["x-region"]=u);let h;c&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)&&(typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(d["Content-Type"]="application/octet-stream",h=c):typeof c=="string"?(d["Content-Type"]="text/plain",h=c):typeof FormData<"u"&&c instanceof FormData?h=c:(d["Content-Type"]="application/json",h=JSON.stringify(c)));const m=yield this.fetch(`${this.url}/${e}`,{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},d),this.headers),l),body:h}).catch(z=>{throw new Y5(z)}),b=m.headers.get("x-relay-error");if(b&&b==="true")throw new X5(m);if(!m.ok)throw new Z5(m);let g=((n=m.headers.get("Content-Type"))!==null&&n!==void 0?n:"text/plain").split(";")[0].trim(),_;return g==="application/json"?_=yield m.json():g==="application/octet-stream"?_=yield m.blob():g==="text/event-stream"?_=m:g==="multipart/form-data"?_=yield m.formData():_=yield m.text(),{data:_,error:null}}catch(l){return{data:null,error:l}}})}}var ro={},Nu={},$u={},Bu={},Hu={},Pu={},J5=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},mh=J5();const eL=mh.fetch,yw=mh.fetch.bind(mh),vw=mh.Headers,tL=mh.Request,iL=mh.Response,bh=Object.freeze(Object.defineProperty({__proto__:null,Headers:vw,Request:tL,Response:iL,default:yw,fetch:eL},Symbol.toStringTag,{value:"Module"})),nL=Zx(bh);var Ip={},gx;function xw(){if(gx)return Ip;gx=1,Object.defineProperty(Ip,"__esModule",{value:!0});class i extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}}return Ip.default=i,Ip}var _x;function ww(){if(_x)return Pu;_x=1;var i=Pu&&Pu.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Pu,"__esModule",{value:!0});const e=i(nL),t=i(xw());class n{constructor(s){this.shouldThrowOnError=!1,this.method=s.method,this.url=s.url,this.headers=s.headers,this.schema=s.schema,this.body=s.body,this.shouldThrowOnError=s.shouldThrowOnError,this.signal=s.signal,this.isMaybeSingle=s.isMaybeSingle,s.fetch?this.fetch=s.fetch:typeof fetch>"u"?this.fetch=e.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(s,c){return this.headers=Object.assign({},this.headers),this.headers[s]=c,this}then(s,c){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const d=this.fetch;let u=d(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async h=>{var m,b,g;let _=null,z=null,X=null,y=h.status,E=h.statusText;if(h.ok){if(this.method!=="HEAD"){const K=await h.text();K===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?z=K:z=JSON.parse(K))}const w=(m=this.headers.Prefer)===null||m===void 0?void 0:m.match(/count=(exact|planned|estimated)/),I=(b=h.headers.get("content-range"))===null||b===void 0?void 0:b.split("/");w&&I&&I.length>1&&(X=parseInt(I[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(z)&&(z.length>1?(_={code:"PGRST116",details:`Results contain ${z.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},z=null,X=null,y=406,E="Not Acceptable"):z.length===1?z=z[0]:z=null)}else{const w=await h.text();try{_=JSON.parse(w),Array.isArray(_)&&h.status===404&&(z=[],_=null,y=200,E="OK")}catch{h.status===404&&w===""?(y=204,E="No Content"):_={message:w}}if(_&&this.isMaybeSingle&&(!((g=_?.details)===null||g===void 0)&&g.includes("0 rows"))&&(_=null,y=200,E="OK"),_&&this.shouldThrowOnError)throw new t.default(_)}return{error:_,data:z,count:X,status:y,statusText:E}});return this.shouldThrowOnError||(u=u.catch(h=>{var m,b,g;return{error:{message:`${(m=h?.name)!==null&&m!==void 0?m:"FetchError"}: ${h?.message}`,details:`${(b=h?.stack)!==null&&b!==void 0?b:""}`,hint:"",code:`${(g=h?.code)!==null&&g!==void 0?g:""}`},data:null,count:null,status:0,statusText:""}})),u.then(s,c)}returns(){return this}overrideTypes(){return this}}return Pu.default=n,Pu}var yx;function Sw(){if(yx)return Hu;yx=1;var i=Hu&&Hu.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Hu,"__esModule",{value:!0});const e=i(ww());class t extends e.default{select(l){let s=!1;const c=(l??"*").split("").map(d=>/\s/.test(d)&&!s?"":(d==='"'&&(s=!s),d)).join("");return this.url.searchParams.set("select",c),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(l,{ascending:s=!0,nullsFirst:c,foreignTable:d,referencedTable:u=d}={}){const h=u?`${u}.order`:"order",m=this.url.searchParams.get(h);return this.url.searchParams.set(h,`${m?`${m},`:""}${l}.${s?"asc":"desc"}${c===void 0?"":c?".nullsfirst":".nullslast"}`),this}limit(l,{foreignTable:s,referencedTable:c=s}={}){const d=typeof c>"u"?"limit":`${c}.limit`;return this.url.searchParams.set(d,`${l}`),this}range(l,s,{foreignTable:c,referencedTable:d=c}={}){const u=typeof d>"u"?"offset":`${d}.offset`,h=typeof d>"u"?"limit":`${d}.limit`;return this.url.searchParams.set(u,`${l}`),this.url.searchParams.set(h,`${s-l+1}`),this}abortSignal(l){return this.signal=l,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:l=!1,verbose:s=!1,settings:c=!1,buffers:d=!1,wal:u=!1,format:h="text"}={}){var m;const b=[l?"analyze":null,s?"verbose":null,c?"settings":null,d?"buffers":null,u?"wal":null].filter(Boolean).join("|"),g=(m=this.headers.Accept)!==null&&m!==void 0?m:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${h}; for="${g}"; options=${b};`,h==="json"?this:this}rollback(){var l;return((l=this.headers.Prefer)!==null&&l!==void 0?l:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}return Hu.default=t,Hu}var vx;function b_(){if(vx)return Bu;vx=1;var i=Bu&&Bu.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Bu,"__esModule",{value:!0});const e=i(Sw());class t extends e.default{eq(l,s){return this.url.searchParams.append(l,`eq.${s}`),this}neq(l,s){return this.url.searchParams.append(l,`neq.${s}`),this}gt(l,s){return this.url.searchParams.append(l,`gt.${s}`),this}gte(l,s){return this.url.searchParams.append(l,`gte.${s}`),this}lt(l,s){return this.url.searchParams.append(l,`lt.${s}`),this}lte(l,s){return this.url.searchParams.append(l,`lte.${s}`),this}like(l,s){return this.url.searchParams.append(l,`like.${s}`),this}likeAllOf(l,s){return this.url.searchParams.append(l,`like(all).{${s.join(",")}}`),this}likeAnyOf(l,s){return this.url.searchParams.append(l,`like(any).{${s.join(",")}}`),this}ilike(l,s){return this.url.searchParams.append(l,`ilike.${s}`),this}ilikeAllOf(l,s){return this.url.searchParams.append(l,`ilike(all).{${s.join(",")}}`),this}ilikeAnyOf(l,s){return this.url.searchParams.append(l,`ilike(any).{${s.join(",")}}`),this}is(l,s){return this.url.searchParams.append(l,`is.${s}`),this}in(l,s){const c=Array.from(new Set(s)).map(d=>typeof d=="string"&&new RegExp("[,()]").test(d)?`"${d}"`:`${d}`).join(",");return this.url.searchParams.append(l,`in.(${c})`),this}contains(l,s){return typeof s=="string"?this.url.searchParams.append(l,`cs.${s}`):Array.isArray(s)?this.url.searchParams.append(l,`cs.{${s.join(",")}}`):this.url.searchParams.append(l,`cs.${JSON.stringify(s)}`),this}containedBy(l,s){return typeof s=="string"?this.url.searchParams.append(l,`cd.${s}`):Array.isArray(s)?this.url.searchParams.append(l,`cd.{${s.join(",")}}`):this.url.searchParams.append(l,`cd.${JSON.stringify(s)}`),this}rangeGt(l,s){return this.url.searchParams.append(l,`sr.${s}`),this}rangeGte(l,s){return this.url.searchParams.append(l,`nxl.${s}`),this}rangeLt(l,s){return this.url.searchParams.append(l,`sl.${s}`),this}rangeLte(l,s){return this.url.searchParams.append(l,`nxr.${s}`),this}rangeAdjacent(l,s){return this.url.searchParams.append(l,`adj.${s}`),this}overlaps(l,s){return typeof s=="string"?this.url.searchParams.append(l,`ov.${s}`):this.url.searchParams.append(l,`ov.{${s.join(",")}}`),this}textSearch(l,s,{config:c,type:d}={}){let u="";d==="plain"?u="pl":d==="phrase"?u="ph":d==="websearch"&&(u="w");const h=c===void 0?"":`(${c})`;return this.url.searchParams.append(l,`${u}fts${h}.${s}`),this}match(l){return Object.entries(l).forEach(([s,c])=>{this.url.searchParams.append(s,`eq.${c}`)}),this}not(l,s,c){return this.url.searchParams.append(l,`not.${s}.${c}`),this}or(l,{foreignTable:s,referencedTable:c=s}={}){const d=c?`${c}.or`:"or";return this.url.searchParams.append(d,`(${l})`),this}filter(l,s,c){return this.url.searchParams.append(l,`${s}.${c}`),this}}return Bu.default=t,Bu}var xx;function Aw(){if(xx)return $u;xx=1;var i=$u&&$u.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty($u,"__esModule",{value:!0});const e=i(b_());class t{constructor(l,{headers:s={},schema:c,fetch:d}){this.url=l,this.headers=s,this.schema=c,this.fetch=d}select(l,{head:s=!1,count:c}={}){const d=s?"HEAD":"GET";let u=!1;const h=(l??"*").split("").map(m=>/\s/.test(m)&&!u?"":(m==='"'&&(u=!u),m)).join("");return this.url.searchParams.set("select",h),c&&(this.headers.Prefer=`count=${c}`),new e.default({method:d,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(l,{count:s,defaultToNull:c=!0}={}){const d="POST",u=[];if(this.headers.Prefer&&u.push(this.headers.Prefer),s&&u.push(`count=${s}`),c||u.push("missing=default"),this.headers.Prefer=u.join(","),Array.isArray(l)){const h=l.reduce((m,b)=>m.concat(Object.keys(b)),[]);if(h.length>0){const m=[...new Set(h)].map(b=>`"${b}"`);this.url.searchParams.set("columns",m.join(","))}}return new e.default({method:d,url:this.url,headers:this.headers,schema:this.schema,body:l,fetch:this.fetch,allowEmpty:!1})}upsert(l,{onConflict:s,ignoreDuplicates:c=!1,count:d,defaultToNull:u=!0}={}){const h="POST",m=[`resolution=${c?"ignore":"merge"}-duplicates`];if(s!==void 0&&this.url.searchParams.set("on_conflict",s),this.headers.Prefer&&m.push(this.headers.Prefer),d&&m.push(`count=${d}`),u||m.push("missing=default"),this.headers.Prefer=m.join(","),Array.isArray(l)){const b=l.reduce((g,_)=>g.concat(Object.keys(_)),[]);if(b.length>0){const g=[...new Set(b)].map(_=>`"${_}"`);this.url.searchParams.set("columns",g.join(","))}}return new e.default({method:h,url:this.url,headers:this.headers,schema:this.schema,body:l,fetch:this.fetch,allowEmpty:!1})}update(l,{count:s}={}){const c="PATCH",d=[];return this.headers.Prefer&&d.push(this.headers.Prefer),s&&d.push(`count=${s}`),this.headers.Prefer=d.join(","),new e.default({method:c,url:this.url,headers:this.headers,schema:this.schema,body:l,fetch:this.fetch,allowEmpty:!1})}delete({count:l}={}){const s="DELETE",c=[];return l&&c.push(`count=${l}`),this.headers.Prefer&&c.unshift(this.headers.Prefer),this.headers.Prefer=c.join(","),new e.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}return $u.default=t,$u}var sm={},om={},wx;function rL(){return wx||(wx=1,Object.defineProperty(om,"__esModule",{value:!0}),om.version=void 0,om.version="0.0.0-automated"),om}var Sx;function aL(){if(Sx)return sm;Sx=1,Object.defineProperty(sm,"__esModule",{value:!0}),sm.DEFAULT_HEADERS=void 0;const i=rL();return sm.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${i.version}`},sm}var Ax;function lL(){if(Ax)return Nu;Ax=1;var i=Nu&&Nu.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Nu,"__esModule",{value:!0});const e=i(Aw()),t=i(b_()),n=aL();class l{constructor(c,{headers:d={},schema:u,fetch:h}={}){this.url=c,this.headers=Object.assign(Object.assign({},n.DEFAULT_HEADERS),d),this.schemaName=u,this.fetch=h}from(c){const d=new URL(`${this.url}/${c}`);return new e.default(d,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(c){return new l(this.url,{headers:this.headers,schema:c,fetch:this.fetch})}rpc(c,d={},{head:u=!1,get:h=!1,count:m}={}){let b;const g=new URL(`${this.url}/rpc/${c}`);let _;u||h?(b=u?"HEAD":"GET",Object.entries(d).filter(([X,y])=>y!==void 0).map(([X,y])=>[X,Array.isArray(y)?`{${y.join(",")}}`:`${y}`]).forEach(([X,y])=>{g.searchParams.append(X,y)})):(b="POST",_=d);const z=Object.assign({},this.headers);return m&&(z.Prefer=`count=${m}`),new t.default({method:b,url:g,headers:z,schema:this.schemaName,body:_,fetch:this.fetch,allowEmpty:!1})}}return Nu.default=l,Nu}var Ex;function sL(){if(Ex)return ro;Ex=1;var i=ro&&ro.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(ro,"__esModule",{value:!0}),ro.PostgrestError=ro.PostgrestBuilder=ro.PostgrestTransformBuilder=ro.PostgrestFilterBuilder=ro.PostgrestQueryBuilder=ro.PostgrestClient=void 0;const e=i(lL());ro.PostgrestClient=e.default;const t=i(Aw());ro.PostgrestQueryBuilder=t.default;const n=i(b_());ro.PostgrestFilterBuilder=n.default;const l=i(Sw());ro.PostgrestTransformBuilder=l.default;const s=i(ww());ro.PostgrestBuilder=s.default;const c=i(xw());return ro.PostgrestError=c.default,ro.default={PostgrestClient:e.default,PostgrestQueryBuilder:t.default,PostgrestFilterBuilder:n.default,PostgrestTransformBuilder:l.default,PostgrestBuilder:s.default,PostgrestError:c.default},ro}var oL=sL();const cL=Im(oL),{PostgrestClient:dL,PostgrestQueryBuilder:$F,PostgrestFilterBuilder:BF,PostgrestTransformBuilder:HF,PostgrestBuilder:PF,PostgrestError:UF}=cL;function fL(){if(typeof WebSocket<"u")return WebSocket;if(typeof global.WebSocket<"u")return global.WebSocket;if(typeof window.WebSocket<"u")return window.WebSocket;if(typeof self.WebSocket<"u")return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}const uL=fL(),hL="2.11.15",mL=`realtime-js/${hL}`,pL="1.0.0",Ew=1e4,bL=1e3;var ym;(function(i){i[i.connecting=0]="connecting",i[i.open=1]="open",i[i.closing=2]="closing",i[i.closed=3]="closed"})(ym||(ym={}));var Mo;(function(i){i.closed="closed",i.errored="errored",i.joined="joined",i.joining="joining",i.leaving="leaving"})(Mo||(Mo={}));var Pc;(function(i){i.close="phx_close",i.error="phx_error",i.join="phx_join",i.reply="phx_reply",i.leave="phx_leave",i.access_token="access_token"})(Pc||(Pc={}));var Ug;(function(i){i.websocket="websocket"})(Ug||(Ug={}));var Uf;(function(i){i.Connecting="connecting",i.Open="open",i.Closing="closing",i.Closed="closed"})(Uf||(Uf={}));class gL{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):t(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const t=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,t,n)}_decodeBroadcast(e,t,n){const l=t.getUint8(1),s=t.getUint8(2);let c=this.HEADER_LENGTH+2;const d=n.decode(e.slice(c,c+l));c=c+l;const u=n.decode(e.slice(c,c+s));c=c+s;const h=JSON.parse(n.decode(e.slice(c,e.byteLength)));return{ref:null,topic:d,event:u,payload:h}}}class Tw{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var rl;(function(i){i.abstime="abstime",i.bool="bool",i.date="date",i.daterange="daterange",i.float4="float4",i.float8="float8",i.int2="int2",i.int4="int4",i.int4range="int4range",i.int8="int8",i.int8range="int8range",i.json="json",i.jsonb="jsonb",i.money="money",i.numeric="numeric",i.oid="oid",i.reltime="reltime",i.text="text",i.time="time",i.timestamp="timestamp",i.timestamptz="timestamptz",i.timetz="timetz",i.tsrange="tsrange",i.tstzrange="tstzrange"})(rl||(rl={}));const Tx=(i,e,t={})=>{var n;const l=(n=t.skipTypes)!==null&&n!==void 0?n:[];return Object.keys(e).reduce((s,c)=>(s[c]=_L(c,i,e,l),s),{})},_L=(i,e,t,n)=>{const l=e.find(d=>d.name===i),s=l?.type,c=t[i];return s&&!n.includes(s)?Ow(s,c):Gg(c)},Ow=(i,e)=>{if(i.charAt(0)==="_"){const t=i.slice(1,i.length);return wL(e,t)}switch(i){case rl.bool:return yL(e);case rl.float4:case rl.float8:case rl.int2:case rl.int4:case rl.int8:case rl.numeric:case rl.oid:return vL(e);case rl.json:case rl.jsonb:return xL(e);case rl.timestamp:return SL(e);case rl.abstime:case rl.date:case rl.daterange:case rl.int4range:case rl.int8range:case rl.money:case rl.reltime:case rl.text:case rl.time:case rl.timestamptz:case rl.timetz:case rl.tsrange:case rl.tstzrange:return Gg(e);default:return Gg(e)}},Gg=i=>i,yL=i=>{switch(i){case"t":return!0;case"f":return!1;default:return i}},vL=i=>{if(typeof i=="string"){const e=parseFloat(i);if(!Number.isNaN(e))return e}return i},xL=i=>{if(typeof i=="string")try{return JSON.parse(i)}catch(e){return console.log(`JSON parse error: ${e}`),i}return i},wL=(i,e)=>{if(typeof i!="string")return i;const t=i.length-1,n=i[t];if(i[0]==="{"&&n==="}"){let s;const c=i.slice(1,t);try{s=JSON.parse("["+c+"]")}catch{s=c?c.split(","):[]}return s.map(d=>Ow(e,d))}return i},SL=i=>typeof i=="string"?i.replace(" ","T"):i,kw=i=>{let e=i;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")};class rg{constructor(e,t,n={},l=Ew){this.channel=e,this.event=t,this.payload=n,this.timeout=l,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var n;return this._hasReceived(e)&&t((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=t=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=t,this._matchReceive(t)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var Ox;(function(i){i.SYNC="sync",i.JOIN="join",i.LEAVE="leave"})(Ox||(Ox={}));class vm{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=t?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},l=>{const{onJoin:s,onLeave:c,onSync:d}=this.caller;this.joinRef=this.channel._joinRef(),this.state=vm.syncState(this.state,l,s,c),this.pendingDiffs.forEach(u=>{this.state=vm.syncDiff(this.state,u,s,c)}),this.pendingDiffs=[],d()}),this.channel._on(n.diff,{},l=>{const{onJoin:s,onLeave:c,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(l):(this.state=vm.syncDiff(this.state,l,s,c),d())}),this.onJoin((l,s,c)=>{this.channel._trigger("presence",{event:"join",key:l,currentPresences:s,newPresences:c})}),this.onLeave((l,s,c)=>{this.channel._trigger("presence",{event:"leave",key:l,currentPresences:s,leftPresences:c})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,n,l){const s=this.cloneDeep(e),c=this.transformState(t),d={},u={};return this.map(s,(h,m)=>{c[h]||(u[h]=m)}),this.map(c,(h,m)=>{const b=s[h];if(b){const g=m.map(y=>y.presence_ref),_=b.map(y=>y.presence_ref),z=m.filter(y=>_.indexOf(y.presence_ref)<0),X=b.filter(y=>g.indexOf(y.presence_ref)<0);z.length>0&&(d[h]=z),X.length>0&&(u[h]=X)}else d[h]=m}),this.syncDiff(s,{joins:d,leaves:u},n,l)}static syncDiff(e,t,n,l){const{joins:s,leaves:c}={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)};return n||(n=()=>{}),l||(l=()=>{}),this.map(s,(d,u)=>{var h;const m=(h=e[d])!==null&&h!==void 0?h:[];if(e[d]=this.cloneDeep(u),m.length>0){const b=e[d].map(_=>_.presence_ref),g=m.filter(_=>b.indexOf(_.presence_ref)<0);e[d].unshift(...g)}n(d,m,u)}),this.map(c,(d,u)=>{let h=e[d];if(!h)return;const m=u.map(b=>b.presence_ref);h=h.filter(b=>m.indexOf(b.presence_ref)<0),e[d]=h,l(d,h,u),h.length===0&&delete e[d]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{const l=e[n];return"metas"in l?t[n]=l.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):t[n]=l,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var kx;(function(i){i.ALL="*",i.INSERT="INSERT",i.UPDATE="UPDATE",i.DELETE="DELETE"})(kx||(kx={}));var Cx;(function(i){i.BROADCAST="broadcast",i.PRESENCE="presence",i.POSTGRES_CHANGES="postgres_changes",i.SYSTEM="system"})(Cx||(Cx={}));var zd;(function(i){i.SUBSCRIBED="SUBSCRIBED",i.TIMED_OUT="TIMED_OUT",i.CLOSED="CLOSED",i.CHANNEL_ERROR="CHANNEL_ERROR"})(zd||(zd={}));class g_{constructor(e,t={config:{}},n){this.topic=e,this.params=t,this.socket=n,this.bindings={},this.state=Mo.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},t.config),this.timeout=this.socket.timeout,this.joinPush=new rg(this,Pc.join,this.params,this.timeout),this.rejoinTimer=new Tw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Mo.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(l=>l.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Mo.closed,this.socket._remove(this)}),this._onError(l=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,l),this.state=Mo.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Mo.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Pc.reply,{},(l,s)=>{this._trigger(this._replyEventName(s),l)}),this.presence=new vm(this),this.broadcastEndpointURL=kw(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(e,t=this.timeout){var n,l;if(this.socket.isConnected()||this.socket.connect(),this.state==Mo.closed){const{config:{broadcast:s,presence:c,private:d}}=this.params;this._onError(m=>e?.(zd.CHANNEL_ERROR,m)),this._onClose(()=>e?.(zd.CLOSED));const u={},h={broadcast:s,presence:c,postgres_changes:(l=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(m=>m.filter))!==null&&l!==void 0?l:[],private:d};this.socket.accessTokenValue&&(u.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:h},u)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",async({postgres_changes:m})=>{var b;if(this.socket.setAuth(),m===void 0){e?.(zd.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,_=(b=g?.length)!==null&&b!==void 0?b:0,z=[];for(let X=0;X<_;X++){const y=g[X],{filter:{event:E,schema:T,table:w,filter:I}}=y,K=m&&m[X];if(K&&K.event===E&&K.schema===T&&K.table===w&&K.filter===I)z.push(Object.assign(Object.assign({},y),{id:K.id}));else{this.unsubscribe(),this.state=Mo.errored,e?.(zd.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=z,e&&e(zd.SUBSCRIBED);return}}).receive("error",m=>{this.state=Mo.errored,e?.(zd.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(m).join(", ")||"error")))}).receive("timeout",()=>{e?.(zd.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,t={}){return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,t,n){return this._on(e,t,n)}async send(e,t={}){var n,l;if(!this._canPush()&&e.type==="broadcast"){const{event:s,payload:c}=e,u={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:c,private:this.private}]})};try{const h=await this._fetchWithTimeout(this.broadcastEndpointURL,u,(n=t.timeout)!==null&&n!==void 0?n:this.timeout);return await((l=h.body)===null||l===void 0?void 0:l.cancel()),h.ok?"ok":"error"}catch(h){return h.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var c,d,u;const h=this._push(e.type,e,t.timeout||this.timeout);e.type==="broadcast"&&!(!((u=(d=(c=this.params)===null||c===void 0?void 0:c.config)===null||d===void 0?void 0:d.broadcast)===null||u===void 0)&&u.ack)&&s("ok"),h.receive("ok",()=>s("ok")),h.receive("error",()=>s("error")),h.receive("timeout",()=>s("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}unsubscribe(e=this.timeout){this.state=Mo.leaving;const t=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Pc.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(l=>{n=new rg(this,Pc.leave,{},e),n.receive("ok",()=>{t(),l("ok")}).receive("timeout",()=>{t(),l("timed out")}).receive("error",()=>{l("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n?.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.rejoinTimer&&clearTimeout(this.rejoinTimer.timer),this.joinPush.destroy()}async _fetchWithTimeout(e,t,n){const l=new AbortController,s=setTimeout(()=>l.abort(),n),c=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:l.signal}));return clearTimeout(s),c}_push(e,t,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let l=new rg(this,e,t,n);return this._canPush()?l.send():(l.startTimeout(),this.pushBuffer.push(l)),l}_onMessage(e,t,n){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,n){var l,s;const c=e.toLocaleLowerCase(),{close:d,error:u,leave:h,join:m}=Pc;if(n&&[d,u,h,m].indexOf(c)>=0&&n!==this._joinRef())return;let g=this._onMessage(c,t,n);if(t&&!g)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(c)?(l=this.bindings.postgres_changes)===null||l===void 0||l.filter(_=>{var z,X,y;return((z=_.filter)===null||z===void 0?void 0:z.event)==="*"||((y=(X=_.filter)===null||X===void 0?void 0:X.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===c}).map(_=>_.callback(g,n)):(s=this.bindings[c])===null||s===void 0||s.filter(_=>{var z,X,y,E,T,w;if(["broadcast","presence","postgres_changes"].includes(c))if("id"in _){const I=_.id,K=(z=_.filter)===null||z===void 0?void 0:z.event;return I&&((X=t.ids)===null||X===void 0?void 0:X.includes(I))&&(K==="*"||K?.toLocaleLowerCase()===((y=t.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const I=(T=(E=_?.filter)===null||E===void 0?void 0:E.event)===null||T===void 0?void 0:T.toLocaleLowerCase();return I==="*"||I===((w=t?.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return _.type.toLocaleLowerCase()===c}).map(_=>{if(typeof g=="object"&&"ids"in g){const z=g.data,{schema:X,table:y,commit_timestamp:E,type:T,errors:w}=z;g=Object.assign(Object.assign({},{schema:X,table:y,commit_timestamp:E,eventType:T,new:{},old:{},errors:w}),this._getPayloadRecords(z))}_.callback(g,n)})}_isClosed(){return this.state===Mo.closed}_isJoined(){return this.state===Mo.joined}_isJoining(){return this.state===Mo.joining}_isLeaving(){return this.state===Mo.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,t,n){const l=e.toLocaleLowerCase(),s={type:l,filter:t,callback:n};return this.bindings[l]?this.bindings[l].push(s):this.bindings[l]=[s],this}_off(e,t){const n=e.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(l=>{var s;return!(((s=l.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===n&&g_.isEqual(l.filter,t))}),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Pc.close,{},e)}_onError(e){this._on(Pc.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Mo.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const t={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(t.new=Tx(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(t.old=Tx(e.columns,e.old_record)),t}}const zx=()=>{},AL=`
987
+ addEventListener("message", (e) => {
988
+ if (e.data.event === "start") {
989
+ setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
990
+ }
991
+ });`;class EL{constructor(e,t){var n;this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Ew,this.heartbeatIntervalMs=25e3,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=zx,this.ref=0,this.logger=zx,this.conn=null,this.sendBuffer=[],this.serializer=new gL,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let c;return s?c=s:typeof fetch>"u"?c=(...d)=>Mm(async()=>{const{default:u}=await Promise.resolve().then(()=>bh);return{default:u}},void 0).then(({default:u})=>u(...d)):c=fetch,(...d)=>c(...d)},this.endPoint=`${e}/${Ug.websocket}`,this.httpEndpoint=kw(e),t?.transport?this.transport=t.transport:this.transport=null,t?.params&&(this.params=t.params),t?.timeout&&(this.timeout=t.timeout),t?.logger&&(this.logger=t.logger),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),t?.heartbeatIntervalMs&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs);const l=(n=t?.params)===null||n===void 0?void 0:n.apikey;if(l&&(this.accessTokenValue=l,this.apiKey=l),this.reconnectAfterMs=t?.reconnectAfterMs?t.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=t?.encode?t.encode:(s,c)=>c(JSON.stringify(s)),this.decode=t?.decode?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new Tw(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(t?.fetch),t?.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=t?.worker||!1,this.workerUrl=t?.workerUrl}this.accessToken=t?.accessToken||null}connect(){if(!this.conn){if(this.transport||(this.transport=uL),!this.transport)throw new Error("No transport provided");this.conn=new this.transport(this.endpointURL()),this.setupConnection()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:pL}))}disconnect(e,t){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,t??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset(),this.channels.forEach(n=>n.teardown()))}getChannels(){return this.channels}async removeChannel(e){const t=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),t}async removeAllChannels(){const e=await Promise.all(this.channels.map(t=>t.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,t,n){this.logger(e,t,n)}connectionState(){switch(this.conn&&this.conn.readyState){case ym.connecting:return Uf.Connecting;case ym.open:return Uf.Open;case ym.closing:return Uf.Closing;default:return Uf.Closed}}isConnected(){return this.connectionState()===Uf.Open}channel(e,t={config:{}}){const n=`realtime:${e}`,l=this.getChannels().find(s=>s.topic===n);if(l)return l;{const s=new g_(`realtime:${e}`,t,this);return this.channels.push(s),s}}push(e){const{topic:t,event:n,payload:l,ref:s}=e,c=()=>{this.encode(e,d=>{var u;(u=this.conn)===null||u===void 0||u.send(d)})};this.log("push",`${t} ${n} (${s})`,l),this.isConnected()?c():this.sendBuffer.push(c)}async setAuth(e=null){let t=e||this.accessToken&&await this.accessToken()||this.accessTokenValue;this.accessTokenValue!=t&&(this.accessTokenValue=t,this.channels.forEach(n=>{const l={access_token:t,version:mL};t&&n.updateJoinPayload(l),n.joinedOnce&&n._isJoined()&&n._push(Pc.access_token,{access_token:t})}))}async sendHeartbeat(){var e;if(!this.isConnected()){this.heartbeatCallback("disconnected");return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.heartbeatCallback("timeout"),(e=this.conn)===null||e===void 0||e.close(bL,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatCallback("sent"),await this.setAuth()}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n._isJoined()||n._isJoining()));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic)}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:l,payload:s,ref:c}=t;n==="phoenix"&&l==="phx_reply"&&this.heartbeatCallback(t.payload.status=="ok"?"ok":"error"),c&&c===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${s.status||""} ${n} ${l} ${c&&"("+c+")"||""}`,s),Array.from(this.channels).filter(d=>d._isMember(n)).forEach(d=>d._trigger(l,s,c)),this.stateChangeCallbacks.message.forEach(d=>d(t))})}_onConnOpen(){this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this.stateChangeCallbacks.open.forEach(e=>e())}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=t=>{this.log("worker","worker error",t.message),this.workerRef.terminate()},this.workerRef.onmessage=t=>{t.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(t=>t(e))}_onConnError(e){this.log("transport",`${e}`),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(t=>t(e))}_triggerChanError(){this.channels.forEach(e=>e._trigger(Pc.error))}_appendParams(e,t){if(Object.keys(t).length===0)return e;const n=e.match(/\?/)?"&":"?",l=new URLSearchParams(t);return`${e}${n}${l}`}_workerObjectUrl(e){let t;if(e)t=e;else{const n=new Blob([AL],{type:"application/javascript"});t=URL.createObjectURL(n)}return t}}class __ extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function ao(i){return typeof i=="object"&&i!==null&&"__isStorageError"in i}class TL extends __{constructor(e,t){super(e),this.name="StorageApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class Vg extends __{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}var OL=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};const Cw=i=>{let e;return i?e=i:typeof fetch>"u"?e=(...t)=>Mm(async()=>{const{default:n}=await Promise.resolve().then(()=>bh);return{default:n}},void 0).then(({default:n})=>n(...t)):e=fetch,(...t)=>e(...t)},kL=()=>OL(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Mm(()=>Promise.resolve().then(()=>bh),void 0)).Response:Response}),Wg=i=>{if(Array.isArray(i))return i.map(t=>Wg(t));if(typeof i=="function"||i!==Object(i))return i;const e={};return Object.entries(i).forEach(([t,n])=>{const l=t.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));e[l]=Wg(n)}),e};var iu=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};const ag=i=>i.msg||i.message||i.error_description||i.error||JSON.stringify(i),CL=(i,e,t)=>iu(void 0,void 0,void 0,function*(){const n=yield kL();i instanceof n&&!t?.noResolveJson?i.json().then(l=>{e(new TL(ag(l),i.status||500))}).catch(l=>{e(new Vg(ag(l),l))}):e(new Vg(ag(i),i))}),zL=(i,e,t,n)=>{const l={method:i,headers:e?.headers||{}};return i==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json"},e?.headers),n&&(l.body=JSON.stringify(n)),Object.assign(Object.assign({},l),t))};function Dm(i,e,t,n,l,s){return iu(this,void 0,void 0,function*(){return new Promise((c,d)=>{i(t,zL(e,n,l,s)).then(u=>{if(!u.ok)throw u;return n?.noResolveJson?u:u.json()}).then(u=>c(u)).catch(u=>CL(u,d,n))})})}function w0(i,e,t,n){return iu(this,void 0,void 0,function*(){return Dm(i,"GET",e,t,n)})}function _f(i,e,t,n,l){return iu(this,void 0,void 0,function*(){return Dm(i,"POST",e,n,l,t)})}function IL(i,e,t,n,l){return iu(this,void 0,void 0,function*(){return Dm(i,"PUT",e,n,l,t)})}function LL(i,e,t,n){return iu(this,void 0,void 0,function*(){return Dm(i,"HEAD",e,Object.assign(Object.assign({},t),{noResolveJson:!0}),n)})}function zw(i,e,t,n,l){return iu(this,void 0,void 0,function*(){return Dm(i,"DELETE",e,n,l,t)})}var ic=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};const RL={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ix={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class FL{constructor(e,t={},n,l){this.url=e,this.headers=t,this.bucketId=n,this.fetch=Cw(l)}uploadOrUpdate(e,t,n,l){return ic(this,void 0,void 0,function*(){try{let s;const c=Object.assign(Object.assign({},Ix),l);let d=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(c.upsert)});const u=c.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",c.cacheControl),u&&s.append("metadata",this.encodeMetadata(u)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.append("cacheControl",c.cacheControl),u&&s.append("metadata",this.encodeMetadata(u))):(s=n,d["cache-control"]=`max-age=${c.cacheControl}`,d["content-type"]=c.contentType,u&&(d["x-metadata"]=this.toBase64(this.encodeMetadata(u)))),l?.headers&&(d=Object.assign(Object.assign({},d),l.headers));const h=this._removeEmptyFolders(t),m=this._getFinalPath(h),b=yield this.fetch(`${this.url}/object/${m}`,Object.assign({method:e,body:s,headers:d},c?.duplex?{duplex:c.duplex}:{})),g=yield b.json();return b.ok?{data:{path:h,id:g.Id,fullPath:g.Key},error:null}:{data:null,error:g}}catch(s){if(ao(s))return{data:null,error:s};throw s}})}upload(e,t,n){return ic(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,n)})}uploadToSignedUrl(e,t,n,l){return ic(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(e),c=this._getFinalPath(s),d=new URL(this.url+`/object/upload/sign/${c}`);d.searchParams.set("token",t);try{let u;const h=Object.assign({upsert:Ix.upsert},l),m=Object.assign(Object.assign({},this.headers),{"x-upsert":String(h.upsert)});typeof Blob<"u"&&n instanceof Blob?(u=new FormData,u.append("cacheControl",h.cacheControl),u.append("",n)):typeof FormData<"u"&&n instanceof FormData?(u=n,u.append("cacheControl",h.cacheControl)):(u=n,m["cache-control"]=`max-age=${h.cacheControl}`,m["content-type"]=h.contentType);const b=yield this.fetch(d.toString(),{method:"PUT",body:u,headers:m}),g=yield b.json();return b.ok?{data:{path:s,fullPath:g.Key},error:null}:{data:null,error:g}}catch(u){if(ao(u))return{data:null,error:u};throw u}})}createSignedUploadUrl(e,t){return ic(this,void 0,void 0,function*(){try{let n=this._getFinalPath(e);const l=Object.assign({},this.headers);t?.upsert&&(l["x-upsert"]="true");const s=yield _f(this.fetch,`${this.url}/object/upload/sign/${n}`,{},{headers:l}),c=new URL(this.url+s.url),d=c.searchParams.get("token");if(!d)throw new __("No token returned by API");return{data:{signedUrl:c.toString(),path:e,token:d},error:null}}catch(n){if(ao(n))return{data:null,error:n};throw n}})}update(e,t,n){return ic(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,n)})}move(e,t,n){return ic(this,void 0,void 0,function*(){try{return{data:yield _f(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:this.headers}),error:null}}catch(l){if(ao(l))return{data:null,error:l};throw l}})}copy(e,t,n){return ic(this,void 0,void 0,function*(){try{return{data:{path:(yield _f(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:this.headers})).Key},error:null}}catch(l){if(ao(l))return{data:null,error:l};throw l}})}createSignedUrl(e,t,n){return ic(this,void 0,void 0,function*(){try{let l=this._getFinalPath(e),s=yield _f(this.fetch,`${this.url}/object/sign/${l}`,Object.assign({expiresIn:t},n?.transform?{transform:n.transform}:{}),{headers:this.headers});const c=n?.download?`&download=${n.download===!0?"":n.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${c}`)},{data:s,error:null}}catch(l){if(ao(l))return{data:null,error:l};throw l}})}createSignedUrls(e,t,n){return ic(this,void 0,void 0,function*(){try{const l=yield _f(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers}),s=n?.download?`&download=${n.download===!0?"":n.download}`:"";return{data:l.map(c=>Object.assign(Object.assign({},c),{signedUrl:c.signedURL?encodeURI(`${this.url}${c.signedURL}${s}`):null})),error:null}}catch(l){if(ao(l))return{data:null,error:l};throw l}})}download(e,t){return ic(this,void 0,void 0,function*(){const l=typeof t?.transform<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString(t?.transform||{}),c=s?`?${s}`:"";try{const d=this._getFinalPath(e);return{data:yield(yield w0(this.fetch,`${this.url}/${l}/${d}${c}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(d){if(ao(d))return{data:null,error:d};throw d}})}info(e){return ic(this,void 0,void 0,function*(){const t=this._getFinalPath(e);try{const n=yield w0(this.fetch,`${this.url}/object/info/${t}`,{headers:this.headers});return{data:Wg(n),error:null}}catch(n){if(ao(n))return{data:null,error:n};throw n}})}exists(e){return ic(this,void 0,void 0,function*(){const t=this._getFinalPath(e);try{return yield LL(this.fetch,`${this.url}/object/${t}`,{headers:this.headers}),{data:!0,error:null}}catch(n){if(ao(n)&&n instanceof Vg){const l=n.originalError;if([400,404].includes(l?.status))return{data:!1,error:n}}throw n}})}getPublicUrl(e,t){const n=this._getFinalPath(e),l=[],s=t?.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&l.push(s);const d=typeof t?.transform<"u"?"render/image":"object",u=this.transformOptsToQueryString(t?.transform||{});u!==""&&l.push(u);let h=l.join("&");return h!==""&&(h=`?${h}`),{data:{publicUrl:encodeURI(`${this.url}/${d}/public/${n}${h}`)}}}remove(e){return ic(this,void 0,void 0,function*(){try{return{data:yield zw(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(t){if(ao(t))return{data:null,error:t};throw t}})}list(e,t,n){return ic(this,void 0,void 0,function*(){try{const l=Object.assign(Object.assign(Object.assign({},RL),t),{prefix:e||""});return{data:yield _f(this.fetch,`${this.url}/object/list/${this.bucketId}`,l,{headers:this.headers},n),error:null}}catch(l){if(ao(l))return{data:null,error:l};throw l}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}}const ML="2.7.1",DL={"X-Client-Info":`storage-js/${ML}`};var Uu=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};class NL{constructor(e,t={},n){this.url=e,this.headers=Object.assign(Object.assign({},DL),t),this.fetch=Cw(n)}listBuckets(){return Uu(this,void 0,void 0,function*(){try{return{data:yield w0(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(ao(e))return{data:null,error:e};throw e}})}getBucket(e){return Uu(this,void 0,void 0,function*(){try{return{data:yield w0(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(t){if(ao(t))return{data:null,error:t};throw t}})}createBucket(e,t={public:!1}){return Uu(this,void 0,void 0,function*(){try{return{data:yield _f(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(ao(n))return{data:null,error:n};throw n}})}updateBucket(e,t){return Uu(this,void 0,void 0,function*(){try{return{data:yield IL(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers}),error:null}}catch(n){if(ao(n))return{data:null,error:n};throw n}})}emptyBucket(e){return Uu(this,void 0,void 0,function*(){try{return{data:yield _f(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(t){if(ao(t))return{data:null,error:t};throw t}})}deleteBucket(e){return Uu(this,void 0,void 0,function*(){try{return{data:yield zw(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(t){if(ao(t))return{data:null,error:t};throw t}})}}class $L extends NL{constructor(e,t={},n){super(e,t,n)}from(e){return new FL(this.url,this.headers,e,this.fetch)}}const BL="2.50.2";let hm="";typeof Deno<"u"?hm="deno":typeof document<"u"?hm="web":typeof navigator<"u"&&navigator.product==="ReactNative"?hm="react-native":hm="node";const HL={"X-Client-Info":`supabase-js-${hm}/${BL}`},PL={headers:HL},UL={schema:"public"},GL={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},VL={};var WL=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};const jL=i=>{let e;return i?e=i:typeof fetch>"u"?e=yw:e=fetch,(...t)=>e(...t)},qL=()=>typeof Headers>"u"?vw:Headers,YL=(i,e,t)=>{const n=jL(t),l=qL();return(s,c)=>WL(void 0,void 0,void 0,function*(){var d;const u=(d=yield e())!==null&&d!==void 0?d:i;let h=new l(c?.headers);return h.has("apikey")||h.set("apikey",i),h.has("Authorization")||h.set("Authorization",`Bearer ${u}`),n(s,Object.assign(Object.assign({},c),{headers:h}))})};var XL=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};function ZL(i){return i.endsWith("/")?i:i+"/"}function QL(i,e){var t,n;const{db:l,auth:s,realtime:c,global:d}=i,{db:u,auth:h,realtime:m,global:b}=e,g={db:Object.assign(Object.assign({},u),l),auth:Object.assign(Object.assign({},h),s),realtime:Object.assign(Object.assign({},m),c),global:Object.assign(Object.assign(Object.assign({},b),d),{headers:Object.assign(Object.assign({},(t=b?.headers)!==null&&t!==void 0?t:{}),(n=d?.headers)!==null&&n!==void 0?n:{})}),accessToken:()=>XL(this,void 0,void 0,function*(){return""})};return i.accessToken?g.accessToken=i.accessToken:delete g.accessToken,g}const Iw="2.70.0",Yu=30*1e3,jg=3,lg=jg*Yu,KL="http://localhost:9999",JL="supabase.auth.token",eR={"X-Client-Info":`gotrue-js/${Iw}`},qg="X-Supabase-Api-Version",Lw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},tR=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,iR=6e5;class y_ extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t,this.code=n}}function yr(i){return typeof i=="object"&&i!==null&&"__isAuthError"in i}class nR extends y_{constructor(e,t,n){super(e,t,n),this.name="AuthApiError",this.status=t,this.code=n}}function rR(i){return yr(i)&&i.name==="AuthApiError"}class Rw extends y_{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class Ef extends y_{constructor(e,t,n,l){super(e,n,l),this.name=t,this.status=n}}class bf extends Ef{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function aR(i){return yr(i)&&i.name==="AuthSessionMissingError"}class Lp extends Ef{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Rp extends Ef{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Fp extends Ef{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function lR(i){return yr(i)&&i.name==="AuthImplicitGrantRedirectError"}class Lx extends Ef{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Yg extends Ef{constructor(e,t){super(e,"AuthRetryableFetchError",t,void 0)}}function sg(i){return yr(i)&&i.name==="AuthRetryableFetchError"}class Rx extends Ef{constructor(e,t,n){super(e,"AuthWeakPasswordError",t,"weak_password"),this.reasons=n}}class xm extends Ef{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const S0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Fx=`
992
+ \r=`.split(""),sR=(()=>{const i=new Array(128);for(let e=0;e<i.length;e+=1)i[e]=-1;for(let e=0;e<Fx.length;e+=1)i[Fx[e].charCodeAt(0)]=-2;for(let e=0;e<S0.length;e+=1)i[S0[e].charCodeAt(0)]=e;return i})();function Mx(i,e,t){if(i!==null)for(e.queue=e.queue<<8|i,e.queuedBits+=8;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;t(S0[n]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const n=e.queue>>e.queuedBits-6&63;t(S0[n]),e.queuedBits-=6}}function Fw(i,e,t){const n=sR[i];if(n>-1)for(e.queue=e.queue<<6|n,e.queuedBits+=6;e.queuedBits>=8;)t(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(i)}"`)}}function Dx(i){const e=[],t=c=>{e.push(String.fromCodePoint(c))},n={utf8seq:0,codepoint:0},l={queue:0,queuedBits:0},s=c=>{dR(c,n,t)};for(let c=0;c<i.length;c+=1)Fw(i.charCodeAt(c),l,s);return e.join("")}function oR(i,e){if(i<=127){e(i);return}else if(i<=2047){e(192|i>>6),e(128|i&63);return}else if(i<=65535){e(224|i>>12),e(128|i>>6&63),e(128|i&63);return}else if(i<=1114111){e(240|i>>18),e(128|i>>12&63),e(128|i>>6&63),e(128|i&63);return}throw new Error(`Unrecognized Unicode codepoint: ${i.toString(16)}`)}function cR(i,e){for(let t=0;t<i.length;t+=1){let n=i.charCodeAt(t);if(n>55295&&n<=56319){const l=(n-55296)*1024&65535;n=(i.charCodeAt(t+1)-56320&65535|l)+65536,t+=1}oR(n,e)}}function dR(i,e,t){if(e.utf8seq===0){if(i<=127){t(i);return}for(let n=1;n<6;n+=1)if((i>>7-n&1)===0){e.utf8seq=n;break}if(e.utf8seq===2)e.codepoint=i&31;else if(e.utf8seq===3)e.codepoint=i&15;else if(e.utf8seq===4)e.codepoint=i&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(i<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|i&63,e.utf8seq-=1,e.utf8seq===0&&t(e.codepoint)}}function fR(i){const e=[],t={queue:0,queuedBits:0},n=l=>{e.push(l)};for(let l=0;l<i.length;l+=1)Fw(i.charCodeAt(l),t,n);return new Uint8Array(e)}function uR(i){const e=[];return cR(i,t=>e.push(t)),new Uint8Array(e)}function hR(i){const e=[],t={queue:0,queuedBits:0},n=l=>{e.push(l)};return i.forEach(l=>Mx(l,t,n)),Mx(null,t,n),e.join("")}function mR(i){return Math.round(Date.now()/1e3)+i}function pR(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){const e=Math.random()*16|0;return(i=="x"?e:e&3|8).toString(16)})}const Hc=()=>typeof window<"u"&&typeof document<"u",$f={tested:!1,writable:!1},wm=()=>{if(!Hc())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if($f.tested)return $f.writable;const i=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(i,i),globalThis.localStorage.removeItem(i),$f.tested=!0,$f.writable=!0}catch{$f.tested=!0,$f.writable=!1}return $f.writable};function bR(i){const e={},t=new URL(i);if(t.hash&&t.hash[0]==="#")try{new URLSearchParams(t.hash.substring(1)).forEach((l,s)=>{e[s]=l})}catch{}return t.searchParams.forEach((n,l)=>{e[l]=n}),e}const Mw=i=>{let e;return i?e=i:typeof fetch>"u"?e=(...t)=>Mm(async()=>{const{default:n}=await Promise.resolve().then(()=>bh);return{default:n}},void 0).then(({default:n})=>n(...t)):e=fetch,(...t)=>e(...t)},gR=i=>typeof i=="object"&&i!==null&&"status"in i&&"ok"in i&&"json"in i&&typeof i.json=="function",Dw=async(i,e,t)=>{await i.setItem(e,JSON.stringify(t))},Mp=async(i,e)=>{const t=await i.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch{return t}},Dp=async(i,e)=>{await i.removeItem(e)};class $0{constructor(){this.promise=new $0.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}$0.promiseConstructor=Promise;function og(i){const e=i.split(".");if(e.length!==3)throw new xm("Invalid JWT structure");for(let n=0;n<e.length;n++)if(!tR.test(e[n]))throw new xm("JWT not in base64url format");return{header:JSON.parse(Dx(e[0])),payload:JSON.parse(Dx(e[1])),signature:fR(e[2]),raw:{header:e[0],payload:e[1]}}}async function _R(i){return await new Promise(e=>{setTimeout(()=>e(null),i)})}function yR(i,e){return new Promise((n,l)=>{(async()=>{for(let s=0;s<1/0;s++)try{const c=await i(s);if(!e(s,null,c)){n(c);return}}catch(c){if(!e(s,c)){l(c);return}}})()})}function vR(i){return("0"+i.toString(16)).substr(-2)}function xR(){const e=new Uint32Array(56);if(typeof crypto>"u"){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=t.length;let l="";for(let s=0;s<56;s++)l+=t.charAt(Math.floor(Math.random()*n));return l}return crypto.getRandomValues(e),Array.from(e,vR).join("")}async function wR(i){const t=new TextEncoder().encode(i),n=await crypto.subtle.digest("SHA-256",t),l=new Uint8Array(n);return Array.from(l).map(s=>String.fromCharCode(s)).join("")}async function SR(i){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),i;const t=await wR(i);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Gu(i,e,t=!1){const n=xR();let l=n;t&&(l+="/PASSWORD_RECOVERY"),await Dw(i,`${e}-code-verifier`,l);const s=await SR(n);return[s,n===s?"plain":"s256"]}const AR=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function ER(i){const e=i.headers.get(qg);if(!e||!e.match(AR))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function TR(i){if(!i)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(i<=e)throw new Error("JWT has expired")}function OR(i){switch(i){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const kR=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Vu(i){if(!kR.test(i))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}var CR=function(i,e){var t={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(i);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(i,n[l])&&(t[n[l]]=i[n[l]]);return t};const Hf=i=>i.msg||i.message||i.error_description||i.error||JSON.stringify(i),zR=[502,503,504];async function Nx(i){var e;if(!gR(i))throw new Yg(Hf(i),0);if(zR.includes(i.status))throw new Yg(Hf(i),i.status);let t;try{t=await i.json()}catch(s){throw new Rw(Hf(s),s)}let n;const l=ER(i);if(l&&l.getTime()>=Lw["2024-01-01"].timestamp&&typeof t=="object"&&t&&typeof t.code=="string"?n=t.code:typeof t=="object"&&t&&typeof t.error_code=="string"&&(n=t.error_code),n){if(n==="weak_password")throw new Rx(Hf(t),i.status,((e=t.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(n==="session_not_found")throw new bf}else if(typeof t=="object"&&t&&typeof t.weak_password=="object"&&t.weak_password&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.reasons.reduce((s,c)=>s&&typeof c=="string",!0))throw new Rx(Hf(t),i.status,t.weak_password.reasons);throw new nR(Hf(t),i.status||500,n)}const IR=(i,e,t,n)=>{const l={method:i,headers:e?.headers||{}};return i==="GET"?l:(l.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),l.body=JSON.stringify(n),Object.assign(Object.assign({},l),t))};async function Fr(i,e,t,n){var l;const s=Object.assign({},n?.headers);s[qg]||(s[qg]=Lw["2024-01-01"].name),n?.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const c=(l=n?.query)!==null&&l!==void 0?l:{};n?.redirectTo&&(c.redirect_to=n.redirectTo);const d=Object.keys(c).length?"?"+new URLSearchParams(c).toString():"",u=await LR(i,e,t+d,{headers:s,noResolveJson:n?.noResolveJson},{},n?.body);return n?.xform?n?.xform(u):{data:Object.assign({},u),error:null}}async function LR(i,e,t,n,l,s){const c=IR(e,n,l,s);let d;try{d=await i(t,Object.assign({},c))}catch(u){throw console.error(u),new Yg(Hf(u),0)}if(d.ok||await Nx(d),n?.noResolveJson)return d;try{return await d.json()}catch(u){await Nx(u)}}function kd(i){var e;let t=null;DR(i)&&(t=Object.assign({},i),i.expires_at||(t.expires_at=mR(i.expires_in)));const n=(e=i.user)!==null&&e!==void 0?e:i;return{data:{session:t,user:n},error:null}}function $x(i){const e=kd(i);return!e.error&&i.weak_password&&typeof i.weak_password=="object"&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.message&&typeof i.weak_password.message=="string"&&i.weak_password.reasons.reduce((t,n)=>t&&typeof n=="string",!0)&&(e.data.weak_password=i.weak_password),e}function yf(i){var e;return{data:{user:(e=i.user)!==null&&e!==void 0?e:i},error:null}}function RR(i){return{data:i,error:null}}function FR(i){const{action_link:e,email_otp:t,hashed_token:n,redirect_to:l,verification_type:s}=i,c=CR(i,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:e,email_otp:t,hashed_token:n,redirect_to:l,verification_type:s},u=Object.assign({},c);return{data:{properties:d,user:u},error:null}}function MR(i){return i}function DR(i){return i.access_token&&i.refresh_token&&i.expires_in}const cg=["global","local","others"];var NR=function(i,e){var t={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(i);l<n.length;l++)e.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(i,n[l])&&(t[n[l]]=i[n[l]]);return t};class $R{constructor({url:e="",headers:t={},fetch:n}){this.url=e,this.headers=t,this.fetch=Mw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,t=cg[0]){if(cg.indexOf(t)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${cg.join(", ")}`);try{return await Fr(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(yr(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e,t={}){try{return await Fr(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:yf})}catch(n){if(yr(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:t}=e,n=NR(e,["options"]),l=Object.assign(Object.assign({},n),t);return"newEmail"in n&&(l.new_email=n?.newEmail,delete l.newEmail),await Fr(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:l,headers:this.headers,xform:FR,redirectTo:t?.redirectTo})}catch(t){if(yr(t))return{data:{properties:null,user:null},error:t};throw t}}async createUser(e){try{return await Fr(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:yf})}catch(t){if(yr(t))return{data:{user:null},error:t};throw t}}async listUsers(e){var t,n,l,s,c,d,u;try{const h={nextPage:null,lastPage:0,total:0},m=await Fr(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(t=e?.page)===null||t===void 0?void 0:t.toString())!==null&&n!==void 0?n:"",per_page:(s=(l=e?.perPage)===null||l===void 0?void 0:l.toString())!==null&&s!==void 0?s:""},xform:MR});if(m.error)throw m.error;const b=await m.json(),g=(c=m.headers.get("x-total-count"))!==null&&c!==void 0?c:0,_=(u=(d=m.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&u!==void 0?u:[];return _.length>0&&(_.forEach(z=>{const X=parseInt(z.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(z.split(";")[1].split("=")[1]);h[`${y}Page`]=X}),h.total=parseInt(g)),{data:Object.assign(Object.assign({},b),h),error:null}}catch(h){if(yr(h))return{data:{users:[]},error:h};throw h}}async getUserById(e){Vu(e);try{return await Fr(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:yf})}catch(t){if(yr(t))return{data:{user:null},error:t};throw t}}async updateUserById(e,t){Vu(e);try{return await Fr(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:yf})}catch(n){if(yr(n))return{data:{user:null},error:n};throw n}}async deleteUser(e,t=!1){Vu(e);try{return await Fr(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:yf})}catch(n){if(yr(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Vu(e.userId);try{const{data:t,error:n}=await Fr(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:l=>({data:{factors:l},error:null})});return{data:t,error:n}}catch(t){if(yr(t))return{data:null,error:t};throw t}}async _deleteFactor(e){Vu(e.userId),Vu(e.id);try{return{data:await Fr(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(t){if(yr(t))return{data:null,error:t};throw t}}}const BR={getItem:i=>wm()?globalThis.localStorage.getItem(i):null,setItem:(i,e)=>{wm()&&globalThis.localStorage.setItem(i,e)},removeItem:i=>{wm()&&globalThis.localStorage.removeItem(i)}};function Bx(i={}){return{getItem:e=>i[e]||null,setItem:(e,t)=>{i[e]=t},removeItem:e=>{delete i[e]}}}function HR(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Wu={debug:!!(globalThis&&wm()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Nw extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class PR extends Nw{}async function UR(i,e,t){Wu.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",i,e);const n=new globalThis.AbortController;return e>0&&setTimeout(()=>{n.abort(),Wu.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",i)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(i,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async l=>{if(l){Wu.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",i,l.name);try{return await t()}finally{Wu.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",i,l.name)}}else{if(e===0)throw Wu.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",i),new PR(`Acquiring an exclusive Navigator LockManager lock "${i}" immediately failed`);if(Wu.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await t()}}))}HR();const GR={url:KL,storageKey:JL,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:eR,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Hx(i,e,t){return await t()}class Cm{constructor(e){var t,n;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Cm.nextInstanceID,Cm.nextInstanceID+=1,this.instanceID>0&&Hc()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const l=Object.assign(Object.assign({},GR),e);if(this.logDebugMessages=!!l.debug,typeof l.debug=="function"&&(this.logger=l.debug),this.persistSession=l.persistSession,this.storageKey=l.storageKey,this.autoRefreshToken=l.autoRefreshToken,this.admin=new $R({url:l.url,headers:l.headers,fetch:l.fetch}),this.url=l.url,this.headers=l.headers,this.fetch=Mw(l.fetch),this.lock=l.lock||Hx,this.detectSessionInUrl=l.detectSessionInUrl,this.flowType=l.flowType,this.hasCustomAuthorizationHeader=l.hasCustomAuthorizationHeader,l.lock?this.lock=l.lock:Hc()&&(!((t=globalThis?.navigator)===null||t===void 0)&&t.locks)?this.lock=UR:this.lock=Hx,this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?l.storage?this.storage=l.storage:wm()?this.storage=BR:(this.memoryStorage={},this.storage=Bx(this.memoryStorage)):(this.memoryStorage={},this.storage=Bx(this.memoryStorage)),Hc()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(n=this.broadcastChannel)===null||n===void 0||n.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Iw}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const t=bR(window.location.href);let n="none";if(this._isImplicitGrantCallback(t)?n="implicit":await this._isPKCECallback(t)&&(n="pkce"),Hc()&&this.detectSessionInUrl&&n!=="none"){const{data:l,error:s}=await this._getSessionFromURL(t,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),lR(s)){const u=(e=s.details)===null||e===void 0?void 0:e.code;if(u==="identity_already_exists"||u==="identity_not_found"||u==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:c,redirectType:d}=l;return this._debug("#_initialize()","detected session in URL",c,"redirect type",d),await this._saveSession(c),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",c):await this._notifyAllSubscribers("SIGNED_IN",c)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return yr(t)?{error:t}:{error:new Rw("Unexpected error during initialization",t)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var t,n,l;try{const s=await Fr(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(t=e?.options)===null||t===void 0?void 0:t.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(l=e?.options)===null||l===void 0?void 0:l.captchaToken}},xform:kd}),{data:c,error:d}=s;if(d||!c)return{data:{user:null,session:null},error:d};const u=c.session,h=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",u)),{data:{user:h,session:u},error:null}}catch(s){if(yr(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(e){var t,n,l;try{let s;if("email"in e){const{email:m,password:b,options:g}=e;let _=null,z=null;this.flowType==="pkce"&&([_,z]=await Gu(this.storage,this.storageKey)),s=await Fr(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:g?.emailRedirectTo,body:{email:m,password:b,data:(t=g?.data)!==null&&t!==void 0?t:{},gotrue_meta_security:{captcha_token:g?.captchaToken},code_challenge:_,code_challenge_method:z},xform:kd})}else if("phone"in e){const{phone:m,password:b,options:g}=e;s=await Fr(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:m,password:b,data:(n=g?.data)!==null&&n!==void 0?n:{},channel:(l=g?.channel)!==null&&l!==void 0?l:"sms",gotrue_meta_security:{captcha_token:g?.captchaToken}},xform:kd})}else throw new Rp("You must provide either an email or phone number and a password");const{data:c,error:d}=s;if(d||!c)return{data:{user:null,session:null},error:d};const u=c.session,h=c.user;return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",u)),{data:{user:h,session:u},error:null}}catch(s){if(yr(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(e){try{let t;if("email"in e){const{email:s,password:c,options:d}=e;t=await Fr(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:c,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:$x})}else if("phone"in e){const{phone:s,password:c,options:d}=e;t=await Fr(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:c,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:$x})}else throw new Rp("You must provide either an email or phone number and a password");const{data:n,error:l}=t;return l?{data:{user:null,session:null},error:l}:!n||!n.session||!n.user?{data:{user:null,session:null},error:new Lp}:(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:l})}catch(t){if(yr(t))return{data:{user:null,session:null},error:t};throw t}}async signInWithOAuth(e){var t,n,l,s;return await this._handleProviderSignIn(e.provider,{redirectTo:(t=e.options)===null||t===void 0?void 0:t.redirectTo,scopes:(n=e.options)===null||n===void 0?void 0:n.scopes,queryParams:(l=e.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:(s=e.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:t}=e;if(t==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${t}"`)}async signInWithSolana(e){var t,n,l,s,c,d,u,h,m,b,g,_;let z,X;if("message"in e)z=e.message,X=e.signature;else{const{chain:y,wallet:E,statement:T,options:w}=e;let I;if(Hc())if(typeof E=="object")I=E;else{const U=window;if("solana"in U&&typeof U.solana=="object"&&("signIn"in U.solana&&typeof U.solana.signIn=="function"||"signMessage"in U.solana&&typeof U.solana.signMessage=="function"))I=U.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof E!="object"||!w?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");I=E}const K=new URL((t=w?.url)!==null&&t!==void 0?t:window.location.href);if("signIn"in I&&I.signIn){const U=await I.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},w?.signInWithSolana),{version:"1",domain:K.host,uri:K.href}),T?{statement:T}:null));let Y;if(Array.isArray(U)&&U[0]&&typeof U[0]=="object")Y=U[0];else if(U&&typeof U=="object"&&"signedMessage"in U&&"signature"in U)Y=U;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in Y&&"signature"in Y&&(typeof Y.signedMessage=="string"||Y.signedMessage instanceof Uint8Array)&&Y.signature instanceof Uint8Array)z=typeof Y.signedMessage=="string"?Y.signedMessage:new TextDecoder().decode(Y.signedMessage),X=Y.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in I)||typeof I.signMessage!="function"||!("publicKey"in I)||typeof I!="object"||!I.publicKey||!("toBase58"in I.publicKey)||typeof I.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");z=[`${K.host} wants you to sign in with your Solana account:`,I.publicKey.toBase58(),...T?["",T,""]:[""],"Version: 1",`URI: ${K.href}`,`Issued At: ${(l=(n=w?.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&l!==void 0?l:new Date().toISOString()}`,...!((s=w?.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${w.signInWithSolana.notBefore}`]:[],...!((c=w?.signInWithSolana)===null||c===void 0)&&c.expirationTime?[`Expiration Time: ${w.signInWithSolana.expirationTime}`]:[],...!((d=w?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${w.signInWithSolana.chainId}`]:[],...!((u=w?.signInWithSolana)===null||u===void 0)&&u.nonce?[`Nonce: ${w.signInWithSolana.nonce}`]:[],...!((h=w?.signInWithSolana)===null||h===void 0)&&h.requestId?[`Request ID: ${w.signInWithSolana.requestId}`]:[],...!((b=(m=w?.signInWithSolana)===null||m===void 0?void 0:m.resources)===null||b===void 0)&&b.length?["Resources",...w.signInWithSolana.resources.map(Y=>`- ${Y}`)]:[]].join(`
993
+ `);const U=await I.signMessage(new TextEncoder().encode(z),"utf8");if(!U||!(U instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");X=U}}try{const{data:y,error:E}=await Fr(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:z,signature:hR(X)},!((g=e.options)===null||g===void 0)&&g.captchaToken?{gotrue_meta_security:{captcha_token:(_=e.options)===null||_===void 0?void 0:_.captchaToken}}:null),xform:kd});if(E)throw E;return!y||!y.session||!y.user?{data:{user:null,session:null},error:new Lp}:(y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),{data:Object.assign({},y),error:E})}catch(y){if(yr(y))return{data:{user:null,session:null},error:y};throw y}}async _exchangeCodeForSession(e){const t=await Mp(this.storage,`${this.storageKey}-code-verifier`),[n,l]=(t??"").split("/");try{const{data:s,error:c}=await Fr(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:kd});if(await Dp(this.storage,`${this.storageKey}-code-verifier`),c)throw c;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new Lp}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:l??null}),error:c})}catch(s){if(yr(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(e){try{const{options:t,provider:n,token:l,access_token:s,nonce:c}=e,d=await Fr(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:l,access_token:s,nonce:c,gotrue_meta_security:{captcha_token:t?.captchaToken}},xform:kd}),{data:u,error:h}=d;return h?{data:{user:null,session:null},error:h}:!u||!u.session||!u.user?{data:{user:null,session:null},error:new Lp}:(u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",u.session)),{data:u,error:h})}catch(t){if(yr(t))return{data:{user:null,session:null},error:t};throw t}}async signInWithOtp(e){var t,n,l,s,c;try{if("email"in e){const{email:d,options:u}=e;let h=null,m=null;this.flowType==="pkce"&&([h,m]=await Gu(this.storage,this.storageKey));const{error:b}=await Fr(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(t=u?.data)!==null&&t!==void 0?t:{},create_user:(n=u?.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:u?.captchaToken},code_challenge:h,code_challenge_method:m},redirectTo:u?.emailRedirectTo});return{data:{user:null,session:null},error:b}}if("phone"in e){const{phone:d,options:u}=e,{data:h,error:m}=await Fr(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(l=u?.data)!==null&&l!==void 0?l:{},create_user:(s=u?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:u?.captchaToken},channel:(c=u?.channel)!==null&&c!==void 0?c:"sms"}});return{data:{user:null,session:null,messageId:h?.message_id},error:m}}throw new Rp("You must provide either an email or phone number.")}catch(d){if(yr(d))return{data:{user:null,session:null},error:d};throw d}}async verifyOtp(e){var t,n;try{let l,s;"options"in e&&(l=(t=e.options)===null||t===void 0?void 0:t.redirectTo,s=(n=e.options)===null||n===void 0?void 0:n.captchaToken);const{data:c,error:d}=await Fr(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:s}}),redirectTo:l,xform:kd});if(d)throw d;if(!c)throw new Error("An error occurred on token verification.");const u=c.session,h=c.user;return u?.access_token&&(await this._saveSession(u),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",u)),{data:{user:h,session:u},error:null}}catch(l){if(yr(l))return{data:{user:null,session:null},error:l};throw l}}async signInWithSSO(e){var t,n,l;try{let s=null,c=null;return this.flowType==="pkce"&&([s,c]=await Gu(this.storage,this.storageKey)),await Fr(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(n=(t=e.options)===null||t===void 0?void 0:t.redirectTo)!==null&&n!==void 0?n:void 0}),!((l=e?.options)===null||l===void 0)&&l.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:c}),headers:this.headers,xform:RR})}catch(s){if(yr(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new bf;const{error:l}=await Fr(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return{data:{user:null,session:null},error:l}})}catch(e){if(yr(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const t=`${this.url}/resend`;if("email"in e){const{email:n,type:l,options:s}=e,{error:c}=await Fr(this.fetch,"POST",t,{headers:this.headers,body:{email:n,type:l,gotrue_meta_security:{captcha_token:s?.captchaToken}},redirectTo:s?.emailRedirectTo});return{data:{user:null,session:null},error:c}}else if("phone"in e){const{phone:n,type:l,options:s}=e,{data:c,error:d}=await Fr(this.fetch,"POST",t,{headers:this.headers,body:{phone:n,type:l,gotrue_meta_security:{captcha_token:s?.captchaToken}}});return{data:{user:null,session:null,messageId:c?.message_id},error:d}}throw new Rp("You must provide either an email or phone number and a type")}catch(t){if(yr(t))return{data:{user:null,session:null},error:t};throw t}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async t=>t))}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),l=(async()=>(await n,await t()))();return this.pendingInLock.push((async()=>{try{await l}catch{}})()),l}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=t();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const l=[...this.pendingInLock];await Promise.all(l),this.pendingInLock.splice(0,l.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const t=await Mp(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),t!==null&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=e.expires_at?e.expires_at*1e3-Date.now()<lg:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.storage.isServer){let c=this.suppressGetSessionWarning;e=new Proxy(e,{get:(u,h,m)=>(!c&&h==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),c=!0,this.suppressGetSessionWarning=!0),Reflect.get(u,h,m))})}return{data:{session:e},error:null}}const{session:l,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{session:null},error:s}:{data:{session:l},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await Fr(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:yf}):await this._useSession(async t=>{var n,l,s;const{data:c,error:d}=t;if(d)throw d;return!(!((n=c.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new bf}:await Fr(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(l=c.session)===null||l===void 0?void 0:l.access_token)!==null&&s!==void 0?s:void 0,xform:yf})})}catch(t){if(yr(t))return aR(t)&&(await this._removeSession(),await Dp(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:t};throw t}}async updateUser(e,t={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,t))}async _updateUser(e,t={}){try{return await this._useSession(async n=>{const{data:l,error:s}=n;if(s)throw s;if(!l.session)throw new bf;const c=l.session;let d=null,u=null;this.flowType==="pkce"&&e.email!=null&&([d,u]=await Gu(this.storage,this.storageKey));const{data:h,error:m}=await Fr(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:t?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:d,code_challenge_method:u}),jwt:c.access_token,xform:yf});if(m)throw m;return c.user=h.user,await this._saveSession(c),await this._notifyAllSubscribers("USER_UPDATED",c),{data:{user:c.user},error:null}})}catch(n){if(yr(n))return{data:{user:null},error:n};throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new bf;const t=Date.now()/1e3;let n=t,l=!0,s=null;const{payload:c}=og(e.access_token);if(c.exp&&(n=c.exp,l=n<=t),l){const{session:d,error:u}=await this._callRefreshToken(e.refresh_token);if(u)return{data:{user:null,session:null},error:u};if(!d)return{data:{user:null,session:null},error:null};s=d}else{const{data:d,error:u}=await this._getUser(e.access_token);if(u)throw u;s={access_token:e.access_token,refresh_token:e.refresh_token,user:d.user,token_type:"bearer",expires_in:n-t,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(t){if(yr(t))return{data:{session:null,user:null},error:t};throw t}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var n;if(!e){const{data:c,error:d}=t;if(d)throw d;e=(n=c.session)!==null&&n!==void 0?n:void 0}if(!e?.refresh_token)throw new bf;const{session:l,error:s}=await this._callRefreshToken(e.refresh_token);return s?{data:{user:null,session:null},error:s}:l?{data:{user:l.user,session:l},error:null}:{data:{user:null,session:null},error:null}})}catch(t){if(yr(t))return{data:{user:null,session:null},error:t};throw t}}async _getSessionFromURL(e,t){try{if(!Hc())throw new Fp("No browser detected.");if(e.error||e.error_description||e.error_code)throw new Fp(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(t){case"implicit":if(this.flowType==="pkce")throw new Lx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Fp("Not a valid implicit grant flow url.");break;default:}if(t==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Lx("No code detected.");const{data:T,error:w}=await this._exchangeCodeForSession(e.code);if(w)throw w;const I=new URL(window.location.href);return I.searchParams.delete("code"),window.history.replaceState(window.history.state,"",I.toString()),{data:{session:T.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:l,access_token:s,refresh_token:c,expires_in:d,expires_at:u,token_type:h}=e;if(!s||!d||!c||!h)throw new Fp("No session defined in URL");const m=Math.round(Date.now()/1e3),b=parseInt(d);let g=m+b;u&&(g=parseInt(u));const _=g-m;_*1e3<=Yu&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${_}s, should have been closer to ${b}s`);const z=g-b;m-z>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",z,g,m):m-z<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",z,g,m);const{data:X,error:y}=await this._getUser(s);if(y)throw y;const E={provider_token:n,provider_refresh_token:l,access_token:s,expires_in:b,expires_at:g,refresh_token:c,token_type:h,user:X.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:E,redirectType:e.type},error:null}}catch(n){if(yr(n))return{data:{session:null,redirectType:null},error:n};throw n}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const t=await Mp(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&t)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async t=>{var n;const{data:l,error:s}=t;if(s)return{error:s};const c=(n=l.session)===null||n===void 0?void 0:n.access_token;if(c){const{error:d}=await this.admin.signOut(c,e);if(d&&!(rR(d)&&(d.status===404||d.status===401||d.status===403)))return{error:d}}return e!=="others"&&(await this._removeSession(),await Dp(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const t=pR(),n={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,n),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(t)})))(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{var n,l;try{const{data:{session:s},error:c}=t;if(c)throw c;await((n=this.stateChangeEmitters.get(e))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",e,"session",s)}catch(s){await((l=this.stateChangeEmitters.get(e))===null||l===void 0?void 0:l.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",s),console.error(s)}})}async resetPasswordForEmail(e,t={}){let n=null,l=null;this.flowType==="pkce"&&([n,l]=await Gu(this.storage,this.storageKey,!0));try{return await Fr(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:l,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(s){if(yr(s))return{data:null,error:s};throw s}}async getUserIdentities(){var e;try{const{data:t,error:n}=await this.getUser();if(n)throw n;return{data:{identities:(e=t.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(t){if(yr(t))return{data:null,error:t};throw t}}async linkIdentity(e){var t;try{const{data:n,error:l}=await this._useSession(async s=>{var c,d,u,h,m;const{data:b,error:g}=s;if(g)throw g;const _=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(c=e.options)===null||c===void 0?void 0:c.redirectTo,scopes:(d=e.options)===null||d===void 0?void 0:d.scopes,queryParams:(u=e.options)===null||u===void 0?void 0:u.queryParams,skipBrowserRedirect:!0});return await Fr(this.fetch,"GET",_,{headers:this.headers,jwt:(m=(h=b.session)===null||h===void 0?void 0:h.access_token)!==null&&m!==void 0?m:void 0})});if(l)throw l;return Hc()&&!(!((t=e.options)===null||t===void 0)&&t.skipBrowserRedirect)&&window.location.assign(n?.url),{data:{provider:e.provider,url:n?.url},error:null}}catch(n){if(yr(n))return{data:{provider:e.provider,url:null},error:n};throw n}}async unlinkIdentity(e){try{return await this._useSession(async t=>{var n,l;const{data:s,error:c}=t;if(c)throw c;return await Fr(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(l=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&l!==void 0?l:void 0})})}catch(t){if(yr(t))return{data:null,error:t};throw t}}async _refreshAccessToken(e){const t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{const n=Date.now();return await yR(async l=>(l>0&&await _R(200*Math.pow(2,l-1)),this._debug(t,"refreshing attempt",l),await Fr(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:kd})),(l,s)=>{const c=200*Math.pow(2,l);return s&&sg(s)&&Date.now()+c-n<Yu})}catch(n){if(this._debug(t,"error",n),yr(n))return{data:{session:null,user:null},error:n};throw n}finally{this._debug(t,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",n),Hc()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e;const t="#_recoverAndRefresh()";this._debug(t,"begin");try{const n=await Mp(this.storage,this.storageKey);if(this._debug(t,"session from storage",n),!this._isValidSession(n)){this._debug(t,"session is not valid"),n!==null&&await this._removeSession();return}const l=((e=n.expires_at)!==null&&e!==void 0?e:1/0)*1e3-Date.now()<lg;if(this._debug(t,`session has${l?"":" not"} expired with margin of ${lg}s`),l){if(this.autoRefreshToken&&n.refresh_token){const{error:s}=await this._callRefreshToken(n.refresh_token);s&&(console.error(s),sg(s)||(this._debug(t,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",n)}catch(n){this._debug(t,"error",n),console.error(n);return}finally{this._debug(t,"end")}}async _callRefreshToken(e){var t,n;if(!e)throw new bf;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const l=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(l,"begin");try{this.refreshingDeferred=new $0;const{data:s,error:c}=await this._refreshAccessToken(e);if(c)throw c;if(!s.session)throw new bf;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const d={session:s.session,error:null};return this.refreshingDeferred.resolve(d),d}catch(s){if(this._debug(l,"error",s),yr(s)){const c={session:null,error:s};return sg(s)||await this._removeSession(),(t=this.refreshingDeferred)===null||t===void 0||t.resolve(c),c}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(l,"end")}}async _notifyAllSubscribers(e,t,n=!0){const l=`#_notifyAllSubscribers(${e})`;this._debug(l,"begin",t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});const s=[],c=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(e,t)}catch(u){s.push(u)}});if(await Promise.all(c),s.length>0){for(let d=0;d<s.length;d+=1)console.error(s[d]);throw s[0]}}finally{this._debug(l,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await Dw(this.storage,this.storageKey,e)}async _removeSession(){this._debug("#_removeSession()"),await Dp(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Hc()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}catch(t){console.error("removing visibilitychange callback failed",t)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),Yu);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async t=>{const{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const l=Math.floor((n.expires_at*1e3-e)/Yu);this._debug("#_autoRefreshTokenTick()",`access token expires in ${l} ticks, a tick lasts ${Yu}ms, refresh threshold is ${jg} ticks`),l<=jg&&await this._callRefreshToken(n.refresh_token)})}catch(t){console.error("Auto refresh tick failed with error. This is likely a transient error.",t)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof Nw)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Hc()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const t=`#_onVisibilityChanged(${e})`;this._debug(t,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){const l=[`provider=${encodeURIComponent(t)}`];if(n?.redirectTo&&l.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n?.scopes&&l.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,c]=await Gu(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(c)}`});l.push(d.toString())}if(n?.queryParams){const s=new URLSearchParams(n.queryParams);l.push(s.toString())}return n?.skipBrowserRedirect&&l.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${l.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var n;const{data:l,error:s}=t;return s?{data:null,error:s}:await Fr(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(n=l?.session)===null||n===void 0?void 0:n.access_token})})}catch(t){if(yr(t))return{data:null,error:t};throw t}}async _enroll(e){try{return await this._useSession(async t=>{var n,l;const{data:s,error:c}=t;if(c)return{data:null,error:c};const d=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:u,error:h}=await Fr(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(n=s?.session)===null||n===void 0?void 0:n.access_token});return h?{data:null,error:h}:(e.factorType==="totp"&&(!((l=u?.totp)===null||l===void 0)&&l.qr_code)&&(u.totp.qr_code=`data:image/svg+xml;utf-8,${u.totp.qr_code}`),{data:u,error:null})})}catch(t){if(yr(t))return{data:null,error:t};throw t}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;const{data:l,error:s}=t;if(s)return{data:null,error:s};const{data:c,error:d}=await Fr(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(n=l?.session)===null||n===void 0?void 0:n.access_token});return d?{data:null,error:d}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),{data:c,error:d})})}catch(t){if(yr(t))return{data:null,error:t};throw t}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async t=>{var n;const{data:l,error:s}=t;return s?{data:null,error:s}:await Fr(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(n=l?.session)===null||n===void 0?void 0:n.access_token})})}catch(t){if(yr(t))return{data:null,error:t};throw t}})}async _challengeAndVerify(e){const{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?{data:null,error:n}:await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){const{data:{user:e},error:t}=await this.getUser();if(t)return{data:null,error:t};const n=e?.factors||[],l=n.filter(c=>c.factor_type==="totp"&&c.status==="verified"),s=n.filter(c=>c.factor_type==="phone"&&c.status==="verified");return{data:{all:n,totp:l,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var t,n;const{data:{session:l},error:s}=e;if(s)return{data:null,error:s};if(!l)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=og(l.access_token);let d=null;c.aal&&(d=c.aal);let u=d;((n=(t=l.user.factors)===null||t===void 0?void 0:t.filter(b=>b.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(u="aal2");const m=c.amr||[];return{data:{currentLevel:d,nextLevel:u,currentAuthenticationMethods:m},error:null}}))}async fetchJwk(e,t={keys:[]}){let n=t.keys.find(c=>c.kid===e);if(n||(n=this.jwks.keys.find(c=>c.kid===e),n&&this.jwks_cached_at+iR>Date.now()))return n;const{data:l,error:s}=await Fr(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;if(!l.keys||l.keys.length===0)throw new xm("JWKS is empty");if(this.jwks=l,this.jwks_cached_at=Date.now(),n=l.keys.find(c=>c.kid===e),!n)throw new xm("No matching signing key found in JWKS");return n}async getClaims(e,t={keys:[]}){try{let n=e;if(!n){const{data:_,error:z}=await this.getSession();if(z||!_.session)return{data:null,error:z};n=_.session.access_token}const{header:l,payload:s,signature:c,raw:{header:d,payload:u}}=og(n);if(TR(s.exp),!l.kid||l.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:_}=await this.getUser(n);if(_)throw _;return{data:{claims:s,header:l,signature:c},error:null}}const h=OR(l.alg),m=await this.fetchJwk(l.kid,t),b=await crypto.subtle.importKey("jwk",m,h,!0,["verify"]);if(!await crypto.subtle.verify(h,b,c,uR(`${d}.${u}`)))throw new xm("Invalid JWT signature");return{data:{claims:s,header:l,signature:c},error:null}}catch(n){if(yr(n))return{data:null,error:n};throw n}}}Cm.nextInstanceID=0;const VR=Cm;class WR extends VR{constructor(e){super(e)}}var jR=function(i,e,t,n){function l(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function d(m){try{h(n.next(m))}catch(b){c(b)}}function u(m){try{h(n.throw(m))}catch(b){c(b)}}function h(m){m.done?s(m.value):l(m.value).then(d,u)}h((n=n.apply(i,e||[])).next())})};class qR{constructor(e,t,n){var l,s,c;if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw new Error("supabaseUrl is required.");if(!t)throw new Error("supabaseKey is required.");const d=ZL(e),u=new URL(d);this.realtimeUrl=new URL("realtime/v1",u),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",u),this.storageUrl=new URL("storage/v1",u),this.functionsUrl=new URL("functions/v1",u);const h=`sb-${u.hostname.split(".")[0]}-auth-token`,m={db:UL,realtime:VL,auth:Object.assign(Object.assign({},GL),{storageKey:h}),global:PL},b=QL(n??{},m);this.storageKey=(l=b.auth.storageKey)!==null&&l!==void 0?l:"",this.headers=(s=b.global.headers)!==null&&s!==void 0?s:{},b.accessToken?(this.accessToken=b.accessToken,this.auth=new Proxy({},{get:(g,_)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(_)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((c=b.auth)!==null&&c!==void 0?c:{},this.headers,b.global.fetch),this.fetch=YL(t,this._getAccessToken.bind(this),b.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},b.realtime)),this.rest=new dL(new URL("rest/v1",u).href,{headers:this.headers,schema:b.db.schema,fetch:this.fetch}),b.accessToken||this._listenForAuthEvents()}get functions(){return new K5(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new $L(this.storageUrl.href,this.headers,this.fetch)}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,t;return jR(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:n}=yield this.auth.getSession();return(t=(e=n.session)===null||e===void 0?void 0:e.access_token)!==null&&t!==void 0?t:null})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:l,storageKey:s,flowType:c,lock:d,debug:u},h,m){const b={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new WR({url:this.authUrl.href,headers:Object.assign(Object.assign({},b),h),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:l,flowType:c,lock:d,debug:u,fetch:m,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(e){return new EL(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,n)=>{this._handleTokenChanged(t,"CLIENT",n?.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?this.changedAccessToken=n:e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const YR=(i,e,t)=>new qR(i,e,t),XR=YR("https://xovkkfhojasbjinfslpx.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhvdmtrZmhvamFzYmppbmZzbHB4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTM1ODQ0ODAsImV4cCI6MjAwOTE2MDQ4MH0.L3-X0p_un0oSTNubPwtfGo0D8g2bkPIfz7CaZ-iRYXY");async function ZR(i){const{error:e}=await XR.from("metrics").insert(i);return e}var Px=[],cm=[];function QR(i,e){if(i&&typeof document<"u"){var t,n=e.prepend===!0?"prepend":"append",l=e.singleTag===!0,s=typeof e.container=="string"?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(l){var c=Px.indexOf(s);c===-1&&(c=Px.push(s)-1,cm[c]={}),t=cm[c]&&cm[c][n]?cm[c][n]:cm[c][n]=d()}else t=d();i.charCodeAt(0)===65279&&(i=i.substring(1)),t.styleSheet?t.styleSheet.cssText+=i:t.appendChild(document.createTextNode(i))}function d(){var u=document.createElement("style");if(u.setAttribute("type","text/css"),e.attributes)for(var h=Object.keys(e.attributes),m=0;m<h.length;m++)u.setAttribute(h[m],e.attributes[h[m]]);var b=n==="prepend"?"afterbegin":"beforeend";return s.insertAdjacentElement(b,u),u}}var KR=":root{--cosmograph-watermark-color:#fff}.style_module_watermark__6b4371ae{bottom:0;color:var(--cosmograph-watermark-color);cursor:pointer;line-height:0;margin:0 .6rem .6rem 0;position:absolute;right:0;user-select:none}.style_module_cosmograph__6b4371ae{display:flex;height:100%;overflow:hidden;position:relative;width:100%}.style_module_cosmographShowLabelsFor__6b4371ae{opacity:1}.style_module_cosmographShowTopLabels__6b4371ae{opacity:.9}.style_module_cosmographShowDynamicLabels__6b4371ae{opacity:.7}",dm={watermark:"style_module_watermark__6b4371ae",cosmograph:"style_module_cosmograph__6b4371ae",cosmographShowLabelsFor:"style_module_cosmographShowLabelsFor__6b4371ae",cosmographShowTopLabels:"style_module_cosmographShowTopLabels__6b4371ae",cosmographShowDynamicLabels:"style_module_cosmographShowDynamicLabels__6b4371ae"};QR(KR,{});const Ux={disableSimulation:null,showDynamicLabels:!0,showTopLabels:!1,showTopLabelsLimit:100,showTopLabelsValueKey:void 0,showLabelsFor:void 0,showHoveredNodeLabel:!0,nodeLabelAccessor:i=>i.id,nodeLabelClassName:void 0,nodeLabelColor:void 0,hoveredNodeLabelClassName:void 0,hoveredNodeLabelColor:void 0,onSetData:void 0,onNodesFiltered:void 0,onLinksFiltered:void 0,onLabelClick:void 0};let v_=nh,Gx=nh,Vx=nh,$w=Hw,Bw=Pw;typeof Uint8Array<"u"&&(v_=function(i){return new Uint8Array(i)},Gx=function(i){return new Uint16Array(i)},Vx=function(i){return new Uint32Array(i)},$w=function(i,e){if(i.length>=e)return i;var t=new i.constructor(e);return t.set(i),t},Bw=function(i,e){var t;switch(e){case 16:t=Gx(i.length);break;case 32:t=Vx(i.length);break;default:throw new Error("invalid array width!")}return t.set(i),t});function nh(i){for(var e=new Array(i),t=-1;++t<i;)e[t]=0;return e}function Hw(i,e){for(var t=i.length;t<e;)i[t++]=0;return i}function Pw(i,e){if(e>32)throw new Error("invalid array width!");return i}function bd(i){this.length=i,this.subarrays=1,this.width=8,this.masks={0:0},this[0]=v_(i)}bd.prototype.lengthen=function(i){var e,t;for(e=0,t=this.subarrays;e<t;++e)this[e]=$w(this[e],i);this.length=i};bd.prototype.add=function(){var i,e,t,n,l;for(n=0,l=this.subarrays;n<l;++n)if(i=this.masks[n],e=this.width-32*n,t=(~i&i+1)>>>0,!(e>=32&&!t))return e<32&&t&1<<e&&(this[n]=Bw(this[n],e<<=1),this.width=32*n+e),this.masks[n]|=t,{offset:n,one:t};return this[this.subarrays]=v_(this.length),this.masks[this.subarrays]=1,this.width+=8,{offset:this.subarrays++,one:1}};bd.prototype.copy=function(i,e){var t,n;for(t=0,n=this.subarrays;t<n;++t)this[t][i]=this[t][e]};bd.prototype.truncate=function(i){var e,t;for(e=0,t=this.subarrays;e<t;++e)for(var n=this.length-1;n>=i;n--)this[e][n]=0;this.length=i};bd.prototype.zero=function(i){var e,t;for(e=0,t=this.subarrays;e<t;++e)if(this[e][i])return!1;return!0};bd.prototype.zeroExcept=function(i,e,t){var n,l;for(n=0,l=this.subarrays;n<l;++n)if(n===e?this[n][i]&t:this[n][i])return!1;return!0};bd.prototype.zeroExceptMask=function(i,e){var t,n;for(t=0,n=this.subarrays;t<n;++t)if(this[t][i]&e[t])return!1;return!0};bd.prototype.only=function(i,e,t){var n,l;for(n=0,l=this.subarrays;n<l;++n)if(this[n][i]!=(n===e?t:0))return!1;return!0};bd.prototype.onlyExcept=function(i,e,t,n,l){var s,c,d;for(c=0,d=this.subarrays;c<d;++c)if(s=this[c][i],c===e&&(s=(s&t)>>>0),s!=(c===n?l:0))return!1;return!0};const vf={array8:nh,array16:nh,array32:nh,arrayLengthen:Hw,arrayWiden:Pw,bitarray:bd},JR=(i,e)=>function(t){var n=t.length;return[i.left(t,e,0,n),i.right(t,e,0,n)]},eF=(i,e)=>{var t=e[0],n=e[1];return function(l){var s=l.length;return[i.left(l,t,0,s),i.left(l,n,0,s)]}},tF=i=>[0,i.length],ju={filterExact:JR,filterRange:eF,filterAll:tF},zm=i=>i,sd=()=>null,Np=()=>0;function Uw(i){function e(l,s,c){for(var d=c-s,u=(d>>>1)+1;--u>0;)n(l,u,d,s);return l}function t(l,s,c){for(var d=c-s,u;--d>0;)u=l[s],l[s]=l[s+d],l[s+d]=u,n(l,1,d,s);return l}function n(l,s,c,d){for(var u=l[--d+s],h=i(u),m;(m=s<<1)<=c&&(m<c&&i(l[d+m])>i(l[d+m+1])&&m++,!(h<=i(l[d+m])));)l[d+s]=l[d+m],s=m;l[d+s]=u}return e.sort=t,e}const B0=Uw(zm);B0.by=Uw;function Gw(i){var e=B0.by(i);function t(n,l,s,c){var d=new Array(c=Math.min(s-l,c)),u,h,m;for(h=0;h<c;++h)d[h]=n[l++];if(e(d,0,c),l<s){u=i(d[0]);do i(m=n[l])>u&&(d[0]=m,u=i(e(d,0,c)[0]));while(++l<s)}return d}return t}const x_=Gw(zm);x_.by=Gw;function Vw(i){function e(n,l,s,c){for(;s<c;){var d=s+c>>>1;i(n[d])<l?s=d+1:c=d}return s}function t(n,l,s,c){for(;s<c;){var d=s+c>>>1;l<i(n[d])?c=d:s=d+1}return s}return t.right=t,t.left=e,t}const A0=Vw(zm);A0.by=Vw;const e0=(i,e,t)=>{for(var n=0,l=e.length,s=t?JSON.parse(JSON.stringify(i)):new Array(l);n<l;++n)s[n]=i[e[n]];return s},iF=i=>i+1,nF=i=>i-1,rF=i=>function(e,t){return e+ +i(t)},aF=i=>function(e,t){return e-i(t)},mf={reduceIncrement:iF,reduceDecrement:nF,reduceAdd:rF,reduceSubtract:aF};function lF(i,e,t,n,l){for(l in n=(t=t.split(".")).splice(-1,1),t)e=e[t[l]]=e[t[l]]||{};return i(e,n)}const sF=(i,e)=>{const t=i[e];return typeof t=="function"?t.call(i):t},oF=/\[([\w\d]+)\]/g,cF=(i,e)=>lF(sF,i,e.replace(oF,".$1"));var pf=-1;Nm.heap=B0;Nm.heapselect=x_;Nm.bisect=A0;Nm.permute=e0;function Nm(){var i={add:u,remove:h,dimension:g,groupAll:_,size:z,all:X,allFiltered:y,onChange:E,isElementFiltered:b},e=[],t=0,n,l=[],s=[],c=[],d=[];n=new vf.bitarray(0);function u(w){var I=t,K=w.length;return K&&(e=e.concat(w),n.lengthen(t+=K),s.forEach(function(U){U(w,I,K)}),T("dataAdded")),i}function h(w){for(var I=new Array(t),K=[],U=typeof w=="function",Y=function(x){return U?w(e[x],x):n.zero(x)},J=0,S=0;J<t;++J)Y(J)?(K.push(J),I[J]=pf):I[J]=S++;l.forEach(function(x){x(-1,-1,[],K,!0)}),c.forEach(function(x){x(I)});for(var Q=0,ae=0;Q<t;++Q)I[Q]!==pf&&(Q!==ae&&(n.copy(ae,Q),e[ae]=e[Q]),++ae);e.length=t=ae,n.truncate(ae),T("dataRemoved")}function m(w){var I,K,U,Y,J=Array(n.subarrays);for(I=0;I<n.subarrays;I++)J[I]=-1;for(K=0,U=w.length;K<U;K++)Y=w[K].id(),J[Y>>7]&=~(1<<(Y&63));return J}function b(w,I){var K=m(I||[]);return n.zeroExceptMask(w,K)}function g(w,I){if(typeof w=="string"){var K=w;w=function(ne){return cF(ne,K)}}var U={filter:re,filterExact:Rt,filterRange:Ve,filterFunction:he,filterAll:Fe,currentFilter:Z,hasCurrentFilter:ie,top:be,bottom:Ge,group:N,groupAll:$e,dispose:He,remove:He,accessor:w,id:function(){return Q}},Y,J,S,Q,ae,x,A,O,k,C,ee=[],Re=function(ne){return dg(ne).sort(function(me,B){var j=A[me],ue=A[B];return j<ue?-1:j>ue?1:me-B})},ge=ju.filterAll,F,H,R,$=[],q=[],se=0,te=0,qe=0,we;s.unshift(G),s.push(de),c.push(Ae);var Se=n.add();S=Se.offset,Y=Se.one,J=~Y,Q=S<<7|Math.log(Y)/Math.log(2),G(e,0,t),de(e,0,t);function G(ne,me,B){var j,ue;if(I){qe=0,Be=0,we=[];for(var M=0;M<ne.length;M++)for(Be=0,we=w(ne[M]);Be<we.length;Be++)qe++;A=[],j=dg(ne.length),ue=Pf(qe,1);for(var le=dg(qe),De=0,Ee=0;Ee<ne.length;Ee++){if(we=w(ne[Ee]),!we.length){j[Ee]=0,ee.push(Ee+me);continue}for(j[Ee]=we.length,Be=0;Be<we.length;Be++)A.push(we[Be]),le[De]=Ee,De++}var ft=Re(qe);A=e0(A,ft),O=e0(le,ft)}else A=ne.map(w),O=Re(B),A=e0(A,O);var At=ge(A),lt=At[0],Ke=At[1],tt,fe,je;if(I)if(B=qe,F)for(tt=0;tt<B;++tt)F(A[tt],tt)||(--j[O[tt]]===0&&(n[S][O[tt]+me]|=Y),ue[tt]=1);else{for(fe=0;fe<lt;++fe)--j[O[fe]]===0&&(n[S][O[fe]+me]|=Y),ue[fe]=1;for(je=Ke;je<B;++je)--j[O[je]]===0&&(n[S][O[je]+me]|=Y),ue[je]=1}else if(F)for(tt=0;tt<B;++tt)F(A[tt],tt)||(n[S][O[tt]+me]|=Y);else{for(fe=0;fe<lt;++fe)n[S][O[fe]+me]|=Y;for(je=Ke;je<B;++je)n[S][O[je]+me]|=Y}if(!me){ae=A,x=O,k=j,C=ue,se=lt,te=Ke;return}var ot=ae,Ne=x,et=C,ht,Ue=0;if(M=0,I&&(ht=me,me=ot.length,B=qe),ae=I?new Array(me+B):new Array(t),x=I?new Array(me+B):Pf(t,t),I&&(C=Pf(me+B,1)),I){var Me=k.length;k=vf.arrayLengthen(k,t);for(var Be=0;Be+Me<t;Be++)k[Be+Me]=j[Be]}for(var ke=0;M<me&&Ue<B;++ke)ot[M]<A[Ue]?(ae[ke]=ot[M],I&&(C[ke]=et[M]),x[ke]=Ne[M++]):(ae[ke]=A[Ue],I&&(C[ke]=ue[Ue]),x[ke]=O[Ue++]+(I?ht:me));for(;M<me;++M,++ke)ae[ke]=ot[M],I&&(C[ke]=et[M]),x[ke]=Ne[M];for(;Ue<B;++Ue,++ke)ae[ke]=A[Ue],I&&(C[ke]=ue[Ue]),x[ke]=O[Ue]+(I?ht:me);At=ge(ae),se=At[0],te=At[1]}function de(ne,me,B){$.forEach(function(j){j(A,O,me,B)}),A=O=null}function Ae(ne){if(I){for(var me=0,B=0;me<ee.length;me++)ne[ee[me]]!==pf&&(ee[B]=ne[ee[me]],B++);for(ee.length=B,me=0,B=0;me<t;me++)ne[me]!==pf&&(B!==me&&(k[B]=k[me]),B++);k=k.slice(0,B)}for(var j=ae.length,ue=0,M=0,le;ue<j;++ue)le=x[ue],ne[le]!==pf&&(ue!==M&&(ae[M]=ae[ue]),x[M]=ne[le],I&&(C[M]=C[ue]),++M);for(ae.length=M,I&&(C=C.slice(0,M));M<j;)x[M++]=0;var De=ge(ae);se=De[0],te=De[1]}function W(ne){var me=ne[0],B=ne[1];if(F)return F=null,L(function(Ke,tt){return me<=tt&&tt<B},ne[0]===0&&ne[1]===ae.length),se=me,te=B,U;var j,ue,M,le=[],De=[],Ee=[],ft=[];if(me<se)for(j=me,ue=Math.min(se,B);j<ue;++j)le.push(x[j]),Ee.push(j);else if(me>se)for(j=se,ue=Math.min(me,te);j<ue;++j)De.push(x[j]),ft.push(j);if(B>te)for(j=Math.max(me,te),ue=B;j<ue;++j)le.push(x[j]),Ee.push(j);else if(B<te)for(j=Math.max(se,B),ue=te;j<ue;++j)De.push(x[j]),ft.push(j);if(I){var At=[],lt=[];for(j=0;j<le.length;j++)k[le[j]]++,C[Ee[j]]=0,k[le[j]]===1&&(n[S][le[j]]^=Y,At.push(le[j]));for(j=0;j<De.length;j++)k[De[j]]--,C[ft[j]]=1,k[De[j]]===0&&(n[S][De[j]]^=Y,lt.push(De[j]));if(le=At,De=lt,ge===ju.filterAll)for(j=0;j<ee.length;j++)n[S][M=ee[j]]&Y&&(n[S][M]^=Y,le.push(M));else for(j=0;j<ee.length;j++)n[S][M=ee[j]]&Y||(n[S][M]^=Y,De.push(M))}else{for(j=0;j<le.length;j++)n[S][le[j]]^=Y;for(j=0;j<De.length;j++)n[S][De[j]]^=Y}return se=me,te=B,l.forEach(function(Ke){Ke(Y,S,le,De)}),T("filtered"),U}function re(ne){return ne==null?Fe():Array.isArray(ne)?Ve(ne):typeof ne=="function"?he(ne):Rt(ne)}function Rt(ne){return H=ne,R=!0,W((ge=ju.filterExact(A0,ne))(ae))}function Ve(ne){return H=ne,R=!0,W((ge=ju.filterRange(A0,ne))(ae))}function Fe(){return H=void 0,R=!1,W((ge=ju.filterAll)(ae))}function he(ne){H=ne,R=!0,F=ne,ge=ju.filterAll,L(ne,!1);var me=ge(ae);return se=me[0],te=me[1],U}function L(ne,me){var B,j,ue,M=[],le=[],De=[],Ee=[],ft=ae.length;if(!I)for(B=0;B<ft;++B)!(n[S][j=x[B]]&Y)^!!(ue=ne(ae[B],B))&&(ue?M.push(j):le.push(j));if(I)for(B=0;B<ft;++B)ne(ae[B],B)?(M.push(x[B]),De.push(B)):(le.push(x[B]),Ee.push(B));if(I){var At=[],lt=[];for(B=0;B<M.length;B++)C[De[B]]===1&&(k[M[B]]++,C[De[B]]=0,k[M[B]]===1&&(n[S][M[B]]^=Y,At.push(M[B])));for(B=0;B<le.length;B++)C[Ee[B]]===0&&(k[le[B]]--,C[Ee[B]]=1,k[le[B]]===0&&(n[S][le[B]]^=Y,lt.push(le[B])));if(M=At,le=lt,me)for(B=0;B<ee.length;B++)n[S][j=ee[B]]&Y&&(n[S][j]^=Y,M.push(j));else for(B=0;B<ee.length;B++)n[S][j=ee[B]]&Y||(n[S][j]^=Y,le.push(j))}else{for(B=0;B<M.length;B++)n[S][M[B]]&Y&&(n[S][M[B]]&=J);for(B=0;B<le.length;B++)n[S][le[B]]&Y||(n[S][le[B]]|=Y)}l.forEach(function(Ke){Ke(Y,S,M,le)}),T("filtered")}function Z(){return H}function ie(){return R}function be(ne,me){var B=[],j=te,ue,M=0;for(me&&me>0&&(M=me);--j>=se&&ne>0;)n.zero(ue=x[j])&&(M>0?--M:(B.push(e[ue]),--ne));if(I)for(j=0;j<ee.length&&ne>0;j++)n.zero(ue=ee[j])&&(M>0?--M:(B.push(e[ue]),--ne));return B}function Ge(ne,me){var B=[],j,ue,M=0;if(me&&me>0&&(M=me),I)for(j=0;j<ee.length&&ne>0;j++)n.zero(ue=ee[j])&&(M>0?--M:(B.push(e[ue]),--ne));for(j=se;j<te&&ne>0;)n.zero(ue=x[j])&&(M>0?--M:(B.push(e[ue]),--ne)),j++;return B}function N(ne){var me={top:Te,all:ke,reduce:ze,reduceCount:Xe,reduceSum:ut,order:at,orderNatural:Je,size:it,dispose:ct,remove:ct};q.push(me);var B,j,ue=8,M=Wx(ue),le=0,De,Ee,ft,At,lt,Ke=sd,tt=sd,fe=!0,je=ne===sd,ot;arguments.length<1&&(ne=zm),l.push(Ke),$.push(Ne),c.push(et),Ne(ae,x,0,t);function Ne(ve,D,oe,xe){I&&(ot=oe,oe=ae.length-ve.length,xe=ve.length);var ce=B,Oe=I?[]:Pf(le,M),Ye=ft,pe=At,Ce=lt,Qe=le,Pe=0,ye=0,mt,wt,Le,_t,bt,nt;for(fe&&(Ye=Ce=sd),fe&&(pe=Ce=sd),B=new Array(le),le=0,I?j=Qe?j:[]:j=Qe>1?vf.arrayLengthen(j,t):Pf(t,M),Qe&&(Le=(wt=ce[0]).key);ye<xe&&!((_t=ne(ve[ye]))>=_t);)++ye;for(;ye<xe;){for(wt&&Le<=_t?(bt=wt,nt=Le,Oe[Pe]=le,wt=ce[++Pe],wt&&(Le=wt.key)):(bt={key:_t,value:Ce()},nt=_t),B[le]=bt;_t<=nt&&(mt=D[ye]+(I?ot:oe),I?j[mt]?j[mt].push(le):j[mt]=[le]:j[mt]=le,bt.value=Ye(bt.value,e[mt],!0),n.zeroExcept(mt,S,J)||(bt.value=pe(bt.value,e[mt],!1)),!(++ye>=xe));)_t=ne(ve[ye]);Lt()}for(;Pe<Qe;)B[Oe[Pe]=le]=ce[Pe++],Lt();if(I)for(var yt=0;yt<t;yt++)j[yt]||(j[yt]=[]);if(le>Pe)if(I)for(Pe=0;Pe<ot;++Pe)for(yt=0;yt<j[Pe].length;yt++)j[Pe][yt]=Oe[j[Pe][yt]];else for(Pe=0;Pe<oe;++Pe)j[Pe]=Oe[j[Pe]];mt=l.indexOf(Ke),le>1||I?(Ke=ht,tt=Me):(!le&&je&&(le=1,B=[{key:null,value:Ce()}]),le===1?(Ke=Ue,tt=Be):(Ke=sd,tt=sd),j=null),l[mt]=Ke;function Lt(){if(I){le++;return}++le===M&&(Oe=vf.arrayWiden(Oe,ue<<=1),j=vf.arrayWiden(j,ue),M=Wx(ue))}}function et(ve){if(le>1||I){var D=le,oe=B,xe=Pf(D,D),ce,Oe,Ye;if(I){for(ce=0,Ye=0;ce<t;++ce)if(ve[ce]!==pf){for(j[Ye]=j[ce],Oe=0;Oe<j[Ye].length;Oe++)xe[j[Ye][Oe]]=1;++Ye}j=j.slice(0,Ye)}else for(ce=0,Ye=0;ce<t;++ce)ve[ce]!==pf&&(xe[j[Ye]=j[ce]]=1,++Ye);for(B=[],le=0,ce=0;ce<D;++ce)xe[ce]&&(xe[ce]=le++,B.push(oe[ce]));if(le>1||I)if(I)for(ce=0;ce<Ye;++ce)for(Oe=0;Oe<j[ce].length;++Oe)j[ce][Oe]=xe[j[ce][Oe]];else for(ce=0;ce<Ye;++ce)j[ce]=xe[j[ce]];else j=null;l[l.indexOf(Ke)]=le>1||I?(tt=Me,Ke=ht):le===1?(tt=Be,Ke=Ue):tt=Ke=sd}else if(le===1){if(je)return;for(var pe=0;pe<t;++pe)if(ve[pe]!==pf)return;B=[],le=0,l[l.indexOf(Ke)]=Ke=tt=sd}}function ht(ve,D,oe,xe,ce){if(!(ve===Y&&D===S||fe)){var Oe,Ye,pe,Ce,Qe;if(I){for(Oe=0,Ce=oe.length;Oe<Ce;++Oe)if(n.zeroExcept(pe=oe[Oe],S,J))for(Ye=0;Ye<j[pe].length;Ye++)Qe=B[j[pe][Ye]],Qe.value=ft(Qe.value,e[pe],!1,Ye);for(Oe=0,Ce=xe.length;Oe<Ce;++Oe)if(n.onlyExcept(pe=xe[Oe],S,J,D,ve))for(Ye=0;Ye<j[pe].length;Ye++)Qe=B[j[pe][Ye]],Qe.value=At(Qe.value,e[pe],ce,Ye);return}for(Oe=0,Ce=oe.length;Oe<Ce;++Oe)n.zeroExcept(pe=oe[Oe],S,J)&&(Qe=B[j[pe]],Qe.value=ft(Qe.value,e[pe],!1));for(Oe=0,Ce=xe.length;Oe<Ce;++Oe)n.onlyExcept(pe=xe[Oe],S,J,D,ve)&&(Qe=B[j[pe]],Qe.value=At(Qe.value,e[pe],ce))}}function Ue(ve,D,oe,xe,ce){if(!(ve===Y&&D===S||fe)){var Oe,Ye,pe,Ce=B[0];for(Oe=0,pe=oe.length;Oe<pe;++Oe)n.zeroExcept(Ye=oe[Oe],S,J)&&(Ce.value=ft(Ce.value,e[Ye],!1));for(Oe=0,pe=xe.length;Oe<pe;++Oe)n.onlyExcept(Ye=xe[Oe],S,J,D,ve)&&(Ce.value=At(Ce.value,e[Ye],ce))}}function Me(){var ve,D,oe;for(ve=0;ve<le;++ve)B[ve].value=lt();if(I){for(ve=0;ve<t;++ve)for(D=0;D<j[ve].length;D++)oe=B[j[ve][D]],oe.value=ft(oe.value,e[ve],!0,D);for(ve=0;ve<t;++ve)if(!n.zeroExcept(ve,S,J))for(D=0;D<j[ve].length;D++)oe=B[j[ve][D]],oe.value=At(oe.value,e[ve],!1,D);return}for(ve=0;ve<t;++ve)oe=B[j[ve]],oe.value=ft(oe.value,e[ve],!0);for(ve=0;ve<t;++ve)n.zeroExcept(ve,S,J)||(oe=B[j[ve]],oe.value=At(oe.value,e[ve],!1))}function Be(){var ve,D=B[0];for(D.value=lt(),ve=0;ve<t;++ve)D.value=ft(D.value,e[ve],!0);for(ve=0;ve<t;++ve)n.zeroExcept(ve,S,J)||(D.value=At(D.value,e[ve],!1))}function ke(){return fe&&(tt(),fe=!1),B}function Te(ve){var D=De(ke(),0,B.length,ve);return Ee.sort(D,0,D.length)}function ze(ve,D,oe){return ft=ve,At=D,lt=oe,fe=!0,me}function Xe(){return ze(mf.reduceIncrement,mf.reduceDecrement,Np)}function ut(ve){return ze(mf.reduceAdd(ve),mf.reduceSubtract(ve),Np)}function at(ve){De=x_.by(D),Ee=B0.by(D);function D(oe){return ve(oe.value)}return me}function Je(){return at(zm)}function it(){return le}function ct(){var ve=l.indexOf(Ke);return ve>=0&&l.splice(ve,1),ve=$.indexOf(Ne),ve>=0&&$.splice(ve,1),ve=c.indexOf(et),ve>=0&&c.splice(ve,1),ve=q.indexOf(me),ve>=0&&q.splice(ve,1),me}return Xe().orderNatural()}function $e(){var ne=N(sd),me=ne.all;return delete ne.all,delete ne.top,delete ne.order,delete ne.orderNatural,delete ne.size,ne.value=function(){return me()[0].value},ne}function He(){q.forEach(function(me){me.dispose()});var ne=s.indexOf(G);return ne>=0&&s.splice(ne,1),ne=s.indexOf(de),ne>=0&&s.splice(ne,1),ne=c.indexOf(Ae),ne>=0&&c.splice(ne,1),n.masks[S]&=J,Fe()}return U}function _(){var w={reduce:x,reduceCount:A,reduceSum:O,value:k,dispose:C,remove:C},I,K,U,Y,J=!0;l.push(Q),s.push(S),S(e,0);function S(ee,Re){var ge;if(!J)for(ge=Re;ge<t;++ge)I=K(I,e[ge],!0),n.zero(ge)||(I=U(I,e[ge],!1))}function Q(ee,Re,ge,F,H){var R,$,q;if(!J){for(R=0,q=ge.length;R<q;++R)n.zero($=ge[R])&&(I=K(I,e[$],H));for(R=0,q=F.length;R<q;++R)n.only($=F[R],Re,ee)&&(I=U(I,e[$],H))}}function ae(){var ee;for(I=Y(),ee=0;ee<t;++ee)I=K(I,e[ee],!0),n.zero(ee)||(I=U(I,e[ee],!1))}function x(ee,Re,ge){return K=ee,U=Re,Y=ge,J=!0,w}function A(){return x(mf.reduceIncrement,mf.reduceDecrement,Np)}function O(ee){return x(mf.reduceAdd(ee),mf.reduceSubtract(ee),Np)}function k(){return J&&(ae(),J=!1),I}function C(){var ee=l.indexOf(Q);return ee>=0&&l.splice(ee,1),ee=s.indexOf(S),ee>=0&&s.splice(ee,1),w}return A()}function z(){return t}function X(){return e}function y(w){var I=[],K=0,U=m(w||[]);for(K=0;K<t;K++)n.zeroExceptMask(K,U)&&I.push(e[K]);return I}function E(w){if(typeof w!="function"){console.warn("onChange callback parameter must be a function!");return}return d.push(w),function(){d.splice(d.indexOf(w),1)}}function T(w){for(var I=0;I<d.length;I++)d[I](w)}return arguments.length?u(arguments[0]):i}function Pf(i,e){return(e<257?vf.array8:e<65537?vf.array16:vf.array32)(i)}function dg(i){for(var e=Pf(i,i),t=-1;++t<i;)e[t]=t;return e}function Wx(i){return i===8?256:i===16?65536:4294967296}let dF=class{constructor(e,t,n){this._crossfilter=e,this._selfRemove=t,this._syncUp=n}setAccessor(e){const{_crossfilter:t}=this;this.dispose(),this._dimension=t.dimension(e)}applyFilter(e){var t,n;(t=this._dimension)===null||t===void 0||t.filter(e),(n=this._syncUp)===null||n===void 0||n.call(this)}clear(){var e,t;(e=this._dimension)===null||e===void 0||e.filterAll(),(t=this._syncUp)===null||t===void 0||t.call(this)}getAllValues(){const{_crossfilter:e,_dimension:t}=this;if(t)return e.all().map(t.accessor)}getFilteredValues(){const{_crossfilter:e,_dimension:t}=this;if(t)return e.allFiltered().map(t.accessor)}getFilteredRecords(){return this._crossfilter.allFiltered([this._dimension])}isActive(){var e;return((e=this._dimension)===null||e===void 0?void 0:e.hasCurrentFilter())||!1}dispose(){var e;(e=this._dimension)===null||e===void 0||e.dispose()}remove(){this.dispose(),this._selfRemove()}};class jx{constructor(e){this._crossfilter=Nm(),this._filters=new Set,this._syncUpFunction=e,this._crossfilter.onChange(t=>{var n,l,s;switch(t){case"filtered":(n=this.onFiltered)===null||n===void 0||n.call(this),this._filters.forEach(c=>{var d;(d=c.onFiltered)===null||d===void 0||d.call(c)});break;case"dataAdded":(l=this.onDataAdded)===null||l===void 0||l.call(this),this._filters.forEach(c=>{var d;(d=c.onDataAdded)===null||d===void 0||d.call(c)});break;case"dataRemoved":(s=this.onDataRemoved)===null||s===void 0||s.call(this),this._filters.forEach(c=>{var d;(d=c.onDataRemoved)===null||d===void 0||d.call(c)})}})}addRecords(e){const{_crossfilter:t}=this;this._records=e,t.remove(),t.add(e)}getFilteredRecords(e){const{_crossfilter:t}=this;return e?.getFilteredRecords()||t.allFiltered()}addFilter(e=!0){const t=new dF(this._crossfilter,()=>{this._filters.delete(t)},e?this._syncUpFunction:void 0);return this._filters.add(t),t}clearFilters(){this._filters.forEach(e=>{e.clear()})}isAnyFiltersActive(e){for(const t of this._filters.values())if(t!==e&&t.isActive())return!0;return!1}getAllRecords(){return this._records}}class fF{constructor(e,t){var n;this._data={nodes:[],links:[]},this._previousData={nodes:[],links:[]},this._cosmographConfig={},this._cosmosConfig={},this._nodesForTopLabels=new Set,this._nodesForForcedLabels=new Set,this._trackedNodeToLabel=new Map,this._isLabelsDestroyed=!1,this._svgParser=new DOMParser,this._nodesCrossfilter=new jx(this._applyLinksFilter.bind(this)),this._linksCrossfilter=new jx(this._applyNodesFilter.bind(this)),this._nodesFilter=this._nodesCrossfilter.addFilter(!1),this._linksFilter=this._linksCrossfilter.addFilter(!1),this._selectedNodesFilter=this._nodesCrossfilter.addFilter(),this._isDataDifferent=()=>{const s=JSON.stringify(this._data.nodes),c=JSON.stringify(this._previousData.nodes),d=JSON.stringify(this._data.links),u=JSON.stringify(this._previousData.links);return s!==c||d!==u},this._onClick=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onClick)===null||d===void 0||d.call(c,...s)},this._onLabelClick=(s,c)=>{var d,u,h;const m=(d=this._cosmos)===null||d===void 0?void 0:d.graph.getNodeById(c.id);m&&((h=(u=this._cosmographConfig).onLabelClick)===null||h===void 0||h.call(u,m,s))},this._onHoveredNodeClick=s=>{var c,d;this._hoveredNode&&((d=(c=this._cosmographConfig).onLabelClick)===null||d===void 0||d.call(c,this._hoveredNode,s))},this._onNodeMouseOver=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onNodeMouseOver)===null||d===void 0||d.call(c,...s);const[u,,h]=s;this._hoveredNode=u,this._renderLabelForHovered(u,h)},this._onNodeMouseOut=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onNodeMouseOut)===null||d===void 0||d.call(c,...s),this._renderLabelForHovered()},this._onMouseMove=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onMouseMove)===null||d===void 0||d.call(c,...s);const[u,,h]=s;this._renderLabelForHovered(u,h)},this._onZoomStart=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onZoomStart)===null||d===void 0||d.call(c,...s)},this._onZoom=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onZoom)===null||d===void 0||d.call(c,...s),this._renderLabelForHovered(),this._renderLabels()},this._onZoomEnd=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onZoomEnd)===null||d===void 0||d.call(c,...s)},this._onStart=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onSimulationStart)===null||d===void 0||d.call(c,...s)},this._onTick=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onSimulationTick)===null||d===void 0||d.call(c,...s),this._renderLabels()},this._onEnd=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onSimulationEnd)===null||d===void 0||d.call(c,...s)},this._onPause=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onSimulationPause)===null||d===void 0||d.call(c,...s)},this._onRestart=(...s)=>{var c,d;(d=(c=this._cosmographConfig).onSimulationRestart)===null||d===void 0||d.call(c,...s)},this._containerNode=e,this._containerNode.classList.add(dm.cosmograph),this._cosmographConfig=Ic(Ux,t??{}),this._cosmosConfig=this._createCosmosConfig(t),this._canvasElement=document.createElement("canvas"),this._labelsDivElement=document.createElement("div"),this._watermarkDivElement=document.createElement("div"),this._watermarkDivElement.classList.add(dm.watermark),this._watermarkDivElement.onclick=()=>{var s;return(s=window.open("https://cosmograph.app/","_blank"))===null||s===void 0?void 0:s.focus()},e.appendChild(this._canvasElement),e.appendChild(this._labelsDivElement),e.appendChild(this._watermarkDivElement),this._cssLabelsRenderer=new LC(this._labelsDivElement,{dispatchWheelEventElement:this._canvasElement,pointerEvents:"all",onLabelClick:this._onLabelClick.bind(this)}),this._hoveredCssLabel=new Y3(this._labelsDivElement),this._hoveredCssLabel.setPointerEvents("all"),this._hoveredCssLabel.element.addEventListener("click",this._onHoveredNodeClick.bind(this)),this._linksFilter.setAccessor(s=>[s.source,s.target]),this._nodesFilter.setAccessor(s=>s.id),this._selectedNodesFilter.setAccessor(s=>s.id),this._nodesCrossfilter.onFiltered=()=>{var s,c,d,u;let h;this._nodesCrossfilter.isAnyFiltersActive()?(h=this._nodesCrossfilter.getFilteredRecords(),(s=this._cosmos)===null||s===void 0||s.selectNodesByIds(h.map(m=>m.id))):(c=this._cosmos)===null||c===void 0||c.unselectNodes(),this._updateSelectedNodesSet(h),(u=(d=this._cosmographConfig).onNodesFiltered)===null||u===void 0||u.call(d,h)},this._linksCrossfilter.onFiltered=()=>{var s,c;let d;this._linksCrossfilter.isAnyFiltersActive()&&(d=this._linksCrossfilter.getFilteredRecords()),(c=(s=this._cosmographConfig).onLinksFiltered)===null||c===void 0||c.call(s,d)};const l=this._svgParser.parseFromString(V5,"image/svg+xml").firstChild;(n=this._watermarkDivElement)===null||n===void 0||n.appendChild(l)}get data(){return this._data}get progress(){var e;return(e=this._cosmos)===null||e===void 0?void 0:e.progress}get isSimulationRunning(){var e;return(e=this._cosmos)===null||e===void 0?void 0:e.isSimulationRunning}get maxPointSize(){var e;return(e=this._cosmos)===null||e===void 0?void 0:e.maxPointSize}setData(e,t,n=!0){var l,s,c,d;const{_cosmographConfig:u}=this;this._data={nodes:e,links:t};const h=u.disableSimulation===null?!t.length:u.disableSimulation;this._cosmos||(this._disableSimulation=h,this._cosmosConfig.disableSimulation=this._disableSimulation,this._cosmos=new kC(this._canvasElement,this._cosmosConfig),this.cosmos=this._cosmos),this._disableSimulation!==h&&console.warn(`The \`disableSimulation\` was initialized to \`${this._disableSimulation}\` during initialization and will not be modified.`),this._cosmos.setData(e,t,n),this._nodesCrossfilter.addRecords(e),this._linksCrossfilter.addRecords(t),this._updateLabels(),(s=(l=this._cosmographConfig).onSetData)===null||s===void 0||s.call(l,e,t),this._isDataDifferent()&&(["cosmograph.app"].includes(window.location.hostname)||ZR({browser:navigator.userAgent,hostname:window.location.hostname,mode:null,is_library_metric:!0,links_count:t.length,links_have_time:null,links_raw_columns:t.length&&(c=Object.keys(t?.[0]).length)!==null&&c!==void 0?c:0,links_raw_lines:null,nodes_count:e.length,nodes_have_time:null,nodes_raw_columns:e.length&&(d=Object.keys(e?.[0]).length)!==null&&d!==void 0?d:0,nodes_raw_lines:null})),this._previousData={nodes:e,links:t}}setConfig(e){var t,n;if(this._cosmographConfig=Ic(Ux,e??{}),this._cosmosConfig=this._createCosmosConfig(e),(t=this._cosmos)===null||t===void 0||t.setConfig(this._cosmosConfig),e?.backgroundColor){const l=(n=Md(e?.backgroundColor))===null||n===void 0?void 0:n.formatHex();if(l){const s=this._checkBrightness(l),c=document.querySelector(":root");s>.65?c?.style.setProperty("--cosmograph-watermark-color","#000000"):c?.style.setProperty("--cosmograph-watermark-color","#ffffff")}}this._updateLabels()}addNodesFilter(){return this._nodesCrossfilter.addFilter()}addLinksFilter(){return this._linksCrossfilter.addFilter()}selectNodesInRange(e){var t;if(!this._cosmos)return;this._cosmos.selectNodesInRange(e);const n=new Set(((t=this.getSelectedNodes())!==null&&t!==void 0?t:[]).map(l=>l.id));this._selectedNodesFilter.applyFilter(l=>n.has(l))}selectNodes(e){if(!this._cosmos)return;const t=new Set(e.map(n=>n.id));this._selectedNodesFilter.applyFilter(n=>t.has(n))}selectNode(e,t=!1){if(!this._cosmos)return;const n=new Set([e,...t&&this._cosmos.getAdjacentNodes(e.id)||[]].map(l=>l.id));this._selectedNodesFilter.applyFilter(l=>n.has(l))}unselectNodes(){this._cosmos&&this._selectedNodesFilter.clear()}getSelectedNodes(){if(this._cosmos)return this._cosmos.getSelectedNodes()}zoomToNode(e){this._cosmos&&this._cosmos.zoomToNodeById(e.id)}setZoomLevel(e,t=0){this._cosmos&&this._cosmos.setZoomLevel(e,t)}getZoomLevel(){if(this._cosmos)return this._cosmos.getZoomLevel()}getNodePositions(){if(this._cosmos)return this._cosmos.getNodePositions()}getNodePositionsMap(){if(this._cosmos)return this._cosmos.getNodePositionsMap()}getNodePositionsArray(){if(this._cosmos)return this._cosmos.getNodePositionsArray()}fitView(e=250){this._cosmos&&this._cosmos.fitView(e)}fitViewByNodeIds(e,t=250){this._cosmos&&this._cosmos.fitViewByNodeIds(e,t)}focusNode(e){this._cosmos&&this._cosmos.setFocusedNodeById(e?.id)}getAdjacentNodes(e){if(this._cosmos)return this._cosmos.getAdjacentNodes(e)}spaceToScreenPosition(e){if(this._cosmos)return this._cosmos.spaceToScreenPosition(e)}spaceToScreenRadius(e){if(this._cosmos)return this._cosmos.spaceToScreenRadius(e)}getNodeRadiusByIndex(e){if(this._cosmos)return this._cosmos.getNodeRadiusByIndex(e)}getNodeRadiusById(e){if(this._cosmos)return this._cosmos.getNodeRadiusById(e)}getSampledNodePositionsMap(){if(this._cosmos)return this._cosmos.getSampledNodePositionsMap()}start(e=1){this._cosmos&&this._cosmos.start(e)}pause(){this._cosmos&&this._cosmos.pause()}restart(){this._cosmos&&this._cosmos.restart()}step(){this._cosmos&&this._cosmos.step()}remove(){var e;(e=this._cosmos)===null||e===void 0||e.destroy(),this._isLabelsDestroyed||(this._containerNode.innerHTML="",this._isLabelsDestroyed=!0,this._hoveredCssLabel.element.removeEventListener("click",this._onHoveredNodeClick.bind(this)),this._hoveredCssLabel.destroy(),this._cssLabelsRenderer.destroy())}create(){this._cosmos&&this._cosmos.create()}getNodeDegrees(){if(this._cosmos)return this._cosmos.graph.degree}_createCosmosConfig(e){const t={...e,simulation:{...Object.keys(e??{}).filter(n=>n.indexOf("simulation")!==-1).reduce((n,l)=>{const s=l.replace("simulation","");return n[s.charAt(0).toLowerCase()+s.slice(1)]=e?.[l],n},{}),onStart:this._onStart.bind(this),onTick:this._onTick.bind(this),onEnd:this._onEnd.bind(this),onPause:this._onPause.bind(this),onRestart:this._onRestart.bind(this)},events:{onClick:this._onClick.bind(this),onNodeMouseOver:this._onNodeMouseOver.bind(this),onNodeMouseOut:this._onNodeMouseOut.bind(this),onMouseMove:this._onMouseMove.bind(this),onZoomStart:this._onZoomStart.bind(this),onZoom:this._onZoom.bind(this),onZoomEnd:this._onZoomEnd.bind(this)}};return delete t.disableSimulation,t}_updateLabels(){if(this._isLabelsDestroyed||!this._cosmos)return;const{_cosmos:e,data:{nodes:t},_cosmographConfig:{showTopLabels:n,showTopLabelsLimit:l,showLabelsFor:s,showTopLabelsValueKey:c,nodeLabelAccessor:d}}=this;if(this._nodesForTopLabels.clear(),n&&l){let u;u=c?[...t].sort((h,m)=>{const b=h[c],g=m[c];return typeof b=="number"&&typeof g=="number"?g-b:0}):Object.entries(e.graph.degree).sort((h,m)=>m[1]-h[1]).slice(0,l).map(h=>e.graph.getNodeByIndex(+h[0]));for(let h=0;h<l&&!(h>=t.length);h++){const m=u[h];m&&this._nodesForTopLabels.add(m)}}this._nodesForForcedLabels.clear(),s?.forEach(this._nodesForForcedLabels.add,this._nodesForForcedLabels),this._trackedNodeToLabel.clear(),e.trackNodePositionsByIds([...n?this._nodesForTopLabels:[],...this._nodesForForcedLabels].map(u=>{var h;return this._trackedNodeToLabel.set(u,(h=d?.(u))!==null&&h!==void 0?h:u.id),u.id})),this._renderLabels()}_updateSelectedNodesSet(e){this._isLabelsDestroyed||(e?(this._selectedNodesSet=new Set,e?.forEach(this._selectedNodesSet.add,this._selectedNodesSet)):this._selectedNodesSet=void 0,this._renderLabels())}_renderLabels(){if(this._isLabelsDestroyed||!this._cosmos)return;const{_cosmos:e,_selectedNodesSet:t,_cosmographConfig:{showDynamicLabels:n,nodeLabelAccessor:l,nodeLabelColor:s,nodeLabelClassName:c}}=this;let d=[];const u=e.getTrackedNodePositionsMap(),h=new Map;if(n){const m=this.getSampledNodePositionsMap();m?.forEach((b,g)=>{var _;const z=e.graph.getNodeById(g);z&&h.set(z,[(_=l?.(z))!==null&&_!==void 0?_:z.id,b,dm.cosmographShowDynamicLabels,.7])})}this._nodesForTopLabels.forEach(m=>{h.set(m,[this._trackedNodeToLabel.get(m),u.get(m.id),dm.cosmographShowTopLabels,.9])}),this._nodesForForcedLabels.forEach(m=>{h.set(m,[this._trackedNodeToLabel.get(m),u.get(m.id),dm.cosmographShowLabelsFor,1])}),d=[...h.entries()].map(([m,[b,g,_,z]])=>{var X,y,E;const T=this.spaceToScreenPosition([(X=g?.[0])!==null&&X!==void 0?X:0,(y=g?.[1])!==null&&y!==void 0?y:0]),w=this.spaceToScreenRadius(e.config.nodeSizeScale*this.getNodeRadiusById(m.id)),I=!!t,K=t?.has(m);return{id:m.id,text:b??"",x:T[0],y:T[1]-w/2-.1*w,weight:I&&!K?.1:z,shouldBeShown:this._nodesForForcedLabels.has(m),style:I&&!K?"opacity: 0.1;":"",color:s&&(typeof s=="string"?s:s?.(m)),className:(E=typeof c=="string"?c:c?.(m))!==null&&E!==void 0?E:_}}),this._cssLabelsRenderer.setLabels(d),this._cssLabelsRenderer.draw(!0)}_renderLabelForHovered(e,t){var n,l;if(!this._cosmos)return;const{_cosmographConfig:{showHoveredNodeLabel:s,nodeLabelAccessor:c,hoveredNodeLabelClassName:d,hoveredNodeLabelColor:u}}=this;if(!this._isLabelsDestroyed){if(s&&e&&t){const h=this.spaceToScreenPosition(t),m=this.spaceToScreenRadius(this.getNodeRadiusById(e.id));this._hoveredCssLabel.setText((n=c?.(e))!==null&&n!==void 0?n:e.id),this._hoveredCssLabel.setVisibility(!0),this._hoveredCssLabel.setPosition(h[0],h[1]-m/2-.1*m),this._hoveredCssLabel.setClassName(typeof d=="string"?d:(l=d?.(e))!==null&&l!==void 0?l:"");const b=u&&(typeof u=="string"?u:u?.(e));b&&this._hoveredCssLabel.setColor(b)}else this._hoveredCssLabel.setVisibility(!1);this._hoveredCssLabel.draw()}}_applyLinksFilter(){if(this._nodesCrossfilter.isAnyFiltersActive(this._nodesFilter)){const e=this._nodesCrossfilter.getFilteredRecords(this._nodesFilter),t=new Set(e.map(n=>n.id));this._linksFilter.applyFilter(n=>{const l=n?.[0],s=n?.[1];return t.has(l)&&t.has(s)})}else this._linksFilter.clear()}_applyNodesFilter(){if(this._linksCrossfilter.isAnyFiltersActive(this._linksFilter)){const e=this._linksCrossfilter.getFilteredRecords(this._linksFilter),t=new Set(e.map(n=>[n.source,n.target]).flat());this._nodesFilter.applyFilter(n=>t.has(n))}else this._nodesFilter.clear()}_checkBrightness(e){const t=(n=>{const l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return l?{r:parseInt((l[1]||0).toString(),16),g:parseInt((l[2]||0).toString(),16),b:parseInt((l[3]||0).toString(),16)}:{r:0,g:0,b:0}})(e);return(.2126*t.r+.7152*t.g+.0722*t.b)/255}}const qx={onSelectResult:void 0,accessors:void 0};let uF=class{constructor(e,t,n){this._config={},this._data=[],this._defaultAccessors=[],this._createDefaultAccessorOptions=l=>l.length>0&&l[0]?Object.keys(l[0]).map(s=>({label:s,accessor:c=>String(c[s])})):[{label:"id",accessor:s=>s.id}],this._onSelect=(...l)=>{this._onSelectResult(...l)},this._onSearch=(...l)=>{var s,c;(c=(s=this._config).onSearch)===null||c===void 0||c.call(s,...l)},this._onEnter=(...l)=>{var s,c;(c=(s=this._config).onEnter)===null||c===void 0||c.call(s,...l)},this._onAccessorSelect=(...l)=>{var s,c;(c=(s=this._config).onAccessorSelect)===null||c===void 0||c.call(s,...l)},this._cosmograph=e,this._config=Ic(qx,n??{}),this.search=new G5(t,this._createSearchConfig(n)),this._filter=this._cosmograph.addNodesFilter(),this._filter.onDataAdded=()=>{this._updateData()},this._updateData()}setConfig(e){const t=Ic(qx,e??{});this._data.length&&t.accessors===void 0&&(t.accessors=this._defaultAccessors),this.search.setConfig(this._createSearchConfig(t)),this._config=t}_updateData(){const e=this._cosmograph.data.nodes;e?.length&&(this._data=e,this.search.setData(this._data),this._config.accessors===void 0&&(this._defaultAccessors=this._createDefaultAccessorOptions(this._data),this.setConfig({accessors:this._defaultAccessors})))}getConfig(){return this._config}remove(){this.search.destroy()}setListState(e){this.search.setListState(e)}clearInput(){this.search.clearInput()}_onSelectResult(e){var t,n;this._cosmograph.pause(),this._cosmograph.zoomToNode(e),this._cosmograph.selectNode(e),(n=(t=this._config).onSelectResult)===null||n===void 0||n.call(t,e)}_createSearchConfig(e){return{...e,events:{onSelect:this._onSelect.bind(this),onSearch:this._onSearch.bind(this),onEnter:this._onEnter.bind(this),onAccessorSelect:this._onAccessorSelect.bind(this)}}}};var wf;(function(i){i.Nodes="nodes",i.Links="links"})(wf||(wf={}));const Yx={accessor:i=>i.date,filterType:wf.Links};let hF=class{constructor(e,t,n){this._config={},this.playAnimation=()=>{this.timeline.playAnimation()},this.pauseAnimation=()=>{this.timeline.pauseAnimation()},this.stopAnimation=()=>{this.timeline.stopAnimation()},this._onBrush=(l,s)=>{var c,d;this._applyFilter(l),(d=(c=this._config).onSelection)===null||d===void 0||d.call(c,l,s)},this._onBarHover=(...l)=>{var s,c;(c=(s=this._config).onBarHover)===null||c===void 0||c.call(s,...l)},this._onAnimationPlay=(...l)=>{var s,c;(c=(s=this._config).onAnimationPlay)===null||c===void 0||c.call(s,...l)},this._onAnimationPause=(...l)=>{var s,c;(c=(s=this._config).onAnimationPause)===null||c===void 0||c.call(s,...l)},this._config=Ic(Yx,n??{}),this.timeline=new Rz(t,this._createTimelineConfig(n)),this._cosmograph=e,this._filter=this._config.filterType===wf.Nodes?this._cosmograph.addNodesFilter():this._cosmograph.addLinksFilter(),this._filter.onDataAdded=()=>{this._updateData()},this._updateDimension(),this._updateData()}setConfig(e){var t,n;const l=Ic(Yx,e??{});this.timeline.setConfig(this._createTimelineConfig(e)),((t=this._config.accessor)===null||t===void 0?void 0:t.toString())!==((n=l.accessor)===null||n===void 0?void 0:n.toString())&&this._updateData(),this._config=l}getCurrentSelection(){return this.timeline.getCurrentSelection()}getCurrentSelectionInPixels(){return this.timeline.getCurrentSelectionInPixels()}getBarWidth(){return this.timeline.getBarWidth()}getIsAnimationRunning(){return this.timeline.getIsAnimationRunning()}setSelection(e){this.timeline.setSelection(e)}setSelectionInPixels(e){this.timeline.setSelectionInPixels(e)}_updateData(){const e=this._filter.getAllValues();e&&this.timeline.setTimeData(e),this.timeline.render(),this.timeline.resize()}_updateDimension(){const{_config:{accessor:e},_filter:t}=this;t.setAccessor(e)}_applyFilter(e){const{_filter:t}=this;e?t.applyFilter(n=>n>=e[0]&&n<=e[1]):t.clear()}getConfig(){return this._config}remove(){this.timeline.destroy()}_createTimelineConfig(e){return{...e,events:{onBrush:this._onBrush.bind(this),onBarHover:this._onBarHover.bind(this),onAnimationPlay:this._onAnimationPlay.bind(this),onAnimationPause:this._onAnimationPause.bind(this)}}}};const Xx={accessor:i=>i.value,customExtent:void 0,data:void 0,filterFunction:void 0,filterType:wf.Nodes,onSelection:void 0,highlightCrossfiltered:!0};class mF{constructor(e,t,n){this._onBrush=(l,s)=>{var c,d;this._applyFilter(l),(d=(c=this._config).onSelection)===null||d===void 0||d.call(c,l,s)},this._onBarHover=(...l)=>{var s,c;(c=(s=this._config).onBarHover)===null||c===void 0||c.call(s,...l)},this._cosmograph=e,this._config=Ic(Xx,n??{}),this._histogram=new Dz(t,this._createHistogramConfig(n)),this._filter=this._config.filterType===wf.Nodes?this._cosmograph.addNodesFilter():this._cosmograph.addLinksFilter(),this._filter.onDataAdded=()=>{this._updateData()},this._filter.onFiltered=()=>{this._config.highlightCrossfiltered&&this._updateDynamicData()},this._updateDimension(),this._updateData()}setConfig(e){const t=Ic(Xx,e??{});this._histogram.setConfig(this._createHistogramConfig(e)),t.accessor===this._config.accessor&&t.data===this._config.data&&t.filterFunction===this._config.filterFunction||(this._updateDimension(),this._updateData(),this.setSelection()),this._config=t}getCurrentSelection(){return this._histogram.getCurrentSelection}getCurrentSelectionInPixels(){return this._histogram.getCurrentSelectionInPixels}getBarWidth(){return this._histogram.getBarWidth()}setSelection(e){this._histogram.setSelection(e)}getConfig(){return this._config}remove(){this._histogram.destroy()}_createHistogramConfig(e){return{...e,events:{onBrush:this._onBrush.bind(this),onBarHover:this._onBarHover.bind(this)}}}_updateDimension(){const{_config:{accessor:e,filterFunction:t,data:n,filterType:l},_filter:s}=this;e&&(t&&n?l===wf.Nodes?s.setAccessor(c=>c.id):s.setAccessor(c=>[c.source,c.target]):s.setAccessor(e))}_applyFilter(e){const{_filter:t,_config:{filterFunction:n,data:l,filterType:s}}=this;if(e)if(n&&l){const c=t.getFilteredRecords();if(s===wf.Nodes){const d=n(e,l,c),u=new Set(d.map(h=>h.id));t.applyFilter(h=>u.has(h))}else{const d=n(e,l,c),u=new Set(d.map(h=>[h.source,h.target]).flat());t.applyFilter(h=>{const m=h?.[0],b=h?.[1];return u.has(m)&&u.has(b)})}}else t.applyFilter(c=>c>=e[0]&&c<=e[1]);else t.clear()}_updateData(){const{_config:{data:e,filterFunction:t,accessor:n}}=this,l=t&&e&&n?e.map(n):this._filter.getAllValues();l&&this._histogram.setHistogramData(l,this._config.customExtent)}_updateDynamicData(){const e=this._filter.getFilteredValues();this._histogram.setHighlightedData(e)}}function pF({style:i,className:e,...t},n){const l=E0(),s=Qr.useRef(null),c=Qr.useRef(),[d,u]=Qr.useState(!1);return Qr.useEffect(()=>(s.current&&l?.cosmograph&&(c.current=new hF(l?.cosmograph,s.current,t),u(!0)),()=>{var h;(h=c.current)===null||h===void 0||h.remove()}),[l?.cosmograph]),Qr.useEffect(()=>{var h;(h=c.current)===null||h===void 0||h.setConfig(t)},[t]),Qr.useImperativeHandle(n,()=>c.current,[d]),$d.createElement("div",{id:"CosmographTimeline",style:i,className:e,ref:s})}$d.forwardRef(pF);function bF({style:i,className:e,...t},n){const l=E0(),s=Qr.useRef(null),c=Qr.useRef(),[d,u]=Qr.useState(!1);return Qr.useEffect(()=>(s.current&&l?.cosmograph&&(c.current=new mF(l?.cosmograph,s.current,t),u(!0)),()=>{var h;(h=c.current)===null||h===void 0||h.remove()}),[l?.cosmograph]),Qr.useEffect(()=>{var h;(h=c.current)===null||h===void 0||h.setConfig(t)},[t]),Qr.useImperativeHandle(n,()=>c.current,[d]),$d.createElement("div",{id:"CosmographHistogram",style:i,className:e,ref:s})}$d.forwardRef(bF);function gF({style:i,className:e,nodes:t,links:n,...l},s){const c=E0(),d=Qr.useRef(null),u=Qr.useRef(),[h,m]=Qr.useState(!1);return Qr.useEffect(()=>(d.current&&(u.current=new fF(d.current,l),m(!0),c?.initCosmograph(u.current)),()=>{var b;(b=u.current)===null||b===void 0||b.remove()}),[]),Qr.useEffect(()=>{var b;(b=u.current)===null||b===void 0||b.setConfig(l)},[l]),Qr.useEffect(()=>{var b;(t||n)&&((b=u.current)===null||b===void 0||b.setData(t??[],n??[]))},[t,n]),Qr.useEffect(()=>{var b,g,_;t||n||!c?.nodes&&!c?.links||(b=u.current)===null||b===void 0||b.setData((g=c?.nodes)!==null&&g!==void 0?g:[],(_=c?.links)!==null&&_!==void 0?_:[])},[c?.nodes,c?.links]),Qr.useImperativeHandle(s,()=>u.current,[h]),$d.createElement("div",{style:{...i},className:e,ref:d})}const _F=$d.forwardRef(gF);function yF({style:i,className:e,...t},n){const l=E0(),s=Qr.useRef(null),c=Qr.useRef(),[d,u]=Qr.useState(!1);return Qr.useEffect(()=>(s.current&&l?.cosmograph&&(c.current=new uF(l?.cosmograph,s.current,t),u(!0)),()=>{var h;(h=c.current)===null||h===void 0||h.remove()}),[l?.cosmograph]),Qr.useEffect(()=>{var h;(h=c.current)===null||h===void 0||h.setConfig(t)},[t]),Qr.useImperativeHandle(n,()=>c.current,[d]),$d.createElement("div",{id:"CosmographSearch",style:i,className:e,ref:s})}$d.forwardRef(yF);function vF({data:i}){const e=Qr.useRef(null),t=Qr.useRef(null),n=()=>{e.current?.isSimulationRunning?e.current?.pause():e.current?.start()},l=()=>{e.current?.fitView(),t.current?.scrollIntoView({behavior:"smooth"})};return Bf.jsx("div",{ref:t,children:Bf.jsxs(J2,{children:[Bf.jsx(_F,{ref:e,backgroundColor:"transparent",nodes:i.nodes,links:i.links,linkArrows:!1,nodeColor:s=>s.colour??"blue",nodeSize:s=>s.size??5,scaleNodesOnZoom:!1,nodeLabelColor:s=>s.colour??"#cccccc",nodeLabelAccessor:s=>s.label,simulationGravity:.25,simulationRepulsion:1,simulationRepulsionTheta:1.15,simulationLinkDistance:10,simulationFriction:.85}),Bf.jsxs("div",{className:"controls",children:[Bf.jsx("button",{onClick:n,className:"control-button",children:"Pause/Play"}),Bf.jsx("button",{onClick:l,className:"control-button",children:"Fit"})]})]})})}const Xg=document.getElementById("cosmograph-root"),xF={nodes:JSON.parse(Xg.dataset.nodes||"[]"),links:JSON.parse(Xg.dataset.links||"[]")};K2.createRoot(Xg).render(Bf.jsx(vF,{data:xF}));